Calculators

Capital Gains Calculator

September 10, 2026

Most capital gains calculators answer one small question: I sold this, what do I owe? That is the easy part, and it is not the part that costs people money.

This one does the whole year. Put in everything you have sold, add any losses you are carrying from earlier years, and it works out what you owe, how much of your yearly tax free limit is still sitting unused, and how much more you could book right now without paying anything at all.

What you sold this year
You paid
You got back
Months held
Not yet
You paid
You got back
Months held
Not yet
You paid
You got back
Months held
Not yet
You paid
You got back
Months held
Not yet
Four rows is enough for most people. If you sold more, add similar ones together into one row.
Losses you are carrying from earlier years
From your earlier returns. These can only meet long term gains.
These are more useful, because they can meet either kind of gain.
Your tax slab
%
Only used for debt funds and short term property or gold, which are taxed at your slab rate.
Tax on this year’s gains
Not yet
including the 4% cess
Not yetfree limit still unused
Not yetmore you can book tax free
Not yetlosses carried forward
Fill in what you sold and the rest follows.

How we got there

Losses come off first. The free limit is applied to what is left.

1. Long term gains on shares and equity fundsNot yet
2. After your losses have been set against themNot yet
3. Less the yearly free limitNot yet
4. Tax on that, plus tax on your other gainsNot yet
5. Plus the 4% cessNot yet

How much more you can book tax free

This is your unused free limit plus any long term losses you are still carrying.

Extra long term equity gain you could book todayNot yet
Future tax that would save youNot yet

The Rule That Decides Everything

Your losses are taken off your gains first. The free limit is applied to whatever is left over.

That order is why the calculator warns you when you book a loss in a year your gains were already small. The loss gets swallowed by a gain that was never going to be taxed, and it does not carry forward, because it was fully absorbed. You have thrown away something worth 12.5% of its value in a future year.

The same rule works the other way. If you are carrying losses from a bad year, small harvesting achieves nothing, because the losses eat the gain before the free limit is reached. Book a bigger gain instead. Tax harvesting works through both of these with numbers.

Five Things Worth Knowing

If any of the terms here are unfamiliar, capital gains basics for investors covers what is taxed, when, and which units count as sold.


This calculator is for learning. It is not personal tax advice. It uses the rates for tax year 2026-27: 12.5% on long term gains with a free limit of ₹1,25,000 a year on listed shares and equity funds, 20% on short term equity gains, slab rates on debt funds, and a 4% cess on top. It assumes you are a resident individual, ignores surcharge on very high incomes, and does not handle the exemptions available when you put the proceeds of a property sale into another property. Tax rules change with every Budget. Your filing software or a qualified tax professional should do the actual calculation. Please check current rules before acting on any of this.