Average Share Price Calculator
Bought the same stock at different prices? Enter each lot to get your true weighted average cost per share.
You bought 100 shares at $50, then 200 more at $40 when the price dipped. So what is your average share price — $45? That is the simple average of the two prices, and it is wrong. Because you bought twice as many shares at $40, your true average cost is pulled toward $40, landing at $43.33. The Average Share Price Calculator above does this weighted math across as many buy lots as you have, and it is the number your brokerage uses as your cost basis.
Getting this right matters every time you look at a position and ask “am I up or down?” If you compare the current price against the wrong average, you misjudge your break-even point — the price the stock must reach for you to get your money back. Investors who dollar-cost average into a position over months or years accumulate five, ten, twenty lots at different prices; no one can weight those in their head. The calculator totals your invested capital, totals your shares, divides one by the other, and optionally measures the result against today’s price to show your unrealized gain or loss.
What the Average Share Price Calculator Does
The Average Share Price Calculator computes the weighted average cost per share across multiple purchases (lots) of the same stock. You enter each lot as a pair — shares bought and price per share — using the “Add another lot” control for as many lots as you need, and remove any lot with its remove control. The calculator multiplies shares × price for every lot, sums those into total invested capital, sums the shares, and divides: weighted average = total invested ÷ total shares. Each lot’s weight in the average is proportional to the dollars it represents, which is exactly why 200 shares at $40 outweigh 100 shares at $50.
The result card leads with the weighted average share price, then shows total invested, total shares, and lot count, followed by the formula written out with your own numbers so you can verify it. A per-lot table breaks down each purchase — shares, price, dollar cost, and what percentage of your total investment that lot represents. If you enter a current share price, a gain/loss box compares your position’s current value against what you invested, showing the unrealized gain or loss in dollars and percent, colored green for gains and red for losses.
How to Use the Calculator
Enter your lots oldest-first or in any order — the math does not care about sequence, only about the totals. For each purchase, fill in both fields: the number of shares and the price you paid per share. Use the “+ Add another lot” control to add rows for a third, fourth, or twentieth purchase; if you added one by mistake, remove it with the “✕ Remove” control on that row. Leave rows completely blank rather than entering zeros — blank rows are skipped, while a row with shares but no price (or vice versa) triggers a validation message asking you to complete it.
Enter a current share price only if you want the gain/loss analysis; the average itself does not need it. Press Calculate and check the per-lot table first — each row should match a line from your brokerage history, which confirms nothing was mistyped. Then read the headline average against the current price: if the current price is above your average, the position is green; below it, red. The distance between the two is your break-even gap — the move the stock needs for you to recover your capital.
The Formula Behind Average Share Price
The weighted average share price formula is: average = (shares₁ × price₁ + shares₂ × price₂ + … + sharesₙ × priceₙ) ÷ (shares₁ + shares₂ + … + sharesₙ). The numerator is your total invested capital; the denominator is your total share count. Weighting by dollars invested is the entire point: a lot’s influence on the average equals its share of total cost, not its share of the lot count. Two lots of equal share count get equal weight; two lots of equal dollars get equal weight even at different share counts.
Compare with the naive simple average of prices, which this calculator deliberately does not use. For 100 shares at $50 and 200 at $40, the simple average is (50 + 40) ÷ 2 = $45.00 — but the weighted average is (100×50 + 200×40) ÷ 300 = 13,000 ÷ 300 = $43.33. The $1.67 gap exists because the cheaper lot was twice as large. The simple average would tell you that you break even at $45; the truth is $43.33, meaning the stock needs to climb $1.67 less than you thought. On 300 shares, that $1.67 error is a $500 misjudgment of your break-even — real money, from a seemingly small methodological slip.
Worked Examples
Example 1 — Lot 1: 100 shares at $50.00; Lot 2: 200 shares at $40.00; current price $48.00. Total invested = (100 × 50) + (200 × 40) = 5,000 + 8,000 = $13,000.00. Total shares = 100 + 200 = 300. Weighted average = 13,000 ÷ 300 = $43.33. Lot weights: Lot 1 is 5,000 ÷ 13,000 = 38.5% of invested; Lot 2 is 61.5%. At the $48.00 sample current price: position value = 300 × 48 = $14,400.00; unrealized gain = 14,400 − 13,000 = +$1,400.00 (+10.8%). The stock sits $4.67 above your average — comfortably green, even though it is still below your first purchase price of $50. That is the power of averaging down: the second lot pulled your break-even below the current price.
Example 2 — three lots: 50 shares at $120.00, 100 at $95.00, 150 at $80.00; current price $100.00. Invested = (50 × 120) + (100 × 95) + (150 × 80) = 6,000 + 9,500 + 12,000 = $27,500.00. Shares = 50 + 100 + 150 = 300. Average = 27,500 ÷ 300 = $91.67. Lot weights: 21.8%, 34.5%, 43.6% — the cheapest, largest lot dominates. Position value at $100 = 300 × 100 = $30,000.00; unrealized gain = 30,000 − 27,500 = +$2,500.00 (+9.1%). Notice the simple average of the three prices would be (120 + 95 + 80) ÷ 3 = $98.33 — a full $6.66 above the true $91.67 average, because the simple average ignores that you bought the most shares at the lowest price.
Example 3 — three equal lots: 10 shares at $500.00, 10 at $300.00, 10 at $200.00; current price $250.00. Invested = 5,000 + 3,000 + 2,000 = $10,000.00. Shares = 30. Average = 10,000 ÷ 30 = $333.33. Position value = 30 × 250 = $7,500.00; unrealized loss = 7,500 − 10,000 = −$2,500.00 (−25.0%). Here the calculator delivers sobering news honestly: despite buying two dips, the position needs a 33.3% climb (from $250 to $333.33) just to break even. The percentage framing matters — a −25% loss requires a +33.3% gain to recover, the asymmetry every investor should internalize.
How to Read Your Results
The headline average is your break-even price per share: above it you are profitable, below it you are underwater, and exactly at it you recover your capital (before fees). The formula line beneath it — “Average = Total invested ÷ Total shares = $13,000.00 ÷ 300 = $43.33” — is there so you never have to take the number on faith; every input to it appears in the per-lot table. Check the lot weights in that table whenever the average surprises you: the lots with the biggest dollar amounts are the ones steering it, which is often not the lot you remember most vividly.
The gain/loss box translates the average into a verdict. The dollar figure is absolute profit or loss; the percentage is relative to your invested capital, which is the return that matters for comparing against alternatives. Read the sign carefully: a position can show a gain while every individual lot except the largest is underwater (Example 1 is nearly this — the $50 lot is still red at $48 while the position is +10.8%). And remember the box shows unrealized figures: the gain is not yours until you sell, and selling converts it into a taxable event the calculator does not model.
Common Average-Price Mistakes
The most common mistake is the simple average of prices — adding $50 and $40 and dividing by 2 — which ignores lot sizes and misstates your break-even, as the formula section showed. A second mistake is forgetting a lot entirely: leaving out an old purchase understates both invested capital and share count, and the resulting “average” describes a portfolio you do not own. Reconcile the calculator’s total shares against your brokerage’s share count; if they differ, a lot is missing.
A third mistake is ignoring commissions and fees. The calculator averages share prices only; if you paid $10 per trade across many small lots, your true cost basis is higher than the number shown — add total fees to invested capital mentally for the honest break-even. A fourth mistake is the averaging-down trap: buying more of a falling stock lowers your average, which feels like progress, but it also concentrates more capital in a loser — the calculator shows the new average faithfully, but it cannot tell you whether the purchase was wise. Finally, do not confuse average cost with tax lots: brokerages and tax authorities may use FIFO or specific identification when you sell, so your average-cost break-even and your taxable gain can differ.
Frequently Asked Questions
1. What is a weighted average share price?
Your total invested dollars divided by your total shares, across all purchase lots. Each lot influences the average in proportion to the dollars it represents — 200 shares at $40 pull twice as hard as 100 shares at $50.
2. Why not just average the purchase prices?
Because a simple average ignores lot sizes. For 100 shares at $50 and 200 at $40, the simple average says $45.00 but the true weighted average is $43.33 — a $1.67 break-even error worth $500 on 300 shares.
3. What is a “lot”?
One purchase transaction: a number of shares bought at one price on one date. Investors who buy the same stock repeatedly accumulate multiple lots, each with its own cost — the calculator blends them into one average.
4. How do I add more than two lots?
Use the “+ Add another lot” control above the Calculate button to add as many rows as you need, and “✕ Remove” on any row to delete it. Blank rows are skipped automatically.
5. What does the average tell me about break-even?
It is your break-even price per share before fees: if the stock trades above your average you are profitable overall, below it you are at a loss. The gap between the current price and your average is the move needed to get whole.
6. Why is my position green while my first lot is red?
Because later, larger, cheaper lots pulled the weighted average below the current price. The position is judged on total dollars in versus total value now — individual lots can be underwater while the whole is profitable.
7. Does the calculator include brokerage fees?
No — it averages share prices only. Commissions raise your true cost basis, so add total fees to your invested capital mentally (or spread them across the lots) for the honest break-even.
8. What is dollar-cost averaging, and does this help?
Investing fixed amounts on a schedule regardless of price, which naturally buys more shares when prices are low. This calculator is the companion tool: it tells you the average price your dollar-cost-averaging program actually achieved.
9. A −25% loss needs what gain to recover?
+33.3%. Losses and gains are asymmetric: after a 25% fall to $75, you need a 33.3% rise to return to $100. The calculator’s percentage is measured against your invested capital, so it shows the loss side of this math directly.
10. Should I keep averaging down a losing stock?
The calculator cannot answer that — it only reports the new average faithfully. Averaging down lowers your break-even but concentrates more money in a falling position; that is a judgment about the business, not arithmetic.
11. What if I sold some shares already?
Enter only the lots (or remaining portions of lots) you still hold. The average describes your current position; shares you sold are history, though your brokerage’s tax records still need them.
12. Does stock split history affect my average?
Yes — adjust old lots for splits before entering them. In a 2-for-1 split, double the share count and halve the price of pre-split lots; the invested dollars stay the same, and so does the correct average.
13. Why does my brokerage show a different average?
Usually fees, corporate actions (splits, spinoffs), dividend reinvestments adding micro-lots, or a different cost-basis method. Reconcile share counts first — a missing lot is the most common cause.
14. Is the gain shown here my taxable gain?
Not necessarily. Tax lots may follow FIFO or specific identification rather than average cost, and wash-sale rules can defer losses. The calculator shows economic gain; your tax return may differ — consult a tax professional.
15. Can I use this for crypto or mutual funds?
Yes — the math is identical for any asset bought in lots at varying prices: total cost divided by total units. The labels say shares, but the weighted-average logic applies to coins, fund units, or anything else.
Final Thoughts
Your average share price is the single number that turns a pile of buy orders into an investment thesis — it is your break-even, your scorecard, and your reality check in one. The Average Share Price Calculator computes it the right way, weighted by dollars across every lot, and measures it against today’s price without flinching. Know your average before you decide your next move; the market will not do the arithmetic for you.