Stock Average Calculator
Add every purchase of a stock to see your average cost per share, then plan how many more shares would bring that average to a price you choose.
Plan your next buy
Find how many shares to buy to bring your average to a target price.
How it's calculated
The average cost per share is a weighted average. Multiply the shares by the price for each purchase, add those amounts together, then divide by the total number of shares. Buying more shares at a lower price pulls the average down, and buying at a higher price pulls it up.
If you enter a fee, it is added to the cost of every purchase that has shares and a price, so the average reflects what you actually paid. The break-even price is the same figure, since selling at your average cost with the fees included leaves you with no gain or loss before any selling fee.
The plan your next buy section solves for the shares needed. With S shares held at a total cost of C, a target average T, a buy price p and a fee f, the shares to buy are (S × T − C − f) ÷ (p − T). A target is only reachable if it lies between your current average and the price you would buy at.
Worked example
You bought 10 shares at 50, 10 at 40 and 20 at 30. The total cost is 500 + 400 + 600 = 1,500 for 40 shares, so the average is 37.50. To bring the average down to 35 by buying at 30, you need (40 × 35 − 1,500) ÷ (30 − 35) = 20 more shares. Check: (1,500 + 600) ÷ 60 = 35.
Averaging down lowers your break-even point, but it also puts more money into a falling position, so it only makes sense if you still believe in the investment. For a position in digital assets, the Crypto Profit Calculator works on the same idea with fees on both sides.
Frequently asked
How do I calculate the average price of a stock I bought several times?
Multiply the shares in each purchase by its price, add the results, and divide by the total shares. The calculator does this for as many purchases as you add, and can include a flat fee per purchase.
What does averaging down mean?
Averaging down means buying more shares after the price has fallen, which lowers your average cost per share. Your break-even price drops, but your exposure to the stock rises, so it adds risk as well as lowering the cost.
Does the average include brokerage fees?
It does if you enter a flat fee per purchase. Each purchase with shares and a price adds that fee to its cost. Percentage-based fees can be added by raising the price slightly, or by using the average without fees.
Why does the target say it cannot be reached?
A new purchase can only move your average toward the price you pay. To reach a target, it has to lie between your current average and the buy price. A target below the buy price, or on the far side of your current average, is not possible.
Is this tax or investment advice?
No. It is arithmetic on the numbers you enter. Tax lots and cost-basis methods differ by country and broker, so use your broker's records for tax reporting.