Stock Average Calculator
Bought the same stock more than once? Enter each purchase to see your true average cost, which is not the average of the prices.
Last reviewed
Average cost per share
$45.36
280.00 shares · $12,700 invested
- Break-even price
- $45.36
- Position value
- $14,000
- Profit or loss
- $1,300
- Return
- 10.24%
| Buy | Price | Shares | Weight | Average after |
|---|---|---|---|---|
| 1 | $100.00 | 50.00 | 17.9% | $100.00 |
| 2 | $30.00 | 150.00 | 53.6% | $47.50 |
| 3 | $40.00 | 80.00 | 28.6% | $45.36 |
Averaging the prices alone gives $56.67. That is $11.31 too high. The true average weights each price by how many shares you bought at it, which is why your largest purchase moves it most.
Divide everything spent by every share owned
Average cost = total spent ÷ total shares
Say you built a position in three goes:
| Buy | Price | Shares | Cost | Weight | Average after |
|---|---|---|---|---|---|
| 1 | $100 | 50 | $5,000 | 17.9% | $100.00 |
| 2 | $30 | 150 | $4,500 | 53.6% | $47.50 |
| 3 | $40 | 80 | $3,200 | 28.6% | $45.36 |
$12,700 for 280 shares, so the average is $45.36. That is also your break-even price, the number most people came here for.
It is not the average of the prices
Average $100, $30 and $40 and you get $56.67. That is $11.31 too high, and it is wrong because it treats three very different purchases as equal.
The second buy was 150 shares, more than half the position. It should pull the average hardest, and it does. The first buy was only 50 shares at the worst price, so it matters least.
Your largest purchase moves your average most. That is the entire difference between the two numbers, and it is why a position can look far worse on a quick mental average than it actually is.
The two only agree when every purchase is the same size.
Averaging down has a floor
The arithmetic of averaging down is simple, and so is its limit:
However many shares you buy at $30, your average can never reach $30.
It approaches it and never arrives, because the shares you already hold are still in the numerator. Asking “how much do I need to buy to get my average to $30?” when you are buying at $30 has no answer, and a calculator that produces one is wrong.
Targets above the buying price are reachable. Hold 100 shares averaging $50 and buy at $30:
| Target average | Shares needed at $30 |
|---|---|
| $45 | 33.3 |
| $40 | 100 |
| $35 | 300 |
| $32 | 900 |
| $30 | impossible |
Notice how it accelerates. Dropping the average from $40 to $35 needs 200 more shares; from $35 to $32 needs another 600. The last few dollars of averaging down cost more than all the earlier ones put together.
That asymmetry is worth seeing before committing more money to a falling position.
What the number does and does not tell you
Averaging down lowers your break-even price. That is arithmetic and it is certain.
It does not make the investment better. Whether buying more is sensible depends entirely on why the price fell:
- The price fell and the business is unchanged. You are buying the same thing cheaper, which is the case for averaging down.
- The price fell because the business got worse. You are buying more of a deteriorating asset, and a lower average cost on a worse holding is not progress.
The calculator answers the first question and is silent on the second, which is the one that matters. A lower average is not the same as a better position.
How far the price must rise to get back
Your break-even price is a target, and the gap to it is not symmetrical with the fall that created it.
Gain needed = loss ÷ (1 − loss)
| Fallen by | Needs a rise of |
|---|---|
| 10% | 11.1% |
| 20% | 25.0% |
| 30% | 42.9% |
| 40% | 66.7% |
| 50% | 100.0% |
| 70% | 233.3% |
| 90% | 900.0% |
A 50% fall needs a 100% rise to undo, because the rise is measured against a smaller base. This is why deep losses are so hard to recover and why the decision to average down gets harder the further a position has fallen, the arithmetic is working against you in both directions at once.
On the example above, the position is 11.8% below its $45.36 average at a $40 price, and needs a 13.4% rise to break even.
Commission raises your break-even
Fees are part of what you paid, so they belong in the average. Three trades at $10 each adds $30 to a $12,700 position, small here, significant on a small position traded often.
On a $500 purchase, a $10 commission is 2% of the cost before the price moves at all. The break-even price rises accordingly, and the calculator includes it when you enter a fee.
Averaging up
The same arithmetic runs the other way. Buying more as the price rises raises your average cost and raises your break-even, which sounds bad and often is not, because you are adding to something that is working.
What it does change is your risk. A position averaged up has more money in it at higher prices, so a reversal costs more than the chart suggests. Watch the weight column: it tells you where your money actually sits, which is not always where your attention is.
Before you rely on the number
- Tax cost basis may differ. Brokers can use specific-lot identification rather than a single average, and the choice affects what you owe. Use their figures for reporting.
- Splits and dividends change things. A stock split adjusts both price and share count; reinvested dividends are additional purchases and belong in the table.
- Currency matters if you bought in a different one. The average is in the currency you paid, not the one the stock quotes in.
- Wash sale rules can disallow losses on repurchases within a set window, which affects the tax position without touching this calculation.
Frequently asked questions
How do I calculate my average cost per share?
Divide everything you spent by every share you own. Buying 50 shares at $100, 150 at $30 and 80 at $40 costs $12,700 for 280 shares, so the average is $45.36, not the $56.67 you get by averaging the three prices.
Why is my average not the average of the prices?
Because it is weighted by how many shares you bought at each price. A large purchase at a low price pulls the average down far more than a small one at a high price. In the example above the simple mean is $11.31 too high, which would make a losing position look worse than it is.
What is my break-even price?
Your average cost. Sell above it and you are ahead; below it and you are behind. Commission raises it, which is why the calculator lets you include a fee per trade.
How many shares do I need to buy to average down to a target?
It depends how far your current average is above the price you are buying at, and there is a floor. However many shares you buy at $30, your average can never reach $30, only approach it. Targets at or below the buying price are impossible.
Is averaging down a good idea?
It lowers your break-even price, which is arithmetic, not strategy. Whether it is wise depends entirely on why the price fell, buying more of something that has become cheaper is sensible, buying more of something that has become worse is not. The calculator tells you the first part and nothing about the second.
Does this match my broker’s cost basis?
Usually, for a simple position. But tax cost basis can use specific-lot identification or other methods rather than a single average, and dividends, splits and wash sales all affect it. Use your broker’s figures for tax reporting.
Related calculators
- CAGR CalculatorCAGR is the steady annual rate that would have taken you from one value to another.
- Percentage CalculatorPick the question you are actually asking.
- Margin CalculatorMargin is profit over the price; markup is profit over the cost.
- Compound Interest CalculatorEnter what you have, what you add each month, and the return you expect.
- Future Value CalculatorEnter what you have, what you add, and the return you expect.
Sources
- U.S. Securities and Exchange Commission: cost basis
- Internal Revenue Service: stocks and bonds basis (Publication 550)
This tool is for information only and is not financial advice. Figures are estimates, confirm anything you act on with your lender or a qualified adviser.