← All articles
Tax guide

How to minimise tax on stock market gains in India

15 min read  ·  FY2024-25  ·  Fynr

Most Indian traders think about tax once a year — in March, when the financial year is ending, or in July, when the CA calls asking for documents. By then, the decisions that would have mattered have already been made. The positions have been sold. The gains have been booked. The window has closed.

This guide is for the trader who wants to think about it earlier. Not at the level of complex structures or grey-area strategies — but at the level of understanding exactly how capital gains tax works in India, and exactly which levers you can legally pull to reduce what you owe.

Everything here is within the law. Nothing here requires a tax expert to implement. But everything here requires knowing your numbers before March 31st, not after.


First: understand what you're actually being taxed on

Before we talk about reducing your tax, it's worth being precise about what the tax is.

When you sell a stock or mutual fund unit in India, any profit is a capital gain. Capital gains are taxed differently depending on two things: what you sold and how long you held it.

Short-term capital gains (STCG)

If you sell equity shares or equity mutual funds within 12 months of buying them, the gain is short-term. After Budget 2024, STCG on equity is taxed at a flat 20%, regardless of your income tax slab. There is no exemption threshold — the first rupee of STCG is taxable.

Long-term capital gains (LTCG)

If you hold equity shares or equity mutual funds for more than 12 months before selling, the gain is long-term. LTCG is taxed at 12.5%, but with a critical exception: the first ₹1,25,000 of LTCG in a financial year is completely exempt from tax. This exemption resets every year on April 1st.

Debt funds and other assets

For debt mutual funds purchased after April 1, 2023, the long-term/short-term distinction no longer applies — all gains are taxed at your income slab rate, effectively making them equivalent to interest income for tax purposes. For bonds, NCDs, and gold, different thresholds and rates apply. This guide focuses on equity.

At a glance — equity tax rates FY2024-25

STCG (held ≤ 12 months): 20% flat, no exemption.

LTCG (held > 12 months): 12.5% on gains above ₹1,25,000. Below that — zero.

F&O: Taxed as business income at your slab rate. Not capital gains at all.


Strategy 1: Use the ₹1.25 lakh LTCG exemption every year

This is the most underutilised tax benefit available to Indian investors. Every financial year, the first ₹1,25,000 of long-term capital gains you realise is completely exempt from tax. Not taxed at a lower rate — exempt. Zero tax.

The problem is this exemption doesn't carry forward. If you don't use it in FY2024-25, it disappears on March 31st 2025. You cannot bank it for next year.

What this means in practice: if you have long-term positions sitting on unrealised gains, it is worth selling enough of them each year to realise up to ₹1,25,000 in gains — and immediately buying them back. The tax cost of doing this is zero. The benefit is that your cost basis resets higher, which reduces your future tax liability when you eventually sell.

This strategy is called gain harvesting — and unlike the US, India has no wash-sale rule that would prevent you from buying back the same stock immediately after selling it.

Example: You bought 100 shares of Infosys in 2022 at ₹1,400. They're now at ₹1,900. Your unrealised LTCG is ₹50,000. You've had no other LTCG this year. If you sell and immediately rebuy, you realise ₹50,000 in LTCG — entirely within the ₹1,25,000 exemption. Tax paid: zero. Your new cost basis: ₹1,900. When you eventually sell these shares later, you're only taxed on gains above ₹1,900, not ₹1,400.

If you do nothing, you carry forward a ₹50,000 gain at a cost basis of ₹1,400. When you sell in two years at ₹2,500, you pay 12.5% on ₹1,10,000 instead of ₹60,000 — an unnecessary extra ₹6,250 in tax that a 15-minute sell-and-rebuy would have avoided.

The calculation to do every January or February: total up your realised LTCG so far this year. Subtract from ₹1,25,000. Whatever headroom remains — that's how much in long-term gains you can book tax-free before March 31st.


Strategy 2: Harvest your losses before March 31st

This is the strategy most traders know about in theory but fail to execute in practice — because they only find out about their loss positions in April, when it's too late.

The rule, under Section 70(2) of the Income Tax Act: short-term capital losses can offset both short-term and long-term capital gains in the same financial year. Long-term capital losses can only offset long-term gains.

What this means: if you have realised STCG of ₹5 lakhs and you're holding positions with unrealised losses of ₹2 lakhs, selling those losing positions before March 31st reduces your net taxable gain to ₹3 lakhs. At 20% STCG rate, that's ₹40,000 saved. The losing positions can be immediately rebought — India has no wash-sale rule.

The window-closed problem

The reason most traders don't benefit from this is timing. A loss sold on April 2nd falls into the next financial year. It cannot reach back and offset last year's gains. The March 31st deadline is absolute — if the exchange is closed on March 31st, the last trading day before it is your deadline.

When we analysed a real Zerodha equity tradebook — 2,816 transactions across one financial year — we found 15 scrips where losses were sold in the first two weeks of April, just after the year-end. Combined losses: ₹38,852. Tax that could have been saved had those same positions been sold three to fourteen days earlier: ₹7,771.

None of it was the result of bad trading decisions. All of it was the result of not knowing the window was closing.

How to identify your loss harvesting opportunity

Every February, run this calculation:

  1. Total your realised STCG gains for the year so far.
  2. Total your realised STCG losses for the year so far.
  3. Look at your current open positions — which ones are sitting in unrealised loss?
  4. Calculate: if you sell those losing positions now, how much would it reduce your net taxable gain? At 20%, what does that save in tax?
  5. If the saving is meaningful, sell before March 31st and rebuy immediately.

