Sell converted rental before 2 out of 5 rule expires or 1031 later?

Bought my house in 2019, lived in it until mid-2022, then converted it to a rental. I've been renting it out for about three years now. I know the Section 121 exclusion requires 2 out of the last 5 years as your primary residence, and I'm watching that window close. If I sell before the 5-year lookback pushes my residency period out, I can still exclude up to $250k of gain (single). But the property has appreciated a lot and I've been taking depreciation, so recapture is in the mix too. The alternative is holding it, doing a 1031 exchange later, and deferring everything. I can't figure out which path actually saves more. Has anyone faced this exact timing crunch deciding whether to sell converted rental before 2 out of 5 rule expires or 1031 later?

32 comments

I was in almost this same spot two years ago. Lived in my place four years, rented it two, then had to decide. What pushed me to sell while I still had the exclusion was the depreciation recapture piece. Even inside a 1031 you don't escape recapture forever — you just carry it into the next property. The Section 121 exclusion actually shelters the appreciation but not the recapture; that gets taxed at up to 25% regardless. So I ran the numbers both ways and the exclusion still came out ahead because my gain was mostly appreciation, not recapture.

Grace P.

Author

That up-to-25% recapture point is something I keep forgetting to factor in separately. Good reminder. Did you have to pay it all in the year you sold even with the 121 exclusion in play?

Yes, recapture is not excludable under Section 121 — it comes out first, gets taxed at a maximum rate of 25%, and then the remaining gain up to the exclusion limit is sheltered. So the exclusion only does work on the appreciation above the recapture amount.

The 5-year lookback is the clock that matters most here. Your 2-year residency requirement has to fall within the 5 years ending on the date of sale. You moved out mid-2022, so that window closed around mid-2025, three years after you moved out. After that date, no Section 121 exclusion at all, no matter how long you lived there before. The 1031 path keeps deferring but you're carrying the recapture basis and the deferred gain into every future property.

Grace P.

Author

So the window actually closed around mid-2025, three years after I moved out. That actually clarifies the urgency more than I had it in my head.

I converted a condo from primary to rental and wrestled with this for months. What finally helped me was uploading my depreciation schedules and my projected sale numbers to taxr.ai — Taxr laid out a side-by-side of the two scenarios showing how much of my gain fell under recapture versus how much the 121 exclusion would actually shelter. Didn't tell me which to pick but made the numbers concrete enough that I could see what each path actually cost. The 1031 route defers everything but you need a qualified intermediary lined up before closing, and the 45-day identification window is unforgiving.

Grace P.

Author

Good to know it can break down recapture vs. excluded gain separately. That's exactly the part I can't get a clear picture of on my own.

One thing that shifts the math: how much depreciation have you actually taken since mid-2022? Three years of depreciation on a residential property at the MACRS rate over 27.5 years is real money. That's all recapture taxed at up to 25% when you sell under 121, while a 1031 defers it instead. With 1031 you're just moving that liability to the next property's basis.

Grace P.

Author

I've taken three full years' worth on Schedule E. I'll need to pull Form 4562 to get the exact total but it's not trivial.

Right, and if you've been claiming it on Schedule E each year, you have to recapture it even if you forgot to take it. The IRS treats it as "allowed or allowable." So make sure your depreciation basis is accurate before you close on anything.

My situation was a vacation-turned-rental and it taught me that the personal use day rules under Publication 527 matter a lot before you even get to 121. But for a straight primary-to-rental conversion like yours, you're past that hurdle. The cleaner question is just the timing. If your gain is under the exclusion ceiling after recapture, selling before the window closes is usually the simpler path. 1031 makes more sense when the gain is way above what 121 can shelter.

I'll add: a 1031 exchange also chains you to another investment property. If you want out of real estate, 1031 is the wrong tool. But if you plan to keep investing and want to roll into something with better cash flow or more appreciation potential, deferring and exchanging can compound nicely over time. The deferred gain never goes away unless you hold until death and get a stepped-up basis.

Grace P.

Author

The stepped-up basis angle hadn't crossed my mind as an endpoint strategy. Gives me another variable to think through.

Exactly. Some people chain 1031 exchanges for decades and the recapture and deferred gain disappear at death if the property is in their estate. It's a long game but it's a real one.

