How should I plan a portfolio sale with both gains and losses?
Match losses with gains within the year to cut tax, and carry forward unused losses.
Quick Answer
Short-term losses offset STCG and LTCG; long-term losses offset only LTCG. Unused capital losses carry forward 8 years if the return is filed on time.
Order
Offset STCG first with STCL, then LTCG.
Harvest
Book a loss to offset booked gains; mind transaction costs.
Records
Keep a gain/loss ledger.
Set-off in a table
| Item | Amount |
|---|---|
| STCG | ₹1,00,000 |
| LTCG | ₹3,00,000 |
| Short-term loss | ₹-1,50,000 |
| Long-term loss | ₹-2,00,000 |
| Step 1: STCL on STCG | STCG nil, STCL left ₹50,000 |
| Step 2: STCL left on LTCG | ₹2,50,000 |
| Step 3: LTCL on LTCG | ₹50,000 |
| After ₹1.25 lakh exemption | Nil |
Losses must be reported in the return filed by the due date to be carried forward for eight years.
Reminder
Long-term losses can offset only long-term gains; a short-term loss can offset both.
Practical Checklist
- List unrealised gains and losses.
- Match them.
- Check holding periods.
- Book trades.
- Carry forward the remainder.
How EZTax can help
EZTax can help organize income and tax information, compare relevant tax outcomes and support the taxpayer through filing and compliance workflows. Depending on the situation, the useful starting point may be the EZTax tax calculator / tool, the relevant question pages, or the filing workflow where detailed records need to be reconciled.
Frequently Asked Questions
Do losses expire?
After 8 years.
Can I set off against salary?
No.
Related EZTax questions
- Should I sell shares this year or next year for tax purposes?
- How should I plan the timing of a long-term capital gain?
- How should I plan the timing of a short-term capital gain?
- Should I realize capital losses before year-end?
- How should I use capital losses in tax planning?


