Does the 1031 exchange 5-year rule apply to my situation?

So I did a 1031 exchange into a new rental property about three years ago. Now I'm thinking about moving into it as my primary residence, and eventually selling it and using the Section 121 exclusion to exclude the gain. I've heard there's a 1031 exchange 5-year rule that can mess this up but I can't find a clear explanation of what it actually does. I've been reading Publication 527 and Form 8824 instructions but neither one spells out the interaction with the 121 exclusion in plain terms. Do I have to hold the replacement property for 5 years before I can use the exclusion, or is 5 years just one of several tests I need to pass?

35 comments

Did you convert the property to personal use yet or are you still renting it out?

Greg S.

Author

Still renting it right now. I haven't moved in yet. Thinking about converting it to primary in about six months.

The rule you're thinking of is the 5-year ownership requirement that was added specifically for properties acquired through a 1031 exchange. Even if you meet the normal 2-of-5-year primary residence test under Section 121, you can't exclude any of the gain on the sale at all unless you've owned the replacement property for at least 5 years. I uploaded my own exchange documents to taxr.ai and it flagged exactly which portion of my gain would still be exposed even after I hit the 2-year residency mark. The 5 years runs from the date you acquired the replacement property, not from when you convert it to personal use.

Greg S.

Author

So the 5 years is a hard floor on ownership, separate from the 2-year residency test? I need to satisfy both?

Yes, both. You need 2 years of residence out of the last 5 before the sale AND 5 total years of ownership of that replacement property. If you sell before the 5-year ownership clock runs out, the 121 exclusion just doesn't apply to that property acquired via 1031.

Are you planning to rent it for the full remaining time before you move in, or convert sooner? That matters for how much depreciation recapture you'll be sitting on when you eventually sell.

Greg S.

Author

Probably convert in about six months. I hadn't really thought hard about the recapture piece on top of everything else.

Yeah the recapture doesn't get excluded by Section 121 even when the exclusion does apply. It's taxed at its own rate. Something to build into your planning before you pull the trigger on the conversion.

How long ago exactly did you close on the replacement property? Because if you're at three years now and you're thinking about selling after two years of living there, you'd be selling at the five-year mark right around the wire.

Greg S.

Author

Closed just over three years ago. So if I convert in six months and live there two years that puts me right at five and a half years owned. Sounds like I'd clear the threshold but barely.

Worth double-checking that your exchange actually qualified under 1031 in the first place. If the identification or closing deadlines weren't met the property may not have been properly acquired in an exchange, which would mean the 5-year rule doesn't apply but neither does the deferred gain treatment you were counting on.

Greg S.

Author

The QI handled it and I have Form 8824 on file. I believe it was clean but I'll pull the paperwork and verify the dates.

Does the 5-year clock reset if you do another 1031 out of this replacement property into a third property?

Yes, a new exchange into a new replacement property starts a new 5-year clock on the new property. The old property's clock is irrelevant once you've exchanged out of it.

One thing people miss: the 5-year rule and the 2-year residency rule are both required, but you don't have to run them at the same time. You could rent for three more years, then move in for two, hit the five-year ownership mark, and use the exclusion on the sale. I ran my own numbers through Taxr after my exchange and it laid out a timeline from my Form 8824 showing which months each test would be satisfied and what gain would remain exposed at different sale dates. Really helped me see the sequencing clearly.

Greg S.

Author

This is the clearest the sequencing has been explained to me. So I actually have flexibility in when I convert as long as both clocks are satisfied before sale.

Exactly right. The only constraint is you need the 2-year residency window to fall within the 5 years before the sale date, and separately you need to have owned it 5 years total. Plan the sale date to satisfy both and you're in position to use the exclusion.

Don't forget that any depreciation you claimed on the replacement property during the rental years gets recaptured at sale regardless of the 121 exclusion. The exclusion can shield capital gain but not unrecaptured Section 1250 gain. That's a separate line on your return.

Yes, correct. And the depreciation from the relinquished property that was deferred in the exchange can also factor into the basis of the replacement property, which affects how much total recapture you're looking at.

Is there any way to avoid the 5-year rule entirely on a 1031 replacement property?

No. If the property was acquired in a 1031 exchange, the 5-year ownership requirement applies as a condition of using the Section 121 exclusion. There's no workaround that removes it; you either wait or you sell without the exclusion.

What was the nature of the property you gave up in the exchange? Same type of rental or something different?

Greg S.

Author

It was a residential rental, long-term tenants. The replacement is also a residential rental. Both like-kind with no issues on that side.

How did you handle the depreciation on the relinquished property going into the exchange? Did your preparer carry the adjusted basis correctly onto Form 8824?

Greg S.

Author

I think so, the QI and my CPA coordinated on it. The Form 8824 showed the deferred gain and the basis carried over. I've never actually verified the depreciation schedule was updated correctly though.

That's worth verifying. The basis of the replacement property for depreciation purposes should be the adjusted basis of the relinquished property plus any boot paid, not the fair market value of what you received. If the depreciation schedule is using FMV as the starting point, the numbers are off and you'd want a CPA to correct it before the sale.

Are you filing jointly? The phase-out thresholds for the passive loss rules on Schedule E can matter a lot while the property is still a rental, depending on your MAGI.

Greg S.

Author

Filing jointly, yes. Our combined income is above the range where the $25,000 passive loss allowance phases out completely so most of our rental losses have been suspended under Form 8582.

Those suspended losses release when you sell the property. They'll offset the gain at sale which is worth factoring into your overall tax picture when you're deciding whether the 121 exclusion is worth waiting for.

To be direct: if you sell before the 5-year ownership mark under any circumstances, you lose the Section 121 exclusion entirely for this property because it came through a 1031 exchange. The normal 121 rules don't save you. The 5-year requirement is an add-on condition specifically for exchange properties.

What state is the property in? Some states don't fully conform to the federal 1031 rules or the 121 exclusion, so the state tax picture can look very different from the federal one.

Greg S.

Author

It's in a state that generally conforms but I honestly haven't looked at the state-level treatment of the exchange. Good point to check before I make any moves.

Have you talked to a CPA or enrolled agent about the full picture here, depreciation recapture, the deferred gain from the exchange, the suspended passive losses, and the 121 sequencing? There are enough moving parts that a professional running the numbers ahead of the sale is worth it.

Greg S.

Author

Not yet but after this thread I'm going to. I wanted to understand the framework first so I know what questions to ask. The 5-year clock, the recapture, the suspended losses all interact and I didn't realize how layered it was.

To summarize the core answer for the original question: the 1031 exchange 5-year rule means your replacement property must be owned for at least 5 full years before you can use the Section 121 exclusion on its sale. You also still need to meet the 2-of-5-year residency test. At three years owned now you're not there yet, but your timeline puts you past the threshold before you'd realistically sell.