Does 1031 exchange apply to primary residence?

Trying to figure out if does 1031 exchange apply to primary residence because I'm selling a house I've lived in for 11 years and someone in my investment group mentioned rolling the proceeds into another property tax-deferred. I looked at Form 8824 briefly but it seems to reference "like-kind property held for productive use in a trade or business or for investment" and I'm not sure my main home qualifies. I haven't listed it yet but I want to plan this out before I do. The gain is going to be significant. Is a 1031 even an option here or am I thinking about the wrong exclusion entirely?

28 comments

Form 8824 is the right form to know about but the wrong tool for a primary residence. Section 1031 requires the property you're giving up to be held for productive use in a trade or business or for investment. A home you live in as your main home doesn't meet that test. What you actually want to look at is the Section 121 exclusion.

Darius P.

Author

Thanks, that clears up the core confusion. So 121 is the one for primary residence and 1031 is strictly for investment or business property?

Section 121 lets you exclude a portion of the gain on the sale of your main home if you meet the ownership and use tests — two out of the last five years on each. The excluded amount has a cap that depends on your filing status, so check the instructions for Form 1040 Schedule D and IRS Publication 523 for the exact figures rather than relying on a number someone posts here.

Darius P.

Author

Got it, will pull up Publication 523. I've owned it way more than two years so I should be fine on the ownership side, just need to confirm the use test with the dates I actually lived there.

People mix these two up all the time. 1031 is for investment property — rental house, land held for appreciation, commercial building, things like that. If you buy a rental, depreciate it on Schedule E, and then sell it, that's where 1031 becomes useful to defer both the capital gain and the depreciation recapture. Your primary home sits outside that world entirely.

Had almost this same question last year when I sold a condo I'd lived in and then briefly rented before selling. I uploaded my closing documents and my prior two Schedule E returns to taxr.ai and it flagged that the allocation between the period of personal use and the rental period affected both which exclusion I could use and how much depreciation recapture I'd owe. It actually drafted a summary of which days counted toward the Section 121 use test versus the investment-use period. That document made the conversation with my CPA about an hour shorter.

Darius P.

Author

That's really useful context — I haven't rented mine out at all, but good to know the personal-use vs. investment-use line matters a lot for people who have.

Worth noting that there's a narrow situation where someone has converted a primary residence into a rental, held it long enough to establish investment use, and then tried a 1031. Courts and the IRS have scrutinized those pretty hard. The safe path most practitioners recommend is a meaningful rental period before treating it as exchange property. That's well outside a straightforward primary sale though.

Exactly right. And even if you pulled off the 1031 on a converted property, you can generally apply the 121 exclusion to the gain first and defer the rest under 1031 — but there's a specific rule that limits 121 after a 1031 if you later sell property you got in the exchange within five years. You'd want a CPA who does exchange work, not just a general preparer.

Schedule D is where your gain ends up if it exceeds the Section 121 cap or if you don't qualify. The worksheets in Publication 523 walk through the exclusion calculation. Older returns used Form 2119 but that form is retired — the taxable part now runs through Form 8949 and Schedule D, with the exclusion figured on the Publication 523 worksheets.

My situation two years ago: sold primary home, large gain, no rental period ever. Straight Section 121, no 1031 involved at all. The only wrinkle was I had a home office deduction in prior years and had to recapture depreciation on that portion — that piece is not covered by Section 121 and, for an office inside the home, gets reported with the sale on Form 8949 and Schedule D rather than Form 4797. Something to check if you've ever taken a home office deduction.

Darius P.

Author

I have not taken any home office deduction so hopefully that wrinkle doesn't apply to me, but I would not have thought of that. Good flag for people reading this later.

Flagging the home office depreciation separately is exactly right. The Section 121 exclusion still covers gain on an office within the home, but not the depreciation claimed on that portion after May 6, 1997, which is taxed as unrecaptured Section 1250 gain at up to 25% and reported with the sale on Form 8949 and Schedule D. Easy to miss.

