Stock Average Calculator 2026

Find your average buy price across several purchases of a share, your profit or loss at today's price, and how many shares to buy to reach a target average.

Your purchases

  1. Buy 1

    Cost: ₹50,000.00

  2. Buy 2

    Cost: ₹40,000.00

Today's price and your target

Set the current price to see your profit or loss today. Set a target to see how many shares at today's price get you there. Set either to 0 to skip it.

₹
₹0₹1,000
₹
₹0₹1,000
Average buy price
₹450.00
200 shares bought for ₹90,000.00
Total shares
200
Total invested
₹90,000.00
Value at today's price
₹70,000.00
Profit / loss today
āˆ’ā‚¹20,000.00
āˆ’22.22%

To reach an average of ₹420.00

Buy 86 more shares at ₹350.00

That costs ₹30,100.00 and brings your average to ₹419.93 on 286 shares.

Average after each buy

Show as
  • Buy 1
    Shares
    100
    Price
    ₹500.00
    Cost
    ₹50,000.00
    Total shares
    100
    Average after this buy
    ₹500.00
  • Buy 2
    Shares
    100
    Price
    ₹400.00
    Cost
    ₹40,000.00
    Total shares
    200
    Average after this buy
    ₹450.00
  • Buy 3Planned
    Shares
    86
    Price
    ₹350.00
    Cost
    ₹30,100.00
    Total shares
    286
    Average after this buy
    ₹419.93

Stock Average Formula

Standard Formula
Average = (q₁ Ɨ p₁ + qā‚‚ Ɨ pā‚‚ + …) Ć· (q₁ + qā‚‚ + …) = C Ć· Q
Live Calculation (Plugging Your Values)
Total cost of all buys (C):₹90,000.00
Total shares bought (Q):200
Substituted Equation:
(100 Ɨ ₹500.00 + 100 Ɨ ₹400.00) Ć· 200 = ₹90,000.00 Ć· 200
Average buy price:₹450.00

Each price counts as many times as the shares you bought at it, so a big buy moves the average more than a small one. A plain average of the prices ignores this and gives the wrong answer.

Shares to buy at today's price P to reach a target average T, starting from Q shares at average A:

n = Q Ɨ (A āˆ’ T) Ć· (T āˆ’ P), rounded up to a whole share

n = 200 Ɨ (₹450.00 āˆ’ ₹420.00) Ć· (₹420.00 āˆ’ ₹350.00) = 85.7143 → 86

About the Stock Average Calculator

If you buy the same share more than once at different prices, your average buy price is the total you paid divided by the total number of shares. This is a weighted average: 100 shares at ₹500 and 300 shares at ₹400 average ₹425, not ₹450, because more of your money went in at ₹400.

The average is your break-even price. Above it, the holding is in profit; below it, in loss. The calculator also works backwards: give it today's price and the average you want, and it tells you how many shares to buy.

How it works

  • Your purchases: the number of shares and the price per share for each buy. Add up to ten.
  • Current market price: today's price, to show what the holding is worth and your profit or loss.
  • Target average: the average you want to reach by buying more at today's price.

Averaging down and averaging up

  • Averaging down is buying more after the price has fallen. It lowers your average, so the stock needs to recover less for you to break even, but it also puts more money into a stock that is falling.
  • Averaging up is buying more after the price has risen. It raises your average.
  • A buy at today's price moves your average towards today's price but never to it or past it. If the share trades at ₹350, no amount of buying brings a ₹450 average down to ₹350.

Your average price is not the cost used for tax

For capital gains on shares held in a demat account, the cost and the holding period are worked out first-in-first-out: the shares you sell are taken to be the oldest ones you bought, at their own price and date. This is section 67(7)(c) of the Income-tax Act, 2025 (earlier section 45(2A) of the 1961 Act), and the Income Tax Department's reporting guidance for share sales uses the same method. So if you bought 100 shares at ₹500 and later 100 at ₹400, then sell 100, the tax is worked out on the ₹500 shares, not on the ₹450 average.

To work out the tax on a sale, use the LTCG calculator or the STCG calculator.

Brokerage and charges

The prices you enter are used as they are. To include brokerage, taxes and other charges in your average, enter the price per share after charges.

Sources: the first-in-first-out rule is from section 67(7)(c) of the Income-tax Act, 2025 as published in the Gazette of India, and the Income Tax Department's reporting guidance for share sales.

How these numbers are checked →

Frequently Asked Questions — Stock Average

How do I calculate the average price of a stock?
Multiply the shares in each buy by its price, add the results, and divide by the total number of shares. 100 shares at ₹500 and 300 shares at ₹400 cost ₹50,000 + ₹1,20,000 = ₹1,70,000 for 400 shares, so the average is ₹1,70,000 Ć· 400 = ₹425. Averaging the two prices (₹450) is wrong, because it ignores that you bought three times as many shares at ₹400.
How many shares should I buy to bring my average down?
Shares to buy = Q Ɨ (A āˆ’ T) Ć· (T āˆ’ P), where Q is the shares you hold, A your average, T the target average and P today's price. Round up to a whole share. With 200 shares at a ₹450 average, today's price ₹350 and a target of ₹420: 200 Ɨ 30 Ć· 70 = 85.7, so you buy 86 shares for ₹30,100 and your average becomes ₹419.93.
Can averaging down bring my average below today's price?
No. Every share you buy at today's price pulls the average towards that price, so the average gets closer to it with each buy but never reaches it. A target must lie between your current average and today's price; anything else is impossible however many shares you buy.
Is my average buy price used to calculate capital gains tax?
No. For shares in a demat account, the cost and holding period are worked out first-in-first-out: the shares sold are taken to be the oldest ones, at their own price and purchase date. This is section 67(7)(c) of the Income-tax Act, 2025 (earlier section 45(2A)). Your average is still the right figure for knowing your break-even price.
Does selling some shares change my average price?
On the average method, no: the shares left over keep the same average. For tax, the shares sold are the oldest ones, so what is left carries the price of your later buys. If you bought 100 at ₹500 and then 100 at ₹400 and sell 100, the 100 left are the ₹400 shares for tax, even though the average of the whole holding was ₹450.
Does the average include brokerage and other charges?
Only if you include them. The calculator uses the prices you enter. To fold in brokerage, taxes and other charges, enter the price per share after charges for each buy.
Is averaging down a good strategy?
The calculator shows the arithmetic, not whether the stock will recover. Averaging down lowers your break-even price, but it also increases how much of your money is in one share that has fallen. It makes sense only if your reason for owning the share still holds.
šŸ’»
Free Developer REST API AvailableBuilding a fintech app or blog? Integrate our free, open-CORS JSON REST APIs for high performance calculations.
View API Docs →