A 1031 exchange cannot be used on your primary residence. Section 1031 defers capital gains tax only on property held for investment or business use, and the home you actually live in is neither. The tax break built for a primary residence is the Section 121 exclusion, which lets a single filer skip tax on up to $250,000 of gain and a married couple up to $500,000, with no replacement property and no exchange required.

The confusion is understandable, and around here it shows up in a specific way. Someone buys a beach cottage as a rental, leases it to vacationers for a decade, then decides the salt air and the short walk to the Atlantic are too good to pass up in retirement. Now the rental and the dream house are the same building, and two different sections of the tax code both want a say. They don't cancel each other out, but they don't blend cleanly either, and the order you do things in matters more than most people expect.

Can you use a 1031 exchange for a primary residence?

No. A 1031 exchange applies only to real estate held for investment or productive use in a trade or business, so a house you live in as your main home does not qualify on either the sale side or the purchase side. You can't sell your residence and 1031 into a rental, and you can't 1031 into a property you plan to move into right away. The same-taxpayer and like-kind investment-use requirements (covered in full in our 1031 exchange rules guide) are the gate, and personal use fails it.

What trips people up is that a property's status can change over time. A house is defined by how you use it, not by what it looked like the day you bought it. A pure rental can become a residence, and a former residence can become a rental, and each move opens or closes a different door. More on that below.

What's the right tool for a home you live in?

The Section 121 exclusion is the right tool for a primary residence. If you owned the home and lived in it as your main residence for at least two of the last five years, you can exclude up to $250,000 of capital gain filing single, or up to $500,000 married filing jointly. You can use it again every two years. It erases qualifying gain outright rather than deferring it, and you don't have to buy anything to replace the home you sold.

The two-of-five test doesn't require the years to be consecutive. You could live in a Fernandina Beach house for two years, rent it out for two, move back, and still meet it, as long as the ownership and use add up inside that five-year window. If a job move, a health issue, or an unforeseen event forces a sale before you reach two years, a partial exclusion can apply, prorated by the months you did qualify. Depreciation you claimed while it was a rental is the one piece that doesn't get sheltered: that part is recaptured and taxed, exclusion or not.

Here is how the two rules line up side by side.

1031 exchangeSection 121 exclusion
Property typeInvestment or businessPrimary residence
Tax effectDefers the gainExcludes the gain
Cap on the benefitNone (unlimited deferral)$250K single / $500K married
Replacement propertyRequiredNot required
Qualifying testHeld for investmentOwned and lived in 2 of last 5 years
Long-term outcomeCarries to the next propertyPermanently excluded
How oftenRepeatable back to backOnce every two years

Can you turn a rental into a primary residence after a 1031?

Yes, and it's one of the few legitimate ways the two rules touch. You can acquire an investment property through a 1031 exchange, rent it out, and years later move in and make it your main home. But you can't claim the full Section 121 exclusion the day you change the locks. A property that came through a 1031 carries a longer minimum hold, five years of total ownership, before the exclusion is available, on top of the usual two-of-five residency test. That five-year requirement has enough moving parts that it gets its own treatment in our 1031 exchange 5-year rule guide.

Two things survive the conversion no matter how long you wait. Depreciation recapture is never excluded, so the write-offs you took as a landlord come back into income when you sell. And gain tied to "non-qualified use," meaning the stretch the place was a rental rather than your home, stays taxable on a pro-rata basis. The exclusion shelters the residential years, not the rental ones.

What is the 2-year rule for a 1031 exchange?

The most common 2-year rule comes from IRS Revenue Procedure 2008-16, a safe harbor for properties that double as occasional personal getaways. To keep a dwelling clearly on the investment side of a 1031, the IRS wants you to own it for 24 months, and in each 12-month stretch rent it at a fair market rate for at least 14 days while keeping your own personal use under 14 days or 10% of the days it was rented, whichever is greater. The same test runs backward on the property you sold. Hit those marks and the IRS won't argue the place was really a second home.

There's a second 2-year rule for exchanges done with a related party: both sides generally have to hold their properties for two years afterward, or the deferral unwinds. If you're buying from or selling to family, that one matters. The broader exchange clock, the 45-day identification and 180-day closing deadlines, is a separate timeline and lives in our 1031 exchange timeline guide.

