Investing
Stock Average Price Calculator
Add each purchase to get your average cost per share and your profit or loss, or switch modes to see how many shares you would need to buy at today’s price to reach a target average.
Stock average calculator
- Total shares
- 200
- Total cost
- 9,000
- Average price
- 45
Average price = total cost ÷ total shares. Commissions and fees are not included. Averaging down lowers your average but also adds to a losing position — decide your stop and position size first.
The calculator runs in your browser. Nothing you type is saved or sent anywhere.
Educational tool, not financial advice. The results only reflect the numbers you enter and say nothing about future returns. Trading involves a substantial risk of loss.
How to use the stock average calculator
- In the “Average price” mode, enter the shares and the price of each purchase. Add a row for each buy, up to ten.
- Enter the current price if you want to see the market value and the profit or loss.
- In the “Reach a target average” mode, enter the shares you own, your average price, the new buy price and the average you want.
- Read the shares to buy and the cost of the new purchase. If the target is not between your average and the new price, it cannot be reached.
The average price formula
Your average price is the total you paid divided by the total number of shares. A new purchase at a lower price pulls the average down in proportion to its size, which is why each step of averaging down needs more shares than the last to move the average by the same amount.
To reach a target average after buying at a new price, the shares to buy are the shares you own times the gap between your average and the target, divided by the gap between the target and the new price.
Average price = total cost ÷ total shares
Total cost = sum of (shares × price) for every purchase
Shares to buy = owned × (average − target) ÷ (target − new price)
Worked example
You bought 100 shares at $50, and the stock now trades at $40.
- Buy 100 more at $40: $5,000 + $4,000 = $9,000 for 200 shares, an average of $45.00.
- To bring the average to $42 instead: 100 × ($50 − $42) ÷ ($42 − $40) = 400 shares, or $16,000 more.
- You would then hold 500 shares worth $20,000 at $40, with $21,000 invested: a much bigger position in a stock that has been falling.
Averaging down lowers the price you need to break even, but it also adds to a losing position. Set your stop and your maximum position size before you add.
Questions
Is averaging down a good idea?
It can fit a long-term plan for a diversified fund bought on a schedule. It is risky for a single stock that keeps falling, because each purchase adds to a loss. Decide in advance how much you will hold in total and where you are wrong. More in averaging down.
Does the calculator include commissions?
No. Add fees to the purchase price if you want them in the average: $10 of fees on 100 shares adds $0.10 a share.
How is this different from dollar-cost averaging?
Dollar-cost averaging means investing a fixed amount on a schedule, whatever the price. Averaging down means buying more because the price fell. The arithmetic of the average is the same; the decision behind it is not.
UpTickFlow is our product. These guides are education, not financial advice. Trading involves a substantial risk of loss.