Average Cost Stock Calculator
Track multiple stock purchases and instantly calculate your weighted average cost per share. Add each buy lot below, then click calculate.
What Is an Average Cost in Stock Investing?
Your average cost (or average cost basis) is the blended price you paid per share across all your purchases of the same stock. If you buy the same company at different prices over time, your portfolio has one combined average cost number that helps you evaluate performance clearly.
This number matters because it tells you whether you are currently in profit or loss at today’s market price. It also helps you plan future buys, set targets, and make better sell decisions.
Average Cost Formula
Average Cost Per Share = Total Amount Invested ÷ Total Shares Owned
That means you need only two totals:
- Total invested amount: Sum of every purchase (shares × price per share)
- Total shares: Sum of all shares purchased
Once you have both values, divide and you’re done.
Simple Example
Suppose you bought:
- 10 shares at $100
- 20 shares at $80
- 15 shares at $120
Total invested = (10×100) + (20×80) + (15×120) = $4,400
Total shares = 45
Average cost = $4,400 ÷ 45 = $97.78 per share (rounded)
If the current market price is $110, you are above your average cost and currently in unrealized profit.
How to Use This Average Cost Stock Calculator
1) Enter each purchase lot
For every time you bought shares, add one line with:
- Number of shares
- Price paid per share
2) Add as many lots as needed
Use the “Add Purchase Lot” button if you made many buys over months or years.
3) Optionally enter current price
If you enter today’s market price, the calculator also shows:
- Current market value
- Unrealized gain/loss in dollars
- Unrealized gain/loss in percentage terms
4) Click calculate
You’ll get total shares, total invested amount, and your weighted average cost instantly.
Why Average Cost Matters for Long-Term Investors
Many long-term investors buy in stages rather than all at once. This is common with dollar-cost averaging, where you invest fixed amounts on a schedule. Over time, your purchase prices vary, so your average cost becomes the key benchmark that reflects your true entry level.
Rather than focusing on one purchase date, average cost gives you the bigger picture:
- It reduces emotional decisions based on a single buy point
- It helps you judge portfolio progress more realistically
- It supports disciplined, repeatable investing habits
Average Cost vs. FIFO, LIFO, and Specific Identification
When discussing taxes, you may hear other cost-basis methods:
- FIFO (First In, First Out): Oldest shares are considered sold first
- LIFO (Last In, First Out): Newest shares are considered sold first (not always available or allowed depending on jurisdiction/broker)
- Specific Identification: You choose exactly which lots are sold
Average cost is excellent for analysis and planning, but tax rules can differ by account type and country. Always confirm with your broker statements and a qualified tax professional.
Common Mistakes to Avoid
- Ignoring fees: If your broker charges commissions or transaction fees, your true cost basis may be higher.
- Mixing tickers: Calculate each stock separately.
- Forgetting dividends reinvested: Reinvested dividends usually create new purchase lots.
- Using rough estimates: Small rounding errors can add up over many transactions.
Practical Tips for Better Decisions
Use average cost with position sizing
Before adding more shares, estimate how much your average cost would move. This helps prevent oversized trades.
Set rules before the trade
Define in advance when you’ll add, hold, or reduce a position. Average cost is most useful when paired with a clear plan.
Review periodically
Recalculate after each buy and compare average cost to current market value. That habit keeps your strategy grounded in numbers, not noise.
Final Thoughts
An average cost stock calculator is one of the simplest tools that can dramatically improve your investing clarity. With just shares and purchase prices, you can understand your true position, track performance, and make more rational decisions over time.
Use the calculator above whenever you add a new lot. It’s fast, objective, and a solid building block for long-term portfolio management.