Guide · Rules & Structures

Can You 1031 Exchange a Primary Residence? (The §121 + §1031 Playbook)

The direct answer is no — and stopping there costs homeowners real money. Your house has its own exclusion, the exclusion has a ceiling, and above that ceiling sit three legitimate strategies that combine the home-sale rules with the exchange rules. Here's the whole decision tree, honestly mapped.

By Casmir Mason — Founder & CEO, North Pine Capital
Last reviewed August 2026
Educational — not tax, legal, or investment advice
The short version

A home you live in can't be 1031 exchanged — §1031 requires investment or business property. Instead: the §121 exclusion shelters $250K single / $500K joint of gain if you owned and used the home 2 of the last 5 years. Gain above that ceiling is where the strategies live: (1) convert the home to a genuine rental (the Rev. Proc. 2008-16 safe harbor ≈ two years at fair rent) and sell within 5 years of moving out to stack §121 plus a 1031 on the excess; (2) move into a former 1031 replacement — allowed after real rental use, but with a 5-year ownership gate and a prorated exclusion; (3) split-use property (duplex, farm, house-hack) — §121 on your unit, §1031 on the rest, same sale.

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 → exchange2. Move into a replacement3. Split-use
Best forGain above $250K/$500KLong-game retirement homeDuplexes, farms, ADUs
Lead time~2–3 yrs rental, sell < 5 yrs from move-out~2 yrs rental before move-in; 5-yr ownership before §121None extra — allocate at sale
Tax result§121 excludes first $250/500K; 1031 defers the restProrated §121 later; deferral preserved meanwhile§121 on home share; 1031 on rental share
Main riskThin rental record; missing the 5-yr windowMoving in too fast; recapture never excludedIndefensible allocation
AuthorityRev. Procs. 2005-14, 2008-16§121(d)(10), (b)(5); 2008-16Rev. 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.

Frequently asked questions

Not directly. Section 1031 requires property held for investment or business use, and your home is neither. But your home has its own tax break — the Section 121 exclusion shields up to $250,000 of gain ($500,000 married filing jointly) if you owned and lived in it for two of the last five years. The 1031 question really matters for homes with gains above those limits, and there the answer is a conversion strategy: turn the home into a genuine rental first, then exchange it.
The IRS safe harbor in Revenue Procedure 2008-16 says it won't challenge investment intent if you rent the property at fair market rent for at least 14 days in each of the two 12-month periods before the exchange, while keeping your own use under the greater of 14 days or 10% of rented days per year. In practice: roughly two years of genuine rental. Shorter can work outside the safe harbor, but you're relying on facts and circumstances rather than a guarantee.
Yes — this is the power move for high-gain homes. If you convert your home to a rental and sell within five years of moving out, you still qualify for the two-of-five-year test: the 121 exclusion wipes out up to $250,000/$500,000 of gain tax-free, and a simultaneous 1031 exchange defers everything above that, including depreciation recapture from the rental period. Revenue Procedure 2005-14 blesses exactly this stack.
Eventually, if you do it right. The property must genuinely be held for investment first — the 2008-16 safe harbor's two years of rental is the standard playbook — and moving in too quickly risks the IRS treating the original exchange as invalid from the start. If you later sell the home, two special rules bite: you must own it at least five years after acquiring it in the exchange to use the 121 exclusion at all, and the exclusion is prorated to exclude the years of rental ('nonqualified use'). Depreciation recapture is never excluded.
Not if it's purely personal — a vacation home you use yourself fails the held-for-investment test just like a primary residence. But a second home is usually the easiest property to convert: rent it at fair market rent for 14+ days in each of the two years before the sale, cap your own use at the greater of 14 days or 10% of rented days, and the Rev. Proc. 2008-16 safe harbor treats it as investment property eligible for a full 1031 exchange. No Section 121 exclusion applies (you don't live there), so the exchange defers the entire gain.
Split-use property gets split treatment. You allocate between the residence portion and the investment portion: Section 121 covers the gain on the part you live in, and Section 1031 can defer the gain on the rented part — both in the same sale. The same logic covers farms with a homestead, home offices, and house-hacked properties. The allocation should be documented and defensible, which is CPA work, not closing-week improvisation.