How to Reduce Capital Gains Tax on a Rental Property Sale

You cannot always eliminate the tax — but you can often defer, reduce, or restructure it.

Illustration for How to Reduce Capital Gains Tax on a Rental Property Sale

1031 exchange: the most powerful deferral

A like-kind exchange lets you roll the full sale proceeds into a replacement property and pay no tax at the time of sale. The deferred gain — including recapture — carries into the replacement through a lower basis. You must use a qualified intermediary, identify replacement property within 45 days, and close within 180 days. Investors who exchange repeatedly and hold until death can permanently eliminate accumulated gain via the step-up in basis.

Installment sale: spread gain over time

Instead of receiving the full sale price at closing, you accept payments over multiple years and recognize gain proportionally in each year. This keeps you in lower brackets and avoids a single large tax hit. Important limitation: depreciation recapture must be recognized in full in the year of sale under Section 453(i), regardless of when you receive the payments. Only the capital gain component above recapture can be spread across years.

Other strategies: exclusion, step-up, and loss harvesting

Section 121 primary residence exclusion: if you lived in the property for at least 2 of the last 5 years before the sale, up to $250,000 ($500,000 for married filing jointly) of gain may be excluded — but not the depreciation recapture portion. Step-up in basis at death: property inherited at death receives a basis equal to current fair market value, permanently eliminating deferred recapture and capital gains. Capital loss harvesting: losses from stocks or other investments in the same calendar year offset gains dollar for dollar.

Converting the rental to your primary residence

A popular move is to move into a former rental and later claim the Section 121 exclusion. It works, but two rules limit the benefit. First, depreciation claimed after May 6, 1997 is never excluded — that unrecaptured Section 1250 gain is taxed at up to 25% no matter how long you live there. Second, the nonqualified use rule of Section 121(b)(5): gain is allocated between the period the home was your residence (excludable) and periods after 2008 it was a rental (not excludable), based on the ratio of nonqualified-use years to total ownership years. So a house you rented for 6 years and then lived in for 4 can exclude at most about 4/10 of the appreciation, minus the recapture. Converting is still valuable — but it is not the clean full exclusion many investors expect, and it requires genuinely establishing the home as your principal residence for at least two years.

Opportunity Zones and charitable trusts

Two more advanced deferral tools exist. A Qualified Opportunity Fund lets you reinvest just the gain (not the full proceeds) within 180 days and defer it; hold the fund investment 10 years and any appreciation on the fund itself becomes tax-free — though the originally deferred gain generally comes due at the end of 2026 under current law, so timing matters. A charitable remainder trust (CRT) lets you contribute the property to an irrevocable trust that sells it with no immediate tax, pays you an income stream for life or a term of years, and leaves the remainder to charity; you get a partial charitable deduction and spread the gain over the payout, though the strategy is irrevocable and best suited to charitably inclined sellers. Both are sophisticated; get professional advice before committing.

Offsetting the gain with losses in the year of sale

You do not always have to defer — sometimes you can absorb the gain. If you own other rentals throwing off suspended passive losses, note that selling one property fully releases that property's suspended losses against the gain, and a real estate professional (or short-term rental operator) can generate fresh depreciation losses — for instance by placing another property in service and running a cost segregation study in the same year — to offset the ordinary-rate portions of the sale. Ordinary capital losses from your brokerage account net against the capital-gain slice dollar for dollar, with up to $3,000 of any excess deductible against ordinary income and the rest carried forward. Coordinating a sale year with loss-generating activity is a legitimate way to cut the net taxable gain without a 1031.

A worked comparison: sell vs. 1031 vs. installment

Say you have a $250,000 gain ($80,000 of it depreciation recapture) and are a 15% capital-gains / 24% ordinary-bracket seller in a 5% state. Sell outright: roughly $20,000 recapture (25% cap or your lower ordinary rate on the 1250 portion) + $25,500 capital gains (15%) + $9,500 NIIT/state, near $50,000+ now, and you keep about $200,000 of after-tax equity. 1031 exchange: $0 now, all $250,000 gain deferred, full $250,000 equity redeployed — but you must reinvest and follow the deadlines. Installment sale over 5 years: the $80,000 recapture is still fully taxed in year one (Section 453(i)), but the $170,000 capital-gain slice is spread, keeping you in the 15% bracket and softening NIIT each year. The best choice depends on whether you want to stay in real estate (1031), exit gradually with seller financing (installment), or take cash and pay now.

