About the Stock Average Calculator
Averaging down means buying more shares after the price falls to lower your average cost per share; averaging up means adding to a winner. This calculator combines several buys at different prices, shows your new average cost, and – if you enter the current price – compares your return before and after the extra purchases.
Fractional shares are supported, and your inputs are saved only in this browser.
People typically use it when a position is underwater and they are deciding whether to add, when they have been buying the same ETF every month and want the true average, or to double-check the cost basis their brokerage app shows. Running the target-average calculation first tells you how much extra cash a plan really needs before you commit to it.
How to use
- Enter the average price and number of shares you own now.
- Enter the price and quantity of each additional buy. Tap + Add a buy for more lots.
- Optionally enter the current price to see market value, unrealized gain/loss and the return before and after.
- In the last box, enter a target average and a buy price to see how many shares you’d need.
Worked examples
Averaging down once
- Input
- Own 25 shares at an average of $182.40
Buy 15 more at $151.20; current price $158.00 - Result
- New average $170.70 ($11.70, 6.41% lower)
40 shares · total cost $6,828.00 · unrealized loss −$508.00
Return −13.38% → −7.44%
The percentage loss nearly halves, but the dollar loss is still $508. What really changed is your break-even price: from $182.40 down to $170.70.
Shares needed for a target average
- Input
- Same 25 shares at $182.40
Target average $165, buy price $151.20 - Result
- 32 shares · cost $4,838.40
New average $164.8842 · 57 shares in total
The exact answer is about 31.6 shares, so the tool rounds up to 32 and shows the average you would actually end up with – slightly better than the target.
Fractional shares, two buys, and a target that can't work
- Input
- Own 2.5 shares at $42.80
Buy 1.25 at $36.10 and 1.25 at $33.40; current price $35
Target average $38 at a buy price of $38 - Result
- New average $38.775 · 5 shares · cost $193.88
Return −18.22% → −9.74%
Target: Not possible – "To lower your average, you must buy below the target price."
Buying at exactly your target price can only move the average toward it, never reach it. Set the target a little above the price you can buy at.
Average cost formula
New average = (current average × current shares + price₁ × shares₁ + price₂ × shares₂ …) ÷ total shares
Example: you own 100 shares at $50 and buy 50 more at $40. Your new average is ($5,000 + $2,000) ÷ 150 = $46.6667 (about $46.67).
To reach a target average: shares needed = shares owned × (current average − target) ÷ (target − buy price), rounded up. In the example, getting to a $45 average at a $40 buy price takes 100 × 5 ÷ 5 = 100 shares.
Before you average down
- A lower average doesn’t reduce your loss in dollars – you simply have more money in the same stock, so a further drop hurts more.
- It only lowers your break-even price. Commissions, spreads and taxes are not included.
- The closer the target average is to the buy price, the more shares you need; the number can explode.
- For taxes, your broker may use FIFO or specific lots rather than the average cost, so realized gains can differ.
FAQ
What’s the difference between averaging down and averaging up?
Averaging down is buying below your average price to lower it; averaging up is buying above it to add to a rising position. The formula is the same.
Why does the target calculation say “Not possible”?
To lower your average you have to buy below the target, and to raise it you have to buy above the target. If the buy price is equal to the target or on the wrong side of it, no number of shares will get you there.
Why is the new average after the suggested buy not exactly my target?
The number of shares is rounded up to a whole share, so the resulting average lands on the target or slightly past it in your favor. The line under the answer shows the exact average and total shares after that buy.
Are fees included in the average price?
No, the calculator uses execution prices only. If you want fees in your cost basis, add the commission per share to each buy price.
Does it work with fractional shares?
Yes. Enter quantities like 0.5 or 2.25 shares; averages are shown to four decimal places. To see what a position could grow to if you keep investing, try the compound interest calculator.