Free investment calculators — no signup required
StockAverager logoStockAverager
Back to BlogInvestment Strategy

How to Calculate Average Stock Price (Formula + Examples)

SA
Stock Averager Team
Jun 1, 2026
8 min read
How to Calculate Average Stock Price (Formula + Examples)

The One Number That Drives Every Decision

If you have bought the same stock more than once — at different prices — there is only one number that tells you where you actually stand: your average cost per share. Get it wrong and every profit-and-loss decision you make afterwards is built on a bad foundation.

Here is the catch most beginners miss: the average price of a stock with multiple purchases is a weighted average, not the midpoint of the prices you paid. This guide shows you exactly how to calculate the average cost per share, step by step, with worked examples, fees, and the mistakes that quietly wreck the number.

TL;DR — Quick Summary

30-sec read
  • 1Average stock price = total amount invested ÷ total shares owned. It is a weighted average, not a simple average of the prices.
  • 2The simple average of your buy prices is almost always wrong — it ignores how many shares you bought at each price.
  • 3Add brokerage and transaction fees to your total cost to get your true average cost basis.
  • 4Your average price is also your break-even price (before fees) — where you neither gain nor lose.
  • 5Buying more shares as the price falls (averaging down) lowers your average; buying as it rises raises it.

Continue reading for the full guide with examples and strategies.

Who This Is For

Beginner Level

Perfect if you:

  • You bought the same stock at two or more different prices
  • You are down on a position and thinking about averaging down
  • You need your true cost basis for a buy/sell decision or for taxes
  • You want to know the break-even price you must sell at

You'll learn:

  • The weighted-average formula for average cost per share
  • Why the simple average of prices is the wrong answer
  • Worked examples for two lots and for four lots
  • How to fold brokerage and fees into your true cost basis
  • How averaging down and selling shares change your average

Not for you if:

Traders who only ever buy a single lot (your average is just that price)
Anyone seeking country-specific tax advice — consult a professional

💡 Being honest about who shouldn't read this builds trust and reduces bounce rate.

Key Takeaways

6 points
  • 1
    Average stock price = total amount invested ÷ total shares owned. It is a weighted average, not a simple average of the prices.
  • 2
    The simple average of your buy prices is almost always wrong — it ignores how many shares you bought at each price.
  • 3
    Add brokerage and transaction fees to your total cost to get your true average cost basis.
  • 4
    Your average price is also your break-even price (before fees) — the price you need to sell at to neither gain nor lose.
  • 5
    Buying more shares as the price falls (averaging down) lowers your average; buying as it rises raises it.
  • 6
    The Stock Averager Calculator does the weighted math for unlimited lots instantly.

The Formula for Average Stock Price

The formula to calculate average stock price across multiple buys is a weighted average — each purchase price is weighted by the number of shares you bought at that price. The formula itself is simple:

Average cost per share formula

Average Price = Total Amount Invested ÷ Total Number of Shares

Where Total Amount Invested = (Shares₁ × Price₁) + (Shares₂ × Price₂) + … for every purchase.

That is the entire method. The difficulty is never the arithmetic — it is remembering that the number of shares in each lot is the weight, and that leaving it out produces a badly wrong answer.

What Is the Difference Between Average Price and Simple Average?

This is the single most common mistake, and understanding the difference between a weighted average and a simple average of buy prices is what separates an accurate cost basis from a guess. Say you buy a stock at $100 and later at $50. Most people assume their average is $75 — the midpoint. That is only true if you bought the same number of shares at each price. Buy 10 shares at $100 and 90 shares at $50, and your real average is far closer to $50, because the vast majority of your shares were bought cheaply.

The number of shares at each price is the weight. Ignore it and your average can be off by 20–40% — enough to make you think you are underwater when you are actually in profit.

Quick gut check

10 shares at $100 = $1,000. 90 shares at $50 = $4,500. Total $5,500 across 100 shares = $55 average, not $75. Whenever most of your money went in at the lower price, your weighted average sits close to that lower price — never at the midpoint.

Step-by-Step Example (Two Purchases)

Purchase 1: 50 shares at $100 = $5,000 invested.

Purchase 2: 150 shares at $40 = $6,000 invested.

Calculating the weighted average

Total invested = $5,000 + $6,000 = $11,000

Total shares = 50 + 150 = 200

Average price = $11,000 ÷ 200

= $55 per share

Note that the simple average of $100 and $40 is $70 — but your true average is $55, because you bought three times as many shares in the second, cheaper lot. That $15 difference per share is the difference between thinking you are down and knowing you are actually up if the stock trades at $60.

Multiple Purchases (More Than Two Lots)

The formula does not change — you just sum every lot. Here is how to calculate average cost basis for multiple stock purchases with a four-lot example:

PurchaseSharesPriceAmount
Lot 1100$80$8,000
Lot 250$70$3,500
Lot 375$60$4,500
Lot 425$50$1,250
Total250$17,250

