average price calculator stock

Stock Average Price Calculator

Enter each stock purchase lot below to calculate your weighted average buy price (cost basis per share). You can also add the current market price to estimate unrealized profit or loss.

Formula used: Average Price = Total Amount Invested ÷ Total Shares Owned

What Is an Average Price in Stock Investing?

Your average stock price is the weighted average cost of all shares you bought in the same stock. If you purchased shares across different dates and prices, this number helps you understand your true breakeven level.

For example, buying 10 shares at $100 and 20 shares at $80 does not mean your average is $90 by simple arithmetic. Because share quantities are different, you need a weighted average.

The exact formula

Average Price per Share = (Sum of each lot's (shares × buy price) + fees) ÷ Total shares

This is why a dedicated average stock price calculator is useful: it removes manual errors and gives a clean, reliable cost basis in seconds.

Why This Calculator Is Useful

  • Track your cost basis: Know your real entry point across multiple buys.
  • Plan exits: Compare your average cost with current market price.
  • Understand averaging down/up: See how each new purchase changes your average.
  • Support risk management: Avoid adding blindly without checking impact.

How to Use the Average Price Calculator Stock Tool

  1. Add each purchase lot with shares, buy price, and optional fees.
  2. Click + Add Purchase for additional entries.
  3. Optionally enter today’s market price to estimate unrealized P/L.
  4. Click Calculate Average Price.

You’ll get total shares, total amount invested, weighted average price, and optional unrealized gain/loss.

Worked Example

Three purchase lots

  • Lot 1: 15 shares at $100
  • Lot 2: 20 shares at $92
  • Lot 3: 10 shares at $85

Total shares = 45

Total cost = (15×100) + (20×92) + (10×85) = 1500 + 1840 + 850 = $4,190

Average price = $4,190 ÷ 45 = $93.11

If the current price is $98, your unrealized gain is based on $98 compared against $93.11 across 45 shares.

Averaging Down vs Averaging Up

Averaging down

You buy more shares below your current average price, reducing cost basis. This can improve upside if the stock recovers, but it also increases exposure to a potentially weak position.

Averaging up

You buy additional shares at prices above your average, usually in a rising trend. This can build winners, but also increases your average cost and risk if momentum reverses.

Common Mistakes to Avoid

  • Ignoring broker fees and transaction costs.
  • Using a simple average instead of a weighted average.
  • Adding to a position without a risk limit or thesis.
  • Confusing average cost with tax-lot reporting rules in your country.

FAQ: Average Cost Basis for Stocks

Is this calculator only for U.S. stocks?

No. The math is universal. You can use it for any market as long as all entries are in the same currency.

Should I include fees in each lot?

Yes, if you want a more accurate cost basis. Fees raise your effective average price slightly.

Does average price guarantee profitability?

No. It is a tracking and planning metric, not a prediction tool. Market risk still applies.

Can I use this for ETFs and crypto?

Yes. The same weighted-average method works for ETFs and most spot crypto purchases.

Final Thoughts

An average price calculator for stock investing is a practical decision tool. It helps you understand where you truly stand in a position, especially if you buy in multiple batches over time. Use it before placing new orders, when reviewing your portfolio, and while planning exits or stop-loss levels.

Educational only. Not financial advice.

🔗 Related Calculators