When selling real estate, investors love the 1031 Exchange for its ability to defer capital gains taxes on investment properties. Meanwhile, regular homeowners love Section 121 (the Principal Residence Exclusion) because it allows single filers to pocket up to $250,000 (and married couples up to $500,000) of capital gains completely tax-free when selling a primary home.
For a long time, these two rules lived in completely separate tax silos. But thanks to IRS Revenue Procedure 2005-14, you can actually combine both strategies on a single-family home. This powerhouse combination allows you to permanently exclude a massive chunk of profit tax-free and defer the rest into a new investment asset.
Here is how the strategy works, the strict rules you must follow, and a real-world example of it in action.
How It Works: The “Live-in Then Rent” Strategy
To pull this off with a single-family home, you cannot sell the home while you are actively living in it as your primary residence. (A pure primary residence does not qualify for a 1031 exchange). Instead, you must convert the home into a rental property before you sell it.
To maximize both tax codes, you must hit a very specific timing sweet spot:
- The Section 121 Rule: You must have owned and lived in the house as your primary residence for at least 2 out of the last 5 years leading up to the sale date.
- The 1031 Exchange Rule: At the exact time of the sale, the home must legitimately be classified as an investment property. The IRS generally likes to see the home rented out at fair market value for at least 12 to 24 months to prove “investment intent.”
Because of these overlapping timelines, an investor typically lives in a home for a few years, moves out, rents it to tenants for 1 to 3 years, and then sells it. At the moment of sale, the property simultaneously qualifies as a former primary residence (meeting the 2-out-of-5-years rule) and a current rental property.
A Real-World Example
Let’s look at how this plays out for a homeowner named Mark.
Mark is a single filer who bought a single-family home in a fast-growing city years ago for $300,000. He lived in it for four years as his primary residence. As the neighborhood surged in value, Mark decided to move into an apartment closer to work and rented the house out to tenants for the next 2 years.
He now decides to sell the house for $700,000.
The Tax Breakdown
Mark has a total capital gain of $400,000 ($700k sale price – $300k original purchase price). If he just sells the property normally, he can only shield $250,000 under Section 121, leaving him with a painful tax bill on the remaining $150,000.
By utilizing the combined strategy, Mark brings in a Qualified Intermediary (QI) to orchestrate a 1031 exchange on the sale:
- Step 1: Apply Section 121 (Tax-Free Cash): Because Mark lived in the home for 2 out of the last 5 years, the IRS allows him to apply his primary residence exclusion first. The first $250,000 of his profit is permanently wiped away tax-free. Mark can take this $250,000 cash at closing and put it directly into his personal bank account.
- Step 2: Apply Section 1031 (Tax-Deferred Roll): Mark is left with $150,000 in remaining capital gains. Instead of paying taxes on it, the QI moves the remaining sale proceeds into an escrow account.
- Step 3: Buy the Replacement Property: Following standard 1031 guidelines, Mark identifies a new like-kind investment property (like a commercial condo or a residential duplex) within 45 days and closes on it within 180 days using the remaining funds.
The Result: Mark walks away with $250,000 of pure, tax-free cash in his pocket to spend however he likes, and the remaining $150,000 in profit is rolled seamlessly into a new income-producing asset, deferring his tax liability to $0.
Important Caveats to Keep in Mind
While this is one of the most lucrative strategies in the tax code, the IRS monitors it closely.
- Depreciation Recapture: Section 121 cannot shield taxes on the depreciation you claimed (or should have claimed) while the property was a rental. That depreciation recapture tax must either be paid at the time of sale or rolled into the 1031 exchange replacement property.
- The 5-Year Rule for Prior Exchanges: If you are doing this strategy in reverse—meaning you originally bought the single-family home as a rental via a 1031 exchange and later moved into it to make it your primary residence—you must own the property for a minimum of five consecutive years before you can claim any Section 121 exclusions.
