Skip to main content
Capital-gains utility

Capital Gains Exemption Calculator — Sections 54, 54F and 54EC

Reviewed by Finin2min Editorial Desk · Last reviewed 12 August 2026

Estimate residential-house or specified-bond reinvestment exemption using ₹10 crore and ₹50 lakh caps and route-specific formulas.

Estimate exemption under sections 54, 54F or 54EC

Calculation basis

The section 54 two-house option requires gain not exceeding ₹2 crore and no earlier exercise of that option. Section 54EC requires timely qualifying bond investment; a CGAS deposit does not replace it.

Source check: 21 October 2026. Section54 two-house provisos and once-in-lifetime condition; 54EC investment deadline.

Official provision 1

Indicative exemption

The original asset must be long-term, and all route-specific conditions must be met.
Exemption indicated
—
Taxable gain after exemption
—
MeasureResult
Investment admitted for formula—
Formula applied—
Lock-in / subsequent-transfer warning—
Income-tax Act, 2025 note: Under the Income-tax Act, 2025 (effective FY 2026-27): Section 54 becomes Section 82, Section 54EC becomes Section 85, and Section 54F becomes Section 86. For FY 2025-26 and earlier, the old section numbers (54, 54EC, 54F) remain correct — the underlying exemption conditions and caps are unaffected by the renumbering. Section numbering note: This page uses Income-tax Act, 1961 terminology for AY 2026-27 references. If applying the Income-tax Act, 2025 for a later year, verify the corresponding provision and exact wording from the official Gazette or Income Tax Department before citing a section number.

How This Is Calculated

Different sections provide capital gains exemption on reinvestment: Section 54 (LTCG on a residential house, reinvested in another residential house), Section 54F (LTCG on any long-term capital asset other than a house, reinvested in a residential house), and Section 54EC (LTCG specifically from land or building, invested in specified bonds like NHAI/REC, subject to a ₹50 lakh investment cap and a 5-year lock-in). Each section has its own asset scope, reinvestment window and conditions — using the wrong section for your asset type will overstate the exemption you're actually entitled to.

Frequently Asked Questions

What is the difference between Section 54 and Section 54F? ▼
Section 54 applies when you sell a residential house and reinvest the capital gains in another residential house. Section 54F applies when you sell any other long-term capital asset (like listed shares, gold, or a plot of land) and reinvest the sale proceeds (not just the gains) in a residential house — the conditions and how much of the investment must go toward the new house differ between the two.
Does Section 54EC apply to all capital gains? ▼
No. Section 54EC applies specifically to long-term capital gains arising from the transfer of land or building — it does not apply to LTCG from shares, mutual funds, gold or other asset classes. It allows investment of up to ₹50 lakh in specified bonds (like NHAI or REC) with a 5-year lock-in.
What happens if I sell the new property before the lock-in period? ▼
If you sell the new asset acquired for claiming exemption (under 54, 54F or 54EC) within the specified lock-in period, the exemption previously claimed is generally withdrawn and added back to your taxable capital gains in the year of the subsequent sale.

Capital-gains exemption route

Sections 54, 54F and 54EC have different eligible assets, investment conditions, time windows, caps and consequences if the new asset is transferred or conditions fail. First identify the original asset and taxpayer status; then select the exemption route.

The calculator should not determine eligibility from investment amount alone. Preserve sale/purchase dates, ownership documents, cost/improvement evidence and Capital Gains Account Scheme evidence where applicable.

Input integrity

  • Use source documents rather than approximate memory.
  • Confirm period, units, tax regime/category and sign conventions.
  • Test zero, threshold and just-above-threshold cases where relevant.

Output interpretation

  • Separate arithmetic output from legal eligibility/classification.
  • Preserve assumptions and the official-source date.
  • Use the linked detailed guide for exceptions and evidence.

Primary-source starting points

Reviewed 22 August 2026. Always test later amendments, corrigenda and portal implementation before a live filing or transaction.

Methodology, assumptions and sources

Scope: Computes the capital gains exemption available under Section 54 (reinvestment in a residential house), Section 54F (reinvestment of net sale consideration from a non-residential-property asset into a residential house) and Section 54EC (investment in specified bonds), and the resulting taxable gain after exemption.

Calculation logic

  1. Section 54: exemption = lower of (capital gain, amount invested in the new residential house within the prescribed period), available only where the asset sold is a long-term residential house property.
  2. Section 54F: exemption = Capital gain × (Net sale consideration reinvested in a new residential house ÷ Total net sale consideration), available where the asset sold is any long-term capital asset other than a residential house, subject to the condition that the assessee does not own more than one other residential house on the date of transfer.
  3. Section 54EC: exemption = lower of (capital gain, amount invested in specified bonds — currently NHAI/REC or other notified bonds — within 6 months of transfer), capped at ₹50 lakh per financial year, and available only for gains from land or building (not other capital assets).
  4. Taxable long-term capital gain after exemption = Total computed LTCG − Exemption claimed under the applicable section.

Inputs and assumptions

Exclusions and edge cases

Sources

Review status: reviewed and approved by CA Nikhil Gupta on 13 July 2026.

Guides that use this calculator

Background, worked examples and the rules behind these numbers.