Home · Finance · Growth & Interest · Stock Average Calculator

Stock Average Calculator

Computes the weighted average purchase price of a share bought in several lots at different prices and quantities.

Your figures

Example result — edit the figures to make it yours

48.333

Average price per share

Total shares300
Total cost14,500.00

What this calculator does

Computes the weighted average purchase price of a share bought in several lots at different prices and quantities. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Average price = Σ(price × shares) ÷ Σ(shares) over all lots

Enter the lots in the same order in both lists: the first price pairs with the first share count, and so on. Both lists must have the same number of entries.

The average is weighted by lot size, not a simple mean of prices. Commissions are not included; add them to the lot prices first if you want them averaged in.

Worked example

With the example inputs this page opens with, the result is 48.333 — average price per share. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — the worked example in full
FigureValue
Average price per share48.333
Total shares300
Total cost14,500.00

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Stock Average Calculator work?

Computes the weighted average purchase price of a share bought in several lots at different prices and quantities. Purchase prices (list) · Shares per lot (list) → Average price per share. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Stock Average Calculator need?

Purchase prices (list) · Shares per lot (list) → Average price per share. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Stock Average Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.