In this guide
- Why a primary residence fails the 1031 test
- The better tool your home already has: §121
- When the exclusion isn't enough
- Strategy 1: home → rental → exchange (the stack)
- Strategy 2: moving into a 1031 replacement
- Strategy 3: split-use property
- The three strategies side by side
- Frequently asked questions
Why a primary residence fails the 1031 test
Section 1031 defers gain only on real property held for productive use in a trade or business or for investment. A home you live in is personal-use property — categorically outside the statute, no matter how good an "investment" it turned out to be. There's no partial credit and no workaround at the moment of sale: on closing day, a house is either investment property with the record to prove it, or it isn't.
The good news is that Congress gave personal residences their own, in some ways better, tax break — better because it's an exclusion, not a deferral. Deferred tax waits for you; excluded gain is simply gone.
The better tool your home already has: §121
The Section 121 exclusion eliminates up to $250,000 of home-sale gain for a single filer, $500,000 married filing jointly, when you've owned and used the home as your principal residence for at least two of the five years before sale. The two years needn't be continuous or the final two; the exclusion is reusable every two years; and unlike a 1031 there are no deadlines, no intermediary, no replacement purchase — you can take the cash and go fishing. (Full mechanics: IRS Publication 523.) For most American homeowners, this ends the conversation happily.
When the exclusion isn't enough
The ceiling is the problem in appreciated markets. A couple who bought decades ago in a coastal city can be sitting on $1.5M of gain; §121 shields $500K and the remaining $1,000,000 faces capital gains tax, NIIT, and state tax — in California, roughly a third of it. (The 50-state table shows your combined rate.) Everything below exists for that excess-gain situation — and every strategy requires planning years ahead of the sale, which is exactly why so few people capture it.
Strategy 1: home → rental → exchange (the stack)
Convert the home to a genuine rental, then sell it as investment property — and here's the elegant part: sell within five years of moving out and you can use both sections in the same sale. Because you still pass the two-of-five-year use test, §121 excludes the first $250K/$500K of gain; because the property is now held for investment, a 1031 exchange defers everything above that. Rev. Proc. 2005-14 blesses the stack explicitly — exclusion applied first, exchange deferring the rest, including the recapture from your rental-period depreciation.
How much rental is enough? The safe harbor of Rev. Proc. 2008-16: in each of the two 12-month periods before the exchange, rent at fair market rent for 14+ days and keep personal use under the greater of 14 days or 10% of rented days. Meet it and the IRS won't challenge investment intent; fall short and you're arguing facts (real tenants, real leases, market rent, Schedule E) rather than resting on a guarantee. The five-year §121 window and the two-year safe harbor together define the planning corridor: move out, rent roughly two to three years, sell before year five. The couple above: $500K excluded forever, $1M+ deferred into passive replacement property, current tax bill near zero — versus a ~$330K check in the no-planning case.
The same 2008-16 safe harbor is the conversion path for a second home or vacation property — often an easier candidate than a primary residence, since nobody has to move. Two years of genuine fair-market rental with personal use inside the limits, and the lake house exchanges like any other investment property. (Vacation-home country has its own playbook — see the Florida guide.)
Strategy 2: moving into a 1031 replacement
The reverse direction: exchange into a property you'd someday like to live in. It works — carefully. The replacement must genuinely be held for investment first; intent at acquisition is the test, and the 2008-16 safe harbor's two rental years is the standard way to prove it. Move in on day one and you've handed the IRS an argument that the exchange was invalid from the start.
When you eventually sell the home, two special rules claw back some of the sweetness: (1) the five-year gate — property acquired in a 1031 must be owned at least five years before §121 can apply at all (§121(d)(10)); and (2) nonqualified-use proration — years of rental use after 2008 don't earn exclusion, so the $250K/$500K shelters only the residence-years' share of gain (§121(b)(5)). Depreciation recapture is never excluded. Even prorated, the endgame is strong — and for the patient, holding until death ends the story with a stepped-up basis under current law, the "swap till you drop" finale covered in the DST guide's exit section.
Strategy 3: split-use property
Own a duplex and live in half? A farm with a homestead? A home with a bona fide rental ADU? Split-use property gets split treatment in one sale: allocate the price and basis between residence and investment portions — §121 excludes gain on your unit, §1031 defers gain on the rented part, per the allocation examples in Rev. Proc. 2005-14. The allocation must be reasonable and documented (square footage, appraisal, or rental history — consistent with how you've been filing), and the investment portion follows all the normal exchange rules: 45/180-day clocks, a qualified intermediary engaged before closing, and boot math on the exchanged share. A home office generally doesn't require allocation if it's within the same dwelling unit — one of several edge details for the CPA conversation.
The three strategies side by side
| 1. Home → rental → exchange | 2. Move into a replacement | 3. Split-use | |
|---|---|---|---|
| Best for | Gain above $250K/$500K | Long-game retirement home | Duplexes, farms, ADUs |
| Lead time | ~2–3 yrs rental, sell < 5 yrs from move-out | ~2 yrs rental before move-in; 5-yr ownership before §121 | None extra — allocate at sale |
| Tax result | §121 excludes first $250/500K; 1031 defers the rest | Prorated §121 later; deferral preserved meanwhile | §121 on home share; 1031 on rental share |
| Main risk | Thin rental record; missing the 5-yr window | Moving in too fast; recapture never excluded | Indefensible allocation |
| Authority | Rev. Procs. 2005-14, 2008-16 | §121(d)(10), (b)(5); 2008-16 | Rev. Proc. 2005-14 |
Common thread: every one of these is decided years before the closing, on facts you build deliberately. If the sale is already scheduled, take the §121 exclusion you've earned and move on; if it's two-plus years out and the gain is large, the corridor is open — and the size of the prize is exactly what the 1031 calculator computes on the above-exclusion slice. This is also the arena where a good CPA earns a decade of fees in one engagement; nothing here substitutes for one.