Stock Average Calculator

Average cost per share and shares needed to average down

Example value.
$
$
$
$
Example value. Use 0 if your broker charges no commission.
%
Example value. Added on top of the flat fee.
$
$
Must be between the current price and your current average cost.
Average cost per share (fees included)—
Total shares—
Total invested (fees included)—
Break-even sell price (after a sell fee)—
Shares to buy now to reach your target—
Cost of that purchase—
New average cost after buying—
🎰 15 Global Lotteries + 12 Smart Number Pickers
Powerball · Mega Millions · EuroMillions · UK Lotto — Zodiac, Birthday, Dream, AI & more

What averaging down means

Averaging down means buying more shares of a stock you already own after its price has fallen, so that your average cost per share drops. Your average cost is total money spent divided by total shares. The IRS notes that your basis in stock is the purchase price plus costs such as commissions, which is why this calculator includes fees in the average.

How the numbers work

Average cost = (sum of shares × price + fees) ÷ total shares. To reach a target average T by buying x more shares at price C: x = (T × shares − money already spent − fee) ÷ (C − T), with the trade fee folded into C.

Example: 100 shares at $50 and 100 at $40, with a $5 fee on each trade: spent $9,010 for 200 shares, an average of $45.05. Selling later would cost another $5, so the break-even price is ($9,010 + $5) ÷ 200 = $45.075. With the stock at $32 and a target average of $40, you need (40 × 200 − 9,010 − 5) ÷ (32 − 40) = 126.9, so 127 shares costing 127 × $32 + $5 = $4,069. The new average is $13,079 ÷ 327 = $39.997. Prices, shares and fees are example values.

Risks of averaging down

  • It adds money to a loser. If the price keeps falling, a larger position means a larger loss. In the example you would put $4,069 more into a stock already below your cost.
  • A lower average does not make the stock a better one. The reason the price fell may still apply. Decide on the company, not on the cost basis.
  • Concentration. A bigger position can leave too much of your portfolio in one stock. Check your position size and a stop level before you buy.

Related tools

For regular fixed-amount buying, see the dollar-cost averaging calculator. To size a trade, use the position size calculator, and to see your gain or loss use the stock gain/loss calculator or the stop-loss calculator.

Sources

Last checked: 2026-10-31

Frequently Asked Questions

How do you calculate the average cost of shares?
Add up what you paid for every purchase (shares × price, plus fees) and divide by the total number of shares.
How many shares do I need to buy to lower my average to a target?
x = (target × current shares − total spent) ÷ (current price − target), then round up. This calculator does it for you, including fees. The target must be between the current price and your average cost.
Are commissions part of my cost basis?
Yes. The IRS says the basis of stock you buy is the purchase price plus costs such as commissions.
Is averaging down a good strategy?
It lowers your average cost but increases how much you have in a stock that is falling. It is not suitable for every situation and this tool is not investment advice.
What is the difference from dollar-cost averaging?
Dollar-cost averaging buys a fixed amount at regular intervals regardless of price. Averaging down is a one-off decision to buy more after a drop, usually to reduce your cost per share.

Bookmarks