How do I calculate the average price of a stock?
Multiply the shares by the price for each buy, add the results, and divide by the total number of shares. The calculator does this as you type.
Free calculator
Work out your average price per share when you bought the same stock more than once. Add each buy with its number of shares and the price you paid, and the calculator shows the average, the total shares and the total cost.
Add a current price if you want to see what the position is worth against what it cost. The starting values are a fictional example.
Runs in your browser. Nothing you enter is sent or stored.
The average price per share is the total you paid divided by the total shares you bought. Each buy counts in proportion to its size, so a large buy moves the average more than a small one.
Shares multiplied by the price per share.
Add up the cost of every buy, and add up the shares.
Total cost divided by total shares.
| Buy | Shares × price | Cost |
|---|---|---|
| Buy 1 | 10 × $50.00 | $500.00 |
| Buy 2 | 15 × $42.00 | $630.00 |
| Buy 3 | 25 × $38.00 | $950.00 |
| Total | 50 shares | $2,080.00 |
| Average price per share | $2,080.00 ÷ 50 | $41.60 |
These are the calculator's starting values. A plain average of the three prices would be $43.33; the weighted average is lower because the largest buy was at the lowest price.
Multiply the shares by the price for each buy, add the results, and divide by the total number of shares. The calculator does this as you type.
Because buys of different sizes count differently. If you bought more shares at the lower price, the average sits closer to that price.
Yes. Enter shares with decimals, for example 0.25.
Up to 20. Rows you leave empty are ignored.
No. The calculation runs in your browser. Nothing you type is sent to Fillfolio or stored.
This calculator gives estimates from the values you enter. It is not investment or tax advice.