Tax-Loss Harvesting Calculator

Enter the gains and losses you have booked this year on shares and equity mutual funds, and the losses and gains still sitting in your portfolio. The calculator applies the set-off rules in the order that saves the most tax and tells you how much loss is worth booking before 31 March, how much would be wasted, and how much long-term gain you can book tax-free.

Already booked this financial year (listed shares and equity funds)

Held 12 months or less
Held more than 12 months
From last year's return

Still in your portfolio (unrealised)

For gain harvesting
Only for surcharge
Tax you save this year by booking losses
₹25,480
Capital gains tax now₹53,950
After booking the losses₹28,470
Short-term loss worth booking now₹60,000 of ₹60,000
Long-term loss worth booking now₹1,00,000 of ₹1,00,000
Losses left to carry forward if you book them all₹0
Long-term gain you can book tax-free₹0
Future tax avoided by gain harvesting₹0

Booking ₹60,000 of short-term and ₹1,00,000 of long-term losses before 31 March cuts this year’s capital gains tax from ₹53,950 to ₹28,470.

Rates: 20% short term, 12.5% long term above ₹1.25 lakh, plus surcharge (capped at 15%) and 4% cess. Losses are set off before the exemption. File your return by the due date to carry losses forward. Checked 2026-11-05.

What is tax-loss harvesting?

Selling investments that are below your purchase price before 31 March, so the loss cancels gains you have already booked and your capital gains tax falls. If you still like the investment, you buy it back; your holding is the same, but this year’s tax is lower. Its mirror image, gain harvesting, books long-term gains up to the ₹1.25 lakh tax-free limit to raise your cost. The calculator works out both.

How are capital losses set off?

Short-term losses can be set off against any capital gain; long-term losses only against long-term gains. The ₹1.25 lakh exemption applies to long-term gains left after set-off.

LossCan be set off againstTax saved per ₹1 lakh of loss
Short-term (held 12 months or less)Short-term gains, then long-term gains₹20,800 against short-term gains at 20%; ₹13,000 against taxable long-term gains
Long-term (held more than 12 months)Long-term gains only₹13,000 against long-term gains above ₹1.25 lakh; nothing within the exemption
Either kindNot against salary or any other incomeCarried forward instead if unused

Short-term gains on listed shares and equity funds are taxed at 20% under Section 196 (formerly 111A); long-term gains at 12.5% above ₹1.25 lakh a year under Section 198 (formerly 112A); both plus cess and surcharge capped at 15%. So set short-term losses against short-term gains first. The Income-tax Act, 2025 renumbered the set-off and carry-forward sections but kept the rules.

Tax-loss harvesting example

With ₹1.5 lakh of short-term and ₹3 lakh of long-term gains booked, booking a ₹60,000 short-term loss and a ₹1 lakh long-term loss cuts the tax from ₹53,950 to ₹28,470, saving ₹25,480.

BeforeAfter booking losses
Short-term gains₹1,50,000₹90,000 (after ₹60,000 loss)
Long-term gains₹3,00,000₹2,00,000 (after ₹1,00,000 loss)
Taxable long-term gains (above ₹1.25 lakh)₹1,75,000₹75,000
Tax with 4% cess₹53,950₹28,470

How much loss should you book?

Only enough to bring your long-term gains down to ₹1.25 lakh and your short-term gains to zero. Beyond that, a loss is set off against gains that were tax-free anyway; set-off is compulsory, so it does not carry forward.

Say you have booked ₹2 lakh of long-term gains and hold a stock with a ₹1 lakh long-term loss. Booking ₹75,000 of it saves ₹9,750. Booking the full ₹1 lakh saves the same ₹9,750 and throws away ₹25,000 of loss. Sell just enough units to realise ₹75,000, or keep the loss for a year when your gains are higher. Losses carry forward only when they exceed all your gains for the year.

Carrying losses forward

Unused capital losses carry forward for 8 years, but only if you file your return by the due date, in ITR-2 or ITR-3.

Gain harvesting: using the ₹1.25 lakh exemption

If your long-term gains this year are below ₹1.25 lakh, sell enough holdings with long-term gains to reach ₹1.25 lakh, tax free, and buy them back. Your cost rises, so less of the gain is taxed when you finally sell.

Each ₹1.25 lakh harvested can avoid ₹16,250 of tax later (12.5% plus cess). Done every year for 10 years, that is ₹1.62 lakh of tax avoided on a long-held portfolio. Two cautions: do not harvest gains in a year when you have losses to carry forward, because the new gains would use up the losses instead of the exemption; and the bought-back shares start a fresh 12-month holding period.

Yes. India has no wash-sale rule, so you can sell at a loss and buy back. But a few rules and costs still matter.

When to do it

Before 31 March, the last day of the financial year; in practice, by the last trading day before it. For shares the trade date decides the year. For mutual funds it is the date the redemption gets its NAV, so place the order before the 3 pm cut-off, and allow for late-March market holidays. Doing it a week early leaves room for mistakes.

Debt funds, F&O and intraday trades

When to use a different calculator

Sources

This is general information, not tax or investment advice. See how we check rates and our corrections log.

Tax-loss harvesting: questions people ask

Rates, tax rules and examples on this page were last checked against current rules on . How our calculators work

Related calculators

All India calculators →

Guides on this topic

All guides →