Stock Average Calculator
- Add up what each purchase cost: 50 × $40.00 + 50 × $30.00 = $3,500.00 for 100 shares in total.
- The average cost is total invested divided by total shares: $3,500.00 ÷ 100 = $35.00 per share — share counts weight the average, so the biggest purchase pulls it most.
- At the current price of $38.00 the holding is worth 100 × $38.00 = $3,800.00.
- That is an unrealized gain of $3,800.00 − $3,500.00 = $300.00, or 8.57% on the money invested.
A stock average calculator tells you the average cost per share you have paid across every purchase of the same stock. The answer it gives is a share-weighted average: total money invested divided by total shares bought — not the simple average of the prices. This matters because the biggest purchase dominates the weighting. For example, 100 shares at $25.50, 100 at $22.50 and 200 at $20 averages $22.00 across 400 shares. Likewise, 50 shares at $40 plus 50 at $30 averages $35.00 a share, with $3,500.00 invested and worth $3,800.00 at $38 — an 8.57% paper gain. Averaging down lowers your breakeven price, but it concentrates risk in one name, and the average says nothing about whether the stock deserves more capital.
This share-weighted method is the accepted standard because brokers themselves track the same figure as cost basis, which also serves as the starting point for capital-gains tax when shares are sold. That is why every reliable stock average calculator must use total dollars divided by total shares rather than a naive price average. On this page we show the exact formula, walk through step-by-step workings, provide verified worked examples — including a 20-share at $150 plus 30-share at $120 position averaging $132.00 that shows a -24.24% unrealized loss at a $100 market price — and cite the sources behind each calculation.
Worked examples
Averaging down works out
Primary result: $35.00 a share — $3,500 invested, now worth $3,800 at $38. (50 shares · 40 $ · 50 shares · 30 $ · 0 shares · 0 $ · 38 $)
| Average cost per share | $35.00 |
| Total shares held | 100 |
| Total amount invested | $3,500.00 |
| Current value | $3,800.00 |
| Unrealized gain / loss | $300.00 (8.57%) |
The big third buy dominates
Primary result: $22.00 a share — the 200-share buy at $20 pulls the average most. (100 shares · 25.5 $ · 100 shares · 22.5 $ · 200 shares · 20 $ · 24 $)
| Average cost per share | $22.00 |
| Total shares held | 400 |
| Total amount invested | $8,800.00 |
| Current value | $9,600.00 |
| Unrealized gain / loss | $800.00 (9.09%) |
An underwater position
Primary result: $132.00 a share against a $100 market — a $1,600 paper loss. (20 shares · 150 $ · 30 shares · 120 $ · 0 shares · 0 $ · 100 $)
| Average cost per share | $132.00 |
| Total shares held | 50 |
| Total amount invested | $6,600.00 |
| Current value | $5,000.00 |
| Unrealized gain / loss | $-1,600.00 (-24.24%) |
How average cost is calculated
Average cost per share is total money invested divided by total shares bought — a share-weighted average, not the average of the prices. This distinction matters because a stock average calculator must account for how many shares you actually bought at each level, not just what you paid for them. When you add money to an existing position, the new shares pull the overall cost up or down depending on their price and quantity, and the math only works when every share carries equal weight in the total.
Averaging the two prices directly gives the wrong answer unless the share counts match. Say you buy 50 shares at $40 and 50 more at $30. Because the share counts are equal, the simple average and the share-weighted average both land on $35.00 a share. Total invested is $3,500.00, and at a $38 market price the position is worth $3,800.00 — an 8.57% paper gain. But change the share counts and the simple average breaks down. Buy 20 shares at $150 and 30 shares at $120 and the simple average of the two prices would be $135.00. The true share-weighted average is $132.00, because the 30 cheaper shares pull the cost down harder than the 20 expensive ones. At a $100 market price the position shows a -24.24% unrealized loss.
Larger purchases carry more weight for the same reason. If you buy 100 shares at $25.50, another 100 at $22.50, and 200 at $20, the average works out to $22.00 across 400 shares. The biggest purchase at the lowest price dominates the weighting, dragging the average closer to $20 than a simple average of the three prices ever would. This is why a stock average calculator multiplies each price by its share count, sums the dollars, and divides by total shares — it lets the actual size of each trade drive the result.
Averaging down lowers the breakeven price but concentrates risk in one name; the average says nothing about whether the stock deserves more capital. A lower cost basis can feel reassuring, but it does not change the fundamental question of whether the company is worth the added exposure. Brokers track this figure as cost basis, which is also the starting point for capital-gains tax when shares are sold. Knowing the true share-weighted average helps you understand both the return you are sitting on and the tax you may eventually owe.
Worked examples
The table below shows three verified cases that illustrate how a stock average calculator handles different purchase patterns. In each case the average cost per share is total money invested divided by total shares bought — a share-weighted average, not the simple average of the prices you paid. That distinction matters most when your purchases are not equal in size, because the biggest purchase dominates the weighting.
The first two examples show what happens when you buy the same number of shares at each price, while the third demonstrates how a larger purchase pulls the average toward its own price. The second case makes the point clearly: 100 shares at $25.50, 100 at $22.50, and 200 at $20 average out to $22.00 across 400 shares, not the $22.67 you would get by simply averaging the three prices. The 200-share block carries twice the weight of the smaller purchases, so it pulls the average closer to $20.
Averaging down lowers your breakeven price, but it also concentrates risk in one name. The average tells you where you stand, but it says nothing about whether the stock deserves more capital. Brokers track this figure as cost basis, which is also the starting point for capital-gains tax when shares are sold, so getting it right matters for both decision-making and reporting.
| Purchases | Average cost per share | Total invested | Current value | Unrealized return |
|---|---|---|---|---|
| 50 shares at $40 plus 50 shares at $30 | $35.00 | $3,500.00 | $3,800.00 at $38 | +8.57% paper gain |
| 100 at $25.50, 100 at $22.50, 200 at $20 | $22.00 across 400 shares | Not specified | Not specified | Not specified |
| 20 at $150 plus 30 at $120 | $132.00 | Not specified | At $100 market price | -24.24% unrealized loss |
Averaging down: the honest maths
Averaging down is simple arithmetic, but the arithmetic can fool you. Average cost per share is total money invested divided by total shares bought — a share-weighted average, not the average of the prices you paid. A stock average calculator works out that weighting for you, because the number of shares at each price matters as much as the prices themselves.
Take the cleanest case: 50 shares at $40 plus 50 shares at $30. You have spent $2,000 plus $1,500, or $3,500 total, across 100 shares. That averages to $35.00 a share — not the $30 midpoint between $40 and $30, but the true dollar-weighted cost. The new $35.00 breakeven replaces the original $40, and the difference is real. At a market price of $38, your 100 shares are worth $3,800.00 against the $3,500.00 you invested, an 8.57% paper gain. You are in profit at $38, even though the stock is still 5% below where you first bought. That is the appeal of averaging down: the stock does not need to recover fully for you to get back to black.
But the same maths that lowers your breakeven also raises your exposure. You now have $3,500 tied to one name instead of $2,000. The average says nothing about whether the stock deserves that extra capital — only what you have spent to own it. A larger example shows how weighting bends the result. Buy 100 shares at $25.50, 100 at $22.50, and 200 at $20. Across 400 shares you have invested $8,800, so the average is $22.00. The biggest purchase, 200 shares at $20, dominates the weighting and pulls the average closer to that price than a simple three-way split would suggest.
The cautionary tale is the position that averages down and still loses badly. Buy 20 shares at $150, then add 30 shares at $120. Your total outlay is $3,000 plus $3,600, or $6,600, across 50 shares, giving an average of $132.00. If the market price falls to $100, the position is worth $5,000 against $6,600 invested — a -24.24% unrealized loss. Averaging down lowered the breakeven from $150 to $132.00, yet the stock kept falling and the larger commitment amplified the damage. Concentrating more capital in one name means you are simply wrong at a bigger size if the thesis is broken.
Brokers track this figure as cost basis, and it is also the starting point for capital-gains tax when shares are sold. The maths is honest, but it is not a strategy. It tells you where you break even, not whether you should.
Average cost versus cost basis
Your broker records what you paid for each lot and calls that your cost basis. A stock average calculator gives you the same number by dividing total money invested by total shares bought. Because each purchase is weighted by its size, the result is a share-weighted average rather than the simple average of the prices. For example, 50 shares at $40 plus 50 at $30 averages $35.00 a share, with $3,500.00 invested and worth $3,800.00 at $38 — an 8.57% paper gain. A larger lot pulls the average toward its own price: 100 shares at $25.50, 100 at $22.50, and 200 at $20 averages $22.00 across 400 shares, because the biggest purchase dominates the weighting.
Cost basis is also the starting point for capital-gains tax when shares are sold. The figure on your confirmation statement and the figure in your head can differ, though, because corporate actions such as stock splits, spin-offs, and mergers require brokers to adjust the recorded basis. A 2-for-1 split, for instance, halves the per-share basis while doubling the share count, leaving the total invested unchanged. If you track your own spreadsheet alongside the broker's records, these adjustments are where the two numbers tend to drift apart over time. The mental average you compute today may not match what the IRS uses years later after several corporate actions have been applied.
Averaging down lowers the breakeven price, which can make a losing position feel closer to recovery. The same math applies whether you are adding on weakness or scaling in over time: 20 shares at $150 plus 30 at $120 averages $132.00, and at a $100 market price the position shows a -24.24% unrealized loss. Lowering the breakeven does not lower the risk of holding a larger position in one name. The average says nothing about whether the stock deserves more capital, only what price the next quote must exceed for the total position to turn profitable.
When you sell, your broker reports the cost basis to you and to the IRS, and any difference between that basis and the sale price is the capital gain or loss. Some brokers let you choose which lots to sell, which can change the tax outcome even when the overall average stays the same. Keeping your own records with a stock average calculator helps you verify the broker's adjusted basis and catch errors before tax season.
When the average price misleads
A stock average calculator gives you a share-weighted average, not a simple average of the prices you paid. Average cost per share is total money invested divided by total shares bought. That distinction matters when purchases are unevenly sized. If you buy 100 shares at $25.50, 100 at $22.50, and 200 at $20, the average comes to $22.00 across 400 shares, because the biggest purchase dominates the weighting. A naive average of those three prices would give you a different and wrong number.
The figure can mislead in three common situations. First, when you split lots bought years apart, the average blends old and new prices into one number that hides how much each lot cost and when you entered. Second, dividend reinvestment lots accumulate at many different prices over time, and rolling them into one average obscures the individual purchase levels. Third, when you sell part of a position, the remaining average depends on which shares your broker removes. Under FIFO, the oldest lots leave first and can leave you with a higher average on the remaining shares. Under specific identification, you choose which lots to sell, which can change the average of what you still hold.
Averaging down lowers your breakeven price, but the average says nothing about whether the stock deserves more capital. It simply reflects the math of past purchases. A lower average can create a false sense of comfort, because it concentrates risk in one name while making the position look cheaper. The average does not tell you whether the company is fundamentally stronger or weaker than when you first bought.
Brokers track this figure as cost basis, which is also the starting point for capital-gains tax when shares are sold. If the cost basis does not match your actual purchase lots, you may report the wrong gain or loss. This is why investors who split lots, reinvest dividends, or sell partial positions should keep their own records and not rely on a single blended average for tax reporting.
Consider a position with 20 shares bought at $150 plus 30 at $120. The average is $132.00. At a $100 market price, the position shows a -24.24% unrealized loss. A different example: 50 shares at $40 plus 50 at $30 averages $35.00 a share, with $3,500.00 invested, worth $3,800.00 at $38 — an 8.57% paper gain. The average explains the percentage, but it does not predict where the stock goes next.
Using the number well
A stock average calculator gives you a number, but that number only earns its keep when you act on it. The first discipline is breakeven tracking. Your average cost per share is total money invested divided by total shares bought — a share-weighted average, not the average of the prices you paid. That distinction matters when purchases are uneven. Buy 100 shares at $25.50, 100 at $22.50, and 200 at $20, and your average lands at $22.00 across 400 shares, because the biggest purchase dominates the weighting. Compare that average to the current market price and you know exactly where breakeven sits.
The second discipline is position journaling. Record each fill, the share count, and the price, then let the calculator do the math so your records stay clean. The verified examples hold up: 50 shares at $40 plus 50 at $30 averages $35.00 a share, with $3,500.00 invested and worth $3,800.00 at $38 — an 8.57% paper gain. Track 20 shares at $150 plus 30 at $120 and your average is $132.00; at a $100 market price the position shows a -24.24% unrealized loss. Brokers track this same figure as cost basis, which is also the starting point for capital-gains tax when shares are sold, so your journal and your tax records stay aligned.
The third discipline is the hardest: deciding with forward-looking analysis rather than anchoring on your average. Averaging down lowers the breakeven price but concentrates risk in one name, and the average says nothing about whether the stock deserves more capital. A lower breakeven feels like progress, yet it only means you own more of the same position. The question is whether the business still merits the investment at today's price, not whether your average looks better after another buy.
Use the average as a reporting line, not as a decision rule. Before adding shares, weigh the company's outlook, the position size relative to your portfolio, and what else you might buy with that capital. The average tells you where you stand; it does not tell you where the stock is headed.
FAQs
How do I calculate my average stock price?
Add up everything you paid and divide by total shares. For example, $3,500 across 100 shares is $35.00 a share. That gives your weighted average cost per share.
What does averaging down mean?
Buying more shares below your first price so the weighted average falls. For example, 50 at $40 plus 50 at $30 averages $35.00, lowering your breakeven price.
Why isn't the average of $40 and $30 just $35 by luck?
It matches only because both purchases were 50 shares. With unequal lots the bigger lot dominates, as the 400-share case averaging $22.00 shows. Equal sizes make it equal.
How do I know my unrealized gain?
Compare current value with total invested. For example, $3,800 against $3,500 is +8.57%. The underwater case shows -24.24%. Subtract your cost from current value to get the percentage.
Does average cost matter for taxes?
Yes — it is your cost basis. Gains and losses on a sale are measured from it under the IRS rules in Publication 550. Keep records of every purchase to support your calculations.
Should I average down on a falling stock?
The maths lowers your breakeven, but the decision belongs to the investment case, not the average. Averaging down concentrates risk, so weigh whether the original reasons for buying still hold.