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:
- Close a 1031 exchange with a replacement property you intend to eventually live in.
- Rent the replacement property at market rate for at least 2 years (satisfying the IRS safe harbor for exchange eligibility).
- Move in and establish it as your principal residence.
- Wait until at least 5 years after the original exchange date.
- 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:
- You rent it out at fair market value for at least 14 days.
- Your personal use doesn't exceed 14 days (or 10% of the days rented, whichever is greater).
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.
| Scenario | 5-year rule met? | 2/5-year residency met? | §121 available? |
|---|---|---|---|
| Exchange Jan 2020, sell Jan 2023 (3 yrs) | No | Possibly | No |
| Exchange Jan 2020, sell Jan 2025 (5 yrs), 2 yrs as primary residence | Yes | Yes (2 of last 5 yrs) | Yes, partial |
| Exchange Jan 2020, sell Jan 2027 (7 yrs), 5 yrs as primary residence | Yes | Yes (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):
| Item | Amount |
|---|---|
| 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 Layer | Amount | Treatment |
|---|---|---|
| §1250 recapture (straight-line depreciation) | $40,727 | Taxable; §121 cannot exclude |
| Non-qualified use gain (2/7 × $290,000) | $82,857 | Taxable at LTCG rates |
| §121 exclusion (5/7 × $290,000 = $207,143) | $207,143 | Excluded ($207K < $250K cap) ✓ |
Tax bill (investor with $200,000 other income, single filer):
| Tax | Rate | Amount |
|---|---|---|
| §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%)7 | 15% | $12,429 |
| NIIT on non-qualified use gain ($82,857 × 3.8%) | 3.8% | $3,149 |
| §121 excluded gain | 0% | $0 |
| Total federal tax | $27,308 |
Compare to selling without the §121 exclusion (same property, no primary residence conversion — passive rental all 7 years):
- §1250 recapture: $40,727 × 28.8% (25% + NIIT) = $11,729
- Remaining LTCG: $290,000 × 18.8% (15% + NIIT) = $54,520
- Total tax without §121: $66,249
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
| Strategy | Gain treatment | Best for |
|---|---|---|
| 1031 + §121 (this strategy) | Non-qualified use + recapture taxable; qualified-use gain excluded up to $250K/$500K | Investor who genuinely wants to live in the property for ≥3–5 years |
| 1031 cascade + step-up at death | All gain permanently eliminated at death via IRC §1014 | Long-hold investor who plans to hold rental to death; highest elimination but requires staying invested |
| 1031 into DST | Gain deferred; recapture eventually due on DST sale or death step-up | Investor who wants to exit active management but stay in real estate |
| Installment sale | LTCG deferred; §1245 recapture front-loaded in year 1 | Investor who wants cash flow from seller financing, no exchange timeline pressure |
| Outright sale (no strategy) | Full four-layer tax stack in year of sale | Investor who needs full liquidity immediately |
When this strategy makes sense
The 1031 + §121 strategy is worth modeling when:
- You have a specific property in mind — a vacation area, a city where you're relocating, or a property you want to move into for retirement in 5–10 years. The strategy requires genuine intent to live there.
- The gain in your current rental is large — the exclusion only eliminates the qualified-use fraction up to $250K/$500K. On modest gains the math may not justify the operational complexity.
- You can satisfy the rental requirement before moving in — Rev. Proc. 2008-16 requires two years of actual market-rate rental. If the property isn't rentable (remote mountain cabin, unique property) this creates logistical risk.
- You're not planning to use aggressive cost segregation — cost seg creates §1245 recapture taxed at ordinary income rates (up to 37%), which is also never excludable by §121. If you've already claimed large bonus depreciation on the replacement property, the recapture pool reduces the strategy's benefit.
Common mistakes to avoid
- Moving in before the 5 years are up. The most common error. Even one day short of 5 years eliminates the §121 exclusion entirely. Use the 1031 deadline calculator to track the date.
- Skipping the rental period entirely. If you move in immediately or rent for less than 14 days per year, the IRS can challenge the exchange validity under the "held for investment" requirement. Rev. Proc. 2008-16 exists precisely to prevent this.
- Ignoring the non-qualified use proration. Many investors assume the full $500K MFJ exclusion offsets all gain. In a 2-year-rental + 5-year-residence scenario, 2/7 of non-recapture gain is taxable regardless.
- Forgetting depreciation recapture. Every year of rental creates §1250 recapture that §121 cannot touch. Running the numbers before moving in — not after — is essential to avoid surprise at closing.
- Not coordinating with the original 1031 carryover basis. Your adjusted basis in the replacement property is the basis carried over from the relinquished property, adjusted for boot and depreciation. If you don't know your true carryover basis, you can't accurately model the gain allocation. This requires looking back at the original exchange closing documents and depreciation history.
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.
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.
- 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)
- IRC § 1031(a)(1) — Property held for productive use in a trade or business or for investment; like-kind exchange requirements (Cornell LII)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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.