1031 exchange rules primary residence — can you even do this?

So I've been going back and forth on this for weeks and I can't get a straight answer. I own a house I've lived in as my primary residence for the last four years, but I also rented out the basement unit for about two and a half of those years. Now I'm thinking about selling and rolling the proceeds into a rental property through a 1031 exchange. I want to understand the 1031 exchange rules primary residence situation — specifically whether the whole property qualifies, just the rental portion, or neither. I've read that the Section 121 exclusion and a 1031 can sometimes overlap, but I don't know how to structure it or whether I'm already disqualified. The property hasn't been listed yet. I'd rather figure this out before I call a qualified intermediary.

33 comments

I dealt with almost this same split-use situation two years ago. The short version is that a straight primary residence does not qualify for a 1031 at all — 1031 is for property held for productive use in a trade or business or for investment. The key question for you is whether you can treat the rented basement as a separate property or whether the whole thing gets treated as one mixed-use property. That usually comes down to how it's titled and whether it's a legal duplex or just a room you rented. Those two facts change everything.

Andre D.

Author

It's on one deed, one parcel, but the basement has its own entrance and its own electric meter. Not a legal duplex — county records still list it as a single-family. So it sounds like I might be stuck treating it as one property.

The IRS looks at the primary residence portion and the rental portion separately even on a single-deed property when there's a distinct rental unit. I uploaded my closing documents and my Schedule E history to taxr.ai and it walked through the allocation between the residential and business-use portions line by line, flagged what I had reported on Form 4562, and showed me where the depreciation recapture was going to hit. Really helped me see the numbers before I talked to my CPA. The allocation method matters a lot here — square footage is the common one.

Andre D.

Author

This is helpful. I've been depreciating the basement on Schedule E for two and a half years so there's definitely recapture to deal with. I didn't realize the allocation could apply even without a formal duplex designation.

The depreciation recapture piece is the part people miss. Even if you exclude the gain on the residential portion under Section 121, any depreciation you claimed on the rental portion gets recaptured and taxed as ordinary income up to a cap rate — it doesn't get excluded and it doesn't get deferred in the 1031 unless that portion is the part you're exchanging.

Worth being clear on the Section 121 rules here. To exclude gain on a primary residence you need to have owned and used the property as your main home for at least two of the five years before the sale. You said four years living there, so you'd likely clear that bar on the residence portion. But Section 121 exclusion applies to the residence portion only — the rental portion has its own gain calculation.

Andre D.

Author

Right, so the two-year rule isn't the issue. The issue is figuring out how much of the property counts as the rental and what happens to that gain.

One thing that actually matters a lot here: when did you stop renting the basement? If it was rented within the five-year lookback period, the IRS requires you to allocate gain between the residential and rental portions. The rental portion's gain generally cannot be excluded under Section 121. That's the piece that opens the door to a 1031 on just the rental allocation — but it has to be structured before closing, not after.

I completed a partial 1031 on a mixed-use property last year. The qualified intermediary we used was very specific: you need to identify the exchange portion before the sale closes. You can't do it retroactively. The timeline rules for a 1031 are strict — 45 days to identify the replacement property and 180 days to close, running from the date of sale. Miss either deadline and the deferral is gone.

The 45-day identification window is the one that bites people. It starts the day the relinquished property closes, not the day you sign the listing agreement or even the purchase contract.

Andre D.

Author

So I need a qualified intermediary lined up before I even list? Or at least before close?

I had a situation where my accountant and my QI disagreed on the allocation method and I ended up uploading all of it — the appraisal, the Schedule E history, the draft 8824 — to Taxr. It went through Form 8824 and showed me exactly which lines the exchange boot and the deferred gain were landing on, and flagged that my QI's worksheet was using a different basis number than what I'd been depreciating. Caught that before filing. The 1031 exchange rules primary residence split is genuinely one of the more complicated areas of the form.

The basis discrepancy issue is real. If your Schedule E depreciation history doesn't match the exchange worksheet, the deferred gain gets miscalculated and you might end up under-deferring or misreporting recapture.

Andre D.

Author

How did you resolve the disagreement between the accountant and the QI? Did one of them change their number?

The appraiser ended up issuing a letter clarifying the allocation between land and building, which reset the basis calculation. The QI updated their worksheet after that. The land portion never gets depreciated so getting that right at the start matters.

