If you have bought the same stock more than once, chances are you paid a different price each time. What you actually need to know is one number: your average price per share. This calculator adds up every purchase you made and works out your real cost per share, your total investment, and the price the stock needs to reach before you break even.
What Is a Stock Average Price and Why Does It Matter?
Your average stock price, sometimes called your cost basis, is the average of everything you paid for a stock, weighted by how many shares you bought each time. It is not the same as a plain average of your purchase prices. A buy of 200 shares carries more weight in the final number than a buy of 20 shares, simply because more of your money went into it.
This figure matters for two reasons that come up constantly once you start trading. First, it tells you your break-even price, the point at which selling would neither make nor lose you money before fees and taxes. Second, it is the starting point for your cost basis when you eventually report a sale. Whether you are deciding to hold, add more, or sell out, your average price is the baseline everything else gets measured against.
How Do You Calculate Average Stock Price (Weighted Average Formula)?
The math behind it is simple once you see it laid out. For each purchase, multiply the number of shares by the price you paid, then add those totals together across every purchase. Divide that combined figure by the total number of shares you own.
Average price = (Price 1 x Shares 1 + Price 2 x Shares 2 + ...) / Total shares
Because each purchase is weighted by its size, a large buy pulls the average toward its own price more than a small one does. That is why adding 300 shares at a lower price can shift your average further than three separate 10 share buys at that same price would.
What Is an Example of Calculating Average Price After Multiple Purchases?
Say you bought 50 shares of a company at $80, and later added another 50 shares at $60 once the price dropped. Here is how that works out.
Purchase | Shares | Price per share | Amount invested |
1 | 50 | $80.00 | $4,000 |
2 | 50 | $60.00 | $3,000 |
Total | 100 | - | $7,000 |
Divide the total amount invested, $7,000, by the total shares, 100, and your average price comes out to $70 per share. That is your break-even point before fees and taxes come into it. Instead of doing this by hand every time you add a purchase, you can enter your own numbers into the calculator above and get the same result right away.
How Many Shares Do You Need to Buy to Reach a Target Average Price?
If your average is sitting above where the stock is trading now, you might want to know exactly how many more shares would bring it down to a specific number. The formula for that is:
Shares needed = Existing shares x (Target average - Current average) / (New price - Target average)
Two conditions decide whether a target is even realistic. The new price has to be below the target you are aiming for, and the target itself has to sit below your current average. If either of those is not true, no amount of buying gets you there, and the calculator will flag it instead of returning a number that does not hold up.
What Is the Difference Between Averaging Down and Averaging Up?
Averaging down means buying more shares after the price has dropped, which pulls your average cost lower. Averaging up means buying more after the price has risen, which pushes your average higher, and usually makes sense only when your reasons for owning the stock have gotten stronger rather than weaker.
| Averaging Down | Averaging Up |
What it means | Buying more shares after a price drop | Buying more shares after a price rise |
Effect on average | Lowers your average cost | Raises your average cost |
Main advantage | Can improve returns if the price recovers | Adds to a position that is already working out |
Main risk | Can deepen losses if the drop reflects real problems with the business | Buying in at a higher price if the rally does not hold |
What Does an Average Price Calculator Not Account For?
A calculator like this one gives you the math, but there are a few real-world factors it leaves out:
• Brokerage commissions and fees, which add to what you actually paid per share
• Dividends reinvested through a DRIP, which add shares you did not directly pay cash for
• Stock splits or reverse splits, which change your share count and per-share basis without any new purchase
• The wash sale rule, which can adjust your cost basis if you sold at a loss and bought back in within 30 days
None of this makes the average price calculation wrong. It just means your actual cost basis for tax purposes can end up slightly different from a plain weighted average, which is why we cover each of these in more detail further down the page.
How Does Your Average Price Fit Into Your Wider Investing and Tax Decisions?
The number you calculate above feeds into a few other decisions most investors eventually run into. It becomes the starting point for your cost basis at tax time, it is the figure you compare against a scheduled buying plan if you use dollar cost averaging, and it is what you subtract from the sale price to find your actual profit or loss. It also plays into how large a position you are comfortable holding before adding to it again. The sections below go into each of these a bit further.
How Does Your Average Price Become Your Cost Basis for Taxes?
Your average price and your cost basis start from the same weighted average calculation, but cost basis gets adjusted further for commissions, fees, and corporate actions like splits or a return of capital. If you paid a $10 commission on a purchase, for instance, that amount gets added to what you invested before the average is worked out.
For a deeper breakdown that accounts for these adjustments across multiple lots, the Cost Basis Calculator is worth using once you need figures precise enough for a tax return.
How Does the Wash Sale Rule Affect Your Cost Basis After Averaging Down?
The wash sale window covers 30 days before and after a loss sale, 61 days in total. If you sell at a loss and buy back into the same stock inside that window, the loss gets disallowed for that tax year and is instead added to the cost basis of the replacement shares. Say you lock in a $5 per share loss and then buy back in at $60, your adjusted basis on the new shares becomes $65.
To check whether a specific trade falls inside that window, the Wash Sale and Capital Gains Tax Calculator works out the dates and the adjusted basis for you.
How Is Dollar Cost Averaging Different From Averaging Down?
Dollar cost averaging means investing a fixed amount on a set schedule, regardless of whether the price is up or down that week. Averaging down is a one-off decision to add to a position specifically because the price has fallen. One is a plan you commit to ahead of time, the other is a reaction to what the market just did.
If you are trying to build a position gradually rather than react to a dip, the Dollar Cost Averaging Calculator is built for that kind of scheduled buying.
How Do You Calculate Profit or Loss From Your Average Price?
Once you know your average price, working out your profit or loss is simple: subtract your average price from the current price, then multiply by the number of shares you hold. If you have already sold part of the position, use the price you sold at instead of the current price. On an average of $70 with the stock now at $85, that is an unrealized gain of $1,500 across 100 shares.
For a version that also factors in fees and shows the result as a percentage, the Stock Profit and Loss Calculator covers that in full.
How Do You Decide Position Size Before Averaging Down Further?
Before adding to a position that is down, it helps to ask three things: how much of your total portfolio the stock will represent after the purchase, whether you can afford to lose the extra money if you are wrong, and whether the drop reflects a temporary dip or an actual change in the business. None of these has a single right answer, but skipping them is usually how a manageable position turns into an oversized one.
The Position Size Calculator can show you exactly what percentage of your portfolio a new purchase would represent before you commit to it.

