Skip to main content
ThinkCalculator
Finance

Capital Gains Calculator (Equity Shares & Mutual Funds)

Estimate STCG and LTCG tax on listed equity shares and equity-oriented mutual funds across multiple purchase lots, with FIFO lot matching, the pre-2018 grandfathering cost-basis rule, and the pooled ₹1,25,000 LTCG exemption under sections 111A and 112A.

Capital gains details

Tax treatment is identical for both — this only changes labeling.

Purchase lots

Lot 1

Required — this lot was acquired before the grandfathering cutoff.

Lot 2
Lot 3

Sale event

Narrow scope: this covers only STT-paid listed equity shares and equity-oriented mutual funds under sections 111A/112A. It does not compute surcharge, cess, Section 87A rebate, or LTCG already used elsewhere in the financial year against the pooled exemption.

Total capital gains tax

₹9,625.00

on ₹4,30,000.00 sale proceeds (2,150 units @ ₹200.00)

Total STCG (20%)

₹7,500.00

Tax: ₹1,500.00

Total LTCG (12.5%)

₹1,90,000.00

Tax: ₹8,125.00

LTCG exemption used

₹1,25,000.00

Net proceeds after tax

₹4,20,375.00

LTCG: exempt vs taxable

  • Exempt₹1,25,000.00
  • Taxable₹65,000.00

The ₹1,25,000 annual exemption applies once to your pooled long-term gains; short-term gains (shown separately above) receive no exemption.

FIFO matching summary

Units sold are matched against lots oldest-first:

10 March 2016 · 1,500 units · LTCG · grandfathered
₹1,50,000.00
1 April 2021 · 500 units · LTCG
₹40,000.00
1 December 2025 · 150 units · STCG
₹7,500.00

Per-lot breakdown

Every intermediate figure used to compute each matched lot's gain.
Purchase dateMatched unitsClassificationCost/unit usedSale valueGain
10 March 20161,500LTCG (grandfathered)₹100.00(was ₹50.00)₹3,00,000.00₹1,50,000.00
1 April 2021500LTCG₹120.00₹1,00,000.00₹40,000.00
1 December 2025150STCG₹150.00₹30,000.00₹7,500.00

Formula and worked example

How FIFO matching, grandfathering, and the STCG/LTCG tax are calculated, with a sample case worked through step by step.

Sections 111A and 112A capital gains formula

Units sold are matched against purchase lots oldest-first (FIFO); each matched lot is classified as short-term (STCG, holding period 12 months or less) or long-term (LTCG, holding period more than 12 months). A lot acquired before 31 January 2018 uses a grandfathered cost basis — the higher of its actual cost and the lower of its 31-Jan-2018 fair market value and the sale price — before its gain is computed. All LTCG-classified lot gains are pooled and taxed at 12.5% only above a single ₹1,25,000 annual exemption; all STCG-classified lot gains are pooled and taxed in full at 20%.

Total tax = (pooled STCG × 20%) + (max(0, pooled LTCG − ₹1,25,000) × 12.5%)

Pooled STCG
Sum of gains from every matched lot classified as short-term
Pooled LTCG
Sum of gains from every matched lot classified as long-term, using each lot's grandfathered cost basis where applicable
₹1,25,000
Current annual section 112A exemption, applied once against pooled LTCG
Grandfathered cost basis
higher(actual cost, lower(FMV as on 31 Jan 2018, sale price)) — pre-31-Jan-2018 lots only

Three lots, one grandfathered, a mixed STCG/LTCG sale that partially uses up the exemption

An investor sells 2,150 listed equity shares at ₹200 each on 15 June 2026, held across three purchase lots. FIFO matches the sale against the two oldest lots in full and part of the newest lot. The oldest lot was bought before 31 January 2018, so its cost basis is grandfathered. The two older lots are long-term; the newest (partially matched) lot is short-term. Pooled LTCG of ₹1,90,000 partially exceeds the ₹1,25,000 exemption.

Sample inputs

