Your professional tool for averaging down, averaging up, and determining break-even points.
Purchase Lot 1
Shares purchased in this lot
Invalid shares
Price per share for this lot
Invalid price
Purchase Lot 2
Shares purchased in this lot
Invalid shares
Price per share for this lot
Invalid price
Purchase Lot 3
Shares purchased in this lot
Price per share for this lot
Purchase Lot 4
Shares purchased in this lot
Price per share for this lot
Weighted Average Price Per Share
$48.33
Total Shares Owned
150
Total Cost Basis
$7,250.00
Break-Even Price
$48.33
Formula Used: Total Cost ÷ Total Shares = Weighted Average Price
Cost Distribution by Lot
Visualizing how much capital is allocated to each purchase lot relative to the total cost.
Detailed Purchase Breakdown
Lot
Shares
Price/Share
Total Cost
Weight %
Breakdown of individual stock purchase lots and their contribution to the total portfolio weight.
Calculate Weighted Average Stock Price: The Complete Guide
Investing in the stock market often involves buying the same stock at different times and different price points. Whether you are "averaging down" to lower your cost basis or "averaging up" during a bull run, knowing your exact break-even point is crucial. This is where you need to calculate weighted average stock price accurately. Unlike a simple average, a weighted average accounts for the volume of shares purchased at each price, giving you a true picture of your investment performance.
What is Weighted Average Stock Price?
The weighted average stock price is the average price you paid per share for a specific stock, adjusted for the number of shares bought at each price level. It is synonymous with your "cost basis" for tax and accounting purposes. When you calculate weighted average stock price, you are determining the exact price the stock needs to reach for your total position to break even.
Who Should Use This Calculation?
Long-term Investors: Those engaging in Dollar Cost Averaging (DCA) over months or years.
Traders: Swing traders who scale into positions (buy in parts) rather than all at once.
Tax Planners: Investors needing to report accurate cost basis to tax authorities.
Common Misconceptions
A common mistake is calculating the simple arithmetic average of the purchase prices. For example, if you buy 1 share at $10 and 100 shares at $20, the simple average is $15 ($10+$20 / 2). However, the weighted average is much closer to $20 ($19.90) because you bought significantly more volume at the higher price. Failing to calculate weighted average stock price correctly can lead to selling at a loss when you think you are making a profit.
Weighted Average Price Formula and Explanation
To calculate weighted average stock price manually, you must sum the total cost of all shares purchased and divide it by the total number of shares owned.
Weighted Average = (Total Cost of All Lots) / (Total Number of Shares)
Where Total Cost is the sum of (Price × Shares) for every individual purchase.
Variables Definition
Variable
Meaning
Unit
Typical Range
Price (P)
The execution price per share for a specific lot.
Currency ($)
$0.01 – $5000+
Shares (S)
The quantity of shares purchased in a specific lot.
Count
1 – 1,000,000+
Total Cost
The cumulative amount of money spent on the position.
Currency ($)
Variable
Weight
The proportion of a single lot relative to the total position.
Percentage (%)
0% – 100%
Key mathematical variables used to calculate weighted average stock price.
Practical Examples
Example 1: Averaging Down
An investor buys a tech stock that is falling to lower their average cost.
Buy 1: 100 shares at $150 (Cost: $15,000)
Buy 2: 100 shares at $100 (Cost: $10,000)
Calculation: Total Shares = 200. Total Cost = $25,000.
Result: $25,000 / 200 = $125.00. Even though the stock dropped to $100, the investor only needs it to rebound to $125 to break even.
Example 2: Scaling In (Uneven Lots)
A trader builds a position with different quantities.
Buy 1: 50 shares at $20 (Cost: $1,000)
Buy 2: 200 shares at $25 (Cost: $5,000)
Calculation: Total Shares = 250. Total Cost = $6,000.
Result: $6,000 / 250 = $24.00. Notice how the average is closer to $25 because the volume (200 shares) was higher at that price.
How to Use This Weighted Average Stock Price Calculator
Enter Lot Details: In the "Purchase Lot" sections, input the Number of Shares and the Purchase Price for your first trade.
Add More Lots: Fill in the subsequent rows for your second, third, or fourth trades. If you have fewer than 4 trades, leave the extra fields blank.
Review Results: The tool will instantly calculate weighted average stock price and display it at the top in large blue text.
Analyze the Breakdown: Look at the "Total Cost Basis" to see how much capital you have tied up, and use the "Break-Even Price" to set your sell limit orders.
Visualize: Use the chart to see which purchase lot is consuming the most capital in your portfolio.
Key Factors That Affect Your Average Price
When you look to calculate weighted average stock price, several market and execution factors influence the final outcome:
Execution Fees & Commissions: While many brokers are zero-commission, options and foreign stocks still carry fees. These should theoretically be added to the "Price" or "Total Cost" to get a true "Net Average."
Share Volume (Weight): The number of shares bought acts as the "weight." Buying 10 shares at a low price has little impact if you already own 1000 shares at a high price.
Market Volatility: High volatility often leads to wider gaps between your purchase prices, making the weighted average calculation more critical for risk management.
Dividends: While not part of the purchase price formula, reinvested dividends (DRIP) add small lots of shares at various prices, constantly adjusting your weighted average.
Stock Splits: If a stock splits 2-for-1, your number of shares doubles and your weighted average price halves, keeping the total cost basis the same.
Currency Fluctuations: If buying foreign stocks, the exchange rate at the moment of each purchase affects the effective cost basis in your local currency.
Frequently Asked Questions (FAQ)
Is weighted average price the same as break-even price?
Yes, in a raw format. However, a true break-even price should also account for trading commissions and fees. To calculate weighted average stock price for pure trading purposes, adding fees to your cost is recommended.
Can I use this for crypto or mutual funds?
Absolutely. The math is identical regardless of the asset. Whether it is Bitcoin, ETFs, or mutual funds, you simply input the units/tokens as "Shares" and the price per unit.
How do selling shares affect the weighted average?
In most accounting methods (like FIFO – First In, First Out), selling shares removes specific lots from your history. This changes your weighted average because the remaining pool of shares has a different cost structure.
Why is my average price higher than the current stock price?
This indicates an unrealized loss. The current market price is below what you paid on average. You would need the stock to rise to your weighted average result to break even.
Does this calculator handle short selling?
Mathematically, yes. If you are shorting, you can use this to calculate the average entry price of your short position to know where your break-even cover point is.
What is "Dollar Cost Averaging"?
Dollar Cost Averaging is the strategy of investing a fixed dollar amount regularly, regardless of share price. This naturally leads to buying more shares when prices are low and fewer when high, often resulting in a favorable weighted average over time.
How many lots can I calculate?
This tool allows for up to 4 distinct lots, which covers the majority of retail averaging strategies. For extensive history (hundreds of trades), export your broker data to a spreadsheet.
Is this accurate for tax reporting?
This tool provides an estimate. For official taxes, rely on your brokerage's generated Form 1099-B, as they track specific tax lots and wash sale rules that complicate the basic calculation.
Related Tools and Internal Resources
Enhance your financial analysis with our other dedicated tools designed to help you manage risk and maximize returns.