CodePackr Finance / Tax Planning / Capital Gains Tax Calculator

Capital Gains Tax Calculator

Calculate Short-Term (STCG) and Long-Term (LTCG) capital gains taxes on equity, real estate, and debt under post-Budget 2024 tax rules.

Client-Side Execution & Privacy Guarantee

Calculations run locally in your web browser. The amounts, rates, and other figures you enter are not sent to our servers. This calculator is for educational estimates only and is not personalized financial advice.

Selling assets like stocks, mutual funds, or real estate generates profits known as capital gains, which are subject to taxation. The Capital Gains Tax Calculator helps Indian investors project their tax liability by differentiating between Short-Term Capital Gains (STCG) and Long-Term Capital Gains (LTCG). Designed with strict privacy standards, this tool performs all computations entirely within your browser, ensuring your sensitive investment data is never transmitted or stored.

Capital gains taxation rules in India underwent significant overhauls in the 2024 Union Budget, altering holding periods, modifying tax rates, and revising indexation benefits for real estate and unlisted assets. This calculator provides educational estimates based on these recent statutory updates. Because individual tax situations, grandfathering clauses, and cess applications can be highly complex, always verify these estimates with a qualified Chartered Accountant (CA) or tax professional before filing your Income Tax Return (ITR). This content is for informational purposes only and is not financial advice.

Short-Term vs. Long-Term Classification

The first step in calculating capital gains is determining the holding period of the asset. For listed equity shares and equity-oriented mutual funds, a holding period of less than 12 months classifies the profit as STCG, while holding for more than 12 months qualifies as LTCG. The classification fundamentally dictates the tax rate applied to your profits.

For real estate, unlisted shares, and physical gold, the holding period for long-term classification was standardized to 24 months in recent budgets. Any sale before the 24-month mark is treated as short-term. Debt mutual funds bought after April 1, 2023, are uniquely treated as short-term capital assets regardless of the holding period, and gains are taxed according to the investor's applicable income tax slab.

Understanding the Post-Budget 2024 Tax Rates

The Union Budget 2024 introduced sweeping changes to capital gains tax structures. For listed equities, the STCG rate was increased to 20%, while the LTCG rate was raised to 12.5%. However, the tax-free exemption limit for LTCG on equities was concurrently increased to ₹1.25 Lakh per financial year, offering some relief to retail investors.

For real estate and unlisted assets, the LTCG tax rate was reduced to a flat 12.5%, but the benefit of indexation—which allowed investors to adjust their purchase price for inflation—was largely removed for new properties. Special grandfathering clauses exist for properties acquired before July 2024, allowing taxpayers to choose between a 20% rate with indexation or a 12.5% rate without, depending on which yields a lower tax burden.

Setting Off Capital Losses

The Income Tax Act allows investors to set off capital losses against capital gains to reduce their overall tax liability. However, strict rules govern this process. Short-term capital losses (STCL) can be set off against both short-term and long-term capital gains in the same financial year. This flexibility allows investors to strategically harvest losses to offset equity profits.

Conversely, long-term capital losses (LTCL) can only be set off against long-term capital gains. You cannot use a long-term loss to offset a short-term gain. If losses cannot be fully set off in the current year, they can be carried forward for up to eight consecutive assessment years, provided the income tax return is filed before the original due date.

When to use this calculator

  • Before selling a stock or mutual fund to decide if holding it slightly longer will unlock lower LTCG tax rates.
  • When planning the sale of a real estate property to estimate the net cash in hand after tax liabilities.
  • To determine how much of your ₹1.25 Lakh annual LTCG equity exemption you have utilized.
  • When calculating the tax implications of liquidating debt mutual funds under the newer tax slab rules.
  • To assist in year-end tax loss harvesting strategies by comparing projected gains against realized losses.

How to use the Capital Gains Tax Calculator

  1. Select the asset class you are selling (e.g., Listed Equity, Real Estate, Debt Mutual Fund).
  2. Input your original purchase price (cost of acquisition).
  3. Enter the final sale price (value of consideration) and the dates of purchase and sale.
  4. Input any transfer expenses incurred during the sale (e.g., brokerage fees, stamp duty).
  5. Let the calculator determine the holding period and classify the gain as STCG or LTCG.
  6. Review the estimated tax liability based on the applicable statutory rate for that asset class.
  7. Factor in the ₹1.25 Lakh exemption if calculating LTCG for equity assets.

