You cannot use a 1031 exchange on a primary residence. Section 1031 of the Internal Revenue Code is limited to real property held for productive use in a trade or business or for investment, and a house you live in is personal-use property.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The tax break Congress wrote for homeowners is a different one: the Section 121 exclusion, which erases up to $250,000 of gain for a single filer and $500,000 for a married couple filing jointly, permanently rather than by deferral.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence If your gain runs larger than that, or you want the deferral for other reasons, there are ways to convert a home into a rental that can later qualify for a 1031, and ways to move into a former 1031 property, but each has its own waiting period.
Why Your Home Doesn’t Qualify
The statute is narrow on purpose. Section 1031 covers real property “held for productive use in a trade or business or for investment.”1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The IRS states the point directly: “Property used primarily for personal use, like a primary residence or a second home or vacation home, does not qualify for like-kind exchange treatment.”3Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 How much the house has appreciated, and how long you’ve owned it, don’t change the answer. What matters is how you use it at the time of the exchange.
The agency also warns homeowners about promoters who market swaps of personal-use property, sometimes calling them “tax-free” when a real 1031 exchange only defers tax on qualifying investment property.3Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 If someone is pitching a 1031 on the house you live in, that’s the conversation they’re having.
The Tax Break You Actually Get: Section 121
Section 121 is a permanent exclusion, not a deferral. Excluded gain is gone; you never pay tax on it. A single filer excludes up to $250,000, and a married couple filing jointly excludes up to $500,000.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For most home sales, that covers the entire profit.
You have to pass two tests during the five-year period ending on the sale date:
- Ownership: you owned the home for at least two years, not necessarily consecutive.
- Use: you lived in it as your primary residence for at least two years total.
For joint filers claiming the $500,000 amount, both spouses need to meet the use test, but only one needs to meet the ownership test.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The exclusion is available once every two years.
Which home counts as your “main home” is a question of where you actually spend your time. If you own two houses, the one you live in more often is the primary residence. If you own a house but rent an apartment and live in the apartment, the apartment is your main home for Section 121 purposes.4Internal Revenue Service. Sale of Residence – Real Estate Tax Tips
Partial Exclusion When You Sell Early
Sell before you clear the two-year bars and you can still get a prorated exclusion if the sale was driven by a change in place of employment, a health condition, or unforeseen circumstances.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Treasury regulations list specific qualifying events, including divorce, death of a qualifying individual, job loss with eligibility for unemployment compensation, and multiple births from the same pregnancy. The exclusion is scaled to how much of the two-year requirement you completed. One year in a home before a qualifying job relocation, for example, gets you half the usual amount: $125,000 for a single filer, $250,000 for joint filers.
Converting a Home Into a Rental to Reach a 1031
If your gain runs well past the Section 121 limits, converting the house into a rental first can eventually open the door to a 1031 exchange. The property has to genuinely be held for investment when you exchange it. The IRS hasn’t published a bright-line minimum rental period for this conversion. A brief rental of a few weeks won’t hold up. Most tax professionals suggest renting for at least one to two years to establish a clear investment purpose, and two years lines up with the safe harbor covered further down.
Do this correctly and you can stack the two provisions on the same sale. If you lived in the home long enough to satisfy the Section 121 ownership and use tests, then rented it long enough to establish investment use, you may be able to exclude up to $250,000 (or $500,000) under Section 121 and defer the remaining gain through a 1031 exchange. Order matters: Section 121 applies first, and only the gain above the exclusion amount rolls into the 1031. For a homeowner with six or seven figures of appreciation, that combination can move a lot of tax off the current year.
Moving Into a Property You Acquired Through a 1031
The reverse path exists too. You can acquire a property through a 1031 exchange and later move in as your primary residence, which some investors plan around a future retirement location. A special rule then applies to the Section 121 exclusion.
If the property came in through a 1031, you cannot claim the Section 121 exclusion on its sale during the five-year period beginning on the date of the exchange.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence After five years you still need to meet the normal two-out-of-five-years ownership and use tests. Assuming you moved in promptly after the exchange, the earliest a claim works is roughly the five-year mark.
The Nonqualified Use Reduction
Even after the waiting period, the exclusion can be trimmed. Under Section 121(b)(5), gain is allocated between periods of qualified use (when the home was your primary residence) and nonqualified use (when it wasn’t). Gain attributable to nonqualified use isn’t eligible for the exclusion.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The allocation is a ratio: nonqualified use periods divided by total ownership.
One helpful exception: time after you stop living in the home as your primary residence doesn’t count as nonqualified use. Live in it for years, then rent it for a year before selling, and that final rental year won’t reduce your exclusion. The rule mainly bites on the investment period that came before you moved in.
Vacation Homes and Second Homes
A common follow-up: what about a vacation house or second home? Those are personal-use property and, on their own, don’t qualify for a 1031 exchange either. Revenue Procedure 2008-16 offers a safe harbor for dwelling units rented out enough to look like investment property. If you fit inside it, the IRS won’t challenge the property’s 1031 eligibility.
To use the safe harbor you must own the property for at least 24 months before the exchange, and in each of the two 12-month periods immediately before the exchange:
- You rent the property at fair market rent for at least 14 days.
- Your personal use doesn’t exceed the greater of 14 days or 10% of the days the property was rented at fair market rent.6Internal Revenue Service. Revenue Procedure 2008-16
The same limits run in reverse for a property you take in through the exchange, across the two 12-month periods after it closes.6Internal Revenue Service. Revenue Procedure 2008-16 So a replacement property can’t just be your new beach house on day one; it has to be rented out on those terms first.
Mixed-Use Property Like a Duplex
Property that serves both purposes gets split treatment. Own a duplex, live in one unit, rent the other, and each half is treated on its own footing. The rental unit is investment property that can go through a 1031 exchange; the unit you occupy is a primary residence for Section 121 purposes. On sale you can potentially exclude gain on your side under Section 121 and defer gain on the rental side through a 1031. The allocation between the two uses has to be supported by appraisal and documentation, because the IRS will look at how you divided value and expenses.
Which Provision Fits Your Situation
For a straightforward home sale with gain under the Section 121 limits, there’s nothing to exchange: the exclusion handles the whole thing, with no intermediary and no deadlines. Above the limits, converting the property to a rental long enough to establish investment intent and then combining Section 121 with a 1031 exchange can defer far more. And for property already held as an investment, a 1031 exchange stays available on its own terms, provided the property you’re selling isn’t the house you live in.