wiseowlcalc
Country: IndiaIndia

Capital gains tax on shares calculator

Selling shares 5 months after buying them at a ₹50,000 gain costs ₹10,400 with cess (short term, 20%). Held beyond 12 months, the same sale would be long term: the first ₹1,25,000 of gains in the year is free and the rest pays 12.5%.

Long term after more than 12 months.
₹
2 lakh
₹
2 lakh 50 thousand

Tax on the gain

₹10,400

A short-term gain of ₹50,000 after 5 months, taxed at 20% (s.196, was 111A): ₹10,400 with cess, leaving ₹2,39,600 of the sale after costs and tax.

  • Cost and expenses₹2,00,000
  • Gain after tax₹39,600
  • Tax₹10,400
Holding period
5 months
Term
Short term
Gain
₹50,000
Taxable gain
₹50,000
Rate
20%
Tax on the gain
₹10,400
Tax on all income
₹1,19,600
Sale after costs and tax
₹2,39,600

Shares or units bought before 1 February 2018 are grandfathered: enter the grandfathered value (the cost the Act allows) as the purchase price.

Unused basic exemption reduces special-rate gains for a resident. Rules 2026-27, checked 2026-11-25. This is an estimate, not tax advice.

How the gain is worked out

StepAmount
Sale price₹2,50,000
Less selling costs₹0
Less purchase price₹2,00,000
Gain₹50,000
Taxable gain₹50,000

Gain = sale price − selling costs − cost − improvement (s.72). Exemptions come off before the rate is applied.

Tax on the gain₹10,400

How is tax on shares calculated?

For listed shares sold on an exchange (STT paid) the holding period is 12 months. Sold within it, the gain is short term and taxed at 20% (s.196 (was 111A)). Held longer, it is long term: the first ₹1,25,000 of such gains in a year is exempt and the rest is taxed at 12.5% (s.198 (was 112A)). Add selling costs such as brokerage to the cost side.

short term: tax = gain × 20% · long term: tax = (gain − ₹1,25,000) × 12.5%

Worked example: sold within 12 months

Worked example: sold after 3 years

Which shares get the equity rates?

Shares and equity fund units sold on a recognised exchange with securities transaction tax (STT) paid. An off-market sale or unlisted shares are taxed like other assets: slab rates up to 24 months, then 12.5%. Untick "Sold on an exchange" under Tax details to see that case. Shares bought before 1 February 2018 are grandfathered: enter the grandfathered value as the purchase price.

Questions people ask

How much tax do I pay on shares sold within a year?

20% of the gain, plus cess: ₹10,400 on a ₹50,000 gain.

Is there a tax-free limit on share gains?

Yes, for long-term gains: the first ₹1,25,000 in a year. On a ₹3,00,000 gain, ₹1,25,000 is free and ₹1,75,000 pays 12.5%.

Does STT matter?

Yes. The 20% and 12.5% equity rates need STT paid on the sale. Without it the shares are taxed as other assets.

Can I set off a share loss against a gain?

The Act allows losses to be set off and carried forward, but this calculator does not model losses: it shows no tax when the sale price is not above the cost.

Where does the cess come from?

A 4% health and education cess is added to the tax. Surcharge on these gains is capped at 15%.

Sources

More capital gains tax calculator tools

Published by wiseowlcalc · Last updated · India, FY 2026-27 · Checked by wiseowlcalc against the sources above; not yet reviewed by a named professional (editorial policy). Rules: 2026-27, checked 25 Nov 2026. Equity bought before 1 February 2018 is grandfathered: enter that value as the cost. Surcharge on these gains is capped at 15%, and marginal relief is not applied, so tax above ₹50 lakh of income is about. Losses and their carry-forward are not modelled. Estimate, not tax advice.

Calculators give estimates for planning only. They are not financial, tax, legal or medical advice. Check important decisions with a qualified professional.