RE Investor Advisor Match

How to Avoid Capital Gains Tax on Rental Property (2026)

Selling a long-held rental property triggers a tax bill that surprises most investors: not one rate, but four stacked layers — §1245 recapture, §1250 unrecaptured gain, long-term capital gains, and the 3.8% Net Investment Income Tax. On a $600K property sold for $900K after five years with cost segregation, the federal tax bill can easily exceed $100,000. The good news: real estate has more legal tax-avoidance tools than almost any other asset class. This guide covers seven strategies, when each one applies, and the traps that trip up investors who don't plan ahead.

The actual tax problem: four layers stacked on each other

Before choosing a strategy, understand what you're actually trying to avoid.

When you sell a rental, the gain is split across up to four separate tax buckets:

  1. §1245 recapture — applies to bonus-depreciated or accelerated components (cost segregation). Taxed at ordinary income rates, up to 37%.
  2. §1250 unrecaptured gain — applies to straight-line depreciation on the building structure (27.5-yr residential / 39-yr commercial). Maximum rate: 25%1 regardless of your normal LTCG rate.
  3. Long-term capital gains — appreciation above your adjusted basis that isn't covered by the above. Taxed at 0%, 15%, or 20% depending on income.2
  4. Net Investment Income Tax (NIIT) — 3.8% surtax on investment income for taxpayers above $200K (single) / $250K (MFJ).3 These thresholds are not inflation-indexed.
Worked example — $600K rental, 5-year hold with cost segregation:
Purchase price $600K, building value $480K. Cost segregation moved $100K into 5/7-yr components, fully deducted in year 1 under OBBBA 100% bonus depreciation. Straight-line on remaining $380K for 5 years: ~$69K. Total depreciation taken: $169K.

Adjusted basis: $600K – $169K = $431K. Sale price: $900K, selling costs 6% = $54K. Net proceeds: $846K.
Total gain: $415K.

Federal tax estimate (MFJ, $300K other income):
  • §1245 recapture on $100K at 37%: $37,000
  • §1250 on $69K at 25%: $17,250
  • LTCG on $246K at 15%: $36,900
  • NIIT on $415K at 3.8%: $15,770
  • Total federal: ~$107,000 (plus state tax)

Each strategy below attacks one or more of these four layers. See the depreciation recapture guide for a deeper breakdown of how the layers interact.

Strategy 1: 1031 exchange — defer everything

A like-kind exchange under IRC § 1031 defers all four layers of tax by rolling your equity into a replacement property. The deferred gain and recapture carry forward into the new property's lower basis — you'll eventually owe tax when you exit without a deferral strategy. But "eventually" is very flexible.

What it requires: You must identify a replacement property within 45 days of closing and close within 180 days. The replacement property must be like-kind (any U.S. real property for any other U.S. real property), of equal or greater value, and you must use a qualified intermediary to hold proceeds.4

What it defers: All four layers — §1245, §1250, LTCG, and NIIT. Nothing is due at closing.

What it doesn't solve: The basis doesn't reset — it carries down. A 1031 makes sense if you want to stay in real estate. If you want to exit real estate entirely, explore DSTs (Strategy 3) or installment sales (Strategy 4). Use our 1031 exchange calculator to model the tax deferral and break-even compared to paying now and reinvesting.

See also: 1031 Exchange Complete Guide

Strategy 2: 1031 cascade until death — permanent elimination

The most powerful real estate tax strategy isn't just one 1031 exchange — it's a chain of them. An investor who does 1031 exchange after 1031 exchange, accumulating deferred gain and growing their portfolio tax-free, can pass properties to heirs at death. At death, IRC § 1014 resets the heir's cost basis to the property's fair market value — permanently and completely eliminating all accumulated deferred gain and recapture.5

In this scenario, none of the four tax layers is ever paid. The gain is neither deferred nor spread — it is erased.

What you need to pull it off: You need to keep rolling exchanges instead of taking equity out. You also need to not need the proceeds during your lifetime. Estate planning around this strategy (revocable trusts, community property arrangements) matters too — the wrong trust structure can cost you the step-up.

See also: Stepped-Up Basis for Real Estate Investors

Strategy 3: 1031 into a Delaware Statutory Trust — exit landlord duties, keep deferral

A Delaware Statutory Trust (DST) is a fractional ownership structure treated as like-kind property for 1031 exchange purposes under Rev. Rul. 2004-86. You exchange out of your rental and into a passive institutional property — no tenant calls, no maintenance, just K-1 income — while deferring all four layers of tax.

The trade-off: DST income is permanently passive. Your REPS hours can't count against DST income (see REPS guide). And DSTs have the "seven deadly sins" — operating restrictions that prevent modifications, refinancing, and new capital calls. You're exchanging control for simplicity and deferral.

DSTs work best for investors who are tired of managing property, have a large deferred gain, and are comfortable with passive income over the next 5–10 years until the DST liquidates (typically via another 1031 into a new DST or at death with a step-up).

See also: Delaware Statutory Trust 1031 Exchange Guide

Strategy 4: Installment sale — spread the gain over time

Under IRC § 453, if you sell to a buyer who pays over multiple years (seller financing), you report gain only as payments are received. This can spread your long-term capital gains across several tax years, potentially keeping you in the 15% LTCG bracket each year rather than being pushed into the 20% bracket in a single year.

