Tax-Loss Harvesting: How Capital Losses Reduce Tax on Equity Gains
Tax-loss harvesting means selling investments that stand at a loss so that the loss is set off against capital gains realised in the same tax year. The rules below are those of the Income-tax Act, 2025 for tax year 2026-27.
Tax on equity gains in tax year 2026-27
Short-term gains on listed equity shares and equity-oriented fund units held for 12 months or less: 20% (section 196(1)).
Long-term gains on such investments held for more than 12 months: 12.5% on the amount above Rs 1,25,000 in the tax year (section 198(2)).
Both carry the 4% cess. Surcharge on gains taxed under sections 196, 197 and 198 is capped at 15% under both regimes (Finance Act, 2026).
Example: Rs 5,00,000 of equity long-term gains, of which Rs 3,75,000 is above the Rs 1,25,000 exemption, carries tax of Rs 46,875 plus Rs 1,875 cess, Rs 48,750. Rs 2,00,000 of short-term gains carries Rs 40,000 plus Rs 1,600 cess, Rs 41,600.
Set-off and carry-forward rules
Same year: a short-term capital loss is set off against any capital gain; a long-term capital loss only against long-term capital gains (section 108(2)). A capital loss is not set off against income under any other head (section 109(2)).
Later years: a loss not set off is carried forward and set off on the same pattern, a short-term loss against any capital gain and a long-term loss only against long-term gains (section 111(1)). No loss is carried forward for more than eight tax years after the tax year for which it was first computed (section 111(2)).
Return: no loss is carried forward under section 111 unless it was determined in pursuance of a return filed under section 263(1) (section 121, the old 80).
Gain harvesting and the Rs 1,25,000 exemption
Long-term gains on listed equity up to Rs 1,25,000 in a tax year carry no tax under section 198(2). Selling a holding with an unrealised long-term gain within that amount and buying it back gives the new holding a cost equal to the repurchase price, so the gain computed on a later sale is smaller. The repurchased holding starts a new holding period. This calculator does not model gain harvesting.
Worked example, tax year 2026-27
Gains realised: long-term Rs 4,00,000 and short-term Rs 80,000. Unrealised losses: Rs 60,000 on a share held for 8 months (short-term) and Rs 90,000 on a share held for 14 months (long-term).
Without selling the loss-making shares: long-term tax 12.5% of (Rs 4,00,000 minus Rs 1,25,000) = Rs 34,375; short-term tax 20% of Rs 80,000 = Rs 16,000. Total Rs 50,375, or Rs 52,390 with the 4% cess.
After selling both: the short-term loss of Rs 60,000 is set off against short-term gains, leaving Rs 20,000 taxed at 20% = Rs 4,000. The long-term loss of Rs 90,000 is set off against long-term gains, leaving Rs 3,10,000; after the Rs 1,25,000 exemption, Rs 1,85,000 is taxed at 12.5% = Rs 23,125. Total Rs 27,125, or Rs 28,210 with the cess.
The tax falls by Rs 24,180. If the sales cost Rs 2,000 in charges, the net change is Rs 22,180. The calculator takes one type of loss at a time and shows tax before the cess.
Disclaimer
This calculator applies the rates in sections 196(1) and 198(2) and the set-off rules in sections 108 and 111 of the Income-tax Act, 2025 for tax year 2026-27. It shows tax before the 4% cess and without surcharge, treats the gains and loss entered as the only capital gains for the year, and applies the transaction cost percentage to the value sold and to the same value bought back. The Equity LTCG Calculator computes the tax on long-term equity gains.