How to use a 1031 exchange to sell a rental and buy the house I rent

Situation that feels a little backwards but bear with me. I own a rental property across town, been depreciating it for 9 years. I currently rent my own home from someone else, and that landlord just told me he wants to sell. He'd sell to me directly. So my plan is to do a 1031 exchange to sell the rental and buy the house I'm renting to live in. I know 1031 is usually investor-to-investor but I've read you can eventually convert to a primary residence. The numbers mostly work if I can defer the depreciation recapture and capital gains on the rental. I filed Schedule E on the rental every year and have some suspended passive losses on Form 8582 too. Is this actually allowed? What are the rules around buying a property I plan to live in through a 1031? And what happens to the depreciation recapture if the exchange qualifies?

36 comments

Yes this is allowed but the replacement property has to qualify as held for investment or productive use in a trade or business at the time of the exchange. That means you can't move in on day one. The IRS has looked at this in Rev. Proc. 2008-16, which gives a safe harbor: hold the replacement property as a rental for at least 24 months after the exchange, rent it at fair market rent for at least 14 days in each of those two 12-month periods, and keep personal use under 14 days or 10% of days rented. If you meet that safe harbor you're on solid ground calling it investment property.

Carla N.

Author

So I'd essentially have to rent it back out to someone (or leave it empty as an investment) for two years before moving in? That's the part I wasn't sure about. Two years is workable honestly.

Renting it out during those 24 months is the cleanest path. Leaving it vacant with the intent to rent works for some people but vacant property arguments get harder to defend. The safe harbor with actual rental days is the safest position.

The relinquished property side has its own timing rules too. You need a qualified intermediary holding the proceeds — you can never touch the money. From closing on your rental sale you have 45 days to identify the replacement property in writing and 180 days to close on it. Miss either deadline and the whole exchange collapses and you owe tax on everything that year.

Carla N.

Author

The QI part I already knew I needed. The 45-day identification window is what stresses me out. Since I'm buying directly from my current landlord I think I can identify it immediately on day one which helps.

Day one identification is exactly right. Write the property address in your identification letter to the QI on the same day you close the sale. That locks it in and you stop worrying about the 45-day clock.

Don't forget what happens to depreciation recapture. A 1031 defers it, it doesn't erase it. The accumulated depreciation from your 9 years on Schedule E carries into the basis of the replacement property. When you eventually sell the replacement property — even after converting to your primary residence — that depreciation comes back as unrecaptured Section 1250 gain, taxed at a maximum 25% rate rather than as ordinary income. The Section 121 exclusion for a primary residence sale can shelter gain but it does not shelter depreciation recapture. That's a detail people miss.

This is a point worth underlining. I sold a rental I had converted to primary residence and my CPA had to walk me through how the recapture came out from under the exclusion. The tax bill was smaller than a straight sale would have been but it wasn't zero.

I uploaded my relinquished property closing statement and the draft Form 8824 to taxr.ai and it compared every line — the adjusted basis, the exchange expenses, the boot calculations — and flagged that my QI fee was being subtracted from the wrong line. Saved me from understating the realized gain. For what it's worth the basis that carries into the replacement property on Form 8824 line 25 is your old adjusted basis plus any additional cash you put in, minus any boot you received. That replacement basis is what your future depreciation and recapture calculations start from.

Carla N.

Author

Line 25 on Form 8824 — that's what I need to track going forward. Good to know the QI fee placement matters that much, I would have just dropped it in without thinking.

Your suspended passive losses from Form 8582 don't transfer to the replacement property in a 1031. They stay suspended and attached to you as the taxpayer. You can use them against passive income from the new rental during the two-year hold period, or they release in full when you eventually dispose of the replacement property in a taxable sale.

Carla N.

Author

That's actually good news. I have about enough suspended losses to offset a couple years of passive income so I might be able to use them during the rental period before I move in.

Passive income from the new rental during those 24 months is exactly the right place to absorb them. Just keep the Form 8582 worksheet updated each year so you don't lose track of the running balance.

One thing to confirm with your QI: some intermediaries won't do what's called a "related party" exchange and buying directly from your landlord may or may not trigger that depending on how the IRS defines the relationship. Related party rules under Section 1031(f) are strict if you and the seller are related. A landlord you're renting from is usually not a related party in the tax sense unless there's a family or business ownership connection, but worth confirming before you sign anything.

Carla N.

Author

No family connection, just a straight arms-length landlord. Good flag though, I'll confirm with the QI in writing before we proceed.

Make sure the replacement property is identified by its legal address in the identification letter, not just a description. The IRS is strict about what counts as a proper identification. Also your replacement property value should be equal to or greater than the net sales price of the relinquished property if you want full deferral. If you receive any cash or net debt relief that's considered boot and you'll owe tax on that portion in the year of the exchange.