Average price = $17,250 ÷ 250 = $69 per share. Doing this by hand with four or more lots is error-prone — one transposed digit and your whole cost basis is wrong. This is exactly where the stock averager calculator earns its keep, handling any number of lots instantly.

Averaging Down: How a Second Buy Moves Your Average

Educational Example

You are down on a position and decide to add more

Before
  • • 100 shares bought at $80
  • • Invested: $8,000
  • • Average cost: $80
  • • Stock now trades at $50 — you are down 37.5%
After adding 100 shares at $50
  • • Total invested: $8,000 + $5,000 = $13,000
  • • Total shares: 200
  • • New average: $13,000 ÷ 200 = $65
  • • New break-even drops from $80 to $65

The Trade-Off

Adding shares dropped your break-even from $80 to $65, so the stock needs a smaller bounce to get you back to even. But you now have $13,000 at risk instead of $8,000. A lower average always comes at the cost of more capital committed. Figures are illustrative.

This is a hypothetical scenario using historical market data for educational purposes only. Past performance does not guarantee future results.

Don't Forget Fees: Your True Cost Basis

Your cost basis is what the tax authorities (and reality) care about, and it includes every cost of acquiring the shares — brokerage, exchange fees, and any transaction taxes. To get your true average cost, add total fees to your total invested before dividing:

True average cost (with fees)

True Average = (Total Invested + Total Fees) ÷ Total Shares

On the four-lot example above, if you paid $50 in total brokerage across the buys, your true average becomes ($17,250 + $50) ÷ 250 = $69.20. It is small here, but on frequent small trades fees can move your real break-even by a meaningful amount. See our break-even calculator to fold fees and taxes into the exit price you actually need.

Average Price Is Your Break-Even Price

Your average cost per share is also the price at which you break even, before fees. Sell above it and you profit; sell below it and you take a loss. This is why the number matters so much: every "should I sell?" and "am I up or down?" question is measured against your average. If your average is $69 and the stock is at $75, you are up about 8.7% — regardless of what any single purchase price was. To set a realistic exit around that break-even, our target price calculator works out the price you need for a specific gain.

How Averaging Down Changes Your Average

When you buy more shares at a price below your current average, your average falls — this is called averaging down. When you buy above your average (averaging up), it rises. The size of the move depends on how many shares you add relative to what you already hold. Adding a large lot at a much lower price pulls the average down hard; adding a token amount barely moves it.

Knowing your post-purchase average before you commit capital is the whole point — it tells you the new break-even you are signing up for. Read our guide on break-even after averaging down for the full trade-off between a lower average and more capital at risk. Averaging down deliberately and on a schedule is the core of dollar-cost averaging, which removes the emotion from deciding when to add.

How to Calculate Average Price When You Sell Some Shares

Selling part of a position is where many beginners get tripped up. The good news: a normal sale does not change the average cost of the shares you still hold. If your average is $69 and you sell 50 shares, the remaining shares keep that same $69 average — selling realizes a gain or loss but leaves your cost basis per share untouched. What changes is which lots count as sold, and that depends on your accounting method (FIFO, LIFO, or average cost), which in turn affects the capital-gains tax you owe. To recalculate your average only on the shares you still own, drop the sold lots and re-run the weighted-average formula on what remains.

How Stock Splits Affect Your Average Price

A stock split is the one corporate action that changes your average cost per share without you buying or selling anything — and it trips up plenty of investors who panic when their brokerage suddenly shows a different number. The rule is simple: a split changes your share count and your per-share average, but never your total cost basis.

A 2-for-1 split, worked through

Say you own 100 shares at a $80 average — $8,000 invested. In a 2-for-1 split you now hold 200 shares, and your average halves to $40. Your total cost basis is still $8,000 (200 × $40). Nothing about your profit or loss changed; the pie was just cut into more slices. For a 3-for-1 split, multiply shares by 3 and divide the average by 3. A reverse split (say 1-for-10) does the opposite: fewer shares, a higher per-share average, same total.

The quick formula: new average = old average ÷ split ratio, and new shares = old shares × split ratio. Good brokerages adjust this automatically, but if you track your cost basis in a spreadsheet you must apply the split by hand or every calculation afterward will be wrong. The same logic applies to bonus shares — they lower your average because your total cost is spread across more shares.

FIFO vs LIFO vs Average Cost: The Method Changes Your Tax Bill

When you sell only part of a position, the accounting method you choose decides which shares are treated as sold — and that determines the capital gain you report, even though the average cost of your remaining shares is unaffected. Here is how the three common methods compare:

MethodWhich shares sell firstEffect in a rising market
FIFOOldest lots (first bought)Usually the largest reported gain — oldest shares often have the lowest cost
LIFONewest lots (last bought)Usually the smallest gain — recent shares have a higher cost
Average costA blended cost across all sharesA middle-ground gain using your weighted average as the basis

