The short answer is no, and the useful answer is that a different and often better provision applies instead.
A 1031 exchange requires property held for productive use in a trade or business or for investment. A home the taxpayer lives in is held for neither. It is personal-use property, and it is outside Section 1031 entirely.
What applies instead is Section 121, and for most homeowners it is the more favourable rule.
Why Section 121 is usually better
Section 1031 defers gain. The tax remains embedded in the replacement property and comes due on a later taxable sale.
Section 121 excludes gain outright, subject to ownership and use requirements over a look-back period and to dollar limits that differ between single and joint filers. Those are statutory amounts that change and should be confirmed against current law rather than assumed.
Three differences make Section 121 the easier provision for a homeowner:
- It is permanent. Excluded gain is gone, not postponed.
- It requires no replacement purchase. The proceeds can be spent, invested elsewhere, or kept in cash. A 1031 exchange forces reinvestment into real property on a deadline.
- It can be used repeatedly, subject to the frequency limits in the statute.
A homeowner whose gain falls within the exclusion generally has nothing to gain from an exchange even if one were available. The interesting cases are the ones where gain exceeds the exclusion, or where the property has a mixed history.
Converting a residence into an investment property
The qualifying test under Section 1031 looks at how the property is held, and holding can change. A taxpayer who converts a former home into a genuine rental property can, in principle, later exchange it.
What supports the position is real rental use, and what undermines it is a conversion that looks like a formality inserted to enable a transaction. There is no bright-line holding period in the statute. What examiners look at is the facts:
- Was the property actually rented, at market rent, to an unrelated tenant?
- Is there a lease, rent received, and reporting of rental income and expenses on the return?
- Was it advertised or listed?
- How long did the rental use continue, and did the taxpayer move out genuinely?
A property rented briefly to a family member below market immediately before an exchange invites scrutiny. A property genuinely rented for a substantial period, reported as such, is on considerably firmer ground.
Two cautions. First, converting eliminates the Section 121 exclusion over time — the exclusion depends on use as a principal residence within a look-back period, and that window closes. Second, depreciation claimed during the rental period is subject to recapture, which an exchange defers along with the rest but does not eliminate.
Converting an investment property into a residence
The reverse move — exchanging into a rental, then later moving into it — is a well-known planning pattern, and the rules were specifically tightened to limit it.
The IRS provided a safe harbor in Revenue Procedure 2008-16 describing rental use and personal use parameters under which it will not challenge whether a dwelling unit qualifies as held for investment. Its specific day counts should be read from the procedure itself rather than restated.
More significantly, Section 121(b)(5) limits the exclusion where the property had periods of nonqualified use. Gain allocable to periods when the property was not used as a principal residence generally cannot be excluded. So a taxpayer who exchanges into a rental, rents it for years, then moves in cannot simply exclude the whole gain on eventual sale — the exclusion is apportioned, and the rental period share remains taxable. Depreciation recapture also survives.
Revenue Procedure 2005-14 addresses the interaction where both Sections 121 and 1031 apply to the same property, and the sequencing matters. This is a situation to plan with a tax adviser rather than to improvise.
Mixed-use property
Property that is partly residence and partly investment can be split for tax purposes. A duplex with the owner in one unit, a home with a genuinely separate rented portion, or a property with a qualifying home office can be allocated between personal and investment use.
The investment portion may be eligible for exchange treatment; the residential portion may be eligible for Section 121. The allocation must be reasonable — typically by square footage or another defensible measure — and it must be consistent with how the property was actually reported over time. An allocation invented at closing that contradicts years of returns is not a strong position.
Vacation homes
Second homes are the most frequently misunderstood category, because their status depends entirely on use rather than on the label.
A property used primarily for personal enjoyment is personal-use property and does not qualify, however it is described. A property genuinely held for investment, rented out, with personal use limited, may qualify — and Revenue Procedure 2008-16 provides the safe harbor parameters.
The determining facts are rental history, the ratio of personal to rental days, whether market rent was charged, and how the property was reported. A cabin used by the family every summer and rented three weeks a year is not investment property regardless of what the exchange documents say.
The practical guidance
If you are selling your home, Section 121 is almost certainly the relevant provision, it is usually better than deferral, and no intermediary is required.
If your gain exceeds the exclusion, the excess is taxable and there is no 1031 available for the residential portion. Planning options exist, and they are Section 121 and estate planning options rather than exchange options.
If you are contemplating a conversion in either direction, the outcome depends on facts established over time, not on paperwork prepared at the last minute. Establish the use genuinely, document it, and report it consistently — and involve a tax adviser before, not after.
If the property is genuinely investment property, the standard rules apply and the rest of this cluster is relevant: the timeline, the identification rules, and the requirement to engage a qualified intermediary before closing.
This guide is educational and general; it is not tax or legal advice. The interaction of Sections 121 and 1031 is technical and fact-specific; consult a qualified tax adviser.
Frequently Asked Questions
Can you do a 1031 exchange on a primary residence?
No. Section 1031 requires property held for productive use in a trade or business or for investment, and a personal residence is neither. The provision that applies to a primary residence is Section 121, which excludes a limited amount of gain from the sale of a home the taxpayer owned and used as a principal residence for the required period.
What is the Section 121 exclusion?
A provision excluding gain on the sale of a principal residence, subject to ownership and use requirements over a look-back period and to dollar limits that differ for single and joint filers. Unlike Section 1031, it is an exclusion rather than a deferral, and it does not require buying another property.
Can you convert a rental property into a primary residence?
Yes, but the tax result is not simply the Section 121 exclusion. Where a residence was previously used as a rental or otherwise not as a principal residence, rules on nonqualified use limit the portion of gain that can be excluded, and depreciation previously claimed is generally recaptured rather than excluded.
Can you convert a primary residence into a rental and then exchange it?
It is possible, because the qualifying test is how the property is held at the time of the exchange. But intent matters and is examined on the facts, so a genuine period of rental use with supporting documentation is what supports the position. There is no bright-line holding period in the statute for this.
Can a property be part residence and part investment?
Yes. A duplex where the owner occupies one unit, or a home with a genuine home office or rented portion, can be split for tax purposes, with the investment portion potentially eligible for exchange treatment and the residential portion potentially eligible for Section 121. Allocation must be reasonable and documented.
Sources
- Internal Revenue Code Section 1031
- Internal Revenue Code Section 121 (exclusion of gain from sale of principal residence)
- Internal Revenue Code Section 121(b)(5) (nonqualified use)
- Revenue Procedure 2005-14 (application of Sections 121 and 1031 to the same property)
- Revenue Procedure 2008-16 (safe harbor for dwelling units)