Calculator
Education

How to Calculate Average Stock Price

Learn the formula and steps to manually calculate your weighted average share price.

Why Weighted Average?

A simple average treats all purchases equally, but a weighted average accounts for the quantity of shares bought at each price. This gives you an accurate cost basis for tax reporting and profit calculation.

1The Formula

Weighted Average Formula
(P₁ × Q₁) + (P₂ × Q₂) + ... / Total Qty

To calculate the total average cost, you must multiply each purchase price by the number of shares bought at that price, sum those totals, and divide by the total amount of shares held. This provides your weighted average cost basis.

Manual Calculation Steps

1

Multiply Each Price by Quantity

For each purchase, calculate: Price × Quantity = Total Cost

2

Sum All Total Costs

Add up all the total costs from step 1

3

Sum All Quantities

Add up the total number of shares purchased

4

Divide Total Cost by Total Shares

This gives you the weighted average cost per share

2Practical Example

Buy #1: 10 shares @ $100
Initial principal: $1,000
Buy #2: 20 shares @ $70
Additional principal: $1,400
Final Calculation:
($1,000 + $1,400) / (10 + 20) = $80.00

Common Mistakes to Avoid

  • Using simple average instead of weighted average
  • Forgetting to include commission fees in total cost
  • Not updating average after each new purchase

Frequently Asked Questions

Can I use Excel to calculate stock average?

Yes! Use the formula: =SUMPRODUCT(prices, quantities) / SUM(quantities). However, our calculator is faster and handles commissions automatically.

Do I need to recalculate every time I buy or sell?

Yes, your average cost changes with each transaction. When you buy more, recalculate using all purchases. When you sell, your remaining shares keep the same average cost (though total investment decreases).

Ready to calculate your own?

Use our high-precision stock average calculator to get instant results including commissions and averaging down targets.

Go to Calculator