Ujjal Das/AI-Generated Image
Summary: There is a legal way to pay zero capital gains tax on your equity profits—if you reinvest the money in a home. Most investors who try it save less than they expected, because they misread the one rule that determines how much of the tax actually disappears.
Most investors treat capital gains tax as fixed. They sell, they see the tax, they pay it. But the law offers a legal way to defer or avoid this tax if you reinvest the money in a home. The rules are specific, and the savings can run into lakhs. Here is the full picture, in plain terms.
What you owe when you sell
Say you bought listed shares for Rs 50 lakh. Five years later you sell them for Rs 2 crore. Your profit, Rs 1.5 crore, is a long-term capital gain. Long-term gains on equity are taxed at 12.5 per cent. So your tax comes to Rs 18.75 lakh.
| Your gain, and the tax on it | Listed equity - Held 5 years |
|---|---|
| You bought for | Rs 50,00,000 |
| You sold for | Rs 2,00,00,000 |
| Long-term capital gain | Rs 1,50,00,000 |
| Tax at 12.5 per cent | Rs 18,75,000 |
That is Rs 18.75 lakh leaving your hands. Now here is the part the law allows.
What Section 54F does
Section 54F lets an individual or a Hindu Undivided Family avoid this tax. Section 54F has been renumbered as Section 86 under the Income-tax Act, 2025, which governs sales made from 1 April 2026. The rules are unchanged.
The condition is simple to state: take the money from the sale and buy one residential house in India. Do it within the time the law allows, meet the other conditions, and the capital gains tax can fall to zero.
It applies when you sell any long-term asset that is not a residential house — your shares, equity funds, gold, or a plot of land. The house you buy with the proceeds is what earns you the exemption.
You reinvest the sale value, not the profit
This is where most people go wrong, and it is the single most important rule in the section. To wipe out the tax fully, you must reinvest the entire sale amount — the full Rs 2 crore, not just the Rs 1.5 crore profit.
Put in less, and the exemption shrinks in exact proportion. The formula the tax department uses is plain:
Exemption = Capital gain × (Amount you reinvest ÷ Total sale value)
So the decision comes down to two clear paths.
Reinvest Rs 1.5 crore (the profit only)
- You commit three-quarters of the net sale proceeds, so only three-quarters of the gain is exempt
- Tax still due: about Rs 4.7 lakh (at 12.5 per cent, before surcharge and cess)
- You keep Rs 50 lakh liquid, but you do not get the full exemption
Reinvest the full Rs 2 crore (the entire net consideration)
- The whole gain is exempt
- Tax due: nil
- But your entire sale proceeds are now locked into one house, which you must hold for three years
The zero-tax outcome is real. It simply costs more than the headline suggests. You are not redirecting a Rs 1.5 crore profit. You are committing Rs 2 crore of your wealth to a single property.
Five conditions you must meet
- Buy or build in time. Buy a house within two years of the sale, or build one within three years. Buying one year before the sale also counts.
- Own no more than one other house. On the date you sell, you must not own more than one residential house apart from the new one.
- Hold the new house for three years. Sell it sooner, and the exemption is reversed. The gain you saved becomes taxable in the year you sell.
- Park the money if you cannot buy yet. If you have not bought or built by the date your tax return is due, put the unused amount in a Capital Gains Account Scheme account. Skip this step, and you lose the exemption, even if you buy later.
- The exemption is capped at Rs 10 crore. The investment counted for the exemption cannot exceed Rs 10 crore. It will not affect most investors, but it is the law.
Should you actually do this?
A tax saving of Rs 18.75 lakh is large. But ask the harder question before you act: are you willing to move Rs 2 crore out of a diversified portfolio and into one house, and hold that house for three years?
If you were going to buy that home anyway, Section 54F is a genuine gift. Plan it before you sell, get the timing right, use the Capital Gains Account Scheme as a bridge, and the savings are yours. But if you have no independent reason to own more property, the maths is less kind. You give up liquidity. You give up diversification. You tie Rs 2 crore into a single asset that is slow and costly to sell, all to save 12.5 per cent of your gain.
Decide on the property on its own merits. If owning that home makes sense for your goals, your need for cash, and your overall mix of assets, then the exemption is a strong reason to act now rather than later. If it does not, paying the tax and keeping your money flexible may be the wiser choice.
What to do
If you are planning to sell a large long-term asset and you want to own a home, speak to a chartered accountant before you sell, not after. The exemption depends on timing, full reinvestment, and the Capital Gains Account Scheme. Get these right in advance, and you keep the tax. Get them wrong, and the savings slip away.
Also read: You are 47. Should your next rupee go to NPS or EPF?
This article was originally published on June 15, 2026.







