Averaging a share price, up and down
How the average buy price of a share is worked out, what averaging down does and does not fix, the formula for a target average, and how splits, bonuses and tax treat it.
Last reviewed · 1,311 words
In short
- The average price is total cost over total shares: 100 at ₹520, 50 at ₹480 and 50 at ₹455 average ₹493.75, not the ₹485.00 a plain average of the prices gives.
- Averaging down lowers the price at which the whole position breaks even. It does not reduce the loss already made.
- Shares needed for a target average = shares held × (average − target) ÷ (target − buying price), and the cost climbs steeply as the target nears the market price.
- A split or bonus multiplies the shares and divides the average; for tax, bonus shares carry a cost of nil.
- Capital gains are worked out lot by lot, first in first out, not from the average.
Anyone who buys the same share more than once ends up with several purchase prices and one question: what did the holding actually cost per share? The answer decides the price at which the position is in profit, and it is easy to get wrong.
Total cost over total shares
The average price of a holding is the total amount paid divided by the total number of shares. Three purchases:
| Purchase | Shares | Price | Cost | Share of holding |
|---|---|---|---|---|
| 1st buy | 100 | ₹520.00 | ₹52,000 | 50.0% |
| 2nd buy | 50 | ₹480.00 | ₹24,000 | 25.0% |
| 3rd buy | 50 | ₹455.00 | ₹22,750 | 25.0% |
The holding cost ₹98,750 for 200 shares, so the average is ₹493.75.
The tempting shortcut is to average the three prices: (₹520 + ₹480 + ₹455) ÷ 3 = ₹485.00. That treats each purchase as equally important, when the first bought twice as many shares as either of the others. The weighted figure is higher because more of the money went in at the higher price.
At a market price of ₹500 the holding is worth ₹1,00,000, a gain of ₹1,250. Against the plain average the same position would appear to be up by ₹3,000, which is the kind of error that leads someone to sell expecting a profit that is not there.
Averaging down
Averaging down means buying more of a share after its price has fallen, so that the average cost of the whole holding drops. It is one of the most common things investors do and one of the most misunderstood.
Take 100 shares bought at ₹520, now trading at ₹450. The position is ₹7,000 down. Buying 75 shares more at ₹450 costs ₹33,750 and brings the average to ₹490.00.
Two things have changed. The holding now needs the price to rise to ₹490 rather than ₹520 to break even — a rise of 8.89% from ₹450 instead of 15.56%. And there are now 175 shares exposed to the next move rather than 100.
One thing has not changed. The ₹7,000 loss is still there: 175 shares worth ₹450 each are ₹78,750, against ₹85,750 paid for them. Averaging down moves the break-even point, not the result so far. If the price keeps falling, the larger holding loses faster than the original one would have.
That is why the decision to buy more should be made on the same grounds as a fresh purchase — whether the share is worth owning at ₹450 — rather than as a way to make an earlier purchase look better.
Working out the shares for a target average
To bring an average of A on Q shares to a target T by buying at price P, the new average must equal the target:
(Q × A + x × P) ÷ (Q + x) = T
Solving for x, the shares to buy:
x = Q × (A − T) ÷ (T − P)
The answer is only positive when the target lies between the current average and the buying price. A target below the market price cannot be reached by buying at that price, because no quantity of ₹450 shares can drag the average under ₹450.
For 100 shares at ₹520 with the price at ₹450, here is what each target takes:
| Target average | Shares to buy | Cost |
|---|---|---|
| ₹510.00 | 17 shares | ₹7,650 |
| ₹500.00 | 40 shares | ₹18,000 |
| ₹490.00 | 75 shares | ₹33,750 |
| ₹480.00 | 134 shares | ₹60,300 |
| ₹470.00 | 250 shares | ₹1,12,500 |
| ₹460.00 | 600 shares | ₹2,70,000 |
The cost does not rise evenly. Each step towards the market price needs more shares than the last, because every new share pulls the average less as the holding grows. The last few rupees of a target are by far the most expensive, which is worth seeing before committing to one.
The calculator rounds the answer up to whole shares, so the new average can land slightly past the target rather than short of it.
Averaging up
The same arithmetic works in the other direction. Buying more of a share that has risen raises the average cost, and investors who add to winning positions do exactly that.
Holding 100 shares at ₹450 with the price at ₹520, bringing the average to ₹480 takes 75 shares, costing ₹39,000. The formula is the same; both brackets simply change sign.
Averaging up is usually described less anxiously than averaging down, but it carries the mirror-image risk: the break-even point rises, so a fall back towards the earlier price now costs money on a larger holding.
Charges that belong in the average
Every purchase carries costs on top of the share price: brokerage, securities transaction tax, exchange transaction charges, the SEBI turnover fee, GST on the brokerage and exchange charges, and stamp duty. Each contract note lists them.
For an exact average, add each purchase's charges to its cost before dividing. On small, frequent purchases the charges can move the average by more than the difference between two buying prices, and a calculation that leaves them out will show a profit a little earlier than the account statement does.
Splits, bonuses and rights issues
Corporate actions change the number of shares without any money changing hands, and the average has to change with them.
In a split, each share becomes several. If each share is split into five, 200 shares at ₹493.75 become 1,000 shares at ₹98.75; the total cost is unchanged.
A bonus issue adds free shares. After a 1:1 bonus — one new share for each share held — the same holding becomes 400 shares, and the cost per share of the whole holding halves to ₹246.88. For income tax, though, bonus shares are treated as having cost nothing: the original 200 keep their ₹493.75 cost, and the bonus 200 are counted at nil when they are sold.
A rights issue is a purchase at the issue price, and it goes into the average like any other purchase.
Tax is worked out lot by lot
The average is the right figure for judging a position and the wrong one for tax. For shares held in demat form, each lot keeps its own cost and purchase date, and shares are treated as sold first in, first out: the earliest lot bought is the first one sold.
Gains on listed shares held for more than twelve months are long term, taxed at 12.5% on gains above ₹1.25 lakh in a financial year; gains on shares held for twelve months or less are short term, taxed at 20%. Selling part of an averaged-down holding therefore realises the gain or loss on the oldest, most expensive lot first — which can mean booking a loss even when the sale price is above the average.
After a partial sale
Selling part of a holding raises a question the average alone cannot answer: what did the shares that are left cost?
Take the three purchases above and sell 100 shares at ₹500. Against the average of ₹493.75, the sale looks like a small profit. First in, first out says otherwise: the 100 shares sold are the first lot, bought at ₹520, so the sale books a loss of ₹2,000. The 100 shares that remain are the ₹480 and ₹455 lots, and their cost is ₹467.50 a share.
Broker apps do not all show this the same way. Some keep showing the average of the original holding, some recalculate it from the lots that remain, and some fold charges in. When the app's figure and your own differ, the contract notes and the capital gains statement are the records that count.
What this calculator assumes
- The average is total cost over total shares, using the price entered for each purchase.
- Brokerage, taxes and other charges are not added unless they are included in the prices entered.
- Shares to buy for a target are rounded up to whole shares.
- Corporate actions such as splits and bonuses must already be reflected in the quantities and prices entered.
- Gain or loss is shown against today's price entered, before any charges or tax on selling.