Case Studies

Case Study: Optimizing a Mixed Portfolio with Both LTCG and STCG

10 min read read · Updated 22 February 2026

The Investor's Situation

Meera is an experienced investor with a diversified equity portfolio built over several years. She actively manages her portfolio, buying and selling positions throughout the year. As a result, she has both long-term and short-term gains and losses in her account at year-end.

Here is Meera's full portfolio snapshot as of mid-March:

  • Realized LTCG: Rs 1,80,000 (from stocks sold earlier in the year)
  • Realized STCG: Rs 60,000 (from recent short-term trades)
  • Unrealized LTCL: Rs 30,000 (in a long-term holding currently in the red)
  • Unrealized STCL: Rs 40,000 (in a short-term position currently in the red)

This is the most complex scenario an individual investor typically faces: gains and losses across both term categories, with unrealized losses available for harvesting. Without any action, Meera's tax liability would be:

  • LTCG tax: (Rs 1,80,000 - Rs 1,25,000) x 12.5% = Rs 6,875
  • STCG tax: Rs 60,000 x 20% = Rs 12,000
  • Total tax: Rs 18,875

What Most Investors Think

When Meera looks at her portfolio, she feels overwhelmed. She has four different numbers to juggle -- two types of gains and two types of losses -- and she is not sure how they interact.

Her initial reaction is: "This is too complicated. The amounts are relatively small. I'll just hold everything, pay whatever tax I owe, and sort it out next year."

This is the "complexity paralysis" that affects many investors with mixed portfolios. The interaction between STCL, LTCL, STCG, LTCG, and the exemption limit creates a combinatorial problem that feels too difficult to solve manually. And Meera is not wrong that it is complex -- the set-off ordering rules have specific constraints that even some CAs get wrong.

Some investors in Meera's position make a different mistake: they harvest only one type of loss (usually the larger one) and ignore the other. But as we will see, the optimal strategy requires harvesting both losses to minimize the total tax bill. The Rs 30,000 LTCL and Rs 40,000 STCL each target different gains, and both contribute to the overall savings.

What TaxHarvestLab Identifies

TaxHarvestLab analyzes Meera's portfolio and identifies that both unrealized losses should be harvested. The tool applies the set-off ordering rules correctly and shows the step-by-step impact:

The set-off ordering works as follows:

  • First, STCL is set off against STCG (same category first). Meera's Rs 40,000 STCL offsets her Rs 60,000 STCG, leaving Rs 20,000 taxable STCG.
  • Second, LTCL is set off against LTCG (same category). Meera's Rs 30,000 LTCL offsets her Rs 1,80,000 LTCG, leaving Rs 1,50,000 LTCG.
  • Third, the Rs 1,25,000 LTCG exemption applies to the remaining Rs 1,50,000, reducing taxable LTCG to Rs 25,000.

TaxHarvestLab shows that harvesting both losses reduces Meera's total tax from Rs 18,875 to Rs 7,125 -- a saving of Rs 11,750. The tool also shows what would happen if she harvested only one loss, demonstrating that the combined approach is superior.

Step-by-Step Tax Calculation

ItemWithout HarvestingWith Harvesting
Realized STCGRs 60,000Rs 60,000
STCL BookedRs 0Rs 40,000
Net Taxable STCGRs 60,000Rs 20,000
STCG Tax @ 20%Rs 12,000Rs 4,000
Realized LTCGRs 1,80,000Rs 1,80,000
LTCL BookedRs 0Rs 30,000
LTCG After Set-OffRs 1,80,000Rs 1,50,000
ExemptionRs 1,25,000Rs 1,25,000
Taxable LTCGRs 55,000Rs 25,000
LTCG Tax @ 12.5%Rs 6,875Rs 3,125
Total TaxRs 18,875Rs 7,125
Tax SavedRs 11,750

The Outcome: Rs 11,750 Saved Across Both Categories

Meera's total tax liability drops from Rs 18,875 to Rs 7,125, saving her Rs 11,750. The savings come from two sources:

  • STCG tax reduction: Rs 12,000 to Rs 4,000 (saved Rs 8,000 by harvesting Rs 40K STCL)
  • LTCG tax reduction: Rs 6,875 to Rs 3,125 (saved Rs 3,750 by harvesting Rs 30K LTCL)

