Can You 1031 a Primary Residence?

Investment and personal use — two very different tax rules.

Illustration for Can You 1031 a Primary Residence?

Primary residences don't qualify

Section 1031 requires that both properties be held for investment or productive use in a trade or business. A home you live in as your primary residence is personal-use property — it doesn't meet this test and cannot be exchanged tax-free.

Section 121 may help instead

The Section 121 home-sale exclusion can exclude up to $250,000 of gain for single filers or $500,000 for married filing jointly, provided you owned and used the home as your primary residence for at least two of the last five years before the sale. This is entirely separate from a 1031 and applies specifically to personal residences.

What about a converted rental?

If you rented a property and then moved in (or the reverse), the tax picture becomes layered. Depreciation recapture taken after May 6, 1997 is always taxable — Section 121 will not cover it. Periods of rental use count as non-qualified use and reduce the portion of gain you can exclude. If the property has a long rental history and significant depreciation, model both the recapture and the partial exclusion before selling.

Turning your old home into 1031-eligible property

The reverse works: a former primary residence can become investment property that qualifies for a 1031 exchange. Move out, rent it at fair market value, and treat it as a rental. There is no bright-line holding period in the statute, but IRS Revenue Procedure 2008-16 offers a safe harbor: the IRS will not challenge investment intent if, for each of the two 12-month periods after the conversion, you rent the dwelling at fair rental for at least 14 days and keep your personal use to no more than the greater of 14 days or 10% of the days it is rented. Meeting the safe harbor gives you strong footing to exchange it later.

Combining the Section 121 exclusion with a 1031

When a property has served as both your home and an investment — for example a former residence you later rented, or a duplex where you live in one unit — Revenue Procedure 2005-14 lets you use both breaks in a single sale. You first apply the Section 121 exclusion (up to $250,000 single / $500,000 married) to the gain, then defer the remaining gain through a 1031 exchange. Depreciation recapture, however, cannot be excluded under 121 and is not covered by the exclusion — though a properly structured 1031 can still defer it. This combination is powerful for owners converting a residence into a rental before selling.

The five-year rule after a 1031

If you acquire a property through a 1031 exchange and later convert it into your principal residence, a special rule applies. Under Section 121(d)(10), you must own the property for at least five years before a sale can qualify for the Section 121 exclusion — the usual two-of-five-years use test alone is not enough when the home came out of an exchange. This rule was added to stop investors from quickly washing exchange gains through the home-sale exclusion. Any depreciation recapture from the rental period remains taxable regardless.

How nonqualified use prorates the exclusion

For sales after 2008, Section 121(b)(5) limits the exclusion when a home has periods of nonqualified use — time it was not your principal residence, such as an earlier rental stretch. The excludable gain is multiplied by the fraction of qualified-use time over total ownership time, so rental years before you moved in shrink the exclusion proportionally. There is a helpful exception: time after you last used the home as your main residence (for instance, renting it out in the final stretch before selling within the five-year window) generally does not count as nonqualified use. Depreciation recapture is carved out of this calculation and taxed separately in every case.

A worked example: rental converted to a home

You buy a rental for $300,000, take $60,000 of depreciation over several years (adjusted basis $240,000), then move in and use it as your principal residence for two years before selling for $500,000. Your realized gain is $260,000. The $60,000 of depreciation is unrecaptured Section 1250 gain taxed at up to 25% — Section 121 cannot shelter it. Of the remaining $200,000, the nonqualified-use rules and your filing status determine how much of the exclusion you keep; a married couple meeting the two-year use test may exclude a large share, subject to the proration for the earlier rental years. Run the recapture and the prorated exclusion separately — they are computed on different rules.

The Section 121 exclusion requirements in detail

To claim the exclusion you must pass an ownership test and a use test: you owned the home for at least two years, and lived in it as your principal residence for at least two of the five years ending on the sale date. The two-year periods do not have to be continuous or overlap. You generally cannot use the exclusion if you already claimed it on another home sale within the prior two years. A partial exclusion is available if you fall short of the full two years because of a qualifying reason — a job relocation, a health condition, or certain unforeseen circumstances — in which case you exclude a prorated share of the $250,000/$500,000 cap based on the time you did qualify.