Is there a 6-year rule for a principal residence?

No. There is no 6-year rule for a principal residence under U.S. tax law. The "6-year rule" people run into online is an Australian capital-gains provision that lets an owner rent out a former main residence for up to six years and still treat it as exempt. It has no equivalent in the U.S. code. If a search sent you here looking for it, you're almost certainly after one of two real U.S. rules: the two-of-five-year residency test for the Section 121 exclusion, or the five-year hold that applies when a 1031-acquired property is later converted to a home. Neither is six years, and mixing them up can cost real money at closing.

What's the downside of a 1031 exchange?

The main downside is that a 1031 defers tax, it does not forgive it. Your original cost basis carries forward into the replacement property, so the gain you skipped is still sitting there waiting for the day you sell without exchanging again. You also trade flexibility for the deferral: hard 45-day and 180-day deadlines, a qualified intermediary you have to route the proceeds through, and a requirement to stay invested in real estate to keep the clock paused. On a smaller property, the fees and the friction can outweigh a modest tax bill. We walk through the full list of trade-offs, and when the math doesn't favor an exchange, in our 1031 exchange rules guide.

Florida adds one wrinkle worth naming. With no state income tax, the only thing a 1031 defers here is the federal bill. An investor in a high-tax state stacks federal and state savings; on this side of the state line you're working the federal side alone, which changes whether the cost of the exchange pencils out.

Stacking the two rules in the right order

The strongest play, when it fits, is to use each rule for what it does best and let time do the rest. Buy or 1031 into a rental, hold and lease it through the safe-harbor window, then convert it to your primary residence and live there long enough to satisfy both the five-year hold and the two-of-five test. Done in that order, you defer the gain on the way in and exclude a chunk of it on the way out, with depreciation recapture as the cost of admission.

Picture round numbers. You pick up an island condo as a rental for $400,000 and claim $60,000 of depreciation over the years you lease it to vacationers. Later you move in, satisfy the five-year hold and the two-of-five residency test, and sell as a married couple for $750,000. Your $350,000 gain sits under the $500,000 exclusion, so the residential share comes out tax-free, while the $60,000 of depreciation is recaptured and taxed, and any gain allocated to the rental years counts as non-qualified use and is taxed pro-rata. A CPA runs the actual allocation. The point is that the exclusion does the heavy lifting without covering everything.

The order matters, the deadlines are unforgiving, and this is a plan you build with a CPA and a qualified intermediary before you sign anything, not after. When we list a rental for an owner who's eyeing it as a future home, we flag the timing early so the sale strategy and the residency clock aren't pulling against each other. The house on the marsh side of the island isn't going anywhere. The tax windows are the part with a deadline.

Frequently asked questions

Can I use a 1031 exchange for a primary residence?

No. A 1031 exchange defers tax only on property held for investment or business use, so the home you live in does not qualify on either the sale or purchase side. The tool for a primary residence is the Section 121 exclusion, which lets a single filer exclude up to $250,000 of gain and a married couple up to $500,000.

What is the 6-year rule for a principal residence?

There is no 6-year rule for a principal residence in U.S. tax law. The 6-year rule is an Australian provision that lets an owner rent out a former main residence for up to six years and keep its exemption. In the U.S., the rules people confuse it with are the two-of-five-year residency test for the Section 121 exclusion and the five-year hold for a 1031-acquired property converted to a home.

What is the 2-year rule for a 1031 exchange?

The common 2-year rule comes from IRS Revenue Procedure 2008-16: to keep a dwelling on the investment side of a 1031, own it 24 months and, in each 12-month period, rent it at fair market value at least 14 days while limiting personal use to under 14 days or 10% of the rented days. A separate 2-year rule requires both parties in a related-party exchange to hold their properties for two years afterward.

What is the downside of a 1031 exchange?

A 1031 defers tax, it does not forgive it. Your old cost basis carries into the replacement property, so the deferred gain is taxed when you eventually sell without exchanging again. You also accept strict 45-day and 180-day deadlines, a qualified intermediary, and the need to stay invested in real estate, which can outweigh the benefit on a smaller property.