What capital gains tax is
When you sell shares or mutual fund units for more than you paid, the profit is a capital gain. It is taxed in the year you sell.
How much tax depends on how long you held them.
- Held 12 months or less: a short-term gain. The whole profit is taxed at 20%.
- Held more than 12 months: a long-term gain. The first ₹1,25,000 of long-term gains in a year is tax free. The rest is taxed at 12.5%.
- Cess of 4% is added to the tax in both cases.
How to use this calculator
- Enter the total you paid to buy the shares or units. Add the brokerage you paid.
- Enter the total you got on selling them, after brokerage.
- Pick how long you held them.
- Enter your other taxable income this year, like salary after deductions. If it is under ₹4 lakh, the unused part of the tax-free slab is set against your gains.
- If you sold other shares or funds this year at a long-term profit, enter that profit. It uses up the tax-free limit first.
STT cannot be deducted. Brokerage and other charges on the trade can be. STT, the securities transaction tax, cannot.
Rates for tax year 2026-27
| Held for | Tax rate | Tax free |
|---|---|---|
| 12 months or less | 20% | Nothing |
| More than 12 months | 12.5% | First ₹1,25,000 of long-term gains in the year |
These rates started on 23 July 2024. Budget 2025 and Budget 2026 did not change them. The Income-tax Act, 2025 keeps them, from 1 April 2026.
Worked example
The numbers the calculator opens with: bought for ₹5,00,000, sold for ₹8,00,000, held more than 12 months.
| Profit | ₹8,00,000 − ₹5,00,000 = ₹3,00,000 |
|---|---|
| Tax free | ₹1,25,000 |
| Taxed | ₹3,00,000 − ₹1,25,000 = ₹1,75,000 |
| Tax | 12.5% of ₹1,75,000 = ₹21,875 |
| Cess | 4% of ₹21,875 = ₹875 |
| Total tax | ₹22,750 |
Selling before or after 12 months
Tax on the same profit, with no other long-term gains that year:
| Profit | Held 12 months or less | Held more than 12 months |
|---|---|---|
| ₹1,00,000 | ₹20,800 | ₹0 |
| ₹3,00,000 | ₹62,400 | ₹22,750 |
| ₹10,00,000 | ₹2,08,000 | ₹1,13,750 |
Waiting past 12 months lowers the rate and brings in the tax-free limit. Check the date you bought before you sell.
Use the tax-free limit every year. If your long-term profit is under ₹1,25,000 this year, you can sell and buy back to lock in that profit tax free. The new buy price is then your cost for later.
Frequently asked questions
Does the ₹12 lakh rebate cover capital gains?
No. The rebate under the new tax regime does not apply to tax on these gains. But if your other income is below ₹4 lakh, the tax-free slab you have not used is set against the gains first. This calculator does that when you enter your other income.
Which mutual funds does this cover?
Equity mutual funds: those that keep at least 65% in Indian shares. Gains on debt funds bought after 1 April 2023 are added to your income and taxed at your slab rate.
What if I bought before 1 February 2018?
For shares and equity funds bought before then, your cost is the higher of what you paid and the price on 31 January 2018. That price cannot be counted above what you sold for. Enter that cost as what you paid.
What if I sold at a loss?
You pay no tax on that sale. A short-term loss can be set off against short-term or long-term gains. A long-term loss can only be set off against long-term gains. What is left can be carried forward for 8 years if you file your return on time.
Can I share my numbers with someone?
Yes. The numbers you enter are saved in the page address. Copy the link from your browser and the other person sees the same result.