Stock Average Down Calculator

Enter up to four purchase lots and this calculator returns the share-weighted average cost of the whole position, the unrealised gain or loss at today's price, and the percentage move the stock must make for you to break even. It also answers the question that actually drives the decision: how many more shares you would have to buy at today's price to pull your average down to a specific target, and what that would cost.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Lot 1 sharesNumber of shares in your first purchase.100
Lot 1 pricePrice you paid per share in that purchase, before commission.50 $
Lot 2 sharesNumber of shares in your second purchase; leave at zero if there was none.100
Lot 2 pricePrice per share in the second purchase.35 $
Lot 3 sharesNumber of shares in a third purchase.0
Lot 3 pricePrice per share in the third purchase.0 $
Lot 4 sharesNumber of shares in a fourth purchase.0
Lot 4 pricePrice per share in the fourth purchase.0 $
Total commissions and feesEverything you paid on top of the share price across all the purchases combined.0 $
Current market priceToday's quoted price per share, used for the valuation and the top-up plan.38 $
Target average costThe blended cost you would like to reach by buying more at the current price.40 $

It returns

  • Blended average cost per share — Total cost including fees, divided by total shares. This is also your break-even price.
  • Total shares held
  • Total cost including fees
  • Market value today
  • Unrealised gain or loss
  • Move needed to break even — Positive means the price must rise; negative means you are already above break-even.
  • Extra shares to reach the target average
  • Cost of those extra shares

The formula

P¯=kQkPk+FkQk
n=TQCPT
m=(P¯P1)×100

In plain text: Average cost = (Σ Qₖ·Pₖ + fees) / Σ Qₖ

  • Blended average cost per share, also the break-even price ($)
  • QₖShares bought in lot k (shares)
  • PₖPrice paid per share in lot k ($)
  • FTotal commissions and fees across all lots ($)
  • PCurrent market price ($)
  • TTarget average cost you want to reach ($)

The average is weighted by share count, not by the number of purchases. Fees are added to the numerator because they are part of what the position cost you, which also makes the average equal to the price at which a sale would exactly recover your outlay before selling costs.

Updated Category Contributions, SIPs & Portfolio Rebalancing Verified against published test cases Reading time 10 min

What a blended cost basis is, and what it is not

Your blended cost is the share-weighted average of everything you paid, including commissions. Two hundred shares acquired as 100 at $50 and 100 at $35 cost $8,500 in total, which is $42.50 a share. That figure is your break-even price: sell above it and you have made money on the position, sell below it and you have not.

The weighting is by shares, not by trades. If you bought 900 shares at $50 and 100 at $35, the average is $48.50 rather than the $42.50 that averaging the two prices would give. That is the single most common arithmetic error in this calculation, and it always flatters the position when the smaller lot is the cheaper one.

What the blended cost is not is a signal. A position at $42.50 with the stock at $38 tells you nothing about whether the stock is cheap. The market does not know what you paid and does not care. Cost basis matters for two things only: measuring your result, and calculating your tax. Treating it as a decision input is anchoring, and it is exactly the bias that averaging down exploits.

It is also not automatically your tax basis. For US federal tax, the average-cost method is available for mutual fund shares and certain dividend reinvestment plan shares. Individual stock lots default to first-in-first-out unless you specifically identify which shares you are selling at the time of the sale. IRS Publication 550 sets out both rules, and the difference can change your tax bill substantially even though it never changes your economics.

The three formulas behind the outputs

The average. Add up every lot's quantity times its price, add the commissions, and divide by the total share count. Commissions belong in the numerator because they are money that left your account to acquire the position; leaving them out understates your break-even.

The break-even move. This is the percentage change in the current price needed to reach the average, (P̄ ÷ P − 1) × 100. Note it is not the same as the percentage you are down. A position down 10.59% needs an 11.84% rise to recover, because the rise is measured from the lower base. That asymmetry grows fast: down 50% needs +100%, and down 80% needs +400%.

The top-up requirement. Suppose you hold Q shares costing C in total and buy n more at price P, wanting the new average to be exactly T. Then (C + nP) ÷ (Q + n) = T. Multiply out: C + nP = TQ + Tn, so n(P − T) = TQ − C, giving n = (TQ − C) ÷ (P − T).

