Stock Average Calculator
Calculate your average price per share across multiple buys, including commissions and fees. Find your break-even price and how many shares to buy to average down.
| # | Date (optional) | Shares | Price / Share ($) | Fee ($) | Total Cost |
|---|
How many more shares do you need to buy to bring your average cost down to a target? Uses the purchases above.
How the average price per share is calculated
Your average price is not the simple average of the prices you paid. Each purchase is weighted by how many shares you bought, so a large buy moves the average more than a small one.
Example: you buy 10 shares at $100 and 30 shares at $80. You spent $1,000 + $2,400 = $3,400 on 40 shares, so your average is $3,400 ÷ 40 = $85.00, not the $90 you would get by averaging the two prices.
Stock average price with fees
Commissions and other trading fees are part of what each share actually cost you. Add them to the total and divide by the same number of shares to get your average cost basis. In the US, brokers and the IRS treat purchase commissions as part of your cost basis, so this is also the number that matters for taxes.
Example: 10 shares at $100 and 10 shares at $80, with a $5 commission on each trade:
- Purchase price: $1,000 + $800 = $1,800
- Fees: $5 + $5 = $10
- Average price (no fees): $1,800 ÷ 20 = $90.00
- Average cost basis (with fees): $1,810 ÷ 20 = $90.50
Enter a fee on each row of the calculator above and it shows both numbers side by side. Many brokers now charge $0 for stock trades, but fees still show up with options, some ETFs and mutual funds, international shares, and currency conversion.
Break-even price with fees
To break even, the sale has to cover your cost basis and whatever it costs to sell. Enter your expected sell fee and the calculator adds it in.
Using the example above with a $5 fee to sell: ($1,810 + $5) ÷ 20 = $90.75. Selling at $90.50 would look like breaking even on paper but would actually lose $5.
Averaging down
Averaging down means buying more of a stock after its price has fallen, which pulls your average cost lower. A lower average means a smaller price recovery is needed to get back to break-even.
Example: you own 50 shares at $40 ($2,000 invested). The price drops to $30. If you want your average down to $35, how many shares do you need to buy?
(2,000 − 35 × 50) ÷ (35 − 30) = 250 ÷ 5 = 50 shares, costing $1,500. You then own 100 shares for $3,500, an average of exactly $35. Use the Average down to a target section of the calculator to run this for your own position, including the fee on the new trade.
The target has to sit between the new price and your current average. You can never average below the price you are buying at, and every step closer to that price takes much more money. Averaging down also increases how much you have riding on one company, so it only makes sense if your reason for owning the stock still holds.
Dollar-cost averaging (DCA)
Dollar-cost averaging means investing a fixed dollar amount on a schedule, such as $200 every month, no matter what the price is. Because the amount is fixed, you automatically buy more shares when the price is low and fewer when it is high.
| Month | Invested | Price | Shares bought |
|---|---|---|---|
| 1 | $200 | $50 | 4 |
| 2 | $200 | $40 | 5 |
| 3 | $200 | $25 | 8 |
| 4 | $200 | $50 | 4 |
| Total | $800 | 21 |
Your average cost is $800 ÷ 21 = $38.10 per share, even though the average of the four prices is $41.25. Enter each month as a row in the calculator (shares and price) to track a real DCA plan. Fractional shares work too.
DCA is mainly a discipline tool: it removes the temptation to time the market. When you already have a lump sum, investing all of it at once has historically come out ahead more often than not, because markets rise more often than they fall. DCA trades some of that expected return for a smoother ride.
Other investing calculators
To project what regular contributions could grow to, use the investment calculator or the compound interest calculator. To find a stock's annualized return over several years, try the CAGR calculator, and to see what a past investment would be worth today, the stock return calculator.