Asset type
Listed equity shares
Lot 1 — purchased
10 March 2016, 1,500 units @ ₹50.00
Lot 1 — FMV as on 31 Jan 2018
₹100.00
Lot 2 — purchased
1 April 2021, 500 units @ ₹120.00
Lot 3 — purchased
1 December 2025, 300 units @ ₹150.00
Sale date
15 June 2026
Units sold
2,150 units
Sale price per unit
₹200.00

Example results

Lot 1 — matched units (grandfathered cost ₹100/unit)
1,500 units, LTCG gain ₹1,50,000.00
Lot 2 — matched units
500 units, LTCG gain ₹40,000.00
Lot 3 — matched units (partial, short-term)
150 of 300 units, STCG gain ₹7,500.00
Pooled LTCG
₹1,90,000.00
LTCG exemption used
₹1,25,000.00
Taxable LTCG (after exemption)
₹65,000.00
LTCG tax (12.5%)
₹8,125.00
Total STCG
₹7,500.00
STCG tax (20%)
₹1,500.00
Total tax
₹9,625.00
Net proceeds after tax
₹4,20,375.00

Understand capital gains tax on equity shares and mutual funds

Learn how sections 111A and 112A tax short-term and long-term gains on listed equity shares and equity-oriented mutual funds, how FIFO lot matching and the pre-2018 grandfathering rule work, and the questions this calculator does not decide.

Understand capital gains tax on equity shares and mutual funds

Learn how sections 111A and 112A tax short-term and long-term gains on listed equity shares and equity-oriented mutual funds, how FIFO lot matching and the pre-2018 grandfathering rule work, and the questions this calculator does not decide.

What capital gains means for equity investments

A capital gain is the difference between what you receive for selling listed equity shares or equity-oriented mutual fund units and what you originally paid for them (their cost of acquisition). Indian tax law splits this gain into short-term (STCG) or long-term (LTCG) depending on how long the specific units were held, and taxes each category differently — a flat rate for STCG under section 111A, and a flat rate after a pooled annual exemption for LTCG under section 112A.

Current statutory context

The Finance (No. 2) Act, 2024 raised the section 111A STCG rate to 20% and the section 112A LTCG rate to 12.5% (without indexation), and raised the section 112A annual exemption to ₹1,25,000, effective for transfers on or after 23 July 2024. Sources were reviewed on 2026-07-24 and confirm these figures unchanged through FY 2026-27.

What to enter

  1. Choose listed equity shares or equity-oriented mutual fund units — this only changes labeling; the tax treatment is identical.
  2. Add one row per purchase lot: the purchase date, the number of units, and the cost per unit.
  3. For any lot purchased before 2018-01-31, also enter the fair market value per unit as on that date — the calculator only asks for this when a lot's date requires it.
  4. Enter the single sale event: the sale date, total units sold, and sale price per unit.
  5. The calculator matches your sale against lots oldest-first automatically — you do not need to specify which lot is being sold.

How FIFO matching and gain classification work

The units sold are matched against your purchase lots in first-in-first-out (FIFO) order by purchase date, regardless of the order you entered them in. The oldest lot is consumed first; once it is fully used up, the next-oldest lot is consumed, and so on until the total units sold is reached.

  1. Sort all lots by purchase date, oldest first.
  2. Subtract matched units from each lot in turn until the units sold is fully accounted for; a lot may be matched only partially if it is the last one needed.
  3. Classify each matched lot independently: a sale on or before the date exactly 12 months after that lot's purchase date is short-term (111A); any later sale is long-term (112A).
  4. Apply grandfathering to a matched lot's cost basis if it qualifies (see below), then compute that lot's gain as matched units × (sale price − effective cost per unit).

How the pre-2018 grandfathering rule changes cost basis