Read what that expression tells you. The denominator is P − T, so as your target approaches the current price the share count you need goes to infinity. That is not a quirk of the algebra — it is the actual behaviour of averaging. Every share you buy at $38 pulls the blend toward $38 and can never pull it past. If your target is below the price you are buying at, no quantity achieves it, and the calculator returns a dash rather than a misleading number.

Worked example: 100 shares at $50, 100 more at $35, now trading at $38

These are the calculator's defaults, so you can check each line on the page.

  1. Cost of the first lot. 100 × $50 = $5,000.
  2. Cost of the second lot. 100 × $35 = $3,500.
  3. Total cost and shares. $8,500 across 200 shares.
  4. Blended average. $8,500 ÷ 200 = $42.50. The second purchase pulled the average down from $50 by $7.50.
  5. Market value. 200 × $38 = $7,600.
  6. Unrealised result. $7,600 − $8,500 = −$900, which is −10.588% of cost.
  7. Break-even move. $42.50 ÷ $38 = 1.118421, so the stock must rise 11.842% to get you back to flat — more than the 10.588% you are down.
  8. Top up to a $40 average. n = (40 × 200 − 8,500) ÷ (38 − 40) = (8,000 − 8,500) ÷ (−2) = 250 shares, costing 250 × $38 = $9,500.

Step 8 is the one that changes minds. Shaving $2.50 off a $42.50 average costs $9,500 — 112% more capital than the $8,500 already committed — and it more than doubles your exposure to a single position. The average falls to $40 and your break-even move falls from 11.842% to 5.263%. The dollar loss at $38 does not move at all — it stays at $900, because shares bought at the market price carry no gain or loss of their own — but it is now spread across 450 shares instead of 200, so the loss per share falls from $4.50 to $2.00. What actually grew is exposure: $18,000 of cost in one name instead of $8,500.

That is the trade being made whenever anyone averages down: a lower break-even price bought with a larger position. Neither number is the whole story on its own.

When averaging down is a plan and when it is a reflex

Averaging down is defensible when it is the plan you wrote before the price moved. If you sized a position at half your intended weight and specified in advance that you would add the rest on weakness, then buying more at $35 is executing a plan. Your target weight was always the full amount and the market simply gave you a better entry.

It is a reflex when the reason for buying more is that you already own it. The tell is that the size of the purchase is set by how far the price fell rather than by conviction or by position limits. A stock at $35 that you would not buy today, at that price, with fresh money is not a stock you should be buying because your average is $50.

Three checks make the difference concrete. First, position limit: after the top-up, what share of your portfolio is this one name? The default example takes a position from $8,500 to $18,000 of cost. Second, the fresh-money test: would you initiate this position at today's price if you owned none? Third, thesis versus price: has anything changed in the business, or only in the quote? A price fall that came with a broken thesis is a reason to reduce, and averaging down into it is how a small mistake becomes a large one.

Also watch the tax rules if you are selling anything at a loss in the same window. Buying substantially identical shares within 30 days before or after a loss sale triggers the wash-sale rule: the loss is disallowed and instead added to the basis of the replacement shares. That interaction catches people who sell to harvest a loss and simultaneously average down in the same name.

Cost of pulling a $50 average down, buying at $35

Starting position: 100 shares at $50, total cost $5,000. Extra shares n = (T × 100 − 5,000) ÷ (35 − T).
Target averageExtra shares neededExtra capital at $35Total positionRise from $35 to break even
$45.0050$1,750150 sh28.57%
$42.50100$3,500200 sh21.43%
$40.00200$7,000300 sh14.29%
$38.00400$14,000500 sh8.57%
$37.00650$22,750750 sh5.71%
$36.001,400$49,0001,500 sh2.86%

The capital required is a hyperbola in the target, not a straight line: halving the remaining gap roughly doubles the shares needed, and reaching $35 exactly would take infinitely many.

Details that change the answer

  • Commissions and fees belong in the basis. On a small position they matter: $20 of fees on 200 shares adds $0.10 per share, moving a $42.50 average to $42.60.
  • Dividends received do not reduce your cost basis unless they were reinvested, in which case each reinvestment is a new lot at that day's price.
  • Return of capital distributions do reduce basis, which matters for some funds, trusts and partnerships. Check the year-end tax statement rather than assuming.
  • Splits change the share count and the per-share price but not the total cost. After a 2-for-1 split, double every historical quantity and halve every historical price before entering the lots.
  • Currency matters for foreign shares. Your basis is in your home currency at the exchange rate on each purchase date, so a stable share price can still produce a gain or loss.
  • Selling costs are not included here. The break-even price above recovers your purchase outlay; add any sale commission to clear the position exactly flat.

