Stock Average Calculator
Find your true weighted average cost per share across up to four purchases — the break-even price that actually matters, not the simple average of the prices you paid.
- Updated Aug 8, 2026
- Reviewed by the BSF CPA Editorial Team
- US investment use
- 8 min read
Your average cost per share is total money invested divided by total shares owned — weighted by how many shares you bought at each price. Buy 120 shares at $85 and then 180 at $62, and your average is $71.20, not the $73.50 you get by averaging the two prices. That $2.30 difference is $690 across a 300-share position, and it moves your break-even point.
Enter the quantity and price for each purchase. Lots three and four are optional — leave them at zero if you only made one or two buys.
When you buy a stock at multiple prices over time, your average buy price determines whether you’re profitable, not your last buy. The Stock Average Calculator weighs each purchase by quantity and gives you the true cost basis, helping you decide whether to hold, average down, or exit.
Stock Average Calculator
Compute the average buy price across multiple purchases of the same stock — essential for averaging-down strategies.
Average cost per share
How to read your results
| Output | What it means |
|---|---|
| Average Buy Price | Total invested ÷ total shares. Your weighted cost per share, and your break-even price before fees. |
| Total Shares | Every share across all lots entered. |
| Total Investment | The full amount of capital you have committed. |
| Highest Buy Price | The most you paid per share in any single lot. |
| Lowest Buy Price | The least you paid per share in any single lot. |
Above it you are in profit, below it you are down — before brokerage and tax. It is the single most useful number to know about a position you have built in pieces, and it is the figure to feed into a return calculation later. The highest and lowest prices are context: a wide gap between them means your entries were spread across very different valuations.
Lots with a quantity of zero are ignored, so leaving the optional third and fourth buys blank does not distort anything.
Why weighted, not simple, average
The instinct is to add up the prices you paid and divide by the number of purchases. That is only correct in the rare case where you bought exactly the same number of shares each time. The moment your lot sizes differ, a simple average misleads — sometimes badly.
Buy 120 shares at $85 and 180 at $62:
| Method | Calculation | Result |
|---|---|---|
| Simple average (wrong) | ($85 + $62) ÷ 2 | $73.50 |
| Weighted average (correct) | ($10,200 + $11,160) ÷ 300 | $71.20 |
The weighted figure is lower because more of your shares were bought at the cheaper price. Believing your break-even was $73.50 would have you holding out for a price you do not actually need — and misreporting your position by $690.
The formula
- Qi Shares bought in lot i.
- Pi Price paid per share in that lot.
In words: multiply each lot's shares by its price to get what that lot cost, add all the lot costs, then divide by the total shares. Each price is weighted by how many shares it applied to, which is exactly what a simple average fails to do.
This calculator uses the share price you enter. If you pay commission, your true cost basis is slightly higher — add the fee to a lot's cost, or divide total fees by total shares and add that to the result. Most major US brokers now charge $0 on stock trades, so for many investors the difference is nil. To model fees properly on a completed trade, use the stock return calculator.
Three worked US examples
Adding to a position that fell
Dana buys 120 shares at $85. The stock drops and she buys 180 more at $62.
| Measure | Result |
|---|---|
| Total shares | 300 |
| Total investment | $21,360 |
| Average buy price | $71.20 |
| Highest / lowest | $85.00 / $62.00 |
Her break-even fell from $85 to $71.20. From the current $62 the stock needs to rise 14.8% for her to break even, rather than the 37% it would have needed on the original lot alone. That is the appeal — but she now has $21,360 at risk instead of $10,200.
Buying more as a position rises
Marcus adds to a winner four times: 40 shares at $150, 35 at $172, 30 at $196, 25 at $215.
| Measure | Result |
|---|---|
| Total shares | 130 |
| Total investment | $23,275 |
| Average buy price | $179.04 |
| Highest / lowest | $215.00 / $150.00 |
His average of $179.04 sits below the midpoint of $182.50 because he bought progressively fewer shares as the price climbed — a deliberate choice that keeps the average closer to his early, cheaper entries. Knowing the real figure matters: at $190 he is up 6.1%, not the 11.6% he would calculate against his first purchase.
When the simple average is most misleading
Priya buys 100 shares at $50, then 300 at $40 — a much larger second lot.
| Method | Result |
|---|---|
| Simple average of prices | $45.00 |
| Weighted average | $42.50 |
| Total shares / investment | 400 / $17,000 |
The gap is $2.50 a share, or $1,000 across the position. The more lopsided your lot sizes, the further a simple average drifts from the truth — which is precisely when people are most likely to reach for it.
Averaging down: the real trade-off
Averaging down lowers your break-even, and that feels like progress. What it also does is increase the amount of money exposed to a position that has already moved against you. Both halves belong in the decision.
You bought 100 shares at $100 and it now trades at $70. Here is what adding at $70 actually buys you:
| Shares added at $70 | New average | Total shares | Capital at risk | Rise needed to break even |
|---|---|---|---|---|
| None | $100.00 | 100 | $10,000 | +42.9% |
| 50 | $90.00 | 150 | $13,500 | +28.6% |
| 100 | $85.00 | 200 | $17,000 | +21.4% |
| 200 | $80.00 | 300 | $24,000 | +14.3% |
| 400 | $76.00 | 500 | $38,000 | +8.6% |
Note the shape of it: the required recovery falls steeply at first and then flattens, while capital at risk climbs in a straight line. Going from 200 to 400 extra shares saves only 5.7 percentage points of recovery but commits another $14,000.
Averaging down only works if the original investment case still holds and the price fall was noise rather than news. If the business has deteriorated, adding shares increases your loss — you are buying more of the thing that is going wrong, and concentrating your portfolio while doing it. Decide whether you would buy this stock today at this price knowing nothing about your existing position. If the answer is no, the fact that it would lower your average is not a reason.
Average cost and your US tax basis
The weighted average this calculator gives you is your economic cost per share. For US tax purposes, which figure you may use depends on what you own — and the distinction catches people out.
- Individual stocks. You generally cannot use average cost. The IRS default is FIFO — the oldest shares are treated as sold first. Alternatively you may use specific identification, choosing which lots to sell, but you must designate them at or before the sale and your broker must confirm it.
- Mutual funds and most ETFs. The average cost method is permitted, and many brokers apply it by default. This is where the figure above can double as your tax basis.
- Dividend reinvestment. Each reinvested dividend buys a new lot at that day's price. Over years this creates dozens of small lots, which is exactly why average cost exists for funds.
Selling your highest-cost lots first realizes the smallest gain, reducing tax now. Selling lots held over a year qualifies for long-term capital gains rates rather than ordinary income. Averaging removes both levers. If you hold a stock bought across many prices in a taxable account, it is worth checking which method your broker has on file. This is general information, not tax advice — confirm your situation with a CPA.
Where to go next
| You want to know | Use |
|---|---|
| My break-even price across several buys | This calculator. |
| What the position returned once sold | Stock Return calculator — feed in your average as the buy price. |
| The true annualized return with all my dates | XIRR — the only accurate option for many purchase dates. |
| What the dividends are paying me | Dividend Yield calculator. |
A natural workflow: get your average cost here, then take it to the stock return calculator for the profit and annualized figures. If your buys were spread over very different dates, prefer XIRR — averaging the prices discards the timing, and timing is a real part of your return.
Common mistakes
Averaging the prices instead of weighting them
Adding prices and dividing by the number of buys is only right when every lot is the same size. With uneven lots it can be off by several dollars a share.
Treating a lower average as a win
Your average falls simply because you bought more at a lower price. No value has been created — you have just committed more capital and raised your exposure.
Forgetting brokerage in your basis
Where commissions apply they are part of what the shares cost you. Leaving them out slightly understates your true break-even.
Assuming average cost is your tax basis
For individual stocks the US default is FIFO, not average cost. Average cost is generally only available for mutual funds and ETFs.
Mixing up quantity and price columns
Entering 50 shares at $120 as 120 shares at $50 gives a plausible-looking but wrong answer. Check the totals — if Total Investment does not match what you actually spent, something is swapped.
Ignoring the dates entirely
Average cost says nothing about when you bought. Two identical averages built over two months or ten years represent very different returns. Use XIRR when timing matters.
Best practices
Work from trade confirmations
Use the executed prices and share counts on your statements, not the prices you remember placing orders at.
Recalculate after every purchase
Knowing your live break-even keeps decisions grounded. It takes seconds and prevents anchoring on your first entry price.
Decide before you average down
Set the conditions under which you would add to a losing position in advance, so the choice is not made while you are down and hoping.
Check your broker's cost-basis method
Confirm whether FIFO, specific identification or average cost is on file for each holding — it changes your tax bill, not just your paperwork.
Frequently asked questions
How do I calculate the average price of a stock I bought several times?
Multiply each purchase's share count by its price, add those amounts to get total invested, then divide by the total number of shares. For 120 shares at $85 plus 180 at $62: ($10,200 + $11,160) ÷ 300 = $71.20. Do not simply average the two prices — that gives $73.50 and is wrong whenever your lot sizes differ.
Why is the weighted average different from averaging the prices?
Because a weighted average accounts for how many shares each price applied to. If most of your shares were bought cheaply, your true average sits closer to the low price. Averaging the prices treats a 10-share purchase and a 1,000-share purchase as equally important, which they plainly are not.
Is my average buy price the same as my break-even price?
Before costs, yes — at that price you would sell for exactly what you paid. In practice your true break-even is slightly higher because of any brokerage on the way in and out, and because a gain may be taxable. In a taxable account, breaking even on price can still leave you marginally behind after fees.
Should I average down on a losing position?
Only if you would buy the stock today at today's price on its own merits, ignoring your existing holding. Averaging down lowers your break-even but increases the capital exposed and concentrates your portfolio. If the price fell because the business deteriorated, adding shares makes the loss larger. The lower average is a mathematical consequence, not evidence of a good decision.
How much does averaging down actually lower my break-even?
Less than most people expect, and with sharply diminishing returns. On 100 shares bought at $100 now trading at $70: adding 100 shares cuts the required recovery from 42.9% to 21.4%; adding 400 shares gets it to 8.6% but commits $38,000 instead of $10,000. The benefit flattens while the capital at risk keeps rising linearly.
Can I use this calculator for more than four purchases?
Combine lots that were bought at the same or very similar prices, entering their total shares against that price. If your prices are all different, calculate the weighted average in two passes: average the first four lots, then treat that result as one lot with its combined share count and add the rest. The maths is unaffected by grouping.
Does the average change when I sell some shares?
Your average cost per share does not change by selling — only the number of shares you hold does. What changes is your tax position, because which lots you sold determines the gain realized. If you sell and later buy again, run the calculation fresh on the lots you still own.
Should I include brokerage and fees?
For an exact cost basis, yes — fees are part of what the shares cost you. Either add each lot's fee into its cost, or divide total fees by total shares and add that to the average. Since most major US brokers charge $0 commission on stock trades, this is often immaterial, but it matters on platforms with percentage-based charges.
Is average cost my basis for US taxes?
Usually not for individual stocks. The IRS default is FIFO — oldest shares sold first — and you may instead use specific identification if you designate lots at the time of sale. Average cost is generally permitted only for mutual funds and most ETFs. So this figure is your economic average, which may or may not equal your reportable tax basis.
What is the difference between averaging down and dollar-cost averaging?
Dollar-cost averaging is investing a fixed amount on a regular schedule regardless of price — a systematic habit that removes timing decisions. Averaging down is a discretionary choice to add to a specific position because it fell. The first is a plan; the second is a judgement call about one holding, and it deserves much more scrutiny.
Why is my average closer to one price than the midpoint?
Because you bought more shares at that price. The average is always pulled toward whichever lot holds the most shares. Buy 40 at $150 and 25 at $215 and your average lands at the cheaper end of the range, since the larger lot carries more weight in the calculation.
Does this work for reinvested dividends?
In principle yes — each reinvestment is a purchase at that day's price, so it is another lot. In practice a long-running reinvestment plan creates far too many small lots to enter by hand, which is exactly why the average cost method exists for funds. Your broker will normally track and report this for you.
Methodology & sources
The calculator computes the weighted average cost per share as total invested divided by total shares, ignoring any lot with a quantity of zero, and reports total shares, total capital committed, and the highest and lowest per-share prices entered. Results were verified against an independent implementation across six scenarios including single-lot, four-lot, highly uneven lot sizes and zero-quantity lots; all matched to the cent.
- US cost-basis methods: FIFO as the default for securities, specific identification requirements, and the availability of the average cost method for regulated investment companies.
- Capital gains treatment: short-term versus long-term holding-period distinction.
Related resources
Calculators
- Stock Return CalculatorProfit and annualized return after fees
- XIRR CalculatorTrue return across many purchase dates
- Dividend Yield CalculatorIncome and yield on cost
- CAGR CalculatorAnnualized growth of a lump sum
- ROI CalculatorTotal and annualized return
- Compound Interest CalculatorProject growth forward
Learn more
- Finance CoursesInvestment analysis from CPA instructors
- All CalculatorsThe full Business Skill Forge tool library
Know your position before you add to it
Position sizing and risk management are what separate a plan from hope. Our courses cover how to size entries, set exit rules, and judge whether adding to a holding is disciplined or just averaging into a mistake.
Goes deeper on this
Stock Market Mastery — Fundamental Analysis
10-K analysis, P&L deep dive, ratios, DCF, equity research — 16 sections, 46 lessons.
Email me this result
We will send the numbers this page just showed you, plus a link back to it. No account needed.
Keep exploring
