Stock Average Calculator
Calculate the weighted average purchase price of your stocks across multiple buys.
What is the Stock Average Calculator?
Stock averaging is the process of calculating the average price paid for a stock or security after making multiple purchase entries at different price points over time. It is also referred to as the weighted average purchase price.
Rather than taking a simple mathematical average of the buy prices, stock averaging calculates a weighted average based on the number of shares (quantity) purchased at each price level. This is essential for understanding your true cost basis, breakeven point, and net profit or loss.
The Stock Average Calculator allows you to dynamically input multiple buy prices and their corresponding share quantities. It computes your total quantity of shares, total investment value, and the final weighted average price per share.
Practical Examples & Reference Guide
Here is a calculation example showing how the weighted average purchase price changes when you buy a stock in multiple tranches:
| Transaction Entry | Buy Price per Share | Quantity Purchased | Total Cost |
|---|---|---|---|
| First Buy | $150.00 | 10 shares | $1,500.00 |
| Second Buy | $100.00 | 20 shares | $2,000.00 |
| Third Buy | $80.00 | 30 shares | $2,400.00 |
| Total Summary | $98.33 (Average) | 60 shares | $5,900.00 |
Note: The weighted average price ($98.33) is lower than the simple average of the three prices ($110.00) because a larger quantity of shares was purchased at the lower price points ($100.00 and $80.00).
In-Depth Technical Guide
How Stock Average Is Calculated
The Stock Average Calculator uses a weighted average formula based on the total cost of investment and the total number of shares:
$$Weighted\ Average\ Price = \frac{Total\ Investment\ Value}{Total\ Shares}$$
Where:
- Total Investment Value = Sum of (Buy Price × Quantity) for all purchase tranches. $$\text{Total Investment} = \sum_{i=1}^{N} (Price_i \times Quantity_i)$$
- Total Shares = Sum of all quantities purchased. $$\text{Total Shares} = \sum_{i=1}^{N} Quantity_i$$
Averaging Down vs. Averaging Up
- Averaging Down: Buying additional shares of a stock as its price declines. This lowers your average purchase price, making it easier to break even or turn a profit when the stock rebounds. However, it increases your risk exposure to a declining asset.
- Averaging Up: Buying additional shares of a stock as its price rises. This increases your average purchase price but allows you to increase your position size in a winning, upward-trending stock.
Why Knowing Your Weighted Average Price Matters
Knowing your exact average price is critical for:
- Determining Breakeven: Knowing the exact stock price needed to cover your initial investment.
- Tax Reporting: In many tax jurisdictions, capital gains are calculated based on the average cost basis of the shares sold.
- Risk Management: Evaluating whether to hold, buy more, or sell portions of your holdings.