Average Price of Stock Calculator
Calculate Your Average Stock Price
Enter the number of shares and price per share for each purchase you made.
What is the Average Price of Stock?
The average price of stock, also known as the average cost basis per share, is the weighted average price you paid for all the shares of a particular stock you currently own. When you buy shares of the same stock at different prices over time, your average price per share is not simply the average of the purchase prices, but rather the total cost of all shares divided by the total number of shares acquired. Calculating the average price of stock is crucial for investors to understand their breakeven point and to calculate capital gains or losses when they sell their shares.
Anyone who buys shares of the same stock multiple times at different price points should use the average price of stock calculation. This includes long-term investors, day traders, and those participating in dividend reinvestment plans (DRIPs). A common misconception is that the last price paid is the most important; however, the average price of stock gives a truer picture of your investment’s cost basis.
Average Price of Stock Formula and Mathematical Explanation
The formula to calculate the average price of stock is quite straightforward:
Average Price per Share = Total Cost of All Shares / Total Number of Shares
Where:
- Total Cost of All Shares = (Number of Shares in Purchase 1 * Price per Share in Purchase 1) + (Number of Shares in Purchase 2 * Price per Share in Purchase 2) + … + (Number of Shares in Purchase N * Price per Share in Purchase N) + Total Commissions (if any). Our calculator above does not include commissions by default for simplicity, but you can add them to the cost if you track them separately.
- Total Number of Shares = Number of Shares in Purchase 1 + Number of Shares in Purchase 2 + … + Number of Shares in Purchase N
Let’s break down the variables:
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Si | Number of shares bought in purchase ‘i’ | Shares | 0.001 to millions |
| Pi | Price per share in purchase ‘i’ | Currency (e.g., $) | 0.01 to thousands |
| Ci | Cost of purchase ‘i’ (Si * Pi) | Currency (e.g., $) | Varies |
| Total Cost | Sum of all Ci | Currency (e.g., $) | Varies |
| Total Shares | Sum of all Si | Shares | Varies |
| Average Price | Total Cost / Total Shares | Currency (e.g., $) | Varies |
By calculating the average price of stock, you get a single cost basis figure per share, which simplifies profit/loss calculations.
Practical Examples (Real-World Use Cases)
Let’s look at how to find the average price of stock with examples:
Example 1: Buying Shares Over Time
Suppose you make the following purchases of Company XYZ stock:
- Purchase 1: 100 shares at $10 per share (Cost = $1000)
- Purchase 2: 50 shares at $12 per share (Cost = $600)
- Purchase 3: 150 shares at $9 per share (Cost = $1350)
Total Cost = $1000 + $600 + $1350 = $2950
Total Shares = 100 + 50 + 150 = 300 shares
Average Price of Stock = $2950 / 300 shares = $9.83 per share (approximately).
Your average cost basis is $9.83 per share. If you sell shares above this price, you make a profit per share.
Example 2: Including Commissions (Manual Adjustment)
Imagine:
- Purchase 1: 20 shares at $50 per share (Cost = $1000) + $10 commission (Total Cost = $1010)
- Purchase 2: 30 shares at $45 per share (Cost = $1350) + $10 commission (Total Cost = $1360)
Total Cost (including commissions) = $1010 + $1360 = $2370
Total Shares = 20 + 30 = 50 shares
Average Price of Stock = $2370 / 50 shares = $47.40 per share.
Commissions increase your average cost per share.
How to Use This Average Price of Stock Calculator
Using our average price of stock calculator is easy:
- Enter Purchases: The calculator starts with two rows for your first two purchases. For each purchase, enter the “Number of Shares” you bought and the “Price per Share ($)” you paid.
- Add More Purchases: If you made more than two purchases, click the “Add Another Purchase” button. A new row will appear for you to enter the details of the additional purchase.
- Remove Purchases: If you add a row by mistake or want to remove one, click the “Remove” button next to that row (available for rows beyond the first two).
- Real-time Results: As you enter or change the values, the calculator automatically updates the “Average Price per Share,” “Total Cost,” “Total Shares,” and “Number of Purchases” in the “Calculation Results” section. It also updates the summary table and cost distribution chart.
- Reset: Click “Reset” to clear all fields and return to the initial two purchase rows with default values.
- Read Results: The “Average Price per Share” is your primary result. The intermediate results show the total investment and shares. The table and chart give a visual breakdown.
- Copy Results: Click “Copy Results” to copy the main results and assumptions to your clipboard.
The calculated average price of stock is your cost basis per share. You can use this to see if your stock is currently trading above or below your average cost.
Key Factors That Affect Average Price of Stock Results
Several factors influence the calculated average price of stock:
- Purchase Prices: The most direct factor. Buying more shares at lower prices will decrease your average cost, while buying at higher prices will increase it.
- Number of Shares per Purchase: Buying a larger number of shares at a particular price gives that price more weight in the average calculation.
- Commissions and Fees: Brokerage commissions and other transaction fees add to the total cost of your shares, thereby increasing your average price of stock. Our calculator doesn’t have a dedicated field, but you can add fees to the total cost manually or mentally adjust.
- Dividend Reinvestment (DRIPs): If you reinvest dividends, you are essentially buying more shares (often fractional) at the stock’s price when the dividend is paid. These reinvestments are new purchases and will affect your average cost.
- Stock Splits: A stock split changes the number of shares you own and the price per share proportionally, but it does *not* change your total cost basis. However, it *does* change your average price per share because the number of shares changes. For example, a 2-for-1 split doubles your shares and halves your average cost per share (if your average was $50 before, it becomes $25 after). You’d need to update your share numbers after a split.
- Wash Sales: In some tax jurisdictions, if you sell a stock at a loss and buy it back within a short period (e.g., 30 days), the loss may be disallowed for tax purposes, and the disallowed loss is added to the cost basis of the new shares, increasing the average price of stock.
Understanding these factors helps in accurately calculating and interpreting your average price of stock.
Frequently Asked Questions (FAQ)
- What is the average price of stock used for?
- The average price of stock is primarily used to determine your cost basis per share, which is essential for calculating capital gains or losses when you sell the shares for tax purposes and for evaluating investment performance.
- Why is it important to calculate the average price of stock?
- It gives you the true breakeven price per share, considering all your purchases at different prices. Without knowing the average price of stock, it’s hard to assess profitability accurately.
- Does the average price of stock change if I sell some shares?
- No, selling shares does not change the average cost basis per share of the shares you *continue* to hold. However, when you sell, you use the average price to calculate the gain or loss on the shares sold.
- What if I buy shares at different brokers?
- You should still combine all purchases of the same stock, regardless of the broker, to calculate the overall average price of stock for your entire holding of that stock.
- How do commissions affect the average price of stock?
- Commissions increase the total cost of your investment, which in turn increases your average price of stock per share.
- What about stock splits and the average price?
- A stock split changes your number of shares and thus your average price per share. For a 2-for-1 split, double your shares and halve your average price. For a 1-for-2 reverse split, halve your shares and double your average price.
- Is “average price” the same as “cost basis”?
- The average price per share is your cost basis per share when using the average cost method. The total cost basis is the average price multiplied by the number of shares owned.
- Can I use this calculator for mutual funds or ETFs?
- Yes, the principle of calculating the average price of stock (or unit) is the same for mutual funds and ETFs where you make multiple purchases over time, especially with reinvested dividends or distributions.