Can 1031 exchange be used for primary residence?

So I'm trying to figure out if a 1031 exchange can be used for primary residence sales. Here's my situation: I bought a house in 2018, lived in it as my main home for about three years, then converted it to a rental in 2021. I've been renting it out since then and I'm thinking about selling this year and rolling the proceeds into a small multi-unit. Someone told me the exchange wouldn't work because it started as my home. I already called my accountant but couldn't get a clear answer before the holiday. I did look at the Form 8824 instructions but honestly got lost. Does the rental conversion change things? And does it matter how long I've been renting it before the sale?

40 comments

The short answer is: a pure primary residence sale doesn't qualify for a 1031 exchange. Section 1031 requires that the property be held for productive use in a trade or business or for investment. A home you live in and never rent doesn't meet that test. But your situation is different because you converted it to a rental. The key question is whether you've held it long enough as a rental that the IRS would view it as investment property at the time of sale, not as a residence you just briefly rented out before selling.

Luis W.

Author

That distinction makes a lot of sense. So the fact that it's been a rental for several years before I sell should help my case? I want to make sure I'm not walking into a trap here.

Several years of active rental definitely strengthens the argument. The IRS looks at facts and circumstances. Document everything: lease agreements, rental income reported on Schedule E each year, depreciation taken on Form 4562. The cleaner your rental history, the better your position.

Had almost this same conversion question last year. I uploaded my closing disclosure and Schedule E history to Taxr at taxr.ai and it walked through which years the property counted as rental vs. personal use, and flagged that my depreciation basis calculation might be off. Really helped me understand what I was actually dealing with before I got on the phone with a CPA. For your situation specifically: the property has to be "held for investment" at the time of exchange, and a multi-year rental history with consistent Schedule E reporting is strong evidence of that.

Luis W.

Author

Thanks, I'll check that out. I've been filing Schedule E every year since the conversion so hopefully that history is clean.

Does your accountant know about the Section 121 exclusion angle here? Because if you lived there 2 of the last 5 years before the sale, you might be able to exclude a chunk of gain under Section 121 AND do a partial 1031 on the rest. Some people combine them. Might be worth asking about.

This is a real thing but it comes with complications. The depreciation you claimed during the rental period doesn't get excluded under Section 121 — unless it's deferred, that portion is taxed as unrecaptured Section 1250 gain at a rate of up to 25%, not as ordinary income. So the 1031 portion can help you defer the gain on appreciation, but the depreciation recapture follows you.

Luis W.

Author

I hadn't thought about combining the two. So I'd use Section 121 to exclude the residential-period gain and 1031 to roll the rest? I need to map this out before I do anything.

How long has it been a rental exactly? I ask because there's been IRS guidance around "boot" and mixed-use property that can get messy if the rental period is short. Some tax pros say at least a year or two of arm's-length rental before the sale, others are more conservative.

Luis W.

Author

It's been rented continuously since mid-2021, so roughly four years by the time I'd sell. I have signed leases and all rental income is on my returns.

Four years of documented rental is solid. Keep those leases and rent receipts together with your Schedule E copies. You'll want them if anything ever gets questioned.

A clean exchange on paper still has to meet the 1031 timeline rules. You have 45 days from closing on the relinquished property to identify your replacement property in writing, and you must close on it by the earlier of 180 days or the due date (including extensions) of your return for the year of the sale. Missing either deadline kills the exchange unless a federally declared disaster postponement applies. A qualified intermediary has to hold the proceeds — you can't touch the money.

Luis W.

Author

The intermediary part is new to me. So I literally cannot receive the sale proceeds even temporarily?

Correct. If the funds pass through your hands at all, the exchange is disqualified and the full gain is taxable in that year. The qualified intermediary agreement has to be in place before closing on the sale side, not after.

Are you planning to depreciate the replacement multi-unit from day one? Because one thing people miss after a 1031 is that your basis in the new property carries over from the old one, reduced by deferred gain. So your depreciation deductions going forward are based on a lower starting number than what you paid. Worth running those numbers before you commit to a purchase price.

Luis W.

Author

That's a really good point. I assumed I'd just depreciate based on what I pay for the new place. So the deferred gain basically reduces my depreciable basis in the replacement property?

Essentially yes. Form 8824 is where you calculate the adjusted basis of the replacement property. The instructions walk through it, but the short version is you're deferring tax now and paying it later when you eventually sell the replacement — unless you do another 1031 or hold until death.

What state are you in? California, for example, has a clawback rule on 1031 exchanges where if you exchange into an out-of-state property and later sell it, California can try to collect the deferred gain. Not all states follow federal 1031 rules either. Worth checking your state's rules separately from the federal side.

Luis W.

Author

I'm in a state that doesn't have that specific clawback issue but I didn't even know that was a thing. Good to know.

