---
title: "The 1031 Exchange Five-Year Rule, Explained Before You Move Into the Rental"
description: "The 1031 exchange five-year rule (Section 121(d)(10)): you must own a 1031-acquired property five years before any home-sale exclusion, on top of the two-of-five test."
published: "2026-08-27"
canonical: "https://blog.saltharborrealestate.com/blog/1031-exchange-5-year-rule"
author: "Everitt Gill"
---

The 1031 exchange five-year rule comes from Section 121(d)(10) of the tax code: if you acquired a property through a 1031 exchange, you have to own it for at least five years before you can use the [home-sale exclusion](https://blog.saltharborrealestate.com/blog/how-to-avoid-capital-gains-tax-on-real-estate) to take any of the gain tax-free, even after you convert it into your primary residence. It is a federal rule, and it stacks on top of the older requirement that you live in the home for two of the last five years before selling. Miss the five-year mark and the exclusion is simply not there for you, no matter how long you have lived in the house.

The rule exists because the move it blocks used to be a common one. An investor would roll a gain into a rental, live in it for two years, sell, and walk away with up to a quarter million dollars federally untaxed. Congress closed that door in 2004, and the line it drew still trips up owners on the island who bought a beach rental years ago and now want to retire into it.

## Where did the five-year rule come from?

Congress added Section 121(d)(10) in the American Jobs Creation Act of 2004, effective for sales after October 22, 2004. Before it, an investor could 1031 into a rental, convert it to a home, satisfy the two-year residence test, and exclude up to $250,000 of gain (or $500,000 for a married couple filing jointly). The five-year ownership floor was written to stop that fast turn from deferred-tax investment into tax-free homestead.

So the exclusion did not go away for exchanged property. It just got harder to reach. You now clear two separate bars instead of one: own the property five years, and use it as your main home for two of the five years before you sell. Property you bought in an ordinary purchase only faces the second bar.

## Is the five-year rule the same as a 1031 holding period?

No. The five-year rule governs when you can claim the home-sale exclusion on a property you got through an exchange. A holding period is a separate question about how long you should keep a property before exchanging it at all, so the IRS treats it as held for investment. There is no statutory minimum holding period for a 1031; most tax advisors suggest one to two years to show investment intent.

The two get confused because both involve a clock. The holding period sits on the front end of the deal: it is about getting cleanly into the deferral. The five-year rule sits on the back end: it is about getting out tax-free later through the home-sale exclusion. One has no fixed number in the statute. The other has a hard five. Treating them as the same number is how people talk themselves into selling too early.

## How do you prove the two-of-five-year residence test?

You prove it with records showing the home was your principal residence for at least 24 months out of the five years before the sale. The 24 months do not have to be consecutive, and they add up to 730 days. The usual proof is your driver's license, voter registration, the address on your federal tax returns, utility bills, and bank statements all pointing to that property during the window you are claiming.

Non-consecutive matters more than people expect. If you lived in the house, moved out for a job, then came back, the months can be added together as long as they total two years inside the five-year look-back. For the full sequence of moving in, renting out, and moving back, see our companion piece on [converting a property to a primary residence](https://blog.saltharborrealestate.com/blog/1031-exchange-primary-residence), which walks the conversion playbook step by step.

## Even after five years, why isn't the whole sale tax-free?

Because two slices of the gain never qualify for the exclusion. Depreciation you claimed while the property was a rental gets recaptured and taxed at up to 25% as unrecaptured Section 1250 gain, no matter how long you owned the home. And the gain tied to the years it was a rental, counted as non-qualified use since 2009, is carved out of the exclusion. The home-sale exclusion only shelters gain from the years the property was actually your residence, capped at $250,000 single or $500,000 married.

The non-qualified use rule came in with the Housing Assistance Tax Act of 2008. It allocates your gain by a simple ratio: years of non-qualified use over total years of ownership. Rent the place for three of six years you owned it and roughly half the post-recapture gain stays taxable, because half the time you held it, it was not your home. The exclusion covers the rest, up to the cap.

## What happens if you sell before the five years are up?

If the property came from a 1031 exchange and you sell before owning it five full years, the home-sale exclusion is unavailable entirely, even if you have lived there two years. The entire gain is taxable: the gain you deferred in the original exchange, the depreciation recapture, and every dollar of appreciation since. There is no partial credit for being close to the line.

Run the numbers and the cost of one missed year gets concrete. Picture a married couple who exchanged into a duplex a few blocks off the beach in [Fernandina Beach](https://blog.saltharborrealestate.com/blog/fernandina-beach) in 2019, rolling $120,000 of deferred gain from a sold rental into it. They rent it out for three years and claim $30,000 of depreciation along the way. In 2022 they move in and make it home. Say the total gain works out to $400,000 either way, so we can isolate what the five-year rule alone does.

| Outcome | Sold in year 4 (under five years owned) | Sold in year 6 (five-year and 2-of-5 tests met) |
|---|---|---|
| Home-sale exclusion | Unavailable | Available, partial |
| Gain excluded, tax-free | $0 | $185,000 |
| Depreciation recapture (taxed up to 25%) | $30,000 | $30,000 |
| Remaining taxable capital gain | $370,000 | $185,000 |
| Total taxable gain | $400,000 | $215,000 |

In the year-four sale, the couple have lived there long enough to feel settled, but the property has not cleared five years of ownership, so Section 121(d)(10) shuts the exclusion off completely. Every dollar of the $400,000 is taxable. Wait until year six, once they have owned it more than five years and used it as their main home for three of the last five, and the exclusion opens, though only for the residence share. The three rental years out of six count as non-qualified use, so half of the post-recapture gain stays taxable, and the $30,000 of depreciation is recaptured on top of that. They shelter $185,000 and still report $215,000.

Owners on the island ask us about this timing more than almost any other tax question, usually because a vacation rental they bought a decade ago has quietly become the place they want to retire. At Salt Harbor Real Estate we flag the five-year line early in those conversations, because the gap between selling in year four and year six can run six figures.

## Does a second exchange or a spouse change the math?

Two situations come up often. If you do another 1031 exchange into a new property, the five-year clock starts over on that new property from the date you acquire it; the time you held the old one does not carry forward for the exclusion. And for a married couple to claim the $500,000 exclusion, both spouses must meet the two-year use test, while only one needs to hold title to satisfy the ownership and five-year tests.

A few related questions sit just outside this page. If you want the broader trade-offs of doing a 1031 at all, the [rules hub](https://blog.saltharborrealestate.com/blog/1031-exchange-rules) covers the downsides in full. If you are mapping the move-in and move-out sequence in detail, the primary-residence piece owns that ground. This page stays on the five-year line itself, which is the one most people measure wrong.

The practical takeaway is short. If a former rental you exchanged into is going to become your home, mark two dates on the calendar before you list it: the day you cross five years of ownership, and the day you have used it as your main residence for two of the prior five years. Sell before either one and the exclusion is gone or partial. Run the conversion math with your CPA a year or two ahead, not the week you call a buyer's agent.

## FAQ

**Does the 1031 five-year rule apply to a home I bought normally, not through an exchange?**
No. Section 121(d)(10) only applies to property you acquired in a like-kind exchange. A home you bought in an ordinary purchase only has to clear the two-of-five-year residence test to use the home-sale exclusion, with no separate five-year ownership floor.

**Is the five-year rule the same in Florida as everywhere else?**
Yes. It is a federal rule under the Internal Revenue Code, so it applies to a Nassau County property exactly as it would anywhere. Florida has no state income tax, which means there is no extra state holding requirement, but the federal five-year ownership floor still governs the exclusion.

**If I move in right after the exchange, does that shorten the five years?**
No. Moving in early lets you start the two-year residence clock sooner, but the five-year ownership requirement runs from the date you acquired the property regardless of when you move in. You still cannot claim the exclusion until you have owned it five full years.

**What tax rate applies to the gain that isn't excluded?**
The depreciation recapture portion is taxed as unrecaptured Section 1250 gain at up to 25%. The remaining taxable gain is generally [long-term capital gain](https://blog.saltharborrealestate.com/blog/federal-capital-gains-tax-florida), taxed at 0%, 15%, or 20% federally depending on your income. Florida adds no state income tax on top of the federal bill.
