How to Minimize Capital Gains Tax on Real Estate
When you sell an investment property that has appreciated in value, the IRS wants a share of that gain. The combined federal and state tax burden on a real estate capital gain can reach 30 to 40 percent for investors in high-tax states, depending on income level, holding period, and the amount of depreciation taken. On a property that has appreciated by $500,000, that is a tax bill of $150,000 to $200,000 before you can reinvest the proceeds.
The good news is that the tax code provides several legal strategies for minimizing or deferring capital gains taxes on real estate. Understanding these strategies before you sell is essential. Once the sale closes and the proceeds are in your hands, most of these options are no longer available.
Understanding What You Are Actually Taxed On
Long-Term Capital Gains Tax. If you have held the property for more than one year, the gain is taxed at long-term capital gains rates: 0%, 15%, or 20% at the federal level, depending on your taxable income. For 2026, the 20% rate applies to single filers with taxable income above $533,400 and married filers above $600,050.
Net Investment Income Tax (NIIT). High-income investors also pay a 3.8% NIIT on investment income, including capital gains from real estate sales. This brings the effective federal rate to 23.8% for investors in the top bracket.
Depreciation Recapture. When you sell a property, the IRS recaptures the depreciation deductions you took during ownership at a rate of up to 25% (Section 1250 recapture for real property). If you have owned a property for 20 years and taken $200,000 in depreciation, that $200,000 is taxed at up to 25% when you sell, regardless of your capital gains rate.
State Capital Gains Tax. Most states tax capital gains as ordinary income. California taxes capital gains at rates up to 13.3%. New York taxes them at up to 10.9%.
Strategy 1: The 1031 Exchange
A 1031 exchange under IRC Section 1031 allows you to sell an investment property and defer all capital gains taxes and depreciation recapture taxes by reinvesting the proceeds into a like-kind replacement property. There is no limit on the number of times you can exchange, no limit on the amount of gain you can defer, and no limit on how long you can defer it.
The mechanics are straightforward. You sell your relinquished property, a Qualified Intermediary holds the proceeds, you identify a replacement property within 45 days, and you close on the replacement property within 180 days. As long as you acquire replacement property of equal or greater value and replace all of the equity and debt from the sale, the entire gain is deferred.
The most powerful version of this strategy is sometimes called "swap till you drop." You exchange continuously throughout your lifetime, deferring the accumulated gains from property to property. When you die, your heirs inherit the replacement property at a stepped-up basis equal to the fair market value at the date of death. The deferred capital gains and depreciation recapture are eliminated entirely.
Strategy 2: Installment Sale
If you sell an investment property and take back a note from the buyer, you can spread the capital gains tax over the years in which you receive principal payments under IRC Section 453. It does not eliminate the tax, but it defers a portion of it. Unlike a 1031 exchange, an installment sale does not allow you to reinvest the full proceeds into a new property.
Strategy 3: Opportunity Zone Investment
If you have a capital gain from any source, you can defer that gain by investing it in a Qualified Opportunity Fund within 180 days of the sale. The OBBBA extended and modified the Opportunity Zone program, keeping it available as a deferral strategy.
Strategy 4: Hold Until Death
Simply holding the property until death eliminates the capital gains tax entirely. Your heirs inherit the property at a stepped-up basis equal to the fair market value at the date of death, and the accumulated gain disappears from the tax perspective.
Strategy 5: Charitable Remainder Trust
A charitable remainder trust (CRT) allows you to donate appreciated property to a trust, receive an income stream for life, take a partial charitable deduction, and avoid the immediate capital gains tax. This strategy is appropriate for investors with significant philanthropic goals.
Why the 1031 Exchange Remains the Default Choice
For most real estate investors who want to continue building wealth through real estate, the 1031 exchange is the superior strategy. It defers the full tax bill, allows you to reinvest 100% of your equity, lets you upgrade to a larger or better-performing property, and can ultimately eliminate the tax entirely through the step-up in basis at death.
If you are considering selling an investment property and want to understand your options, call 1031 Federal Exchange at 513-402-8911.