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.

If you sold land or a building, it works the tax out both ways. There are two ways to do it, and the wrong one can cost lakhs.

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 sales, 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 is used up against a gain that was never going to be taxed, and it does not carry forward, because none of it is left. 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.

The Choice On Older Property

Did you buy the land or building before 23 July 2024? Then there are two ways to work out the tax. You may use the one that costs you less.

One way is 12.5% of the plain gain. The other lifts your old cost for inflation first. Then it charges 20% on the smaller gain. The calculator does both and tells you which one wins. Buy nothing with the money and the plain 12.5% tends to win. That is why people think it always wins.

Spend it on a new home and this can flip. What you spend is a fixed sum, so it covers much more of the smaller gain. Read downsizing your home for a case where the right pick saves nearly ₹8 lakh.

Gold and unlisted shares do not get this choice. People who live abroad do not get it either.

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 page is for learning. It is not tax advice for you. It uses the rates for the tax year 2026-27. Long term gains are taxed at 12.5%. On listed shares and equity funds the first ₹1,25,000 a year is free. Short term equity gains are taxed at 20%. Debt funds and other short term sales are taxed at your slab rate. A 4% cess goes on top. Bought land or a building before 23 July 2024? It works the tax out the other way too, at 20% on your lifted cost, and takes the lower. The index is 384 this year. The base is 100 for 2001-02. The home relief here assumes you sold a home and bought a home. That is the common case. Selling a plot, or a second house, follows other rules. It assumes you live in India. It leaves out the extra charge on very high incomes. It does not handle stamp duty or the cost of any work you did on the place. Nor the special bank account you must park unspent money in before your return is due. Tax rules change every year. Your filing software or a tax expert should do the real sum. Please check the rules before you act on any of this.