Money calculators

Capital Gains Tax Calculator (Shares & Mutual Funds)

Enter what you paid, what you sold for and how long you held. The calculator applies the equity capital gains rules in force since 23 July 2024.

Quick answer: Gain = sale value − purchase cost − selling costs. For example, with purchase cost of ₹5,00,000, sale value of ₹8,00,000 and holding period of 18 months, the tax payable is ₹22,750.

How the Capital Gains Tax calculation works

  • Gain = sale value − purchase cost − selling costs
  • Short-term (12 months or less): tax = gain × 20%
  • Long-term (over 12 months): tax = (gain − unused part of ₹1.25 lakh) × 12.5%
  • Plus 4% health and education cess

Equity capital gains rules

Since 23 July 2024, listed shares and equity mutual funds are taxed at 20% if sold within 12 months and 12.5% after that, with the first ₹1.25 lakh of long-term gains each year tax-free. A ₹5 lakh long-term gain costs about ₹48,750 in tax with cess, leaving ₹4.51 lakh.

Reducing capital gains tax legally

  • Hold equity for more than 12 months to move from 20% to 12.5%.
  • Harvest up to ₹1.25 lakh of long-term gains every year by selling and rebuying.
  • Set off capital losses against gains; carry unused losses forward for 8 years by filing on time.
  • Spread large sales across two financial years to use the exemption twice.

Large gains may need advance tax — see the Advance Tax Calculator.

What you need for the Capital Gains Tax Calculator (Shares & Mutual Funds)

Purchase costAn amount in your currency.
Sale valueAn amount in your currency.
Holding periodA number (months).
Brokerage and other selling costsAn amount in your currency.
Long-term gains already made this yearAn amount in your currency. The ₹1.25 lakh exemption is shared across all your equity LTCG in a financial year

How to use the Capital Gains Tax Calculator (Shares & Mutual Funds)

  1. Check the Region line at the top of the calculator. Your country, currency and units are detected automatically; change them if needed.
  2. Enter purchase cost, sale value, holding period, brokerage and other selling costs and long-term gains already made this year. Example values are filled in so you can see how it works.
  3. Read your result: the tax payable appears instantly, with type of gain, capital gain and gain after tax underneath.
  4. Use Copy result, Share link or Print to keep the answer. Nothing you type is sent to our servers.

Capital Gains Tax calculation example

Using the calculator’s example values, in Indian rupees:

Inputs
Purchase cost₹5,00,000
Sale value₹8,00,000
Holding period18 months
Brokerage and other selling costs₹0.00
Long-term gains already made this year₹0.00
Results
Tax payable₹22,750
Type of gainLong-term (held over 12 months)
Capital gain₹3,00,000
Gain after tax₹2,77,250
Effective tax on the gain7.58%

What affects the capital gains tax result most

We re-ran the example with each input 10% higher to see which ones move the tax payable most:

  1. If sale value is 10% higher, the tax payable rises by 45.7% to ₹33,150.
  2. If purchase cost is 10% higher, the tax payable falls by 28.6% to ₹16,250.

Focus on the first of these when you want to change the result. The calculator shows the biggest lever for your own numbers under the result.

Assumptions and limitations of the Capital Gains Tax Calculator (Shares & Mutual Funds)

  • Listed equity shares and equity-oriented mutual funds on which securities transaction tax was paid.
  • Sale on or after 23 July 2024.
  • Surcharge for very high incomes is not included.

Limitations

  • Shares bought before 1 February 2018 use a grandfathered cost (the higher of cost and the 31 January 2018 price); enter that value as the purchase cost.
  • Debt funds bought after 1 April 2023, gold and property follow different rules.
  • Results are estimates based on the numbers you enter. Check important decisions with a qualified professional.

Estimates for planning only. Not tax advice.

Capital Gains Tax Calculator (Shares & Mutual Funds) FAQs

How is LTCG on shares taxed now?

Gains on listed shares and equity funds held more than 12 months are taxed at 12.5% plus cess, and the first ₹1.25 lakh of such gains in a financial year is tax-free.

What is the STCG tax rate on shares?

20% plus cess when sold within 12 months, whatever your income slab.

What is tax-gain harvesting?

Selling and immediately rebuying enough equity each year to realise up to ₹1.25 lakh of long-term gains tax-free. It raises your purchase cost and lowers future tax.

Is the ₹1.25 lakh exemption per stock?

No. It applies to your total long-term gains on listed equity and equity funds in a financial year.

What formula does the Capital Gains Tax Calculator (Shares & Mutual Funds) use?

Gain = sale value − purchase cost − selling costs. Short-term (12 months or less): tax = gain × 20%. Long-term (over 12 months): tax = (gain − unused part of ₹1.25 lakh) × 12.5%. Plus 4% health and education cess.

What do I need to use the Capital Gains Tax Calculator (Shares & Mutual Funds)?

You need purchase cost, sale value, holding period, brokerage and other selling costs and long-term gains already made this year. Example values are pre-filled, and the calculator converts between metric and imperial units and any currency.

What affects the capital gains tax result most?

If sale value is 10% higher, the tax payable rises by 45.7% to ₹33,150. If purchase cost is 10% higher, the tax payable falls by 28.6% to ₹16,250.

Embed this calculator on your website

Free for any website or blog. Paste this code where the calculator should appear — it resizes itself and needs no sign-up.