Which one can you actually use?

Availability depends on your country and broker. In the US, FIFO is the default for stocks and average cost is generally reserved for mutual funds; LIFO and specific-lot identification may also be allowed if you elect them before selling. In India, the tax rules effectively apply FIFO for equities. The method only affects realized gains and the tax you owe — it never changes the weighted average of the shares you keep. Confirm your options with a tax professional before selling.

Once you know which lots are being sold, our capital gains calculator turns that into the tax you would actually owe, and the cost basis calculator keeps your per-share basis straight across every lot.

Common Mistakes to Avoid

Five errors that corrupt your cost basis

  • Averaging the prices instead of weighting by shares — the error that started this article.
  • Forgetting sold shares — after a partial sale, your average reflects only the lots you still hold, depending on your accounting method.
  • Ignoring fees — small per-trade costs quietly raise your real break-even.
  • Confusing average price with break-even after tax — capital-gains tax applies on top of your cost basis when you sell at a profit.
  • Mixing currencies — if you bought on different exchanges, convert everything to one currency before averaging.

On that fourth point, our capital gains calculator shows what you actually keep after tax once you sell above your cost basis — the number that ultimately matters.

Calculate Your Average Instantly

Weighted averages across many lots invite arithmetic slips. Let the calculator handle the math in any of 10 currencies.

Step 1

Enter each lot's shares and price

Step 2

Get your exact average, total shares, and total invested

Step 3

See how many shares to buy to hit a target average

People Also Ask

Common questions from Google searches

How do you calculate the average price of a stock?

Add up the total amount you invested across every purchase, then divide by the total number of shares you own. This weighted average accounts for how many shares you bought at each price. For 50 shares at $100 and 150 shares at $40: $11,000 ÷ 200 = $55 per share.

Related:weighted averagecost basis
Is average price the same as break-even?

Yes, before fees and taxes your average cost per share is your break-even price. Sell above it and you profit; sell below it and you take a loss. Add brokerage and any capital-gains tax to work out your true after-cost break-even.

Related:break-even pricefees
Does buying more shares lower my average price?

Only if you buy below your current average. Buying more shares at a lower price (averaging down) pulls your average down; buying above your average (averaging up) raises it. The larger the new lot relative to your holding, the bigger the move.

Related:averaging downaveraging up
Does selling shares change my average cost?

No. A normal sale realizes a gain or loss but leaves the average cost of your remaining shares unchanged. What it affects is which lots are counted as sold for tax purposes, based on your accounting method (FIFO, LIFO, or average cost).

Related:cost basiscapital gains
Does a stock split change my average cost per share?

Yes, but only the per-share number, not your total cost. In a 2-for-1 split your share count doubles and your average halves — 100 shares at an $80 average becomes 200 shares at $40, with your $8,000 total cost basis unchanged. A reverse split does the reverse: fewer shares at a higher per-share average.

Related:stock splitcost basis
What is the difference between FIFO and average cost?

FIFO (first-in, first-out) treats your oldest shares as sold first, while the average-cost method uses your blended weighted average as the basis for every share sold. The two can produce very different reported capital gains on a partial sale, but neither changes the average cost of the shares you still hold. Availability depends on your country and broker.

Related:FIFOaccounting method

Frequently Asked Questions

Why is the simple average of my buy prices wrong?

Because it ignores how many shares you bought at each price. If you buy 10 shares at $100 and 90 at $50, most of your money went in at $50, so your true average ($55) sits near the lower price — not at the $75 midpoint. Always weight each price by its share count.

Should I include brokerage fees in my average cost?

Yes, for your true cost basis. Add total fees to your total invested before dividing by shares: (Total Invested + Total Fees) ÷ Total Shares. On frequent small trades, fees can move your real break-even by a meaningful amount even when each fee looks trivial.

How do I calculate my average after averaging down?

Add the cost of the new lot to your existing total invested, add the new shares to your existing share count, then divide. If you hold 100 shares at $80 ($8,000) and buy 100 more at $50 ($5,000), your new average is $13,000 ÷ 200 = $65 per share.

What accounting method should I use when I sell part of my position?

It depends on your country's rules and your goals. FIFO sells your oldest shares first, LIFO your newest, and the average-cost method uses your blended cost. The choice changes which gains are realized and the tax owed, but not the average cost of the shares you still hold. Consult a tax professional for your situation.

Investment Risk Disclaimer

This content is for educational purposes only and should not be considered financial advice. All investments carry risk, including the potential loss of principal. Past performance does not guarantee future results. Before making any investment decisions, please consult with a qualified financial advisor who understands your personal financial situation, risk tolerance, and investment goals.

Stock Averager provides tools and educational content but does not provide personalized investment advice or recommendations.

SA

About Stock Averager Team

Expert financial analysts dedicated to simplifying complex investment strategies for everyone. We build tools that help you make better money decisions.