The friction is step 3 — most traders don't have a single view of their realised P&L and their open positions with unrealised gains and losses at the same time. This is exactly the problem Fynr is built to solve.


Strategy 3: Respect the 12-month threshold obsessively

The difference between STCG at 20% and LTCG at 12.5% is 7.5 percentage points. On a ₹5 lakh gain, that's ₹37,500 in extra tax — for holding a position one day too few.

This sounds obvious. In practice, it is missed constantly. Not by careless traders — by active traders who track their P&L meticulously but don't track holding periods with the same precision.

The most common version of this mistake: you buy a stock, it performs well, you sell it in month 11 because you want to lock in the gain or the story has changed. You pay 20% STCG. If you'd held for four more weeks, you'd have paid 12.5% LTCG. The decision to sell was right. The timing was wrong by 30 days.

The 12-month threshold is counted from the trade date of the buy, not the settlement date. If you bought on March 10, 2024, the LTCG threshold is March 11, 2025. One day matters. Check the date before you sell any position you've held for 10 months or more.

Near-LTCG positions: the most valuable thing to know

At any point during the year, you should be able to answer this question: which of my positions, if sold today, would be taxed at 20% STCG — and how many days away are they from becoming 12.5% LTCG?

A position that's 18 days away from the LTCG threshold is worth waiting on. A position that's 180 days away is a different calculation — you'd need to weigh the holding risk against the tax saving.

But for positions in the 1-60 day range, the calculus is almost always: wait. The market can do a lot of things in 60 days, but paying 7.5% extra tax on a realised gain because you sold 45 days early is a permanent cost with no recovery.


Strategy 4: Understand the F&O tax trap before it catches you

Futures and options are not capital gains. This is the single most common misunderstanding among retail traders who have recently graduated from equity delivery to F&O.

Under Section 43(5) of the Income Tax Act, F&O trading is classified as non-speculative business income. This has several implications:

The tax minimisation strategy for F&O traders is less about rate optimisation and more about compliance: file the right form, calculate turnover correctly, know your audit threshold, and never miss the ITR deadline if you have a loss to carry forward.


Strategy 5: Know your numbers before your CA does

Strategies 1 through 4 all require knowing your position before the deadline — not after it. The fundamental problem most Indian traders have is that they find out their tax situation in April (or July), when the CA computes the return. By then, the gains are booked, the losses are missed, the positions are closed or not closed, and the only thing left to do is pay.

The traders who consistently pay less tax are not the ones with more sophisticated strategies. They're the ones with better information, earlier in the year.

The February habit

In February each year, before the March 31st rush, do one thing: run your tradebook through a tool that shows you your total realised STCG, your total realised losses, your LTCG exemption headroom, and which positions are within 60 days of the LTCG threshold.

With that information, you can make three decisions in 30 minutes that a CA would normally flag only in April — loss harvesting, gain harvesting within the exemption, and holding-period management. The difference is knowing in time to act.


What does not work: strategies to avoid

It's worth briefly addressing what doesn't work — strategies that sound plausible but either don't apply in India or carry risk that outweighs the benefit.

Transferring to a spouse or family member

Under Section 64 of the Income Tax Act, income from assets transferred to a spouse without adequate consideration is clubbed back into the transferor's income. Gifting shares to a spouse to use their ₹1.25L LTCG exemption doesn't work — the gain will be taxed in your hands anyway.

Booking losses and immediately rebuying (wash sale)

This is actually legal in India — there is no wash-sale rule. You can sell a position at a loss and buy it back the same day. The loss is recognised for tax purposes. This is a legitimate strategy and is described in detail in the loss harvesting section above.

Holding everything forever to avoid capital gains

A common intuition — if you never sell, you never pay gains tax. This is true but creates its own problem: the gains compound inside the position, and when you eventually need to sell, the tax bill is proportionally larger. The LTCG exemption strategy of booking ₹1.25L per year and resetting your cost basis is a better long-term approach than perpetual deferral.


The checklist: what to do before March 31st every year

  1. Run your tradebook. Get a clear picture of your total realised STCG, LTCG, and losses for the year to date.
  2. Check your LTCG exemption headroom. How much of the ₹1.25L have you used? If you have headroom, identify long-term positions with unrealised gains to harvest tax-free.
  3. Identify loss harvesting opportunities. Which open positions are in unrealised loss? What would selling them save in tax against your realised gains?
  4. Check holding periods on your best performers. Any position with 10+ months of holding — is it worth waiting for the 12-month LTCG threshold?
  5. Check your F&O situation. Have you traded F&O this year? Do you know your turnover? Have you set aside funds for advance tax if you're profitable?
  6. Brief your CA early. Send them your numbers in February, not March. The earlier they see it, the more options they have.

Run your tradebook through Fynr.

Fynr reads your Zerodha, Groww, Upstox, Angel One or ICICI Direct tradebook and gives you a complete picture — STCG, LTCG, losses, exemption headroom, near-LTCG positions, and F&O flags — in 60 seconds. Free to scan.

Scan my tradebook →

CA verification is required on all Fynr outputs. This article is for informational purposes only and does not constitute tax advice. The rules described reflect FY2024-25 regulations as understood at time of writing. Consult a qualified Chartered Accountant for advice specific to your situation.