If you do go the 121 route, remember you're only excluding gain — not the whole sale price. You still report the sale on your return. The recapture portion goes on Form 4797 and the remaining excluded gain gets reported on Schedule D with the exclusion claimed. A lot of people think 121 means no paperwork, but that's not right, especially on a converted rental.

Grace P.

Author

Good catch. I assumed it might be a no-report situation but you're right, the depreciation recapture alone makes it reportable.

I sold a converted rental last year and honestly the Form 4797 tripped me up — I wasn't sure how much of the gain was Section 1250 recapture versus regular Section 1231 gain. I uploaded my closing disclosure and old depreciation schedule to Taxr and it walked through which amounts went on which lines of 4797 and what was left over for Schedule D after the 121 exclusion. The breakdown by form line was what I needed. Saved me from putting recapture in the wrong place and potentially underreporting it.

Grace P.

Author

Thanks, I'll keep that in mind. The 4797 line split is exactly what confuses me too.

The passive activity loss question also comes up here. If you have suspended passive losses on Form 8582 from the rental years, a full sale in a taxable transaction releases them. A 1031 exchange doesn't — those suspended losses stay locked until you have a fully taxable disposition. So if you've accumulated losses you can't currently deduct, selling outright frees them up to offset other income.

Grace P.

Author

I actually do have some suspended losses from a year where my income was above the phase-out. This is a real factor I hadn't put in the equation.

Yep, the passive loss special allowance phases out as MAGI rises — Publication 527 has the details on the thresholds. High earners with suspended losses often find the outright sale more valuable than it looks at first because of this.

For anyone weighing the 1031 path, the mechanics are strict. You need a qualified intermediary before the sale closes — you can't touch the proceeds yourself. 45 days to identify replacement property, 180 days to close. Miss either deadline and the exchange fails and the whole gain is taxable that year. The form is 8824 and it goes on your return for the year the exchange is initiated. irs.gov/forms-pubs/about-form-8824 has the instructions. Plan ahead because finding a QI at the last minute is risky.

My accountant pointed out that the basis you carry into a 1031 property can create lower depreciation deductions going forward because your depreciable basis in the new property is reduced by the deferred gain. So you're not just deferring tax — you're also potentially deferring the depreciation benefit that comes with a fresh purchase.

Grace P.

Author

Hadn't thought of that angle. So the new property gives you less annual depreciation to deduct on Schedule E. That's a real ongoing cost.

If you're seriously close to the 5-year cutoff, have you thought about selling before year-end vs. early next year? Timing the closing date matters because that's the date the IRS looks at for the 2-out-of-5 test, not when you list or when you go under contract. Missing the window by a week or a month because closing dragged out would be a painful and expensive mistake.

Grace P.

Author

This is a real operational risk. I need to work backward from the window closing date and give myself enough buffer for a typical closing timeline.

Exactly. Real estate closings slip. Build in at minimum a 30-day buffer from your deadline. And get a CPA or enrolled agent to confirm the exact cutoff date based on your move-out date, since it's a facts-and-circumstances calculation.

Worth noting: if you're married filing jointly, the Section 121 exclusion is higher. The figures turn on your filing status and both spouses have to meet certain requirements, so check the instructions on that if your situation changed since you bought.

I tried to do a 1031 on my rental and the QI fees and transaction costs ate into the benefit more than I expected. Not saying it's not worth it — for large gains it obviously is — but make sure you're accounting for QI fees, title on the replacement, and the time value of staying invested versus liquidating. The tax deferral is valuable but it's not free.

Grace P.

Author

Good practical point. The tax comparison isn't the only cost side of the ledger.

To bring it home: the core question is whether your total gain minus recapture exceeds your Section 121 exclusion ceiling. If it doesn't, selling now is probably cleaner. If the gain is well above the ceiling even after the exclusion, 1031 becomes more compelling because there's real deferred tax at stake that the exclusion can't absorb. A CPA who does real estate returns regularly can run this in an afternoon with your actual numbers.

Grace P.

Author

That framing helps a lot. I'm going to get my actual gain estimate together — sale price minus adjusted basis including all improvements and minus accumulated depreciation — and then see where I land relative to the exclusion. Then bring it to a CPA.