RE Investor Advisor Match

1031 Exchange Into a Primary Residence: The §1031 + §121 Strategy (2026)

Can you 1031 exchange into a property you eventually plan to live in? Yes — but there's a trap that catches most investors: the five-year ownership rule added by Congress in 2004. Get the sequence wrong and you lose the entire §121 exclusion. Get it right and you can permanently eliminate a substantial portion of your capital gain when you eventually sell. This guide walks through the exact rules, the safe harbor the IRS provided, and a worked example showing the real numbers.

How the strategy works

The §121 exclusion allows you to exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain on the sale of your principal residence, provided you owned and used it as your primary home for at least 2 of the 5 years before the sale date. That exclusion can be layered on top of a prior 1031 exchange — but only if you satisfy an additional five-year ownership requirement that applies specifically to property acquired in an exchange.1

The basic sequence:

  1. Close a 1031 exchange with a replacement property you intend to eventually live in.
  2. Rent the replacement property at market rate for at least 2 years (satisfying the IRS safe harbor for exchange eligibility).
  3. Move in and establish it as your principal residence.
  4. Wait until at least 5 years after the original exchange date.
  5. Sell, claiming the §121 exclusion on the qualified-use portion of gain.

Step 1: The 1031 exchange must hold up

For the exchange itself to be valid, the replacement property must be "held for productive use in a trade or business or for investment" under IRC §1031(a)(1).2 If you move in immediately after the exchange, the IRS can disqualify it — arguing you never held it for investment, just acquired a home.

IRS Rev. Proc. 2008-16 provides a clear safe harbor.3 The replacement property qualifies as investment property if, during each of the two 12-month periods immediately after the exchange closing:

Meet those conditions for both years and the IRS will not challenge the exchange on "intent" grounds. The same two-year rental standard applies to your relinquished property before the exchange.

Step 2: The §121(d)(10) five-year rule

This is the rule most investors miss. IRC §121(d)(10) — added by TIPRA in 2004 — says that if you acquired a property via a 1031 exchange, the §121 exclusion does not apply unless you have owned the property for at least 5 years from the date of the exchange.4

The standard 2/5-year residency test still applies too — but §121(d)(10) adds an absolute minimum holding period on top of it. You cannot satisfy it early by moving in sooner.

Scenario5-year rule met?2/5-year residency met?§121 available?
Exchange Jan 2020, sell Jan 2023 (3 yrs)NoPossiblyNo
Exchange Jan 2020, sell Jan 2025 (5 yrs), 2 yrs as primary residenceYesYes (2 of last 5 yrs)Yes, partial
Exchange Jan 2020, sell Jan 2027 (7 yrs), 5 yrs as primary residenceYesYes (5 of last 5 yrs)Yes, partial

Step 3: The non-qualified use proration — what stays taxable

Even when you meet both tests, the §121 exclusion does not cover gain attributable to non-qualified use — periods when the property was not used as your principal residence. This rule was added by Congress in 2009 under IRC §121(b)(5).5

In a 1031-into-primary-residence scenario, the rental years before you move in are non-qualified use. The gain attributable to those years remains taxable regardless of the exclusion amount.

Proration formula:

Taxable (non-qualified use) gain = Total non-§1250 gain × (Non-qualified use years ÷ Total years held)

Example: 2 rental years + 5 primary-residence years = 7 years held
Non-qualified use fraction = 2 ÷ 7 = 28.6%

The §121 exclusion applies only to the remaining 71.4% of the non-§1250 gain — still subject to the $250K/$500K cap.

§1250 recapture: always taxable, no exceptions

IRC §121(d)(6) explicitly provides that the §121 exclusion cannot apply to any gain attributable to depreciation adjustments — meaning §1250 unrecaptured depreciation from the rental years is always taxable, even if you've met all the tests.6 That depreciation recapture is taxed at a maximum federal rate of 25% under IRC §1(h)(1)(D).

If you did a cost segregation study during the rental period and claimed §1245 bonus depreciation, that recapture is ordinary income at up to 37% — also never excludable under §121.

Worked example: 7-year timeline

A single investor completes a 1031 exchange on January 1, 2020. The replacement property costs $700,000 (land $140,000; depreciable building $560,000).

Phase 1 — Rental (2020–2021, 2 years):
Rented at market rate, satisfying Rev. Proc. 2008-16. Straight-line depreciation claimed: 2 × ($560,000 ÷ 27.5) = $40,727 in §1250 pool.

Phase 2 — Primary residence (2022–2026, 5 years):
Investor moves in January 2022. No additional depreciation claimed during residence.

Sell January 2027 (7 years from exchange):

ItemAmount
Amount realized (FMV $1,050,000 − $60,000 closing costs)$990,000
Adjusted basis ($700,000 − $40,727 depreciation)$659,273
Total gain$330,727