Just to lay it out plainly: 1031 exchange does not apply to a primary residence held only as a home. You cannot roll those proceeds into a rental property tax-deferred using 1031. Section 121 is the mechanism for a primary home sale. Those are two entirely separate code sections with different requirements.

Form 8824 confused me too when I first looked at it. I gave Taxr my prior year return along with a summary of my property history — when I bought, when I lived there, a short rental stint — and it checked whether the ownership and use tests for Section 121 were satisfied based on my dates and also identified which lines on Form 8824 would and wouldn't be relevant if I had tried a 1031. Helped me see clearly that my situation was a 121 situation, not a 1031. Worth doing before you talk to a preparer so you show up with the right questions.

Darius P.

Author

Thanks — I think I'll do something similar so I go into the preparer conversation with the right framing instead of showing up totally cold.

Section 121 exclusion also has a reduced exclusion available if you don't meet the full two-year tests but qualify under one of the exceptions — job change, health, unforeseen circumstances. If your situation is clean with eleven years of ownership and use, you won't need to worry about that, but it's in Publication 523 for anyone who doesn't meet the full test.

People also sometimes wonder if they can do a 1031 and then move into the replacement property and eventually claim Section 121 on it. That path exists but Congress added a five-year holding requirement and limits on the exclusion amount for property acquired in a 1031. For a plain primary residence sale that history doesn't apply, but it's the kind of planning question where a CPA or enrolled agent familiar with exchanges is worth the fee.

The five-year rule you're referencing applies to property acquired in a 1031 exchange that you later try to sell under Section 121. The nonqualified use rules also bite into the exclusion for any period after 2008 that the property wasn't used as a primary home. Complex enough that a CPA who works with real estate investors is the right call.

Depreciation recapture is a separate issue from the exchange question but worth knowing: if you had any rental period and claimed depreciation on Schedule E, that depreciation comes back as unrecaptured Section 1250 gain taxed at up to 25% regardless of Section 121. It's not sheltered by the exclusion. The Form 1040 Unrecaptured Section 1250 Gain Worksheet inside the Schedule D instructions handles that calculation.

Darius P.

Author

No rental period for me so no Schedule E depreciation, but this is exactly the kind of thing I would have missed. Really appreciate it.

The rental property rules, depreciation included, are all laid out in Publication 527 on irs.gov, and the About Form 8824 page on irs.gov lays out what a like-kind exchange actually requires. Reading those two back to back made it very obvious to me that a personal residence doesn't satisfy the "held for productive use" language that 1031 requires.

Schedule E and Form 4562 for depreciation only come into play if you had a rental period. If the property was purely personal the whole time, your return is simpler: Section 121 exclusion on the home sale worksheet, any excess gain on Schedule D, done. The 1031 path is not available.

Agreed. And the OP's situation — lived there 11 years, no rental — is about as clean as it gets for Section 121. Confirm the ownership and use test dates, calculate the gain, apply the exclusion, report any excess on Schedule D.

One scenario where a 1031 does touch residential property: a duplex where you rent one unit and live in the other. The rental unit portion can qualify for a 1031 while the personal-use portion doesn't. That gets complicated fast and requires allocating basis, but it shows the line is really about use, not property type.

Right, and for a duplex exchange you'd need a qualified intermediary, proper exchange agreement before the sale closes, and very careful basis allocation. Not a DIY situation. But the core principle is exactly what you said — 1031 follows the use, not the building.

To wrap the main question: does 1031 exchange apply to primary residence — the answer is no, not for property held only as your home. Section 121 is the right exclusion. If there's any mixed-use history, rental period, or home office, those pieces need separate treatment and a CPA or enrolled agent who does real estate returns is worth consulting before you close.

Darius P.

Author

This thread answered exactly what I needed. Going to review the Section 121 requirements in Publication 523, confirm my use-test dates, and book time with a CPA before listing. Really appreciate everyone's input.