Money and Finance

Mutual Fund Capital Gains by FIFO: Work Out Your Tax

See how FIFO matching decides which mutual fund units you sold, how equity and debt gains are taxed from July 2024 and how to estimate the tax.

Saizul Amin
Saizul Amin7 Nov 2026 · 4 min read
Mutual Fund Capital Gains by FIFO: Work Out Your Tax

You redeem part of a mutual fund, the money lands in your bank account, and months later a capital gains statement tells you how much tax you owe. Between those two moments sits a rule most investors never see: first in, first out. The free Mutual Fund Capital Gains Calculator (FIFO) shows that rule at work, lot by lot, so you can check your statement or plan a redemption before you place it.

Everything is calculated in your browser, so your folio details stay private.

Why FIFO decides your tax

Every SIP instalment or lump sum is a separate purchase with its own date and NAV. When you redeem, the registrar treats the oldest units in that scheme and folio as the ones sold. One redemption can therefore mix old long-term units with a low cost and newer units with a high cost, and each part follows a different rate.

Rates used for sales from 23 July 2024

Fund typeHolding that makes it long-termLong-term rateShort-term rate
Equity fundsMore than 12 months12.5% above Rs 1.25 lakh a year (112A)20% (111A)
Debt funds bought before 1 April 2023More than 24 months12.5% without indexationSlab rate
Debt funds bought from 1 April 2023Never long-termNot applicableSlab rate (50AA)

The capital gains rates are those for transfers from 23 July 2024. Other rates follow the Finance Act 2025, as reported kept for tax year 2026-27. From 1 April 2026 the law is the Income-tax Act 2025, which renumbers the sections, but the rules above carry on.

Using the calculator

  1. Set your slab rate. It is used for debt fund gains taxed at normal rates.
  2. Add each purchase with the scheme and folio, the type (equity or debt), the date, the units and the NAV.
  3. For equity units bought before 1 February 2018, enter the NAV on 31 January 2018.
  4. Add each redemption with the scheme, the date, the units and the NAV.
  5. Read the lots table, which shows every match with its cost, sale value, gain, months held and tax type.
  6. Download the CSV if you want to copy the figures into Schedule CG and Schedule 112A.

Worked example

The default portfolio has a Nifty 50 index fund bought three times: 1,000 units in June 2017 at Rs 85, 800 units in March 2023 at Rs 160 and 500 units in December 2025 at Rs 245. The NAV on 31 January 2018 was Rs 102. In August 2026 you redeem 1,500 units at Rs 262.

FIFO takes all 1,000 units from 2017 first. Their grandfathered cost is the higher of Rs 85,000 actually paid and the lower of Rs 1,02,000 (the 2018 value) and Rs 2,62,000 (the sale value), so the cost is Rs 1,02,000 and the gain is Rs 1,60,000. The next 500 units come from March 2023, with a gain of Rs 51,000. Both lots are held more than 12 months, so equity long-term gains total Rs 2,11,000, of which Rs 1.25 lakh is exempt.

The same folio also holds a short duration debt fund: 2,000 units from August 2022 at Rs 30 and 1,500 units from February 2024 at Rs 33. Redeeming 2,500 units at Rs 38 in September 2026 takes all 2,000 old units, a long-term gain of Rs 16,000 at 12.5%, and 500 newer units, a gain of Rs 2,500 at the 30% slab.

That is 4 lots in all. The estimated tax with 4% cess is Rs 14,040. At a 20% slab it would be Rs 13,780.

Planning a redemption

Because the tool works on your own entries, you can try a redemption before you make it. Reduce the units sold until the long-term equity gain sits just under Rs 1.25 lakh, and you may be able to book gains every year without tax. You can also see whether waiting a few weeks would push a lot past 12 months.

Limits

The result is an estimate, not tax advice. It adds 4% cess but ignores surcharge, losses from other sales and any unused basic exemption. Switches count as redemptions, so compare your result with the statement from CAMS or KFintech before filing.

Frequently asked questions

Can I choose which units to redeem?

No. Within a scheme and folio, the oldest units always go first.

Does each folio have its own FIFO order?

Yes. Units in a different folio of the same scheme are matched separately.

Is the Rs 1.25 lakh exemption per fund?

No. It is one limit for all long-term equity gains in the year, from shares and equity funds together.

Are ELSS units treated differently?

They follow the equity rules once the three-year lock-in ends, and each SIP instalment has its own lock-in date.

Do I need the 2018 NAV for debt funds?

No. Grandfathering applies only to equity units bought before 1 February 2018.

Final thoughts

Most investors only discover how their redemption was matched when the tax is already fixed. Running your purchases through the Mutual Fund Capital Gains Calculator (FIFO) before you sell lets you see the lots, the rates and the tax in advance, and gives you a clean table for your return.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages