Can You 1031 Exchange Into a Primary Residence? The 5-Year Rule
By Adam Kalimi · Published · 3 min read
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)).
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 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. 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, 45-day identification, 180-day closing — the deadline calculator maps your dates, and the 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.
Turn any neighborhood into a lead list
Draw an area on the map, pull every owner inside it, and work them through action plans — that's WhoseTitle.
Keep reading
- Reverse 1031 Exchange: How It Works, Costs, and Deadlines
How a reverse 1031 exchange lets you buy the replacement property before you sell: the EAT parking arrangement, the mirrored 45/180-day deadlines, and what it costs.
- The 1031 Exchange, Explained: Defer Tax, Keep Your Equity Working
How a 1031 exchange works — the 45-day and 180-day deadlines, the equal-or-greater-value and reinvest-all-cash rules, boot, qualified intermediaries, and common mistakes.
- 1031 Exchange in California: Rules, the Clawback, and Form 3840
California 1031 exchange rules: how the state taxes deferred gains, the out-of-state clawback, annual Form 3840 filing, and the real-estate withholding exemption.