Oberlin24

Taxes

Can You 1031 Exchange a Primary Residence?

Not directly: Section 1031 is for investment property. But converting your home to a rental first, or combining Section 121 with an exchange, gets you most of the way. The rules and the waiting periods.

By Oberlin24· ·6 min read

Selling a home with a big gain and hoping to defer the tax with a 1031 exchange runs into the statute immediately: Section 1031 applies only to property held for investment or business use, and the house you live in is neither. So the direct answer is no. The useful answer is that there are three well-marked indirect paths, each with its own waiting period, and for many homeowners the exclusion you already have beats the exchange you are trying to build.

The short answer:

  • Directly? No. A primary residence is not investment property, so it cannot go into a 1031.
  • After converting it to a rental? Yes. Two years inside the safe harbor of Revenue Procedure 2008-16 makes it exchangeable.
  • Combined with the home-sale exclusion? Yes. Sold inside the 2-of-5-year window, Section 121 and a 1031 stack on the same closing.
  • Into a future home? Yes, patiently. Exchange into it, rent it two years, then move in; the exclusion needs five years of ownership after the exchange.

First, check the tool you already have

A primary residence comes with Section 121: up to $250,000 of gain excluded outright, $500,000 married filing jointly, if you lived there 2 of the last 5 years. Not deferred like a 1031, gone. If your gain fits inside the exclusion, engineering an exchange gains you nothing. The 1031 question only matters when the gain is bigger than the exclusion, or the home already spent years as a rental.

Path 1: convert the home to a rental, then exchange

Rent the home out long enough and it genuinely becomes investment property, which is exchangeable. How long is "long enough" has a safe-harbor answer in Revenue Procedure 2008-16: own it at least 24 months before the exchange, rent it at fair market value for 14 or more days in each of the two 12-month periods, and keep personal use under the greater of 14 days or 10% of days rented. Inside those lines the IRS will not challenge the investment intent; outside them you are arguing facts and circumstances.

Two things to get right during the rental years, because they set up the exit math:

  • The conversion itself fixes your depreciation basis under the lesser-of rule, and the placed-in-service date starts the clock. We walked the whole day-one checklist in the primary residence to rental guide.
  • The rental-years depreciation becomes recapture at sale, taxed at up to 25%. A later 1031 defers that recapture along with the gain; the Section 121 exclusion never covers it.

Path 2: the stack, for homes already part-rental

Here is the combination the standard articles bury: on a converted home sold inside the 2-of-5-year window, Revenue Procedure 2005-14 lets you use both provisions on one sale. Section 121 excludes the appreciation up to its cap, and a 1031 defers everything the exclusion cannot reach: the gain above $250,000/$500,000 and the depreciation recapture.

Worked shape: a couple bought at $400,000, lived there eight years, rented it two, and sells for $1,050,000 net with $30,000 of rental-years depreciation. Total gain is $680,000 ($650,000 appreciation plus $30,000 recapture). Section 121 wipes $500,000. The remaining $150,000 of appreciation plus the $30,000 recapture would be taxable, roughly $40,000 of federal tax at top long-term rates with the recapture layer and net investment income tax, unless the sale runs through a 1031 into the next rental, which defers all of it. Exclusion first, deferral for the remainder, on the same closing.

The deadline pressure is real though: drift past the 2-of-5 window and Section 121 falls away entirely, leaving the whole gain back to your original basis in 1031-or-taxable territory. That timing decision (sell inside the window, exchange after it, or just pay) is exactly what our sell vs hold vs 1031 calculator prices side by side, including the recapture layer and, if the property ran paper losses, the suspended-loss release that a taxable sale triggers and an exchange keeps frozen. On the two-property books we run, that release was the deciding line item, not the deferral.

Path 3: exchange into a home you will live in later

The reverse direction also works, patiently. You can 1031 out of a rental into a house you intend to retire into, as long as the replacement is held for investment first: rent it at fair value for the two-year safe harbor before moving in. Then two more rules govern the eventual sale as your home: Section 121(d)(10) requires five years of ownership after the exchange before the exclusion is available at all, and the exclusion is prorated for the years of "nonqualified use" as a rental. The deferred 1031 gain does not vanish when you move in; it shrinks into a partial exclusion at best. Swap, rent, move in, wait out five years, and the combination is one of the few ways a deferred gain partially converts into an excluded one, short of the basis step-up at death.

