How the average price works
Your average buy price is the total money you spent divided by the total shares you hold. It is a weighted average, so a bigger buy pulls the average harder than a small one.
Average price = (price₁ × qty₁ + price₂ × qty₂ + …) ÷ (qty₁ + qty₂ + …)
Say you bought 10 shares at ₹1,200 and later 10 more at ₹1,050. You spent ₹22,500 on 20 shares, so your average is ₹1,125. If the stock now trades at ₹1,000, you are down ₹2,500, or 11.1%.
Brokerage and taxes are not part of this number. Your broker’s app may show a slightly different average if it adds charges or follows a different rule for partial sells.
Shares needed to reach a target average
The second part of the calculator answers the question most people actually have: “How many shares do I need to buy now to bring my average down to ₹X?”
Shares to buy = current shares × (current average − target) ÷ (target − current price)
With 20 shares at ₹1,125 and the price at ₹1,000, reaching an average of ₹1,080 takes 12 more shares (₹12,000). Your new average is ₹1,078.13 on 32 shares. Reaching ₹1,010 would take 230 shares, and ₹1,000 is impossible, because you can only get close to the current price, never reach it.
Before you average down
Averaging down lowers the price the stock has to recover to, but it also raises how much money you have in a stock that is already falling. Ask two questions before you add:
- Has anything changed in the business, or has only the price changed? Results, filings and management commentary matter more than the chart here.
- If the stock falls another 20%, how much of your portfolio does this one position become?
We wrote a longer piece on when averaging down helps and when it hurts.
Frequently asked questions
Does the average change when I sell some shares?
No. Selling part of a holding does not change the average price of the shares you still hold. It only changes the quantity. The profit or loss on the shares you sold is worked out against that average.
Should I include brokerage in my average?
For tax, brokerage paid on purchase is part of your cost, so the capital gains calculator lets you add it. For trading decisions most people use the plain average, which is what this calculator shows.
Why does the calculator say my target is impossible?
To bring an average down, you must buy below the current average, and the new average always stays above the price you buy at. A target below today’s price cannot be reached, and a target equal to it would need infinite shares.
Can I use it for averaging up?
Yes. If the stock is above your average and you buy more, enter a target between your average and the current price, and the calculator tells you how many shares take you there.
Related calculators
This calculator gives estimates for education. It is not investment, trading or tax advice. Your broker’s contract note and your chartered accountant are the final word.