Tax Loss Harvesting in India: What It Is, How It Works, and When to Use It
One of the few legal strategies available to Indian equity investors to reduce capital gains tax — without changing long-term portfolio goals.
Analyze my portfolio for freeUpload your tradebook · Takes under 2 minutes
What is tax loss harvesting?
When you sell a stock at a loss, that loss is “realized.” Under Indian tax law, realized losses can be used to reduce — or fully cancel — realized gains from other stocks in the same financial year.
Tax loss harvesting is the practice of deliberately selling positions that are down to create a realized loss that offsets a taxable gain.
Example
You sold Infosys shares this year and made Rs 80,000 in short-term capital gains (STCG). You also hold HDFC Bank shares that are down Rs 60,000.
If you sell the HDFC Bank shares before March 31, you create a Rs 60,000 short-term capital loss (STCL). Your taxable STCG drops from Rs 80,000 to Rs 20,000.
Tax saved: approximately Rs 12,000 (at 20% STCG rate).
Which losses can offset which gains?
Indian tax law has specific rules about how losses can be applied. Not all losses offset all gains.
| Loss Type | Can Offset | Cannot Offset |
|---|---|---|
| Short-Term Capital Loss (STCL) | STCG + LTCG | — |
| Long-Term Capital Loss (LTCL) | LTCG only | STCG |
Key insight: Short-term losses are more flexible. They can offset STCG (taxed at 20%) and LTCG (taxed at 12.5% above Rs 1.25L). Long-term losses can only offset LTCG.
If you can't use the full loss this year, it carries forward for up to 8 years — provided you file your ITR on time.
Tax loss harvesting vs. gain harvesting
These are two sides of the same strategy. Most investors benefit from both, depending on their current portfolio state.
Loss harvesting
Sell positions that are in loss to reduce or eliminate taxable gains. The realized loss offsets gains you've already triggered.
Best when: you have realized gains and unrealized losses
Gain harvesting
Book profitable positions up to the Rs 1.25L LTCG exemption so future gains start from a higher cost basis — without paying tax today.
Best when: unused exemption remains before March 31
The right mix depends on how much LTCG and STCG you've already realized, which positions are in loss, and how much of the exemption remains. See how the LTCG exemption works.
When does tax loss harvesting make sense?
When it helps
- You have realized gains this financial year and unrealized losses in your portfolio
- Your STCL can offset high-rate STCG (20%), delivering meaningful savings
- You were planning to trim the position anyway — the loss makes the timing right
When it may not help
- You have no realized gains to offset — a loss with nothing to cancel carries forward but saves nothing today
- The stock is likely to recover quickly — you'd crystallize a permanent loss for a temporary benefit
- You have only LTCL and no LTCG to offset — long-term losses are less flexible
Remember: Tax loss harvesting isn't about creating losses. It's about using losses that already exist in your portfolio productively.
How FIFO affects tax loss harvesting in India
India mandates the FIFO (First In, First Out) method for capital gains calculation. When you sell shares, the shares you purchased first are treated as sold first.
This matters for loss harvesting because the cost basis — and whether a loss is short-term or long-term — is determined by your oldest purchase lot, not your newest.
Calculating this manually across a portfolio with multiple buy orders is error-prone. TaxHarvestLab applies FIFO automatically from your broker tradebook and shows the exact loss type and amount for each position before you decide to sell.
How to do tax loss harvesting in India — step by step
Know your realized gains for the year
Before deciding which losses to book, know your current STCG and LTCG from trades already completed. Your broker's Tax P&L report has this.
Identify unrealized losses in your holdings
Your holdings report shows current market value vs. average buy price. Positions with a loss are candidates for harvesting — but the FIFO-adjusted cost basis matters, not just the average price.
Calculate the tax impact before selling
Knowing a stock is down isn't enough. You need the FIFO-adjusted cost basis, whether the loss is short-term or long-term, and exactly how much tax it offsets against your realized gains.
Execute before March 31
Losses must be realized within the financial year to count against that year's gains. Sales after March 31 apply to the next financial year.
See your exact tax loss harvesting opportunity — free
TaxHarvestLab analyzes your Zerodha or Groww portfolio and shows you:
- Which positions are in loss and by how much (FIFO-calculated)
- Whether each loss is short-term or long-term
- Exactly how much tax each loss would offset against your current gains
- Recommended action for each position: harvest, hold, or do nothing
Upload your tradebook and holdings — takes under 2 minutes.
Frequently asked questions
Is tax loss harvesting legal in India?
Yes. Tax loss harvesting uses offset rules explicitly defined in the Indian Income Tax Act. Selling a losing position to offset capital gains is a legitimate tax planning strategy.
Can I buy back the same stock after selling at a loss?
Indian tax law does not have a wash sale rule like the US, so there is no mandatory waiting period. However, if you buy back immediately at the same price, the economic benefit of the harvest may be negated over time.
Do I need to file ITR to carry forward capital losses?
Yes. You must file your ITR before the due date to carry forward capital losses to future financial years. Missing the deadline means the carry-forward benefit is lost.
Can long-term capital losses offset short-term capital gains?
No. Long-term capital losses (LTCL) can only offset long-term capital gains (LTCG). Short-term capital losses (STCL) are more flexible and can offset both STCG and LTCG.
From the Blog: Tax Loss Harvesting Guides
What Is Tax Loss Harvesting in India?
Complete guide to loss harvesting strategy
Loss Harvesting with Exact Calculations
4 worked examples with rupee numbers
No Wash Sale Rule in India
Why you can sell and rebuy immediately
STCL Can Offset LTCG: Cross-Term Rules
The asymmetric set-off rule explained
Year-End Tax Loss Harvesting Checklist
Step-by-step before March 31
7 Common Loss Harvesting Mistakes
Avoid these costly errors