The scenario table

Your situation The move The waiting period
Gain fits under $250k/$500k Just sell; Section 121 excludes it Lived in 2 of last 5 years
Home gain exceeds the exclusion Convert to rental, then stack 121 + 1031 ~2 rental years, sold inside the 2-of-5 window
Former home, rented 3+ years Straight 1031 (121 has lapsed) Already qualified
Duplex, live in half Split sale: 121 on your unit, 1031 on the rental unit Allocation, not waiting
Want to live in the 1031 replacement Rent it 2 years, convert, own 5 years post-exchange 2 + 5 years

What your basis becomes after the exchange

The deferral has a price tag on the other side: the replacement property inherits your old basis, not its purchase price. The mechanics are one line of arithmetic: new basis = cost of the replacement minus the gain you deferred. Trade a $700,000 sale (basis $300,000, so $400,000 deferred) into a $900,000 replacement and your basis in it is $500,000, not $900,000. Depreciation going forward runs on the carried-over portion on its old schedule, plus the $200,000 you added, which starts a fresh 27.5-year clock as if newly placed in service.

Boot works against you here too: cash you take out or debt relief you do not replace is taxable in the exchange year, recapture first. The sell vs hold vs 1031 calculator runs this arithmetic on your numbers, including the boot and recapture layers.

The takeaway

You cannot 1031 the house you live in, and most people asking do not need to: the Section 121 exclusion is the better tool up to its cap. Above the cap, the sequence is convert, rent inside the safe harbor, and either stack both provisions inside the 2-of-5 window or exchange cleanly after it. Every path runs on documented rental years at fair-market rent, which is a books problem before it is a tax problem: the lease, the deposits landing in the bank, and the depreciation schedule are the evidence the whole structure stands on.

Frequently asked questions

Can you do a 1031 exchange on your primary residence?

Not directly. Section 1031 applies only to property held for investment or business use, and a home you live in is neither. The workable paths are indirect: convert the home to a rental first and exchange it later, use the Section 121 home-sale exclusion instead (up to $250,000 single or $500,000 married), or combine both on a home that spent time as a rental.

How long do I need to rent out my home before it qualifies for a 1031 exchange?

The IRS safe harbor (Revenue Procedure 2008-16) wants two years of genuine rental use: own the property at least 24 months before the exchange, rent it at fair market value for 14 days or more in each of the two 12-month periods, and keep your own use under the greater of 14 days or 10% of the days rented. Shorter holds can still work on the facts, but inside the safe harbor the IRS will not challenge the investment intent.

Can I move into a property I acquired in a 1031 exchange?

Eventually. Move in immediately and you undermine the exchange, because the replacement was supposed to be held for investment. The same two-year safe harbor logic applies in reverse: rent it at fair value for two years first, then convert. And if you later sell it as your home, Section 121(d)(10) requires five years of ownership after the exchange before the exclusion is available at all.

Can I combine the Section 121 exclusion with a 1031 exchange on the same sale?

Yes, on a home that became a rental. Sell within the 2-of-5-year window and Revenue Procedure 2005-14 lets you stack them: Section 121 excludes up to $250,000/$500,000 of the appreciation, and a 1031 defers the gain above the exclusion plus the depreciation recapture from the rental years, which Section 121 never covers.

What about a duplex where I live in one unit and rent the other?

The sale splits. The unit you live in is a primary residence eligible for the Section 121 exclusion; the rented unit is investment property eligible for a 1031. You allocate the sale price between them (square footage is the usual method) and each part follows its own rules on the same closing.

Does a vacation home qualify for a 1031 exchange?

Only if it is genuinely held for investment. The same Revenue Procedure 2008-16 safe harbor applies: two years of renting it at fair market value for 14+ days a year, with personal use inside the 14-day/10% cap. A house the family uses all summer and rents for a week does not qualify.

How do you calculate the basis of the property received in a 1031 exchange?

Carryover basis: the cost of the replacement property minus the gain you deferred. Sell for $700,000 with a $300,000 basis and buy a $900,000 replacement, and your new basis is $500,000. Depreciation continues on the carried-over portion on its old schedule; only the extra $200,000 you paid starts a fresh 27.5-year clock.