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.
Frequently Asked Questions
Can I do a 1031 exchange into a property I plan to eventually live in?
Yes — but you must complete the steps in the right order. The replacement property must first be held as a rental investment to qualify for the 1031 exchange. IRS Rev. Proc. 2008-16 provides a safe harbor: rent it at market rate for at least 14 days per year in each of the two 12-month periods after the exchange, with personal use capped at 14 days per year. After two years of rental you can move in, but you must own the property for a total of at least five years from the exchange date before the §121 exclusion applies — the §121(d)(10) five-year rule.
How long do I have to rent a 1031 replacement property before moving in?
IRS Rev. Proc. 2008-16 requires a minimum two years of actual rental use after the 1031 exchange. During each of the two 12-month periods following closing, you must rent at fair market value for at least 14 days and limit personal use to 14 days (or 10% of days rented, whichever is greater). Two years satisfies the exchange-validity safe harbor — but the §121(d)(10) five-year rule means you cannot claim the §121 exclusion until at least five years from the exchange date regardless of how long you rented beforehand.
What is the five-year rule for a 1031 exchange into a primary residence?
IRC §121(d)(10) — added by TIPRA in 2006 — provides that the §121 primary residence exclusion does not apply to property acquired in a 1031 exchange unless you have owned it for at least five years from the exchange closing date. This is an absolute minimum that stacks on top of the standard 2-of-5-year residency requirement. Even if you've lived in the property for two full years, the §121 exclusion is unavailable if you're still within the five-year window. Selling one day before the five-year anniversary eliminates the exclusion entirely — there is no partial credit.
Does depreciation recapture apply when I convert a 1031 replacement property to a primary residence?
Yes — always. IRC §121(d)(6) explicitly prevents the §121 exclusion from applying to gain attributable to depreciation adjustments. §1250 straight-line depreciation recapture from the rental years is always taxable at up to 25%, and §1245 cost segregation recapture is always taxable at ordinary income rates up to 37%. These amounts cannot be excluded regardless of how long you live in the property. Running the depreciation recapture balance before committing to this strategy is essential — it can substantially reduce the net tax benefit.
How much of my gain does the §121 exclusion shield after a 1031 exchange?
Less than most investors expect. The §121 exclusion only covers gain from qualified-use periods (years as your principal residence), not non-qualified use periods (the rental years before you moved in). On a 7-year hold with 2 rental years and 5 residence years, only 5/7 (71.4%) of the non-recapture gain is eligible — up to the $250,000 single / $500,000 MFJ cap. The remaining 2/7 (28.6%) of non-recapture gain is taxable at capital gains rates, and depreciation recapture is always taxable. In the worked example in this guide, a $330,727 total gain results in $207,143 excluded and $123,584 remaining taxable.
Can I 1031 exchange out of my current primary residence into a rental?
No. Your primary residence does not qualify for a 1031 exchange because it is personal-use property — not held for investment or use in a trade or business under IRC §1031(a)(1). The two strategies are separate: use the §121 exclusion to sell your primary residence tax-free (up to $250K single / $500K MFJ), then invest the after-tax proceeds in rental property. The 1031-into-future-primary-residence strategy covered in this guide only works in the reverse direction: you exchange investment property and the replacement becomes a future residence.
What happens if I sell the 1031 replacement property before the five-year anniversary?
The §121 exclusion does not apply at all. IRC §121(d)(10) is absolute — no partial credit, no prorated exclusion, no exception for having met the standard 2-of-5-year residency test. Selling one day short of five years from the exchange closing date means the full gain is taxable: §1245 cost segregation recapture at ordinary income rates, §1250 straight-line depreciation at up to 25%, long-term capital gains at 15–20%, and 3.8% NIIT above the income threshold. Tracking the exact exchange closing date and building in a safety margin is critical.
Is the 1031 + §121 strategy worth the complexity?
It depends on gain size, your timeline, and genuine intent to live in the property. On a modest rental with a $150,000 gain, the qualified-use exclusion might save only $15,000–$25,000 after the non-qualified use proration and recapture — potentially less than the planning complexity justifies. On a larger gain, the savings scale more favorably. The strategy is most compelling when: you have a specific property in mind for retirement or relocation in 5–10 years, the gain is substantial, you can genuinely satisfy the rental requirement for 2 years, and you haven't done aggressive cost segregation that creates large ordinary-income recapture. Use the 1031 exchange calculator to model your deferral scenario first.
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.