Nobody mentioned the "held for investment" requirement yet. For the rental portion to qualify for 1031, the property has to have been held for investment or business use — not just rented for a couple months before listing. The IRS looks at intent and use history. Two and a half years of Schedule E history is decent, but if you listed the basement for rent right before the sale and barely had a tenant, that's a different story.

Andre D.

Author

Two and a half years of consistent tenancy, same tenant the whole time. I have the leases and all the Schedule E filings going back. That should support the investment-use argument.

That helps a lot. Consistent tenancy with documentation is much stronger than a recently-rented situation. Keep those leases and the Schedule E history together — your QI and CPA will want them.

I want to correct something from earlier in the thread. The depreciation recapture on the rental portion is taxed at a maximum rate under Section 1250 rules — it doesn't just disappear into the 1031 deferral for the building. If you do a 1031 on the rental allocation, the gain deferred carries over as a lower basis in the replacement property, which means the recapture follows you. The deferral kicks the tax down the road, it does not eliminate it.

Agreed, and to be precise: the unrecaptured Section 1250 gain from straight-line depreciation on residential rental is taxed at a maximum rate when you eventually sell the replacement property. The 1031 defers it but the tax history travels with the asset.

My QI told me that some people try to do the whole property as a 1031 by converting their primary residence to a rental for a year or two before selling. That changes the character of the entire property. It's a real strategy but you have to actually convert and rent it — not just call it a rental on paper. And Section 121 doesn't get cut by non-qualified use here, because rental time after you last lived there (within the five-year window) isn't non-qualified use, though the depreciation you claimed still can't be excluded.

The non-qualified use period piece that was just mentioned is easy to get wrong. I uploaded my purchase history and the timeline of my own conversion-then-sale to Taxr and it built a worksheet showing that the rental period after I moved out wasn't non-qualified use, so it didn't reduce my Section 121 exclusion (only the depreciation was carved out), before I even touched Form 8824. Seeing the interaction between the exclusion and the exchange laid out that way made it a lot clearer which path was actually better for my numbers.

Andre D.

Author

This is the scenario I was starting to wonder about — whether converting the whole thing to a rental for a period would be cleaner than doing the partial 1031 on just the basement. Sounds like the math really depends on the timeline.

Exactly. The non-qualified use fraction only reduces your exclusion for days the home wasn't your main home before you last lived there, so renting it after you move out (within the five-year window) doesn't count against you. Even so, a partial conversion strategy needs careful counting. How long you lived there before renting matters. It's not just the two-of-five-year test.

Has anyone here actually gotten a 1031 done on just a portion of a mixed-use property? I keep hearing it's possible in theory but I've never met someone who actually did it successfully on a single-deed residential property.

My situation was a duplex on one deed where I lived in one unit, so legally distinct in my state. The QI was comfortable treating it as two properties for exchange purposes. A true single-family with a rented room might be harder to structure — might need a legal opinion.

A formal appraisal that allocates value between the residential and rental portions is usually what QIs require before they'll set up an exchange on a partial-use property. Without that document the allocation is hard to defend.

Worth flagging that the qualified intermediary has to be in place before the sale closes — you cannot touch the proceeds at all. If you receive the funds yourself, the exchange is blown, full stop. That's one of the structural rules that is non-negotiable regardless of how solid your allocation is.

Real question for the room: does the replacement property in a 1031 also have to be held for investment? Because I've heard people say you can exchange into a property you later move into, but I want to know if that's actually allowed.

Yes, the replacement property must also be held for productive use in a trade or business or for investment. You cannot exchange into a primary residence and immediately move in. There's a holding period question on how long is long enough before converting — the IRS has not set a bright-line rule, but most practitioners say at least a year or two of rental use, and you should check Publication 527 and the Form 8824 instructions for guidance on your specific facts.

Okay so "exchange now, move in later" is more complicated than it sounds. That changes how I was thinking about a property I was looking at.

To pull all of this back to your situation: you have a reasonable case for a partial 1031 on the rental portion of your property given the two-and-a-half-year Schedule E history. What you need before you do anything else is a qualified intermediary and a CPA who has actually done mixed-use exchanges before — not just someone who handles regular rentals. The Form 8824 on a partial exchange with a Section 121 exclusion on the same property is not a standard return. Enrolled agent or CPA with exchange experience.

Andre D.

Author

This is the clearest path forward I've gotten anywhere. I'll start with finding a QI who has done partial exchanges and pair them with a CPA before I list. Thank you.