A 1.5 crore sale with a 90 lakh gain
The default describes a sale with a net consideration of 15,000,000 INR, or 1.5 crore, and an acquisition cost of 6,000,000 INR. The long-term capital gain is the difference, 9,000,000 INR. You then buy a new residential house costing 10,000,000 INR, and the tax rate including cess is set at 13%.
The headline answer is the Section 54 exemption: 9,000,000 INR, the whole gain. That saves 1,170,000 INR of tax at 13%. Underneath, the Section 54F line shows 6,000,000 INR, a smaller figure for the same numbers, with tax saved of 780,000 INR.
These are two different answers to two different situations, and only one of them applies to you. Section 54 is for the sale of a residential house. Section 54F is for the sale of some other long-term asset, such as shares or a plot, where the money goes into a residential house. The result sentence says the same thing: Section 54 applies when a house is sold, Section 54F when any other long-term asset is sold. The page shows both side by side so you can see how differently they treat the same reinvestment, not so you can choose the better one.
Read the inputs as a chain. The first two fields fix the gain. The third, the new house cost, decides how much of that gain is exempt. The fourth only converts the exempt amount into tax saved. Change the rate and the exemption does not move; change the house cost and both the exemption and the tax saved move together.
Section 54: the gain is what you have to reinvest
Under the formula the page uses, the Section 54 exemption is the smaller of two numbers: the capital gain and the cost of the new house. If the house costs at least as much as the gain, the whole gain is exempt. If it costs less, the exemption equals what you spent and the rest of the gain stays taxable.
On the default, the gain is 9,000,000 INR and the house costs 10,000,000 INR, so the cap does not bite and the full gain is exempt. You would get the same full exemption with a house costing exactly 9,000,000 INR. Anything spent above the gain does not increase the exemption.
This is the key planning point for a house seller. You do not need to reinvest the whole sale proceeds. You need to reinvest an amount equal to the gain. The rest of the money from the sale, which on the default is the 6,000,000 INR of original cost coming back to you, is free to use however you like without affecting the exemption in this formula.
A useful way to plan is to start from the gain. Run the page with your real sale and cost figures, note the total long-term capital gain, and then try a house cost equal to that gain. If you sold a house, that is the most the reinvestment needs to be for the formula to exempt everything; any budget above it is a lifestyle choice, not a tax one.
Section 54F: proportional to the net consideration
Section 54F works on a different base. The exemption is the gain multiplied by the share of the net sale consideration that you put into the new house. Reinvest all of the consideration and the whole gain is exempt. Reinvest part of it and the same fraction of the gain is exempt.
On the default, the house costs 10,000,000 INR against a net consideration of 15,000,000 INR. That is two thirds of the consideration. Two thirds of the 9,000,000 INR gain is 6,000,000 INR, which is the 54F figure on the page. The remaining 3,000,000 INR of gain stays taxable.
To exempt the full gain under 54F on these numbers you would need a house costing the full 15,000,000 INR, not just the 9,000,000 INR that Section 54 asks for. That is the practical difference. A seller of shares or land has to put the whole sale proceeds into the house to get the whole gain exempt, including the part that was simply their own cost coming back.
The page prints the tax saved under 54F on its own line. On the default it is 780,000 INR, which is 13% of the 6,000,000 INR exemption, compared with 1,170,000 INR under Section 54.
Seen another way, 54F treats the original cost as part of what must be reinvested. Out of each rupee of the 15,000,000 INR consideration on the default, 40 paise was cost and 60 paise was gain. Spending a rupee on the house exempts 60 paise of gain, not a full rupee. Section 54 does not apply that dilution, which is why it reaches the full gain with less money.
When the sale is smaller than the house
The lower preset cuts the net consideration to 9,000,000 INR with the same cost of 6,000,000 INR and the same 10,000,000 INR house. The gain is now 3,000,000 INR.
Both lines show 3,000,000 INR. Under Section 54 the house costs more than the gain, so the full gain is exempt, and the tax saved is 390,000 INR under either section. Under 54F the house costs more than the whole consideration, and the formula caps the ratio at one, so again the full gain is exempt. Spending more than the consideration cannot exempt more than the gain.
This is the case where the two sections agree. It happens whenever the new house costs at least as much as the net consideration. Once that is true, both formulas give the full gain.
In practice this tends to describe a seller trading up, where the new house is pricier than the asset sold and extra money comes from savings or a loan. Both sections then point to the same exempt figure, and the choice between them is settled purely by what kind of asset was sold.
When the gain is larger than the house
The higher preset raises the net consideration to 22,500,000 INR. With the same cost and house, the gain becomes 16,500,000 INR.
Now the house is the limit under Section 54. The exemption is the 10,000,000 INR spent, the tax saved is 1,300,000 INR at 13%, and about 6.5 million of the gain remains taxable. Under 54F the house is 10,000,000 INR out of 22,500,000 INR of consideration, so the exemption is 7,333,333.33 INR, a little under half of the gain, and the 54F tax saved is 953,333.33 INR.
Watch how the gap between the two lines changes across the three cases. With the smaller sale they agree exactly. On the default they differ by 3,000,000 INR. On the larger sale they differ by more than 2.6 million. The more of the consideration is original cost rather than gain, the more 54F lags behind 54 for the same house.
For someone selling shares to buy a house, the higher preset is a warning. Spending 10,000,000 INR on a house out of 22,500,000 INR of proceeds feels like a large reinvestment, yet it exempts well under half the gain under 54F. If the aim is to shelter most of the gain, the house budget has to be measured against the full proceeds.
Getting the inputs in the right form
Net sale consideration means what you received after selling expenses such as brokerage, not the headline price. Entering the gross price overstates the gain and, for 54F, also changes the ratio used.
The acquisition cost field takes either the indexed cost or the base cost, whichever applies to your asset and the rules you are working under. The calculator does not index anything itself and does not know when you bought the asset. If you type the unindexed figure when indexation applies, the gain will look larger than it is.
The tax rate field expects the rate including cess. The default is 13%. Check the rate that applies to your asset and your sale; the result for tax saved is simply the exempt amount times whatever you enter. If you enter zero cost, the whole consideration is treated as gain. If cost exceeds the consideration, every line shows zero, because the engine floors the gain at zero rather than showing a loss.
If you are unsure about any input, run the page twice with the low and high versions of that figure. Because the formulas are simple, you will see immediately whether the uncertainty matters to the exemption or whether it only moves the tax saved by a small amount.
Conditions this page does not test
The exemption formulas here are only the arithmetic. Both sections come with conditions about which asset was sold, how long it was held, what kind of house is bought, the time allowed to buy or build it, how many houses you already own and what happens if the new house is sold soon after. The calculator checks none of them. A result here does not mean you qualify.
One limit is built in. The result sentence states that the reinvestment counted for either section is capped at 10 crore, so a house cost above that adds nothing to the exemption on this page. Every other condition is left to you.
The new house cost should be what you actually spend, or commit, on a qualifying residential property within the allowed period. If part of the money goes into a second property, a commercial unit or a house bought outside the allowed window, it may not count.
Use the page to understand the size of the exemption and how 54 and 54F differ. Before filing, confirm the conditions and the right rate with a chartered accountant or the Income Tax Department guidance for your case.