Stock Average Calculator
Calculate your average stock purchase price across multiple buys and quantities.
What Is a Stock Average Calculator?
A stock average calculator determines the average cost per share of a stock when you have made multiple purchases at different prices and quantities. Instead of manually computing weighted averages, this tool provides an immediate, accurate figure that reflects your true cost basis across all trades.
This is particularly useful for investors who practice dollar-cost averaging or accumulate positions over time. The average price helps you assess whether your current holdings are in profit or loss relative to the current market price.
How the Average Stock Price Is Calculated
The calculation follows a straightforward weighted average formula. Each purchase is weighted by the number of shares bought at that price.
Formula: Average Price = Total Cost of All Shares ÷ Total Number of Shares
Where:
- Total Cost = Sum of (Price per Share × Quantity) for each trade
- Total Shares = Sum of all quantities purchased
For example, if you buy 10 shares at $50 and later buy 20 shares at $60, the total cost is (10 × $50) + (20 × $60) = $500 + $1,200 = $1,700. The total shares are 30. The average price is $1,700 ÷ 30 = $56.67 per share.
How to Use the Stock Average Calculator
- Enter your trades. For each purchase, input the price per share and the number of shares bought.
- Add multiple entries. Include every buy order you have made for that stock, even if the quantities or prices vary significantly.
- Review the result. The calculator instantly shows your weighted average cost per share and the total investment amount.
No registration or data storage is involved. All calculations happen locally in your browser.
Understanding Your Results
The output provides two key figures:
- Average Price: The break-even price per share. If the current market price is above this, your position is in profit. If below, you are at a loss.
- Total Investment: The total capital deployed across all purchases. This does not include brokerage fees or taxes unless you manually account for them in your entries.
This average is a weighted mean, not a simple arithmetic mean. A large purchase at a high price will pull the average up more than a small purchase at a low price, and vice versa.
Common Mistakes When Averaging Stock Prices
- Using a simple average instead of a weighted average. Adding prices and dividing by the number of trades ignores quantity differences and produces an incorrect result.
- Forgetting to include all trades. Missing even one purchase, especially a large one, will distort your average and give a false sense of your position.
- Ignoring transaction costs. Brokerage fees, commissions, and taxes affect your true cost basis. For precise tracking, include these costs in the price per share.
- Confusing average price with market price. Your average cost is historical. The current market price determines your unrealized gain or loss.
Practical Use Cases
- Dollar-cost averaging tracking. Investors who buy a fixed dollar amount of a stock regularly can use this tool to see their blended cost over time.
- Portfolio performance review. Quickly check whether a position is above or below your average entry price before deciding to add, hold, or sell.
- Tax lot planning. Understanding your average cost helps when choosing which specific shares to sell for tax-loss harvesting or gain realization.
- Re-entry after a sale. If you sell part of a position and later buy more, the calculator helps you determine the new average for the remaining shares.
Limitations and Considerations
- No dividend adjustment. The calculator does not account for stock dividends, splits, or reverse splits. These events change the number of shares and the effective cost basis.
- No fee inclusion. Brokerage commissions and other transaction costs are not included unless you manually adjust the price input.
- Single stock only. Each calculation applies to one stock ticker. For a portfolio-wide average, you would need to calculate each position separately.
- Historical accuracy depends on your data. The result is only as accurate as the entries you provide. Missing or incorrect trade data will produce a misleading average.
FAQ
Does the stock average calculator include brokerage fees?
No. The calculator only uses the price and quantity you enter. To account for fees, add the fee amount to the price per share for that trade. For example, if you bought 10 shares at $50 with a $5 commission, enter $50.50 as the price per share.
What happens if I sell some shares and buy more later?
You should only include the shares you currently hold. If you sell part of a position, remove those trades from the calculation. The average of your remaining shares may differ from the original average because the sold shares are no longer part of the pool.
Is the average price the same as my cost basis?
For most purposes, yes. The average price per share is your cost basis per share. However, your total cost basis for tax purposes may also include commissions, fees, and adjustments for corporate actions like stock splits. Always consult your brokerage statements for official cost basis figures.
Can I use this calculator for fractional shares?
Yes. Enter the fractional quantity as a decimal. For example, 3.5 shares at $100 per share is a valid entry. The calculator handles fractional quantities the same way as whole shares.
Why is my average price different from the simple average of my purchase prices?
Because the calculator uses a weighted average. A purchase of 100 shares at $10 has a much larger impact on your average than a purchase of 10 shares at $15. The simple average would treat both trades equally, which is incorrect for determining your true cost per share.