Notice something interesting: even though the LTCL (Rs 30,000) was smaller than the STCL (Rs 40,000), the STCL delivered more tax savings (Rs 8,000 vs Rs 3,750). This is because STCG is taxed at a higher rate (20%) than LTCG (12.5%). A rupee of loss used against STCG saves more tax than a rupee used against LTCG.

Also notice that Meera's STCL was entirely used against her STCG (same category first). It did not spill over to her LTCG. If Meera had an STCL of Rs 80,000 instead of Rs 40,000, the extra Rs 20,000 would have offset her LTCG via cross-term set-off. The set-off ordering rules automatically maximize the benefit.

Key Takeaway

Mixed portfolios with multiple types of gains and losses are not "too complicated" to optimize. They actually offer the richest opportunities for tax harvesting because there are multiple levers to pull.

The key principles from Meera's case:

  • Harvest all available losses, not just the largest one. Both the Rs 30K LTCL and Rs 40K STCL contributed to savings.
  • Set-off ordering matters. STCL offsets STCG first, then spills over to LTCG. LTCL only offsets LTCG. Understanding this ordering helps you predict the tax impact.
  • The LTCG exemption is applied after loss set-offs, not before. This sequencing amplifies the benefit of harvesting losses.
  • Higher-rate offsets save more. A loss that offsets STCG (20% rate) saves more per rupee than one that offsets LTCG (12.5% rate).

Do not let complexity paralyze you into inaction. Tools like TaxHarvestLab exist specifically to handle the set-off ordering, calculate the exact savings, and tell you precisely which positions to sell. The Rs 11,750 Meera saved took less than 30 minutes of her time.

Frequently Asked Questions

Mixed portfolios raise some of the most nuanced questions in Indian capital gains taxation. Below, we address questions about ordering, partial harvesting, and the interaction between different gain and loss types. These are the exact questions Meera asked after seeing her TaxHarvestLab analysis.

If your portfolio has a similar mix of gains and losses, running it through TaxHarvestLab will give you a personalized set-off calculation that accounts for all the ordering rules automatically.

See how this applies to your portfolio

Upload your Zerodha or Groww reports and get personalized recommendations in under 2 minutes.

Analyze My Portfolio Free

Frequently Asked Questions

What if I only harvest one of the two losses? How much less would I save?

If Meera harvested only the Rs 40K STCL: her STCG tax drops by Rs 8,000, but her LTCG tax stays at Rs 6,875. Total savings: Rs 8,000. If she harvested only the Rs 30K LTCL: her LTCG tax drops by Rs 3,750, but her STCG tax stays at Rs 12,000. Total savings: Rs 3,750. By harvesting both, she saves Rs 11,750 -- more than either alone. Always look for all harvestable losses.

Does it matter which loss I book first?

No, the chronological order of booking losses does not affect the tax outcome. The set-off rules are applied to aggregate figures on your income tax return, not to the sequence of transactions. Whether Meera sells the STCL stock on March 15 and the LTCL stock on March 20, or vice versa, the final tax is the same.

What if my STCL exceeds my STCG? Does the extra STCL offset LTCG?

Yes. Under Section 70 and 71 of the Income Tax Act, any STCL remaining after offsetting STCG can be set off against LTCG. For example, if Meera had Rs 80,000 STCL and Rs 60,000 STCG, the first Rs 60,000 STCL offsets STCG, and the remaining Rs 20,000 STCL offsets her LTCG, reducing it from Rs 1,80,000 to Rs 1,60,000.

Is there a minimum loss amount that makes harvesting worthwhile?

There is no legal minimum, but practically, the tax savings should exceed your transaction costs (brokerage + STT + other charges). For most discount brokers in India, the round-trip cost for a sell and rebuy is under Rs 200 for positions worth up to Rs 5 lakh. So even a Rs 2,000 loss that saves Rs 400 in tax (at 20%) is worth harvesting if you have gains to offset.

🤝

Support Our Mission

TaxHarvestLab is free and always will be. Help us keep it that way for 10,000+ Indian investors.

10K+
Active Users
₹0
Ads • Ever
Contribute Now

One-time or monthly, your choice

Ready to optimize your capital gains tax?

TaxHarvestLab analyzes your actual broker data and shows you exactly what to sell — and what to hold — before March 31.

Analyze My Portfolio Free

Free forever. Works with Zerodha and Groww. Takes under 2 minutes.