How to calculate your average stock price
If you bought the same stock at different prices, your average price (also called average cost or cost basis per share) tells you where you break even.
The formula
Average price = total money spent ÷ total shares bought
Total money spent is every purchase (shares × price) plus any fees or brokerage you paid.
Example
| Buy | Shares | Price | Cost |
|---|---|---|---|
| 1st | 100 | $50 | $5,000 |
| 2nd | 50 | $40 | $2,000 |
| Total | 150 | $7,000 |
$7,000 ÷ 150 = $46.67 per share. You break even when the price gets back to $46.67 (a little higher if you paid fees).
With fees: if the first buy also cost a $10 fee, the total becomes $7,010 and the average $46.73.
Free average price calculator
How to average down to a target price
Say you hold 100 shares at an average of $50, the price is now $40, and you want your average to be $45. If you buy x more shares at $40:
(100 × 50 + 40x) ÷ (100 + x) = 45 → x = 100 shares.
Check: 100 at $50 plus 100 at $40 = $9,000 for 200 shares = $45. Averaging down lowers your break-even, but it also puts more money into a stock that is falling, so it is worth thinking about the extra risk.
Do it on your phone
The Stock Average Price Calculator app does all of this for several holdings, includes a “what if I buy more?” planner and a target-average planner, saves your holdings on your phone and works offline. No account and no ads.
Common questions
Does the average price include fees?
For your true break-even, yes. Add the brokerage or charges to the cost of each purchase.
What about selling part of my shares?
Methods differ by country and broker (for example average cost versus first-in-first-out for tax). This page covers buying only, and is not tax advice.
Is this financial advice?
No. It is a calculation based on the numbers you enter.