Timing, related parties, and mistakes to avoid

A few rules make or break these strategies. Constructive receipt kills a 1031 — you cannot touch the sale proceeds, which is why a qualified intermediary must hold them and be engaged before closing. Related-party transactions are restricted: a 1031 with a related party generally requires both to hold for two years, and an installment sale to a related party who quickly resells can accelerate your gain. Selling in a low-income year can drop the capital-gain slice into the 0% or 15% bracket, but a very large gain stacks on itself and can spill into the 20% bracket and trigger NIIT — model it. And never assume you avoid recapture by having skipped depreciation; the 'allowed or allowable' rule taxes it regardless. Match the tool to your actual goal, and confirm the mechanics with a qualified advisor before you sign anything.

Gifting to family in lower brackets

Instead of selling and paying tax yourself, you can gift appreciated rental property to a family member in a lower tax bracket and let them sell it. The recipient takes your carryover basis (your adjusted basis, not a stepped-up value) and your holding period, so the built-in gain and recapture come along with the property — but if they are in the 0% or 15% capital-gains bracket, the tax on a later sale can be far lower than what you would owe. Cautions: gifts above the annual exclusion ($19,000 per recipient for 2025) use part of your lifetime gift and estate tax exemption and require a gift-tax return; the kiddie tax can tax a young child's or student's unearned income at the parents' rate, blunting the benefit; and this only works if you are genuinely willing to part with the asset. Gifting is very different from leaving property at death, which gives heirs a full step-up and erases the gain entirely — if you can afford to hold, inheriting usually beats gifting.

Combining strategies: 1031 then convert, or partial exclusion

The strongest plans often stack tools rather than picking one. One classic sequence: 1031 into a new rental, hold it as an investment, then later convert it to your primary residence. After a required holding period (the safe harbor generally looks for the property to be held as a rental for a couple of years first) and living there two of the last five years, you can claim a partial Section 121 exclusion on the residence-period appreciation — though property acquired in a 1031 must be owned at least five years before any Section 121 exclusion applies, and depreciation is still recaptured. Another combination: pair a partial 1031 (deferring most of the gain) with taking a small amount of cash boot in a low-income year so the taxable slice lands in the 15% or 0% bracket. Because these sequences involve strict holding periods and ordering rules, map the full timeline with a tax professional before the first transaction — a step done out of order can forfeit the benefit.

Frequently asked questions

What is the most effective strategy to defer capital gains on a rental?

The 1031 exchange defers the most and is available to most investors who remain in real estate. Repeated exchanges until death can convert deferral into full elimination.

Can I use the Section 121 exclusion on a rental?

Partially — only for the period you lived there and only the capital gain portion, not depreciation recapture. A partial exclusion is available if you meet the requirements for part of the 5-year window.

If I move into my rental, is all the gain tax-free?

No. Depreciation claimed after May 1997 is always recaptured, and the Section 121(b)(5) nonqualified-use rule allocates gain between residence and rental periods, so only the residence-period share of appreciation can be excluded.

Can I use capital losses to offset a rental sale gain?

Yes. Capital losses from stocks or other investments net against the capital-gain portion of the sale dollar for dollar, with up to $3,000 of any excess deductible against ordinary income and the remainder carried forward.

What is an Opportunity Zone reinvestment?

Reinvesting your capital gain into a Qualified Opportunity Fund within 180 days defers that gain, and holding the fund investment 10 years makes its own appreciation tax-free. Only the gain, not the full proceeds, must be reinvested, but the deferred gain generally comes due at the end of 2026 under current law.

Can I gift a rental property to my kids to avoid the tax?

You can, but the recipient takes your carryover basis and holding period, so the built-in gain and recapture transfer with the property. It only helps if they are in a lower capital-gains bracket, and the kiddie tax can undo the benefit for younger recipients. Leaving the property at death instead gives heirs a full step-up that erases the gain.

Does an installment sale help with depreciation recapture?

No. Section 453(i) requires all depreciation recapture to be recognized in the year of sale, regardless of when you collect the payments. An installment sale only spreads the capital-gain portion above recapture across the years you receive the proceeds.

Sources

Educational information and estimates only. Not tax advice. Tax rules change and vary by situation; consult a qualified tax professional before acting.

Related