For a lot acquired before 2018-01-31, the cost of acquisition used for its LTCG computation is not simply what you paid. It is the higher of (a) the actual cost, and (b) the lower of (i) the fair market value (FMV) as on 2018-01-31, and (ii) the sale price. This can only raise the cost basis relative to the actual cost — it can reduce or eliminate the taxable gain that had already accrued before section 112A began taxing equity LTCG, but it can never turn a real gain into a deductible loss.

Effect of the grandfathering formula on a single unit's cost basis (actual cost ₹50, sale price ₹200)
FMV as on 31 Jan 2018Lower of FMV or sale priceCost basis used (higher of actual cost or that figure)
₹120₹120₹120
₹30₹30₹50 (actual cost, since it is higher)
₹300₹200 (capped at sale price)₹200 (gain reduced to zero, not negative)

How the pooled LTCG exemption works across lots

The ₹1,25,000 exemption under section 112A applies once against the total of all your LTCG-classified gains in a financial year — not separately for each lot, and not separately for each sale. This calculator sums every matched lot's gain that is classified as long-term into a single pooled figure, applies the exemption against that pool, and taxes only the remainder at 12.5%. Short-term gains are pooled the same way but receive no exemption at all — the full section 111A rate applies to the entire pooled STCG total.

What this estimate is useful for

  • See exactly which of your purchase lots the sale draws from under FIFO, before you place the trade.
  • Understand how much of an older holding's gain is protected by grandfathering.
  • Check whether a sale's pooled LTCG will exceed the annual exemption, and by how much.
  • Compare a scenario with different mixes of short-term and long-term lots side by side.

Capital gains compared with income tax on salary and other income

Educational comparison of this calculator and the Income Tax Calculator — general characteristics, not tax advice; verify current rules and your own facts before relying on any row.
AspectCapital Gains Calculator (this tool)Income Tax Calculator
Applicable provisionSections 111A and 112A, Income-tax Act, 1961 — special rates for STT-paid equitySlab rates under the old or new regime, sections 115BAC and the general charging provisions
Rate structureFlat rate regardless of total income: 20% STCG, 12.5% LTCG above the exemptionProgressive slab rates that rise with total taxable income
Exemption/deduction structureOne pooled annual exemption of ₹1,25,000 against LTCG only; no exemption for STCGBasic exemption slab, standard deduction, and (old regime) a range of itemised deductions
What determines the rateHolding period of each matched lot (12-month threshold) and whether STT was paidTotal taxable income across all heads and the regime chosen
Section 87A rebateNot available against 111A/112A gains under either regime (a narrow new-regime carve-out is not modelled here)Available against slab-rate tax up to the regime's rebate threshold
Where the two connectThis calculator's total tax is a separate figure that adds to (not replaces) your slab-rate liabilityIts own FAQ states capital gains under 111A/112/112A are out of scope and computed separately — exactly what this calculator fills in

Common mistakes

  • Assuming the ₹1,25,000 exemption resets for every sale, instead of once per financial year across all equity LTCG transactions.
  • Entering a fair market value for a lot purchased on or after 31 January 2018, where grandfathering does not apply at all.
  • Manually picking which lot to treat as 'sold' instead of letting FIFO (oldest lot first) decide, which is what the law requires regardless of broker statements.
  • Treating the calculator's total tax as your complete tax bill, when surcharge, cess, and your slab-rate liability on other income are not included.
  • Forgetting that a purchase date must be on or before the sale date for every lot — a future-dated lot cannot be matched against a past sale.

Practical checks before relying on a result

  • Confirm STT was actually paid on the transaction — off-market transfers and certain overseas trades may not qualify for these sections at all.
  • Get the exact fair market value as on 31 January 2018 from your broker, registrar, or fund house for any pre-2018 holding, rather than estimating it.
  • Track your cumulative LTCG across every equity sale in the financial year, not just the one entered here, before assuming the exemption is fully available.
  • Recheck the current STCG/LTCG rates and exemption against an official source close to your filing date, since a future Budget can change them.

Cases outside this calculator

