# Can You 1031 Exchange Into a Primary Residence? The 5-Year Rule > How a 1031 exchange interacts with your primary residence: converting a replacement property into your home, the Section 121 exclusion, and the 5-year rule. By [Adam Kalimi](https://whosetitle.com/author/adam-kalimi) · Published 2026-07-28 · Updated 2026-07-28 Canonical: https://whosetitle.com/blog/1031-exchange-primary-residence --- The short answer: not directly. A 1031 exchange is for property held for investment or business use — your home doesn't qualify on either end of the swap. But there are two well-trodden, IRS-sanctioned paths where a 1031 and a primary residence meet: buying a replacement property that *later becomes* your home, and converting your home into a rental before exchanging it. Both work. Both have holding-period rules that do the heavy lifting, including the 5-year rule this article is named for. ## Why you can't just exchange into your dream house Section 1031 requires **investment intent on both sides** of the exchange. The property you sell and the property you buy must be held for investment or productive business use — and "I plan to move in next month" is the opposite of investment intent. Homes have their own tax break instead: Section 121 excludes up to **$250,000 of gain ($500,000 married filing jointly)** when you sell a primary residence you've owned and lived in for two of the last five years. The strategies below are about moving a property from one regime to the other — slowly enough that the IRS agrees the intent was real. ## Path 1: Exchange into a rental, move in later Buy the replacement property as a genuine rental, operate it as one, and convert it to your residence down the road. The IRS gave this a safe harbor (Rev. Proc. 2008-16): your exchange won't be challenged on intent if, in **each of the first two 12-month periods** after the exchange, you: - rent the property at fair market rent for **14 days or more**, and - keep personal use under the greater of **14 days or 10%** of the days rented. Two years of real rental use, then move in. No shortcut survives scrutiny — furnishing it for yourself on day one is the classic audit loss. ## The 5-year rule Here's the catch Congress added for exactly this play. Normally the Section 121 exclusion needs two years of ownership and use. But **if you acquired the home through a 1031 exchange, you cannot use the Section 121 exclusion until you've owned the property for at least five years** (Section 121(d)(10)). ```viz-stats { "items": [ { "value": "2 years", "label": "Rental operation under the safe harbor before converting to your residence" }, { "value": "2 of 5 years", "label": "Owner-occupancy required for the Section 121 exclusion" }, { "value": "5 years", "label": "Minimum ownership before Section 121 applies to a 1031-acquired home" } ], "note": "The clocks overlap: two years as a rental plus three as your home satisfies all three at once." } ``` Even then, the exclusion is prorated: years of **nonqualified use** (the rental years, after 2008) stay taxable in proportion, and [depreciation](/glossary/depreciation-recapture) claimed during the rental period is recaptured no matter what. The exclusion trims the bill — it doesn't erase the deferral. ## Path 2: Turn your home into a rental, then exchange it The reverse direction works too. Move out, rent the house at market rates — most advisors want to see one to two years of genuine rental history — and it becomes investment property eligible for a [1031 exchange](/blog/1031-exchange-guide). Better still, the two paths stack: sell within three years of moving out and you may claim the Section 121 exclusion on the residence-era gain *and* defer the rest (including depreciation recapture) through the exchange. For a highly appreciated house, that combination is one of the strongest tax plays in real estate. ## Run the numbers before you commit The mechanics are ordinary once intent is settled: [qualified intermediary](/glossary/qualified-intermediary), 45-day identification, 180-day closing — the [deadline calculator](/free-tools/1031-exchange-deadline-calculator) maps your dates, and the [capital gains calculator](/free-tools/1031-exchange-capital-gains-calculator) shows what's actually at stake. Timelines and intent are where these plans live or die, so walk yours past a CPA before the first domino falls. *General information, not tax or legal advice.*