The recapture trap: IRC § 453(i) overrides installment sale treatment for §1245 recapture — the full §1245 amount is recognized in the year of sale regardless of when you receive payment. If you did cost segregation, that entire recapture hit comes in year 1. Only the LTCG portion gets spread.

When it works well: Properties with minimal cost segregation history, sellers who need steady income, and buyers who want a non-bank loan at a negotiated rate. The §453A interest surcharge applies when the installment balance exceeds $5 million, so structure accordingly.

See also: Installment Sale for Real Estate Investors Guide

Strategy 5: Qualified Opportunity Zone — defer and potentially reduce gain

If you realize a capital gain from a sale, you can defer that gain by reinvesting it in a Qualified Opportunity Fund within 180 days. Under the OBBBA (July 2025), OZ 2.0 rules introduced a rolling 5-year deferral starting from the reinvestment date plus a step-up on the original deferred gain: 10% for most investments, 30% for investments in rural Opportunity Zones.6

Additionally, any appreciation in the QOF itself is excluded from federal tax entirely after a 10-year hold (this was the original OZ rule, still in place).

What OZ doesn't do: It defers the gain from the original sale — it doesn't eliminate §1245 recapture from that sale. Recapture is still due in the year of the original sale. OZ only helps with the LTCG and §1250 portions.

Best fit: Investors who want to exit a property, diversify into real estate development or operating businesses, and have a long time horizon. QOZ is less useful if your gain is primarily recapture-heavy.

See also: Qualified Opportunity Zone Guide

Strategy 6: §121 primary residence exclusion

IRC § 121 allows you to exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain from the sale of a primary residence if you have owned and used the home as your primary residence for at least 2 of the 5 years preceding the sale.7

How it applies to rentals: If you convert a rental property into your primary residence and live there for 2+ years, you can use §121 when you eventually sell. The exclusion applies to appreciation gain but does NOT cover §1245 recapture or §1250 unrecaptured gain — those are still owed on any depreciation taken during the rental period (under the post-2008 rules for "nonqualified use").8

When it's worth considering: You own a rental that has appreciated significantly, you're willing to move into it for 2 years, and the property gain would be largely LTCG (not recapture-heavy). Run the numbers — the cost of living there for 2 years vs. $500K tax-free gain can be very compelling in high-cost markets.

Strategy 7: Passive activity loss offset

If you're a passive investor (not REPS-qualified) who has accumulated suspended passive activity losses over years of real estate investing, those losses release when you sell the property in a fully taxable disposition under IRC § 469(g). They can offset your gain dollar-for-dollar — potentially eliminating all four layers of tax if the PAL pool is large enough.

Example: You have $180K in suspended PALs from a property you've held for 7 years. At sale with a $180K gain, the PAL release completely offsets the gain. Net taxable gain: $0.

Check your Form 8582 carryforward before deciding whether to use a 1031. If you have large PALs, paying the tax on a clean sale might cost nothing — and frees you from rolling into another property you don't want.

See also: Passive Activity Loss Guide

Decision table: which strategy fits?

Your situation Best strategy What it does to your tax
Want to stay in real estate, have identified a replacement1031 exchangeDefers all four layers
Long time horizon, want to pass to heirs1031 cascade + step-upPermanently eliminates all deferred tax at death
Done being a landlord, still want RE exposureDST 1031Defers all four layers; passive, no management
Minimal cost seg history; buyer wants seller financingInstallment saleSpreads LTCG across years; recapture still due in year 1
Want to exit RE entirely; willing to invest in QOFQOZDefers LTCG; reduces deferred amount by 10–30%; excludes QOF appreciation
Property is in a market you'd want to live inConvert to primary + §121Excludes up to $500K LTCG; recapture still owed
Large suspended PALs from years of passive lossesClean taxable sale + PAL releasePALs offset all gain; potentially zero tax owed

When paying the tax is actually the right call

Tax avoidance is a means to an end, not the end itself. There are real scenarios where paying the tax and diversifying beats every deferral strategy:

Model your specific exit with a specialist advisor

The right strategy depends on your cost basis, depreciation history, PAL carryforwards, marginal rate, state of residence, and what you want your portfolio to look like in 10 years. A fee-only advisor who specializes in real estate investors can run the full scenario analysis — which combination of strategies saves the most after all taxes, all at once, not in isolation. Free match, no obligation.

Sources

  1. IRC § 1(h)(1)(D) — Unrecaptured §1250 gain, 25% maximum rate
  2. IRS Topic No. 409 — Capital Gains and Losses (2026 brackets per Rev. Proc. 2025-61)
  3. IRS Topic No. 559 — Net Investment Income Tax (IRC § 1411)
  4. IRS Like-Kind Exchanges (IRC § 1031) — identification and exchange period rules
  5. IRC § 1014 — Basis of property acquired from a decedent
  6. IRS Opportunity Zones — OZ deferral and exclusion rules; OBBBA OZ 2.0 rolling deferral effective July 2025
  7. IRS Publication 523 — Selling Your Home (§121 exclusion: $250K single / $500K MFJ)
  8. IRC § 121(b)(4) — Depreciation after May 6, 1997; nonqualified use limitations

Tax values verified as of May 2026. 2026 LTCG brackets: 0% ≤$49,450 single / ≤$98,900 MFJ; 15% up to $545,500 single / $613,700 MFJ; 20% above (IRS Rev. Proc. 2025-61). NIIT threshold: $200,000 single / $250,000 MFJ (IRC § 1411, not indexed). §1250 max 25%.