Buying a stock multiple times at different prices can make it difficult to know your real breakeven point. This Stock Average Calculator helps you calculate your exact weighted average share price, total investment, profit/loss, and even estimate how many additional shares you need to buy to reach a target average cost.
Tell us your target average and the price you’d buy more at – we’ll tell you exactly how many more shares you need.
This calculator shows your average cost basis for tracking breakeven and portfolio decisions. Note that India’s tax rules for capital gains use FIFO (First In, First Out), not average cost – your actual taxable gain when you sell may differ from what average cost alone suggests.
Why a Simple Average Gets This Wrong
If you buy shares in two batches at Rs 500 and Rs 400, it’s tempting to average those two numbers and call it Rs 450. That’s wrong the moment your quantities differ between the two purchases. Buy 10 shares at Rs 500 and 90 shares at Rs 400, and your true average cost is Rs 410 – much closer to Rs 400, because that’s where the bulk of your money actually went. A weighted average gives more influence to purchases with more shares, exactly reflecting how your capital was actually deployed.
The Formula
Weighted Average Price = (Quantity 1 × Price 1 + Quantity 2 × Price 2 + … + Quantity N × Price N) ÷ (Quantity 1 + Quantity 2 + … + Quantity N). In plain terms: total money spent across every purchase, divided by total shares you now hold. This single number is your true cost basis and your real breakeven point – the stock needs to trade above this average, not above your first purchase price, before you’re genuinely in profit.
Simple Average vs Weighted Average – A Worked Comparison
| Purchase | Quantity | Price |
|---|---|---|
| Buy 1 | 60 | Rs 3,800 |
| Buy 2 | 40 | Rs 3,200 |
Simple average of the two prices: (3,800 + 3,200) ÷ 2 = Rs 3,500. Correct weighted average: (60 × 3,800 + 40 × 3,200) ÷ 100 = (2,28,000 + 1,28,000) ÷ 100 = Rs 3,560. The simple average understates the real cost here because it ignores that more shares were bought at the higher price – the two numbers only match by coincidence when every purchase has an identical quantity.
Averaging Down vs Averaging Up
Averaging down means buying more shares after the price has fallen, which pulls your average cost lower and reduces the recovery the stock needs to make before you’re back in profit. Averaging up means buying more after the price has risen, which pushes your average higher. Averaging down is the far more commonly discussed strategy, since it can meaningfully improve your breakeven point during a market dip – but it only makes sense if you still believe in the stock’s fundamentals. Averaging down purely because a price has fallen, without reassessing why, is one of the more common mistakes retail investors make.
How the “Reach My Target Average” Tool Works
This solves a genuinely useful question: if you’re holding a stock at a loss and considering buying more to lower your average, exactly how many additional shares would you need? Enter the average price you’re aiming for and the price you’d buy more at, and the calculator works backward using the same weighted average formula to tell you the precise additional quantity required. This turns a vague “maybe I’ll buy some more” into an exact number, so you can decide if the capital required is actually worth committing.
Average Cost Is for Your Analysis – FIFO Is for Your Taxes
This is a genuinely important distinction. When you actually sell shares in India, capital gains tax is calculated using FIFO (First In, First Out) – meaning your earliest purchased shares are treated as the ones you’re selling first, regardless of which specific lot you think of as being sold. Your weighted average cost is extremely useful for understanding your true breakeven and overall portfolio performance, but it is not what the tax rules use to calculate your actual capital gains. If you bought 100 shares at Rs 100 and later 100 more at Rs 80, and you sell 100 shares at Rs 95, FIFO treats those as coming from your first Rs 100 lot – a loss for tax purposes – even though your overall average cost of Rs 90 would suggest a profit.
The Real Risk of Averaging Down Repeatedly
Each time you average down, you’re committing more capital to a stock that’s already fallen – and if it keeps falling, your position can quietly grow into a disproportionate share of your total portfolio. Professional investors commonly cap any single stock at 5% to 10% of total portfolio value specifically to avoid this trap. Before averaging down again, it’s worth asking honestly whether the stock’s fundamentals genuinely justify further conviction, or whether you’re simply anchoring to your original entry price and hoping for a recovery.
Frequently Asked Questions (FAQs)
Ans. No. Your actual average buy price is a weighted average, not a simple average. The calculation gives more importance to purchases where you bought a larger number of shares. A simple average only works when every purchase contains exactly the same quantity of shares. In all other situations, the weighted average reflects your true cost per share.
Ans. Averaging down means purchasing additional shares after the stock price has fallen below your existing average cost. This reduces your overall average purchase price and lowers your breakeven level. However, it should only be considered when the company’s fundamentals remain strong. Buying more shares solely because the price has dropped can increase losses if the stock continues to decline.
Ans. You can use the calculator’s Target Average feature. Simply enter your desired average price and the price at which you plan to buy additional shares. The calculator will determine the exact number of shares required to achieve that target average, helping you estimate the additional capital needed before making a decision.
Ans. No. In India, capital gains are generally calculated using the FIFO (First In, First Out) method. This means the shares purchased earliest are treated as sold first, regardless of your overall average purchase price. Your weighted average is useful for tracking performance and breakeven levels, but FIFO determines the taxable gain or loss on sale.
Ans. Yes. For the most accurate cost calculation, all acquisition-related expenses such as brokerage, transaction charges, stamp duty, and other applicable costs should be included. These expenses increase your effective purchase cost and can slightly affect your actual breakeven price.
Ans. Yes. Once you know your weighted average cost, compare it with the current market price (CMP). If the CMP is higher than your average price, you are in profit. If it is lower, you are currently holding an unrealized loss. The difference multiplied by the number of shares held gives your total unrealized profit or loss.
Ans. There is no universal rule, but many investors avoid allocating an excessively large portion of their portfolio to a single stock. Diversification helps reduce risk because poor performance in one stock has a smaller impact on the overall portfolio. The appropriate allocation depends on your risk tolerance, investment strategy, and financial goals.
Ans. Yes. The same weighted-average principle applies to mutual funds, ETFs, and SIP investments. Every purchase is treated as a separate transaction, and the average cost is calculated by dividing the total amount invested by the total units held. This helps investors track their overall acquisition cost across multiple investments.
Ans. Selling shares does not automatically change the average cost of the remaining shares under the weighted-average method used for portfolio tracking. However, your total holding quantity decreases, and tax calculations may follow FIFO rules. Therefore, portfolio averages and tax calculations can sometimes produce different results.
Ans. Not necessarily. Averaging down lowers your average cost, but it also increases your investment in the same stock. Before buying more shares, investors should evaluate the company’s financial strength, growth prospects, valuation, and the reason for the price decline. A lower price alone is not sufficient justification for increasing exposure.

Tabassum is a government document researcher and writer with over 5 years of experience exclusively dedicated to tracking and simplifying Central and State Government document processes across India. She has researched and published detailed guides on 100+ government documents and certificates – including Aadhaar Card, PAN Card, Ration Card, Domicile Certificate, and Birth Certificate – covering all states and the Central Government, helping lakhs of Indian citizens successfully complete their paperwork in simple, easy-to-understand language.