This calculator does not compute surcharge, health-and-education cess, or Section 87A rebate interaction; does not model capital loss carry-forward or set-off against other income; does not verify STT payment or broker records; does not track LTCG used elsewhere in the same financial year against the pooled exemption; and does not cover debt mutual funds, real estate, gold, unlisted shares, or any other capital-gains asset class, all of which follow different provisions.

Educational and tax limitation

References

Frequently asked questions

Common questions about capital gains tax on equity shares and mutual funds, and how this calculator works.

Frequently asked questions

How does the calculator decide whether a lot is short-term or long-term?

By comparing the sale date to exactly 12 months after that lot's purchase date. A sale on or before that date is short-term (section 111A); a sale any later is long-term (section 112A). This applies only to listed equity shares and equity-oriented mutual fund units on which securities transaction tax (STT) has been paid, which this calculator assumes.

Is the ₹1,25,000 LTCG exemption available separately for every sale I make?

No. It is a single amount pooled across ALL your section 112A long-term equity gains in a financial year, not per sale or per calculator run. This calculator applies it against the LTCG total from the one sale event you enter here; if you have other equity LTCG transactions in the same year, you need to consider the exemption across all of them together, not use it again for each.

What is the pre-31-January-2018 grandfathering rule, and why does it only affect some lots?

For equity shares or mutual fund units acquired before 31 January 2018, the cost of acquisition used for the LTCG computation is the higher of (a) the actual cost, and (b) the lower of the fair market value (FMV) as on 31 January 2018 and the actual sale price. It exists because section 112A itself only started taxing these gains from Assessment Year 2019-20 onward, so gains that had already accrued by 31 January 2018 are protected from tax. A lot bought on or after that date never needs an FMV — its actual cost is used directly.

Where do I find the fair market value as on 31 January 2018 for an old holding?

For listed shares, it is the highest quoted price on a recognised stock exchange on 31 January 2018 (or the nearest preceding trading day if the exchange was closed that day). For mutual fund units not listed on an exchange, it is the net asset value (NAV) on that date. Several depositories, registrars, and fund houses publish this figure on request for older holdings.

Does FIFO matching matter if my broker's contract note or demat statement uses a different method?

Yes — for computing capital gains under the Income-tax Act, shares and mutual fund units are matched oldest-first (first-in-first-out) by acquisition date, regardless of which lot a broker's own internal accounting or a demat account's default display happens to show as sold. This calculator applies FIFO for that reason, sorting your entered lots by purchase date before matching them against the units sold.

Does this calculator account for Section 87A rebate, surcharge, or cess?

No. It computes only the flat section 111A (20%) and section 112A (12.5%) tax on the gains you enter. Section 87A rebate generally cannot be claimed against STCG under 111A or LTCG under 112A under either tax regime (with a narrow new-regime carve-out this calculator does not model), and applicable surcharge and health-and-education cess on the resulting tax are also not computed here. Use the Income Tax Calculator for your overall slab-rate liability, and treat this figure as the capital-gains tax component only.

What if I have a loss on some of the matched lots?

A loss on one lot is netted against gains on other lots within the same classification — all matched STCG lots are pooled together, and all matched LTCG lots are pooled together, before tax is applied to each pool. If a pool's net result is a loss, this calculator shows zero tax for that pool rather than a negative figure; it does not model carrying that loss forward to a future year or setting it off against gains in the other pool or against other income heads, which follow separate statutory rules.

Does it matter whether I select listed equity shares or equity-oriented mutual fund units?

Not for the tax computation — sections 111A and 112A tax both instrument types identically, at the same rates, thresholds, and holding-period rule, provided STT has been paid. The asset type selector only changes labeling and context in this calculator; it does not change any number in the result.

Does this cover debt mutual funds, real estate, gold, or unlisted shares?

No. Debt funds, real estate, gold, and unlisted or non-STT-paid securities follow different capital-gains provisions with different rates, holding-period thresholds, and (for debt funds since April 2023) different indexation treatment entirely. This calculator is scoped only to STT-paid listed equity shares and equity-oriented mutual fund units under sections 111A and 112A.