Averaging down, dollar-cost averaging and position sizing

Averaging down and dollar-cost averaging are frequently confused and are not the same thing. Dollar-cost averaging is a schedule fixed in advance and indifferent to price: the same amount goes in every month, which mechanically buys more shares when prices are low. Averaging down is a discretionary purchase triggered by a price fall. The first is a rule that removes judgement; the second is a judgement that borrows a rule's respectability.

The framework that actually resolves the decision is position sizing. Decide the maximum share of your portfolio this holding may reach, decide it before the price moves, and let that cap govern every top-up. The portfolio rebalancing calculator will tell you what a proposed purchase does to your weights, which is the number that constrains you when the story is compelling and the price is falling.

When you do eventually sell, the basis you calculated here drives the tax. Which lots you sell can matter more than when: selling the $50 lot realises a loss while selling the $35 lot may realise a gain, even though the blended average sits between them. That election is only available if you identify the shares at the time of sale under Publication 550's specific identification rules. Run the outcome through the capital gains tax calculator before you place the order, and check the realised return with the CAGR calculator so you are judging the position on an annualised basis rather than on a raw percentage.

Frequently asked questions

Is my average cost the same as my break-even price?

Yes for the purchase side: sell at the blended average and you recover exactly what you paid, including the commissions you entered. It is not quite your true break-even if selling costs money, because a sale commission has to come out of the proceeds. Add the expected sale cost divided by your share count to the average if you want the price that leaves you exactly flat.

Why does the break-even move exceed the percentage I am down?

Because the two are measured from different bases. A fall from $42.50 to $38 is 10.588% of $42.50, but the recovery is measured from $38, so it needs 11.842% of the smaller number. The asymmetry compounds with the size of the loss: down 50% requires a 100% gain, and down 80% requires 400%. This is the arithmetic behind why avoiding large drawdowns matters more than capturing large gains.

How many shares do I need to buy to halve my loss per share?

Use the target-average field: set it to the midpoint between your current average and the current price. In the default example, halving the $4.50 gap between $42.50 and $38 means targeting $40.25, which needs (40.25 × 200 − 8,500) ÷ (38 − 40.25) = (−450) ÷ (−2.25) = 200 shares. Note that the shares required rise steeply as the target approaches the market price.

Does averaging down reduce my risk?

It lowers the price at which you break even and raises the dollars you have at stake. In the worked example the break-even move falls from 11.842% to 5.263% and the unrealised loss stays at $900, but the capital exposed to the name more than doubles, from $8,500 to $18,000. Whether that is less risk depends entirely on whether you were underweight the name to begin with, which is a position-sizing question rather than an averaging one.

Should I include reinvested dividends as extra lots?

Yes. Each reinvestment purchases shares at that day's price and is a genuine lot with its own quantity, price and basis. Omitting them overstates your average cost and, at sale time, can cause you to report more gain than you actually made — a common and expensive mistake on long-held dividend reinvestment plan positions.

How do stock splits affect my cost basis?

Total cost is unchanged; only the per-share figures move. After a 2-for-1 split, a lot of 100 shares at $50 becomes 200 shares at $25, and your blended average halves along with everything else. Enter the split-adjusted quantities and prices so the lots are all on the same footing, otherwise the weighting across lots will be wrong.

Can I ever get my average below the price I am buying at?

No. Every purchase blends your existing basis with the new price, so the result always lies between the two. Buying at $38 moves the average toward $38 and can approach it only asymptotically — which is why the shares required grow without limit as the target nears the market price. Getting below it would require a purchase at a price lower still.

Which lot should I sell first for tax purposes?

That depends on your goal, and you generally get to choose only if you identify the shares at the time of sale. Selling the highest-cost lot minimises the current gain; selling a lot held over a year may qualify for a lower long-term rate. The default when you say nothing is first-in-first-out, which is often the worst of the available options. IRS Publication 550 covers both the identification requirements and the wash-sale rule you need to watch alongside it.

References