Worked examples

Listed Equity LTCG with Exemption

Input

Asset: Listed Equity. Purchase Price: ₹5,000,000. Sale Price: ₹5,300,000. Holding Period: 18 Months (LTCG).

Output

Gross profit: ₹3,00,000 (no transfer expenses entered). Long-term classification after 18 months. Exemption of ₹1,25,000. Taxable gain: ₹1,75,000. Tax at 12.5%: ₹21,875, before any cess.

These figures follow the post-Budget 2024 listed-equity LTCG framework used by this tool (12-month holding period, 12.5% rate, ₹1.25 lakh exemption). A 4% health and education cess, if applicable, would be extra. Check the current official rates, exemption and cess on the Income Tax Department site.

Real Estate Sale (Post-2024 Rules)

Input

Asset: Real Estate (bought after July 2024). Purchase Price: ₹4,000,000. Sale Price: ₹6,000,000. Holding Period: 3 Years.

Output

Capital gain: ₹20,00,000. No indexation is applied in this tool’s post-July 2024 property path. Tax at 12.5%: ₹2,50,000, before any cess.

The example assumes a property bought after 23 July 2024, held for 24 months or more, and taxed at the 12.5% long-term rate without indexation, which is the convention coded in this calculator. Properties bought earlier may have a transitional choice between 12.5% without indexation and 20% with indexation; this example does not compute that choice. Confirm the current official rule before you file.

Common mistakes and tips

  • Always deduct transfer expenses like brokerage fees, legal fees, or property registration costs from your final sale value to lower your taxable capital gain.
  • If nearing the 1-year mark on equity investments, consider waiting a few extra weeks to sell, transitioning the tax from a 20% STCG to a 12.5% LTCG.
  • Utilize the ₹1.25 Lakh LTCG exemption on equities every financial year; if unused, it cannot be carried forward to the next year.
  • For property bought before 2001, you can use the Fair Market Value (FMV) as of April 1, 2001, as your cost of acquisition to reduce tax liability.
  • Capital gains are subject to an additional 4% Health and Education Cess on the tax amount; ensure this is factored into your final budget.

Frequently asked questions

What is the exemption limit for Long-Term Capital Gains on shares?

Following Budget 2024, LTCG on listed equity shares and equity-oriented mutual funds is exempt up to ₹1.25 Lakh in a single financial year. Gains above this are taxed at 12.5%.

Can I claim indexation on real estate sold today?

The 2024 Budget removed indexation benefits for properties bought after July 23, 2024, taxing them at a flat 12.5%. Properties bought before this date have transitional provisions allowing taxpayers to calculate tax at 12.5% without indexation or 20% with indexation, paying whichever is lower.

How are Debt Mutual Funds taxed now?

For debt mutual funds purchased on or after April 1, 2023, the gains are classified as short-term regardless of the holding period and are added to your overall income, taxed at your applicable income tax slab rate.

Are intraday trading profits considered Capital Gains?

No. Profits from intraday trading (speculative business) and F&O trading (non-speculative business) are treated as business income, not capital gains, and are taxed according to your income tax slab.

Can I carry forward my capital losses to next year?

Yes, both short-term and long-term capital losses can be carried forward for up to 8 assessment years, provided you file your income tax return before the original due date.

Related Tax Planning Calculators

  • Income Tax Calculator — Estimate income tax liability under the New and Old Tax Regimes with standard deduction, 87A rebate, and slab breakdowns.
  • TDS Calculator — Estimate TDS under common sections (194A, 194C, 194H, 194I, 194J, 194O) with PAN / no-PAN rates and thresholds.
  • GST Calculator — Calculate GST inclusive and exclusive invoice amounts with statutory slab breakdowns (0%, 3%, 5%, 12%, 18%, 28%) and CGST/SGST/IGST splits.

See all Tax Planning calculators →