Stock Average Calculator

In short: Your average cost is your total spend divided by your total shares — not the average of the prices. Buying 100 shares at $50 and 50 at $40 gives an average of $46.67, not $45, because the bigger buy carries more weight. Add each purchase above and this calculator shows your average cost, your total invested, and where you stand at today’s price.

The weighted average formula

Average cost = (shares₁ × price₁ + shares₂ × price₂ + …) ÷ (shares₁ + shares₂ + …)

The weighting is the whole point. Prices only count in proportion to how many shares you bought at them. Two buys of the same size can be averaged by simply splitting the difference between the prices, but real positions are rarely that tidy — a first buy of 100 shares and a top-up of 20 shares at a lower price moves your average only a fifth of the way toward the cheaper price. That is also why “averaging down” takes more money than intuition suggests: to pull a $46.67 average on 150 shares down to $43 by buying at $40, you would need another 183 shares, not a token top-up. The optional last field above runs exactly that what-if: enter a price and it shows the new average if you bought the same number of shares again — change the share counts to model any size.

Worked example

You buy 100 shares at $50 ($5,000) and, after a dip, 50 more at $40 ($2,000). Total invested: $7,000 across 150 shares, so your average cost is $7,000 ÷ 150 = $46.67 a share. The break-even price for the whole position is therefore $46.67 — not the $50 you first paid, and not the $45 halfway point between the two prices.

At a current price of $55 the position is worth 150 × $55 = $8,250, a gain of $1,250, or 17.86% on cost. At $42 it is worth $6,300, a loss of $700 (−10%). Notice the asymmetry the average creates: after averaging down, the recovery you need is smaller than the fall you sat through, because your break-even fell with the second buy. That is the genuine benefit of averaging down on a stock you still believe in — and the genuine trap when you do not, because the same maths concentrates more money in a falling position.

Average cost, taxes and record-keeping

Your average cost is also your cost basis for tax in many situations, but the details vary: brokers may report average cost for mutual fund shares while using specific lots or first-in-first-out for individual stocks, and wash-sale and dividend-reinvestment rules can adjust the basis your broker shows. Keep your own record of each buy — date, shares, price and any commission — because the figure on this page is only as good as the buys you enter, and because commissions, if you pay them, belong in the cost: add them to that buy’s price per share by dividing the fee across the shares. Nothing here is investment advice; it is arithmetic. The decision about whether a falling stock deserves more of your money depends on the business, not on how tidy the average looks. A simple habit helps: recompute your average after every single buy rather than only when the price moves sharply, because each purchase silently resets the number that every later decision — hold, add or exit — should be based on.

Frequently asked questions

How do I calculate my average stock price?

Add up everything you spent — each buy’s shares multiplied by its price — and divide by the total number of shares. 100 shares at $50 plus 50 at $40 is $7,000 over 150 shares, an average of $46.67. Do not simply average the two prices ($45): that ignores the fact that you bought twice as many shares at the higher price, and it understates your break-even point.

What does averaging down mean?

Averaging down means buying more shares after the price has fallen, so your average cost per share drops toward the new, lower price. It lowers the price at which your whole position breaks even — in our example from $50 to $46.67 — so a smaller recovery puts you back in profit. The catch is that it also increases the amount of money riding on a stock that the market is marking down, which is why it suits a researched position and not a falling knife.

How many shares do I need to buy to reach a target average?

Solve the weighted average backwards: shares needed = current shares × (current average − target average) ÷ (target average − buy price). To move a 150-share position averaging $46.67 down to $43 by buying at $40 takes 150 × 3.67 ÷ 3 = about 183 shares. The formula only works when the buy price is below your target average — you cannot average down to a price at or below the price you are paying.

Should I include commissions in my average cost?

Yes, if you pay them. A commission is part of what the shares cost you, so it belongs in the cost basis: divide the fee by the number of shares in that buy and add it to the price per share before entering it. With most modern brokers charging zero commission on standard trades it usually makes no difference, but on older accounts, foreign exchanges or option exercises the adjustment can be material.

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

For the shares themselves, yes — if the price returns to your average cost, the position is worth exactly what you paid (before any selling costs or taxes). Two qualifications: dividends received along the way mean you can be ahead overall even below your average cost, and if you have sold some shares along the way, the average cost of what remains is unchanged by the sale itself — selling does not re-average the rest.

Related tools

Figures checked on 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.