Depreciation recapture is the piece people underestimate the most, and it's real. Even if you do a successful 1031 exchange, the recapture doesn't go away — it's embedded in the deferred gain. If you eventually sell the replacement property without another exchange, all that accumulated depreciation comes back as unrecaptured Section 1250 gain, taxed at a rate of up to 25% rather than as ordinary income. It doesn't just disappear.

This is true and it's one of the main reasons people keep chaining 1031 exchanges. The deferred gain just grows with each exchange until you either sell outright or step up the basis at death.

I was in a nearly identical situation last spring — lived in the place, then rented it for a few years, then wanted to exchange. I had Taxr go through my Form 8824 draft and my prior-year Schedule E returns together and it identified that my accumulated depreciation figure didn't match what I'd been deducting. Saved me from putting a wrong number on the exchange basis calculation. I still had a CPA review everything before we closed, but the prep work was solid. For OP: the property being a former primary residence doesn't by itself disqualify the exchange as long as it's been legitimately held as rental property at the time of sale.

Luis W.

Author

Thanks, that's exactly the reassurance I needed. I'll make sure my accumulated depreciation across all those Schedule E years ties out before anything gets filed.

What does the qualified intermediary actually do beyond holding the funds? Do they handle the identification notice too, or is that on you?

The intermediary holds proceeds and typically provides the identification forms, but the 45-day written identification is your responsibility to submit — you have to name the replacement property in writing within that window. The intermediary doesn't do that for you automatically. Some are more hands-on than others.

My exchange situation was a bit simpler but I had Taxr read through my Form 8824 line by line and cross-check the numbers against my settlement statement. It caught that I had the boot calculation off, which would have understated my recognized gain. Ended up being a material difference. The form itself isn't that complicated once you understand the flow: realized gain, recognized gain, deferred gain, basis of replacement property. But getting the inputs right — especially the depreciation carryover — is where mistakes happen.

Luis W.

Author

The boot calculation is what's tripping me up too. If I add any cash to buy up in the exchange does that change the boot treatment on my side?

If you're trading up and adding cash (buying a more expensive replacement), that extra cash you put in doesn't create boot for you. Boot is generally cash or property you receive out of the exchange, not what you add in. So buying up is fine from a boot standpoint.

Curious how it plays out when rental income during the holding period was low because the property sat between tenants for a few months. Does a vacancy period hurt the "held for investment" argument?

A vacancy between tenants generally doesn't kill the investment-use argument as long as the property was being actively marketed for rent and you weren't using it personally during that time. The key is that personal use didn't creep back in. Document the marketing efforts and keep it off-limits for personal stays.

Good to know. Mine had about two months vacant while I found a new tenant and I definitely wasn't living there, so that should be fine.

Is there any risk that the IRS would look at the whole thing and say the property was still "primarily" a residence because you lived there longer than you rented it? Like the total years owned vs years rented comparison.

That's a real concern and it's part of why the "facts and circumstances" standard matters. No bright-line rule on the ratio, but auditors look at intent at the time of sale. If you've been actively renting, filing Schedule E, claiming depreciation, and not moving back in, the intent is clear. The Form 8582 passive activity history also helps show it was treated as a rental investment.

So keeping Schedule E and Form 8582 clean each year is basically building your own paper trail for this.

Are you using a 1031 accommodator who specializes in this or just a general closing attorney? I've heard some attorneys take on intermediary duties but aren't really set up for it properly and the exchange can get disqualified on a technicality.

Luis W.

Author

I haven't picked anyone yet. That's probably my next call. I'll look for someone who does 1031s regularly, not just a closing attorney doing it as a side thing.

Worth asking how many 1031 exchanges they handle per year and whether they carry fidelity bond and E&O insurance. A reputable qualified intermediary will have both.

To make sure I understand the final picture here: the property can qualify for 1031 as long as it's truly been used as a rental investment at the time of the exchange, the 45-day ID and 180-day close deadlines are hard, the proceeds have to stay with a qualified intermediary, depreciation recapture doesn't disappear it just defers, and the basis in the new property is reduced by the deferred gain. Am I missing anything major?

That's a solid summary. One addition: if you're combining Section 121 and 1031, the exclusion applies to the residential portion of the gain first, and the 1031 applies to what's left. The depreciation recapture still cannot be excluded under Section 121 — that part is either deferred in the exchange or taxed as unrecaptured Section 1250 gain at up to 25%, not as ordinary income. Worth confirming with a CPA before you structure the sale.

Luis W.

Author

Really grateful for all the replies here. My plan now is to gather all my Schedule E filings, get the accumulated depreciation figure confirmed, then consult a CPA and find a qualified intermediary before listing the property. I feel like I actually know what questions to ask now.