Gain allocation:

Gain LayerAmountTreatment
§1250 recapture (straight-line depreciation)$40,727Taxable; §121 cannot exclude
Non-qualified use gain (2/7 × $290,000)$82,857Taxable at LTCG rates
§121 exclusion (5/7 × $290,000 = $207,143)$207,143Excluded ($207K < $250K cap) ✓

Tax bill (investor with $200,000 other income, single filer):

TaxRateAmount
§1250 recapture ($40,727 × 25%)25%$10,182
NIIT on §1250 recapture ($40,727 × 3.8%)3.8%$1,548
Non-qualified use gain ($82,857 × 15%)715%$12,429
NIIT on non-qualified use gain ($82,857 × 3.8%)3.8%$3,149
§121 excluded gain0%$0
Total federal tax$27,308

Compare to selling without the §121 exclusion (same property, no primary residence conversion — passive rental all 7 years):

Tax savings from §1031 + §121 strategy: ~$38,941. The excluded $207,143 of gain is permanently eliminated — not deferred, not shifted, gone.

How the strategy stacks against alternatives

StrategyGain treatmentBest for
1031 + §121 (this strategy)Non-qualified use + recapture taxable; qualified-use gain excluded up to $250K/$500KInvestor who genuinely wants to live in the property for ≥3–5 years
1031 cascade + step-up at deathAll gain permanently eliminated at death via IRC §1014Long-hold investor who plans to hold rental to death; highest elimination but requires staying invested
1031 into DSTGain deferred; recapture eventually due on DST sale or death step-upInvestor who wants to exit active management but stay in real estate
Installment saleLTCG deferred; §1245 recapture front-loaded in year 1Investor who wants cash flow from seller financing, no exchange timeline pressure
Outright sale (no strategy)Full four-layer tax stack in year of saleInvestor who needs full liquidity immediately

When this strategy makes sense

The 1031 + §121 strategy is worth modeling when:

Common mistakes to avoid

Model your specific numbers before committing

The 1031 + §121 strategy has significant moving parts: the carryover basis from the original exchange, the rental years of depreciation, the non-qualified use proration, the §121 cap, and the coordination with any suspended PAL carryforwards that release on the sale. A fee-only advisor who works with real estate investors runs these projections regularly. We match you with one — no commission, no obligation.

Fee-only · No commissions · Free match · No obligation

REInvestorAdvisorMatch is a referral service, not a licensed advisory firm. We may receive compensation from professionals in our network.

Content is for informational purposes only and does not constitute financial, tax, or investment advice.

  1. IRC § 121 — Exclusion of gain from sale of principal residence; §121(b)(1)-(2) $250K/$500K exclusion amounts; §121(a) 2/5-year ownership and use tests (Cornell LII)
  2. IRC § 1031(a)(1) — Property held for productive use in a trade or business or for investment; like-kind exchange requirements (Cornell LII)
  3. IRS Rev. Proc. 2008-16 — Safe harbor for 1031 exchange replacement property subsequently converted to primary residence; 2-year rental requirement, 14-day personal use limit (IRS.gov)
  4. IRC § 121(d)(10) — Property acquired in like-kind exchange: §121 exclusion does not apply during the 5-year period beginning on the date of acquisition via §1031; added by TIPRA 2006 (Cornell LII)
  5. IRC § 121(b)(5) — Non-qualified use: gain attributable to periods of non-principal-residence use (after Dec 31, 2008) is not excludable; §121(b)(5)(C)(i) exception for post-residency periods (Cornell LII)
  6. IRC § 121(d)(6) — §121 exclusion does not apply to gain attributable to depreciation adjustments; §1250 unrecaptured gain and §1245 recapture always taxable (Cornell LII)
  7. Tax Foundation — 2026 long-term capital gains tax brackets: 0% ≤$49,450 single/$98,900 MFJ; 15% up to $545,500 single/$613,700 MFJ; 20% above those thresholds (Tax Foundation)
  8. IRS Publication 523 (2025) — Selling Your Home; §121 exclusion mechanics, non-qualified use calculation, and depreciation recapture interaction (IRS.gov)

Tax values verified as of May 2026. §121 exclusion: $250,000 single / $500,000 MFJ per IRC §121(b)(1)-(2), statutory and not inflation-indexed. §121(d)(10) five-year rule: effective for exchanges completed after Oct 22, 2004. Non-qualified use proration: IRC §121(b)(5), effective for sales of property placed in service after Dec 31, 2008. §1250 recapture max rate: 25% per IRC §1(h)(1)(D). NIIT rate 3.8%: IRC §1411, thresholds $200,000 single/$250,000 MFJ, not indexed. 2026 LTCG brackets: IRS Rev. Proc. 2025-32 / Tax Foundation.