Stock Average Calculator
Calculate your average stock price across multiple buys. Add brokerage, see profit or loss against a current price, and plan how to average down to a target.
https://hexacalculator.com/calculators/finance/corporate-finance/stock-average-calculator
Finance
Corporate Finance
Stock Average Calculator
Calculate your average stock price across multiple buys. Add brokerage, see profit or loss against a current price, and plan how to average down to a target.
Stock Average Calculator
Your purchases
Add more purchases (up to five)
Reveal three more buy lots for positions you scaled into over time.
Enter the shares and price for each purchase. The calculator blends them into your average cost per share.
Add detail (optional)
Include brokerage and charges
Fold total fees into your cost basis for a truer average.
Add a current or sell price
See your position value, profit or loss, and break-even price.
Plan a target average
Work out how many shares to buy to move your average to a target.
The average share price calculator works out the average cost per share after you have bought the same stock multiple times in different transactions. By entering the number of shares and the price for each transaction, it will show the average cost per share, total shares held and total amount invested. An additional option allows for broker fees to be factored in as well as a profit or loss statement based on the current price. It also calculates how many shares you need to buy to reach your target average cost.
What is the average stock price?
The average cost per share is the single price used to represent a position that was built up through multiple purchases at different prices. Most investors don't buy stocks all in one go; they often build their positions slowly over weeks or months, so the actual costs will fall somewhere between the highest and lowest price paid.
This calculated value is your cost basis. It's important to know before you make further purchases or sell shares as it affects your gain/loss calculations and determines whether you realize a profit or loss.
How to use this calculator:
First enter the number of shares and price per share for your first purchase, followed by details for subsequent transactions. The average cost per share will be updated in real time with each entry. If you are building up your position over several transactions, you can add further purchases, with a maximum of five transactions recorded.
The remaining requirements can be optionally covered by additional features. By taking into account brokerage fees and other costs, you will get a more accurate calculation of the average total cost including fees. When adding in the current or selling price, you can determine the value of your held shares, profit or loss, as well as the price that must be reached to break even. To set a target average price and lower it to a desired level, you can calculate how many shares need to be purchased at what price.
Formula for calculating average share price:
The average share price is the value obtained by dividing the total spend by the total number of shares purchased.
For example, let's say you bought 10 shares at $50 each and later bought another 15 shares at $40 each. The cost of the first purchase was $500 and the cost of the second purchase was $600, so your total expenditure is $1,100 and you own a total of 25 shares.
As the later purchase price was lower, the average fell from 50 to 44. The following table shows what factors are included in the calculation:
Input | Meaning | Example |
|---|---|---|
Shares (buy 1) | Shares in the first purchase | 10 |
Price (buy 1) | Price per share, first purchase | 50 |
Shares (buy 2) | Shares in the second purchase | 15 |
Price (buy 2) | Price per share, second purchase | 40 |
Total shares | Shares added together | 25 |
Average cost | Total spent divided by total shares | 44.00 |
Buying on dips and buying on rallies.
Buying back at a decline allows additional shares to be purchased for less than the current average price, lowering the cost per share. Investors who remain bullish on a stock even after it has declined can use this method to lower their break-even point. However, it is important to carefully consider why you are buying back as this will commit additional capital into a position that may not be favorable.
Buying more when the price is going up does the opposite. If you buy more shares while the share price is rising, your average cost will go up. However, it may make sense to keep doing this if the performance of the shares you already own has been good and you want to continue benefiting from those profitable shares. In both cases, this calculator shows you what your new average cost would be before you decide, so there's no need for guesswork.
Why average cost is important:
The average cost is the point at which gains and losses are equalized. If the stock is sold above this value, a profit will be made; if it is sold below, a loss will be incurred. The broker's fees and other costs are also part of the actual cost of holding the shares and raise that line. Therefore these are included in the options for calculating the fees.
Knowing this value helps to have realistic expectations. A high average cost shows how much the price must rise for you to break even again. A low average cost shows how much room there is before a drop in price turns profits into losses.
Tips for calculating the exact average price:
Please use the actual price paid for each transaction rather than the desired price or rounded values. To avoid skewing the average price, all purchases of your held shares must be accounted for. If fees are significant, include them as well. This is especially important with small transactions where fixed fees can make up a large portion of the actual cost.
This calculator is for general educational and planning purposes only and does not constitute financial advice. As stock prices change, past purchases are no guarantee of future returns. Please consult a qualified professional before making any investment decisions.
Frequently asked questions
- What is a stock average calculator?
This is a calculator to find the average price after stocks have been purchased multiple times at different prices. By entering in the number of shares and the price for each purchase, it will display the average cost per share, total shares held, and amount invested.
- How is average price calculated?
For each purchase, multiply the number of shares by their price and then add those amounts together before dividing that result by the total number of shares. For example, if you purchased 10 shares at $50 per share and another 15 shares at $40 per share, your total cost would be $1,100, your total number of shares would be 25, and your average price would be $44.
- What does 'buy on dips' mean?
Buying on dips means buying additional shares at a price below the current average to lower your average cost per share and break-even point. This strategy only makes sense if you plan to hold the stock for longer even when it is trading at lower prices.
- Are broker fees included in the average price?
By default the average price is calculated based on the stock price only. If you enable the option for fees, then the calculator will take into account the sum of the brokerage and other charges that you have paid when calculating your average price so it reflects the actual cost of your holdings.
- How can I lower my average share price?
Buy additional shares at a price below the current average cost. The Target Price Calculator can help you figure out exactly how many shares and how much money you need to achieve your desired average cost.
Related calculators






Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.
References
- MarketBeat: Stock Average Calculator
Explains average cost per share and the average up or down strategy.
- Investopedia: Averaging Down
Definition, mechanics, and trade-offs of averaging down a position.
- Investopedia: Cost Basis
How cost basis is calculated and why it matters for investors.