Stock Average Calculator
Calculate your average cost per share across several purchases, see profit or loss at the current price, and find how many shares to buy to reach a target average.
Average Cost per Share
$46.67
Total Shares
150
Total Cost
$7,000.00
Average cost and break-even
Your average cost is the total you paid, fees included, divided by the shares you own. It is also your break-even price before selling costs: if the stock trades above it you are ahead on paper, and below it you are behind. Buying more shares at a lower price pulls the average down, but it also raises the amount of money you have in one stock, so the position carries more risk if the price keeps falling.
To see the result of selling, use the stock profit calculator. To decide how large a position should be, try the position size calculator. For regular purchases over time, see the dollar-cost averaging calculator, and to compare price with estimated value, use the margin of safety calculator.
Tools that do this with live data
This calculator works from the numbers you enter. These tools pull company data in automatically.
TradingView
Advanced interactive charting
Free; Essential $12.95/month billed annually
Finviz
Fast fundamental and technical stock screener
Free; Elite $39.50/month or $299.50/year
Related calculators and research
How It Works
- 1Enter the shares, price per share and optional fee for each purchase. Add a row for every buy.
- 2Optionally enter the current share price to see market value and unrealized profit or loss.
- 3Read your total shares, total cost and average cost per share.
- 4To plan an average down, enter the price you expect to buy at and the average cost you want.
- 5Review the shares and cash needed, and the size of your new total position.
The formula
- Average cost = Σ (Shares × Price + Fees) ÷ Σ Shares
- Unrealized profit or loss = Shares held × Current price − Total cost
- Shares to buy = (Target average × Shares held − Total cost) ÷ (Buy price − Target average)
A target average is only reachable when it lies between the price you buy at and your current average cost.
Worked example
You buy 100 shares at $50 and later 50 shares at $40, with no fees. The stock now trades at $40.
- 1Total cost: 100 × $50 + 50 × $40 = $7,000
- 2Total shares: 100 + 50 = 150
- 3Average cost: $7,000 ÷ 150 = $46.67
- 4At $40 the position is worth $6,000, a loss of $1,000 (−14.29%)
Average cost $46.67 per share. The price has to rise 16.67% to break even.
To bring a 100-share position bought at $50 down to a $44 average by buying at $40, you need 150 more shares, or $6,000.