Weighted Average Share Price Calculator
Easily calculate the average cost basis of your stock holdings across multiple purchases.
Calculate Weighted Average Share Price
Add your share purchases below. The calculator will automatically compute your weighted average cost basis.
Calculation Results
Cost Distribution Chart
Purchase Details Table
| Purchase # | Shares | Price Per Share | Total Cost |
|---|
What is Weighted Average Share Price?
The weighted average share price, often referred to as the average cost basis or average cost per share, is a crucial metric for investors. It represents the average price paid for all shares of a particular stock that an investor owns, taking into account the number of shares purchased at each different price. It's not simply the average of all purchase prices; instead, it "weights" each purchase price by the number of shares bought at that price. Understanding your weighted average share price is fundamental for accurate tax reporting, performance evaluation, and making informed decisions about when to sell your holdings.
Who Should Use It: Any investor who has purchased shares of a stock or ETF multiple times at different price points will benefit from calculating their weighted average share price. This includes:
- Long-term investors who periodically add to their positions.
- Traders who buy and sell the same security.
- Individuals managing investment portfolios for themselves or others.
- Those needing to report capital gains or losses for tax purposes.
Common Misconceptions: A frequent mistake is to simply average the prices of different purchases. For example, if you buy 100 shares at $10 and later buy 10 shares at $20, the simple average price is ($10 + $20) / 2 = $15. However, the weighted average share price considers the volume: (100 * $10 + 10 * $20) / (100 + 10) = ($1000 + $200) / 110 = $1200 / 110 = $10.91. The weighted average is always closer to the price at which more shares were bought.
Weighted Average Share Price Formula and Mathematical Explanation
The formula for calculating the weighted average share price is straightforward but essential for accurate cost basis tracking. It involves summing the total cost of all purchases and dividing by the total number of shares acquired.
The Formula
The core formula is:
Weighted Average Share Price = Total Cost of All Purchases / Total Number of Shares Purchased
Step-by-Step Derivation
- Calculate the Total Cost for Each Purchase: For every individual transaction, multiply the number of shares bought by the price per share.
- Sum the Total Costs: Add up the total cost calculated for each individual purchase to get the overall total cost of all shares.
- Sum the Total Shares: Add up the number of shares from each individual purchase to get the total number of shares owned.
- Divide Total Cost by Total Shares: Divide the grand total cost (from step 2) by the grand total number of shares (from step 3). The result is your weighted average share price.
Variable Explanations
Let's break down the components used in the calculation:
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Sharesi | Number of shares purchased in transaction 'i'. | Shares | ≥ 1 |
| PricePerSharei | The price paid for each share in transaction 'i'. | Currency (e.g., USD) | ≥ 0.01 |
| TotalCosti | The total cost for transaction 'i' (Sharesi * PricePerSharei). | Currency (e.g., USD) | ≥ 0.01 |
| Total Shares Purchased (TSP) | The sum of shares from all transactions (∑ Sharesi). | Shares | ≥ 1 |
| Total Cost of All Purchases (TCAP) | The sum of the total cost from all transactions (∑ TotalCosti). | Currency (e.g., USD) | ≥ 0.01 |
| Weighted Average Share Price (WASP) | The final calculated average cost per share (TCAP / TSP). | Currency (e.g., USD) | Typically between the min and max PricePerSharei, closer to prices with higher volume. |
Practical Examples (Real-World Use Cases)
The weighted average share price is vital for tracking investment performance and tax implications. Here are a couple of practical scenarios:
Example 1: Adding to a Position
An investor, Sarah, initially bought 50 shares of TechCorp at $100 per share. A month later, she decides to increase her stake and buys another 75 shares at $110 per share.
Inputs:
- Purchase 1: 50 shares @ $100.00/share
- Purchase 2: 75 shares @ $110.00/share
Calculation:
- Total Cost of Purchase 1: 50 shares * $100.00 = $5,000.00
- Total Cost of Purchase 2: 75 shares * $110.00 = $8,250.00
- Total Shares Purchased: 50 + 75 = 125 shares
- Total Cost of All Purchases: $5,000.00 + $8,250.00 = $13,250.00
- Weighted Average Share Price: $13,250.00 / 125 shares = $105.60/share
Interpretation: Sarah's weighted average share price is $105.60. This is the figure she should use for tax purposes if she were to sell some or all of her shares. Notice how it's closer to $100 (where she bought more shares initially) than $110, but higher than $100 due to the second purchase at a higher price.
Example 2: Dollar-Cost Averaging
John is practicing dollar-cost averaging with his investment in a broad-market ETF. He invests a fixed amount every month.
Inputs:
- Month 1: 20 shares @ $45.00/share
- Month 2: 25 shares @ $40.00/share
- Month 3: 15 shares @ $50.00/share
Calculation:
- Total Cost Purchase 1: 20 * $45.00 = $900.00
- Total Cost Purchase 2: 25 * $40.00 = $1,000.00
- Total Cost Purchase 3: 15 * $50.00 = $750.00
- Total Shares Purchased: 20 + 25 + 15 = 60 shares
- Total Cost of All Purchases: $900.00 + $1,000.00 + $750.00 = $2,650.00
- Weighted Average Share Price: $2,650.00 / 60 shares = $44.17/share (rounded)
Interpretation: John's average cost per share over these three months is approximately $44.17. This strategy helps mitigate risk by averaging out purchase prices over time, and the weighted average calculation accurately reflects this.
How to Use This Weighted Average Share Price Calculator
Our calculator is designed for simplicity and accuracy. Follow these steps to determine your weighted average share price:
- Enter Initial Purchase: In the "Purchase 1" fields, input the number of shares you bought and the price you paid per share for your very first transaction of a particular stock.
- Add More Purchases: If you've bought shares of the same stock multiple times, click the "Add Another Purchase" button. New input fields for "Purchase 2," "Purchase 3," and so on, will appear. Enter the shares and price per share for each subsequent transaction.
- Automatic Updates: As you enter or change values, the calculator automatically updates the "Total Shares Purchased," "Total Cost of Purchases," and the main "Weighted Average Share Price" result in real-time.
- Review Intermediate Values: Check the "Total Shares Purchased" and "Total Cost of Purchases" to ensure accuracy. The "Number of Transactions" tells you how many purchase entries you've made.
- Interpret the Primary Result: The large, highlighted "Weighted Average Share Price" is your key metric. This is your effective cost basis per share.
- Examine the Table and Chart: The "Purchase Details Table" shows a breakdown of each transaction entered. The "Cost Distribution Chart" visually represents how much of your total cost is attributed to each purchase, with larger segments indicating purchases made at higher prices or with more shares.
- Reset or Copy: Use the "Reset" button to clear all fields and start over with default values. Use the "Copy Results" button to copy the key figures (primary result, intermediate values, and number of transactions) to your clipboard for easy pasting elsewhere.
Decision-Making Guidance: Your weighted average share price is crucial for deciding when to sell. If you sell shares for more than your weighted average cost basis, you realize a capital gain. If you sell for less, you incur a capital loss. This figure also helps in assessing the performance of your investment strategy.
Key Factors That Affect Weighted Average Share Price Results
While the calculation itself is simple arithmetic, several factors can influence the inputs and your understanding of the weighted average share price:
- Purchase Volume: The number of shares bought in each transaction has the most significant impact. A large purchase at a certain price will "pull" the weighted average closer to that price. Buying 1000 shares at $10 will influence the average far more than buying 10 shares at $100.
- Purchase Price Fluctuations: Naturally, the price per share at which you buy directly impacts the total cost of each transaction. Buying more shares when the price is low will result in a lower overall weighted average cost basis compared to buying the same number of shares when the price is high.
- Frequency of Purchases: How often you add to your position matters. Frequent, smaller purchases (like in dollar-cost averaging) can smooth out price volatility and lead to a more stable weighted average share price over time.
- Transaction Costs (Commissions/Fees): While not always explicitly included in basic calculators, real-world purchases often involve brokerage fees or commissions. These costs should technically be added to the "Total Cost of All Purchases" to get a fully accurate cost basis. Our calculator assumes zero transaction costs for simplicity, but investors should be aware of them.
- Stock Splits and Dividends: Stock splits (e.g., a 2-for-1 split) and certain types of dividends (like stock dividends) adjust the number of shares held and often the price per share. For accurate cost basis tracking, you must adjust your historical purchase records accordingly. For example, after a 2-for-1 split, if you held 100 shares at a $50 weighted average, you now hold 200 shares at a $25 weighted average.
- Currency Exchange Rates (for International Investments): If you are investing in foreign stocks, the exchange rate at the time of each purchase will affect the cost in your home currency. This needs to be factored into the "Price Per Share" and subsequent calculations.
Frequently Asked Questions (FAQ)
A: A simple average price just adds up all the different prices paid and divides by the number of prices. A weighted average share price accounts for the quantity of shares bought at each price, giving more importance (weight) to transactions involving more shares. The weighted average is the accurate figure for cost basis.
A: Yes, for precise tax reporting, you should include all brokerage commissions and fees associated with each purchase. Add these fees to the total cost of each transaction before calculating the weighted average. Our calculator simplifies this by omitting fees, but be sure to add them for official records.
A: When you sell shares, you typically use either the First-In, First-Out (FIFO) method or the specific identification method to determine which shares were sold and their cost basis. If using FIFO, the shares you bought earliest are considered sold first. If using specific identification, you choose which shares to sell. Your remaining shares retain their original weighted average cost basis unless you make new purchases.
A: A stock split (e.g., 2-for-1) doubles the number of shares you own but halves the price per share, keeping the total cost and weighted average share price the same on a per-share basis. For example, if you had 100 shares at $50 ($5000 total), after a 2-for-1 split, you have 200 shares at $25 ($5000 total). The weighted average remains $50.
A: Stock dividends (receiving additional shares instead of cash) increase your total number of shares and decrease your weighted average share price, as the original total cost is now spread over more shares. Cash dividends do not affect your cost basis.
A: Yes, absolutely. The concept of weighted average share price applies equally to Exchange Traded Funds (ETFs) and mutual funds, as long as you are purchasing units or shares of the same fund across multiple transactions at different prices.
A: There's no single "good" number. A lower weighted average share price is generally better, as it means your cost basis is lower, making it easier to achieve a profit when you eventually sell. It reflects successful buying decisions, such as buying during dips or implementing effective dollar-cost averaging.
A: Ideally, you should update it whenever you make a new purchase of the security. Many brokerage platforms automatically track this for you, but using a calculator like this can help you understand the calculation and verify their figures.