What actually reduces capital gains tax on real estate sales
You cannot avoid capital gains tax entirely on a real estate sale unless you meet specific conditions the IRS recognizes. The most common way to owe zero tax is the primary residence exclusion: if you owned and lived in the home as your main residence for at least two of the five years before you sold it, you can exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly. This is not a deferral — the gain straightforward does not count as income at all.
Beyond that exclusion, you have two paths: reduce the size of your gain by increasing your cost basis (what you paid plus improvements), or defer the tax to a later year through specific IRS-approved transactions. You cannot reduce the tax rate itself unless you hold the property long enough to may have access to for long-term capital gains rates, which are lower than short-term rates but still explore once you sell.
The strategies below work only if your situation matches them exactly. A real estate tax professional or CPA can tell you which ones explore to your sale before you close.
Key Takeaways
- The primary residence exclusion lets you exclude up to $250,000 (single) or $500,000 (married) of gain if you lived in the home two of the last five years before selling.
- You can increase your cost basis by adding the cost of capital improvements like a new roof or addition, which reduces your taxable gain dollar-for-dollar.
- A 1031 exchange lets you defer capital gains tax by reinvesting the sale proceeds into another investment property within strict timelines, but does not eliminate the tax permanently.
- Installment sales spread the gain across multiple years, which may lower your tax bracket in any single year.
- If you inherited the property, you may receive a stepped-up basis that erases most or all of the gain that existed before you inherited it.
Using the primary residence exclusion correctly
The primary residence exclusion is the only method that truly eliminates tax rather than deferring it. To use it, you must have owned the property and lived there as your main home for at least 24 months during the five years before the sale. Those 24 months do not have to be consecutive, and you can have been absent for work, school, or medical care without losing the benefit.
The exclusion applies once every two years. If you sold a home and used the exclusion, you cannot use it again on another home until two years have passed. If you are married and file jointly, you each get the full $250,000 exclusion if you both meet the ownership and use test — that is $500,000 combined. If only one spouse meets the test, only that spouse gets the exclusion.
You do not have to report the sale on your tax return if your gain is less than the exclusion amount. If your gain exceeds the exclusion, you report the excess on Form 8949 and Schedule D. The IRS does not require you to file anything to claim the exclusion — you straightforward do not report the excluded portion as income.
Increasing your cost basis through capital improvements
Your cost basis is what you paid for the property plus the cost of improvements you made. When you sell, your taxable gain is the sale price minus your basis. The higher your basis, the lower your gain. Capital improvements are permanent upgrades that add value or extend the life of the property — a new roof, a deck, a kitchen remodel, or an addition. Repairs and maintenance do not count; painting, fixing a leak, or replacing a broken window are repairs.
Keep receipts and invoices for every improvement you made. If you did the work yourself, you can include the cost of materials but not your own labor. If you hired a contractor, include the full amount you paid. When you sell, add up all these costs and add them to your original purchase price to get your adjusted basis.
This strategy works best if you made significant improvements over the years. A $50,000 kitchen renovation reduces your gain by $50,000, which at the long-term capital gains rate of 15% or 20% saves you $7,500 to $10,000 in tax. If you did not keep records, you cannot claim the improvements, so the time to start is now if you are planning a sale.
Deferring tax through a 1031 exchange
A 1031 exchange is a transaction where you sell one investment property and use the proceeds to buy another investment property of equal or greater value within strict timelines. You do not pay capital gains tax on the sale — instead, the tax is deferred until you eventually sell the replacement property without doing another exchange. This is not tax elimination; it is postponement.
The rules are rigid. You have 45 days from the sale of your first property to identify the replacement property in writing. You have 180 days from the sale to close on the replacement property. You cannot touch the sale proceeds yourself; a may have access to intermediary must hold the money. The replacement property must be real estate held for investment or business use — your primary residence does not may have access to, and neither does property you intend to flip quickly.
A 1031 exchange makes sense if you want to move your investment into a different property but are not ready to pay the tax. It also works if you own multiple properties and want to consolidate them into one larger property, or vice versa. The downside is the complexity and the cost of the intermediary, which typically charges $500 to $1,500.
Spreading gain across years with an installment sale
An installment sale is when you sell the property but the buyer pays you over time instead of all at closing. You report the gain proportionally as you receive payments, which can spread your income across multiple tax years. This may keep you in a lower tax bracket in any single year, reducing your overall tax.
For example, if you sell a property for $500,000 with a $200,000 gain and the buyer pays you $100,000 per year for five years, you report $40,000 of gain each year instead of $200,000 in year one. If spreading the income keeps you below the threshold for the higher 20% long-term capital gains rate, you pay 15% instead, saving thousands.
The buyer must sign a promissory note, and you typically hold a mortgage on the property as security. If the buyer defaults, you have the right to foreclose. This strategy works best when you have a may have access to buyer and are comfortable being a lender. It also requires that you do not receive more than 30% of the sale price in the year of sale, or the installment method does not explore.
Inheriting property and the stepped-up basis
If you inherited the property from someone who died, your cost basis is stepped up to the fair market value on the date of death, not what the original owner paid. This means if the property was worth $100,000 when purchased and $300,000 when the owner died, your basis is $300,000. If you sell it when ready for $300,000, you owe zero capital gains tax because there is no gain.
The stepped-up basis applies to all inherited property, whether real estate, stocks, or other assets. It is one of the largest tax benefits available and requires no action on your part — it happens automatically. If you inherited the property jointly with others, each heir receives a stepped-up basis on their share.
This benefit is valuable only if you sell relatively soon after inheriting. If you hold the property for years and it appreciates further, you will owe tax on the appreciation that occurred after you inherited it. The stepped-up basis does not explore to gains that happened before the death.
Timing your sale to use long-term capital gains rates
If you hold the property for more than one year before selling, the gain is taxed at long-term capital gains rates: 0%, 15%, or 20% depending on your income. If you sell within one year, the gain is taxed as ordinary income at your regular tax bracket, which can be as high as 37%. The difference is substantial.
If you are close to the one-year mark, waiting a few months can save thousands. For example, if you are in the 32% tax bracket and have a $100,000 gain, selling before one year costs $32,000 in tax. Selling after one year at the 15% long-term rate costs $15,000 — a $17,000 difference for waiting a few weeks.
This strategy only works if you can afford to wait and if market conditions are not moving against you. If the property is declining in value or you need the money, the tax savings may not be worth the delay.
Frequently Asked Questions
Can I use the primary residence exclusion if I rented out part of my home?
You can still use the exclusion if you rented out part of the home, but only on the portion you lived in. If you rented out 30% of the home, you exclude 70% of the gain. The rented portion is treated as investment property and is fully taxable.
What counts as a capital improvement versus a repair?
A capital improvement adds value, prolongs the life of the property, or adapts it to a new use. A new roof is an improvement; fixing a leak is a repair. A kitchen remodel is an improvement; repainting is a repair. When in doubt, if the work increases the property's value or life span significantly, it is likely an improvement. Keep the invoice to prove what was done.
If I do a 1031 exchange, do I ever have to pay the tax?
The tax is deferred, not eliminated. You pay it when you eventually sell the replacement property without doing another 1031 exchange. You can chain multiple exchanges together to defer indefinitely, but the tax becomes due when you finally sell for cash or trade into a non-may have access to property.
Does the stepped-up basis explore if I inherited the property before 2022?
Yes. The stepped-up basis has been in place for decades and applies to all property inherited before, during, and after 2022. There have been proposals to change it, but as of now it remains available to all heirs.
Can I claim both the primary residence exclusion and a 1031 exchange on the same sale?
No. The primary residence exclusion applies only to your main home. A 1031 exchange applies only to investment property. Your home does not may have access to for a 1031 exchange, so you use the exclusion instead. If you own investment property, you can use a 1031 exchange on that property but not the residence exclusion.