Vacation and second homes

A pure vacation home used only for personal enjoyment is neither Section 1031 property (not held for investment) nor a Section 121 residence (not your principal home), so a sale is fully taxable with no exclusion. To make a vacation property exchange-eligible, you must genuinely hold it for investment — the same Revenue Procedure 2008-16 safe harbor (rent at fair value 14+ days per year and cap personal use) is the yardstick the IRS uses. Mixed-use properties that are part-home, part-rental require allocating gain between the personal portion (eligible for 121) and the business portion (eligible for 1031 and subject to recapture).

The state tax angle

States generally follow the federal Section 121 exclusion and the Section 1031 deferral, but confirm the specifics where you own property. A notable trap is the California clawback and similar rules in other states: gain you deferred through a 1031 that was sourced to that state can be taxed by the state when you eventually sell an out-of-state replacement in a taxable transaction, even if you have since moved away. Some states also require annual reporting to track deferred gain, and impose nonresident withholding at closing. None of this changes the federal home-versus-investment distinction, but it affects your true after-tax outcome.

Common mistakes to avoid

The recurring errors are predictable: assuming you can 1031 a home you actually live in (you cannot); forgetting that depreciation recapture from any rental period is always taxable and never covered by Section 121; overlooking the five-year ownership rule when you move into a property acquired through an exchange; and misjudging how the nonqualified-use proration shrinks the exclusion after a long rental stretch. When a property has been both a home and an investment, map out its full timeline — dates of personal use, rental use, and depreciation taken — before you sell, because the exclusion, the recapture, and any deferral all turn on that history.

Planning the conversion timing

Because the tax result hinges on how the property is classified at sale, timing the conversion between home and rental is where the planning happens. Moving into a former rental starts the two-of-five-year use clock for Section 121 — but remember the exclusion is prorated for the earlier rental years and never shelters the recapture, so a short residency on a long-held rental yields only a modest exclusion. Moving out of a home to make it a rental gives you a window: you can still sell within the five-year Section 121 lookback and claim the exclusion, or hold it as a genuine rental and later exchange it. Model the numbers under each path — full sale with exclusion, versus rent-then-1031 — before committing, since the two routes can differ by tens of thousands of dollars in tax.

Which tax break fits your situation

As a rule of thumb: if the property is your principal residence and your gain is at or below the $250,000/$500,000 exclusion, Section 121 is simplest and there is nothing to exchange. If it is a pure investment property with gain above the exclusion (or gain you cannot exclude), a 1031 exchange defers the whole amount, recapture included. If it is a hybrid — a former home now rented, or a duplex you live in half of — combining Section 121 and 1031 under Revenue Procedure 2005-14 can exclude part and defer the rest. Match the tool to how the property is actually used at the time of sale, and confirm the holding-period and use tests are met before you close.

Frequently asked questions

Can I 1031 exchange my primary home?

No — primary residences don't qualify for 1031. The Section 121 exclusion is the relevant tax benefit for personal residences.

What if I lived in a property that was also a rental?

You may qualify for a partial Section 121 exclusion, but rental periods reduce it and depreciation recapture is taxable regardless of the exclusion.

Can I turn my old home into a property I can 1031?

Yes. Move out and rent it at fair market value. Revenue Procedure 2008-16 offers a safe harbor — rent it 14+ days at fair rent in each of two 12-month periods and keep personal use minimal — to support investment intent.

Can I use the Section 121 exclusion and a 1031 exchange together?

Yes. Under Revenue Procedure 2005-14 you can apply the 121 exclusion first and then 1031-defer the remaining gain, though depreciation recapture is not excluded.

If I 1031 into a property and move in, when can I use Section 121?

Section 121(d)(10) requires you to own the property at least five years before a sale can qualify for the exclusion, and any recapture from the rental period stays taxable.

Sources

Educational information and estimates only. Not tax advice. Tax rules change and vary by situation; consult a qualified tax professional before acting.

Related