Stock Average Calculator

Calculate your average stock price per share when you've made multiple purchases at different prices. This tool helps you determine your cost basis and the price you need to break even on your investment.

Updated June 2026 · How this works

How It Works
The formula, explained simply

A stock average calculator determines your weighted average cost per share when you've made multiple stock purchases at different prices. Unlike a simple arithmetic average, this calculation weights each purchase by the number of shares bought, giving you an accurate cost basis for your investment position.

The stock average price formula multiplies each purchase amount (shares × price per share) to find the total cost, then divides by the total number of shares owned. For example, if you bought 100 shares at $20 and 200 shares at $30, your total cost is $8,000 and total shares are 300, giving an average price of $26.67 per share.

This weighted calculation is crucial because it reflects the actual dollar amount invested at each price level. The average stock price becomes your cost basis for tax reporting and determines the price point where your investment breaks even. When the current market price exceeds your average price, your position shows a profit.

Stock average calculations become especially important with dollar-cost averaging strategies, where investors make regular purchases regardless of price. The calculator helps track how these periodic investments affect your overall cost basis and investment performance over time.

When To Use This
Right tool, right situation

Use a stock average calculator whenever you've made multiple purchases of the same stock at different prices. This is essential for tax reporting, as your cost basis determines capital gains or losses when you sell shares. The IRS requires accurate cost basis calculation for tax compliance.

The calculator becomes particularly valuable with systematic investment strategies like dollar-cost averaging, where you invest fixed amounts regularly. Track how these periodic purchases affect your average cost and overall position performance compared to lump-sum investing.

Stock average calculation is also crucial for investment decision-making. Before buying more shares of a stock you already own, calculate how the new purchase will change your average price and total exposure. This helps you maintain proper portfolio diversification and avoid overconcentration in any single position. Many brokers provide this information, but independent calculation ensures accuracy and helps you understand the mathematics behind your investment performance.

Common Mistakes
Why results sometimes look wrong

The most common mistake in stock average calculation is using a simple arithmetic average of the prices instead of weighting by share quantities. Simply averaging $20 and $30 gives $25, but if you bought different amounts at each price, this doesn't reflect your true cost basis.

Another frequent error is forgetting to include all purchase costs in the calculation. Some investors only track major purchases and miss smaller transactions, dividend reinvestments, or stock splits that affect their share count and average price. Keep detailed records of every transaction that changes your position.

Investors also mistakenly think that averaging down always improves their position. While buying more shares at lower prices does reduce your average cost per share, it also increases your total investment and risk exposure. Calculate whether the additional investment aligns with your portfolio allocation and risk tolerance before averaging down on a declining stock.

The Math
Worked examples and deeper derivation

The mathematical foundation of stock average calculation uses the weighted average formula: Average Price = Total Cost ÷ Total Shares. This differs from a simple arithmetic mean because each price point is weighted by the number of shares purchased at that price.

For multiple purchases, the formula expands to: Average Price = [(Shares₁ × Price₁) + (Shares₂ × Price₂) + ... + (Sharesₙ × Priceₙ)] ÷ [Shares₁ + Shares₂ + ... + Sharesₙ]. Each term in the numerator represents the total cost of one purchase transaction.

The weighting effect means that larger purchases have more influence on your average price. If you buy 100 shares at $10 and 10 shares at $50, your average is $14.55 per share, much closer to the $10 price because that's where most of your money was invested. This mathematical principle ensures your average stock price accurately reflects your actual investment exposure at different price levels.

Dollar Cost Averaging Strategy
100 shares at $25, 150 shares at $20, 50 shares at $35
Your average price is $24.17 per share, smoothing out market volatility across your purchases.
Buying the Dip
50 shares at $40, 100 shares at $30, 200 shares at $25
Your average price is $29.29 per share, lower than your initial purchase due to buying more at lower prices.
Small Position Building
25 shares at $12, 25 shares at $15, 50 shares at $10
Your average price is $11.75 per share across 100 total shares, with most weight on the lowest-priced purchase.

Common questions

How do I calculate average stock price with multiple purchases?
To calculate your average stock price, multiply each purchase (shares × price per share) to get the total cost, then divide the total cost by total shares owned. This weighted average gives you your cost basis per share.
Why is stock average price important for investors?
Your average stock price determines your cost basis for tax purposes and break-even point. It helps you understand whether your position is profitable and calculate capital gains or losses when you sell shares.
What is dollar cost averaging in stock investing?
Dollar cost averaging means investing a fixed amount regularly regardless of stock price. This strategy can lower your average cost per share over time by buying more shares when prices are low and fewer when prices are high.

Need something this doesn't cover?

Suggest a tool — we'll build it →