India Tax Loss Harvesting and LTCG Exemption Planner

Type your holdings with purchase dates, cost and today's price, add the gains you have already booked, and the planner picks the losses to book and the long-term gains to realise within the ₹1.25 lakh limit, with the tax saved now and later.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter booked gains

    Type the short- and long-term gains and losses you have already realised this financial year.

  2. 2
    Set the date and costs

    Choose the planned sale date and the trading cost percentage.

  3. 3
    List your holdings

    Add each lot with purchase date, units, cost and today's price, or import a CSV from your broker statement.

  4. 4
    Read the plan

    See which holdings to sell, how many units, and the tax before and after.

  5. 5
    Check carry-forward

    Note any losses left to carry forward and file your return on time.

  6. 6
    Save and compare

    Save scenarios with different prices or dates and export the plan as CSV or PDF.

About this tool

Every year the first ₹1.25 lakh of long-term gains on listed shares and equity mutual funds is free of tax under section 112A. Unused, that exemption is lost on 31 March: it cannot be carried to the next year. Many investors therefore sell long-term holdings with gains just before the year ends and buy them back the same day, so the gain is realised tax-free and the purchase cost is reset at today's price. The same review is a chance to sell holdings that are showing a loss, because a short-term loss can wipe out short-term gains taxed at 20% and a long-term loss can reduce long-term gains taxed at 12.5%. This planner does both jobs. It reads your holdings and the gains and losses already booked in the year, applies the set-off rules (short-term loss against short-term or long-term gains, long-term loss only against long-term gains), books only the losses that save more tax than the trading costs, then fills what is left of the ₹1.25 lakh exemption with the long-term gains that need the fewest units. It shows the tax before and after, the tax avoided in future and the losses you can carry forward.

The rates the planner uses

Since 23 July 2024 short-term gains on listed equity shares and equity-oriented funds on which securities transaction tax is paid are taxed at 20% under section 111A, and long-term gains above ₹1.25 lakh at 12.5% under section 112A. An equity holding becomes long-term when it is held for more than twelve months. Cess of four percent is added. In the Income-tax Act 2025 the same rules sit in sections 196 and 198 from tax year 2026-27. The rates and the exemption are editable fields, in case a later Finance Act changes them.

Gain harvesting

Suppose you hold index fund units bought in 2021 with an unrealised long-term gain of ₹1.3 lakh, and you have booked no other long-term gain this year. Selling enough units to realise ₹1.25 lakh of gain costs nothing in tax. Buying the same units back right away keeps your portfolio unchanged but raises your cost, so when you finally sell in a later year, ₹1.25 lakh less gain is taxed. At 12.5% plus cess that is about ₹16,250 saved for every year you do this. The planner picks whole units so the realised gain stays inside the limit.

Loss harvesting

A holding bought six months ago that has fallen in value gives a short-term loss when sold. That loss first reduces short-term gains taxed at 20%, then long-term gains. A long-term loss can only reduce long-term gains. The planner books a loss only if it saves more tax than the trading cost, unless you tick the box to book every loss so it can be carried forward for eight years.

Things to watch

India has no wash-sale rule like the United States, but the buy-back must be a real purchase, and the new purchase starts a fresh holding period, so the bought-back units are short-term for a year. For shares bought before 1 February 2018 use the grandfathered cost. Settlement takes a day, so finish trades a few working days before 31 March. Mutual fund exits may carry an exit load, which you can add to the cost percentage.

Worked example

You booked ₹45,000 of short-term gains and ₹30,000 of long-term gains. A bank stock bought in September 2025 shows a ₹26,400 short-term loss, and a small-cap stock bought in 2024 a ₹63,000 long-term loss. Index fund units show a long-term gain of about ₹54 a unit. The planner books the bank stock loss, so the taxable short-term gain falls to ₹18,600 and the tax from ₹9,360 to about ₹3,870. It leaves the small-cap loss alone, because your ₹30,000 of long-term gains is already inside the exemption and that loss would save nothing this year; tick the box if you want to book it and carry it forward. Then it sells and buys back 1,749 index fund units, realising about ₹94,970 of tax-free gain and avoiding about ₹12,350 of future tax.

Limits

This is a planning aid, not investment or tax advice. It ignores surcharge, the basic exemption for low incomes, F&O and intraday income, and non-equity funds. It cannot know future prices. Check your broker's capital gains statement before you trade.

Worked example

Booked STCG ₹45,000 and LTCG ₹30,000: selling a stock with a ₹26,400 short-term loss cuts the tax from ₹9,360 to about ₹3,870, and 1,749 index fund units are sold and bought back to use the rest of the ₹1.25 lakh exemption.

Quick facts

Frequently asked questions

Can I carry the unused ₹1.25 lakh exemption to next year?

No. The exemption applies to each year's long-term gains separately. What you do not use by 31 March is lost.

Is selling and buying back the same day allowed?

India has no wash-sale rule for listed shares and funds. The trades must be genuine, and the units you buy back start a new holding period.

Which loss can reduce which gain?

A short-term capital loss can be set off against short-term or long-term gains. A long-term capital loss can only be set off against long-term gains.

How long can I carry forward a capital loss?

Eight assessment years, provided you file the return for the loss year by the due date.

Does this work for debt funds?

No. Gains on debt funds bought after 1 April 2023 are taxed at slab rates and have no 1.25 lakh exemption; this planner covers listed equity and equity-oriented funds only.

What about shares bought before 2018?

Enter the grandfathered cost: the higher of what you paid and the price on 31 January 2018, but not more than the sale price.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages