Capital Gains Tax Calculator
Evaluate profit, tax liabilities, and net realized proceeds from your asset sales.
Related Calculators on FinCalcs
After using this calculator, explore these related tools to further optimize your financial planning:
GST Calculator
Quickly compute GST for any transaction with correct CGST/SGST/IGST split
Income Tax Calculator
Optimise your tax liability by comparing old and new tax regimes
HRA Exemption Calculator
Calculate House Rent Allowance exemption for salaried employees
Detailed Capital Gains Calculator
Calculate indexed capital gains on property, gold, and physical assets
Inflation Calculator
Understand how inflation affects investment returns and indexation benefits
SIP Calculator
Project returns from equity mutual fund investments that generate capital gains
What Is a Capital Gains Tax Calculator?
A Capital Gains Tax Calculator helps taxpayers compute the tax due on profits arising from the sale of capital assets such as property, stocks, mutual funds, gold, and bonds. Under the Income Tax Act, 1961, capital gains are classified as short-term or long-term based on the holding period of the asset, with different tax rates applicable to each category. For listed equity shares and equity-oriented mutual funds held for more than 12 months, gains are long-term and taxed at 10% over ₹1 lakh under Section 112A. For debt funds, real estate, and gold, the holding period for long-term classification is 36 months, with indexation benefits available under Section 48.
Short-term capital gains on listed equity shares and equity mutual funds sold within 12 months are taxed at 15% under Section 111A. For other assets held short-term, gains are added to the taxpayer's ordinary income and taxed as per their applicable income tax slab. The calculator accounts for these distinctions, applies the correct tax rate, and computes the indexation cost for long-term debt and real estate assets using the Cost Inflation Index (CII) published by the Central Board of Direct Taxes (CBDT) each financial year. Indexation adjusts the purchase price for inflation, significantly reducing the taxable gain on assets held over many years.
Beyond basic computation, the calculator helps users plan tax-efficient investment strategies — such as tax-loss harvesting, where realised losses are offset against gains to reduce liability. Short-term capital losses can be set off against both short-term and long-term gains, while long-term losses can offset only long-term gains. Unabsorbed losses can be carried forward for up to 8 assessment years. The calculator also accounts for transaction costs, Securities Transaction Tax (STT), and the specific exemptions available under Sections 54, 54EC, 54F, and 54B for reinvestment of gains into residential property, specified bonds, or agricultural land, making it a comprehensive planning tool.
How to Use This Calculator
Step 1: Select Asset Type and Holding Period
Choose the asset category — equity shares, equity mutual funds, debt funds, real estate, gold, or other assets. Enter the date of purchase and date of sale to determine whether the gain is short-term or long-term.
Step 2: Enter Purchase and Sale Details
Input the full purchase price including brokerage and stamp duty (cost of acquisition), additional costs such as improvement costs for property, and the full sale consideration received after deducting selling expenses.
Step 3: Apply Indexation (If Applicable)
For long-term debt funds, real estate, and gold purchased before 1 April 2001 or held long-term, the calculator applies the Cost Inflation Index to inflate the acquisition cost, reducing the taxable gain.
Step 4: Claim Exemptions
Enter details of reinvestment under Section 54 (purchase of new residential property within 2 years), Section 54EC (capital gains bonds up to ₹50 lakh within 6 months), or Section 54F (new residential property from any capital gain).
Step 5: Compute and Offset Losses
Enter any brought-forward capital losses or losses from other asset sales. The calculator nets losses against gains within the same category and applies the appropriate tax rate to the final gain.
Real-World Example
Meet Vikram Patel. Vikram purchased a residential flat in Mumbai for ₹35 lakh in June 2016 and sold it for ₹72 lakh in March 2024. He wants to compute his long-term capital gains and explore exemption options under Section 54.
Using the Capital Gains Tax Calculator with indexation:
Sale Consideration
₹72,00,000
Purchase Cost (2016)
₹35,00,000
CII 2016-17
264
CII 2023-24
348
Indexed Cost of Acquisition
₹46,13,636
Long-Term Capital Gain
₹25,86,364
Vikram can invest the full gain in a new residential property within 2 years or deposit the amount in a Capital Gains Account Scheme (CGAS) to claim exemption under Section 54. Alternatively, he can invest up to ₹50 lakh in 54EC bonds (REC or NHAI) within 6 months to defer the tax. Without exemption, tax at 20% with indexation would be approximately ₹5,17,273.
Capital Gains Tax Formula
Capital gain is calculated as the difference between the sale consideration and the cost of acquisition (with indexation for long-term assets). For long-term assets, the indexed cost of acquisition = Cost of Acquisition × (CII of Sale Year / CII of Purchase Year). Short-term gains on listed equity are taxed at 15%, while long-term gains on equity over ₹1 lakh are taxed at 10%. For other long-term assets, tax is 20% with indexation.
Frequently Asked Questions
For listed equity shares and equity-oriented mutual funds, the holding period is 12 months. For debt mutual funds, real estate, gold, and unlisted shares, it is 36 months. For immovable property (land and building), it is 24 months from FY 2024-25. Assets held beyond these periods qualify as long-term and attract lower tax rates with indexation benefits where applicable.
Indexation adjusts the purchase price of an asset for inflation using the Cost Inflation Index (CII) published annually by the CBDT. By inflating the acquisition cost, indexation reduces the taxable gain, so you pay tax only on the real (inflation-adjusted) gain rather than the nominal gain. This is particularly beneficial for assets held over many years, such as real estate and debt funds.
Yes, under several sections of the Income Tax Act. Section 54 exempts tax on gains from selling residential property if you reinvest in a new residential property. Section 54EC allows exemption up to ₹50 lakh by investing in specified bonds (REC/NHAI) within 6 months. Section 54F exempts gains from selling any long-term asset (other than residential property) if you purchase a residential house. Each section has specific conditions and timelines that must be strictly followed.
Tax-loss harvesting involves selling an underperforming investment to realise a capital loss, which is then used to offset capital gains from other investments. Short-term capital losses can offset both short-term and long-term gains, while long-term losses can offset only long-term gains. Any unabsorbed loss can be carried forward for up to 8 assessment years. This strategy helps reduce your overall tax liability while rebalancing your portfolio.
Capital gains on foreign assets such as US stocks or international mutual funds are taxed similarly to domestic assets based on holding period. Cryptocurrencies and virtual digital assets are taxed at a flat 30% under Section 115BBH regardless of holding period, with no deduction allowed except the cost of acquisition. Losses from crypto transactions cannot be set off against any other income.
NRIs selling property in India are subject to capital gains tax at the same rates as residents: 20% with indexation for long-term gains or slab rates for short-term gains. However, TDS is deducted by the buyer at a higher rate — 20% for long-term gains (Section 195) and 30% for short-term gains if the sale consideration exceeds ₹50 lakh. NRIs can claim the lower rate by obtaining a certificate under Section 197 from their Assessing Officer.
Agricultural land in rural areas is not considered a capital asset under Section 2(14) of the Income Tax Act, so its sale is exempt from capital gains tax. However, agricultural land in urban or peri-urban areas (within notified distance from municipal limits) is treated as a capital asset. Gains from selling urban agricultural land held for more than 24 months are long-term and taxed at 20% with indexation, while short-term gains are added to income and taxed as per slab rates.
From April 1, 2023, debt mutual funds held for more than 36 months are no longer eligible for indexation benefits. Instead, long-term capital gains on debt funds are taxed at 20% without indexation, and the holding period for long-term classification remains 36 months. Short-term gains on debt funds (held for 36 months or less) are added to the taxpayer's income and taxed as per their applicable slab rate, which can be as high as 39% including cess.
Section 54F allows exemption on capital gains from the sale of any long-term asset (other than a residential house) if the net consideration is invested in purchasing or constructing one residential house in India. The exemption is available for only one residential house. If you purchase multiple houses, the exemption applies only to the amount invested in one house, and the remaining gain is taxable. The house must be purchased within 1 year before or 2 years after the sale, or constructed within 3 years.
If you fail to reinvest the capital gains in a new residential property within the specified timeline (2 years for purchase or 3 years for construction), the unutilized amount must be deposited in a Capital Gains Account Scheme (CGAS) with a scheduled bank before the ITR due date. If not deposited, the tax exemption is revoked and the capital gain becomes taxable in the year of sale. Amounts deposited in CGAS must be utilized within the prescribed period, and any unutilized amount after the deadline becomes taxable.
Key Takeaways
Short-term capital gains on listed equity (held ≤ 12 months) are taxed at 15%; on other assets at slab rates as per your income tax bracket.
Long-term capital gains on equity over ₹1 lakh are taxed at 10% without indexation; on debt and real estate at 20% with indexation benefit.
Indexation using the Cost Inflation Index significantly reduces taxable gains on assets held for long durations by adjusting for inflation.
Tax-loss harvesting allows offsetting realised losses against gains within the same category, with unabsorbed losses carry-forward for up to 8 years.
Sections 54, 54EC, 54F, and 54B provide complete or partial exemption if gains are reinvested in residential property, specified bonds, or agricultural land within prescribed time limits.
Why This Matters
Capital gains tax can consume a substantial portion of investment returns, especially for long-held assets like real estate and debt funds that have appreciated significantly due to inflation. Without proper planning, investors may lose 10% to 20% of their gains to tax, eroding real returns. Understanding the holding period rules, indexation benefits, and reinvestment exemptions is critical for tax-efficient wealth creation. The distinction between short-term and long-term treatment, combined with the ability to offset losses across asset classes, creates opportunities for strategic tax planning throughout the financial year. A capital gains calculator ensures investors maximise post-tax returns while staying fully compliant with the Income Tax Act.
This calculator is for educational and planning purposes. Consult a qualified professional for personalized advice.