Had a similar plan a few years ago and the two-year clock felt long at the time. What actually helped me was that I got rental income during that period and used it to build up reserves for the eventual mortgage payoff. By the time I moved in the property had appreciated and my adjusted basis from the exchange was low enough that Section 121 planning became important for the eventual sale down the road.

Carla N.

Author

How did you handle the depreciation during the two-year rental period on the replacement property? I'm assuming you kept filing Schedule E for it.

Schedule E each year, yes. Depreciation continues on the carried-over basis during the rental period. That does add to the total recapture amount sitting there for the future, so just keep a running tally.

I went through a similar exchange last year. I gave Taxr my Form 8824 draft, the closing disclosure from the sale, and the basis schedule I'd been keeping and it walked through the realized vs recognized gain calculation and showed where my numbers didn't tie to what the QI had reported. Helped me catch a discrepancy before I filed. The key line to watch on Form 8824 is line 23, which is the recognized gain — that's what actually hits your return. If it's zero your deferral is working.

Carla N.

Author

Line 23 equals zero means full deferral — that's the clearest summary of Form 8824 I've gotten. Thank you for that.

Exactly, and if there's any boot it shows up on line 15 and flows into line 23. Keep your QI settlement statement next to the form when you fill it out, every number has a source document.

For the depreciation on the replacement property during your two-year rental hold: you use a depreciation basis starting from the carryover basis from the exchange, plus any additional cash you paid in. Residential rental property depreciates over 27.5 years under MACRS GDS. Form 4562 is where you report it in year one of the new rental. Don't skip that depreciation — even if you don't take it, the IRS treats it as if you did when calculating recapture later.

Skipping depreciation is a trap I've seen plenty of landlords fall into. If you don't depreciate and then sell, the IRS still computes recapture as if you took it every year. Always take the depreciation.

Does your landlord know you're planning a 1031? The timing coordination can be tricky — your sale has to close first (or simultaneously) and then the QI holds the funds while you close on the replacement. If your landlord needs a fast closing you have to make sure your rental sale is lined up to close before or on the same day. Otherwise the exchange falls apart because you'd be closing on the replacement before the exchange funds exist.

Carla N.

Author

He knows and he's flexible on timing, which is the main reason this whole idea is even viable. We've agreed in principle that my rental sale closes first and then we do his sale within the 180-day window.

Worth knowing: once you convert the replacement property to your primary residence and eventually want to sell it, you need to have lived in it 2 of the last 5 years to use the Section 121 exclusion. But there's also a rule that any period of non-qualified use before the property became your primary residence reduces the exclusion proportionally. The two years you hold it as a rental before moving in counts as non-qualified use, which will reduce the amount of gain Section 121 can shelter when you eventually sell.

This is an important correction to what people sometimes assume: the 1031 into a future primary residence isn't a clean path to a fully tax-free sale. You get deferral now and a reduced exclusion later, plus the recapture comes out from under the exclusion entirely. Run the long-term numbers before committing.

Carla N.

Author

I hadn't fully worked through the non-qualified use fraction hitting the Section 121 exclusion. That changes the eventual sale math meaningfully. Need to actually model this out.

Since this involves deferred gain, recapture, suspended passive losses, non-qualified use fractions, and a basis carryover all interacting with each other over years, this is genuinely the kind of situation where a CPA who handles real estate transactions regularly is worth the fee. Not to say you can't understand the pieces — you clearly do — but the interaction of all these at disposition time is where people get surprised.

Carla N.

Author

100% agree. I'm planning to engage a CPA before the relinquished property sale closes, not after. I want the structure reviewed before anything is signed.

I uploaded my old depreciation schedule and the QI's exchange agreement to Taxr and it built out a basis tracking worksheet showing the carryover basis, the two-year rental depreciation, and what the recapture exposure looked like at different future sale prices. Useful for understanding what you're actually deferring versus eliminating. The honest answer from that exercise was that the 1031 made sense for my situation but the tax never goes away, it just moves.

"It just moves" is the right way to think about it. The exchange buys you time and potentially a step-up in basis at death if you hold long enough, but if you sell in your lifetime the recapture follows you.

Basis step-up at death is the end game for a lot of real estate investors doing 1031s. If that's not your plan then model out the eventual taxable sale carefully before deciding the exchange is worth the complexity.

To bring the thread back to the original question: yes the plan is legally available, the two-year rental safe harbor is your friend, Form 8824 handles the exchange reporting, Schedule E continues during the rental period, the suspended losses stay with you and can be used against passive income from the new rental, and you need a CPA before closing not after. The non-qualified use fraction on the eventual Section 121 sale is the detail most people learn too late.

Carla N.

Author

This is exactly the roadmap I needed. QI lined up, CPA call scheduled for next week, and I now know which forms to focus on. Thank you everyone.