1031 Exchange and Primary Residence: What the IRS Allows

A primary residence cannot be sold through a 1031 exchange. Section 1031 applies only to real property “held for productive use in a trade or business or for investment,” and the IRS has said for decades that a personal home is neither. Instead, home sales get their own tax break — the Section 121 exclusion of up to $250,000 of gain ($500,000 for most joint filers). Where things get interesting is at the boundary: converting a home into a rental before exchanging it, moving into a former 1031 replacement property, or selling a property that was both a residence and a rental. Each of those has specific IRS guidance, covered below.

Why a primary residence doesn’t qualify

The disqualification isn’t a technicality — it’s the core “held for” requirement of the statute. Section 1031(a) only defers gain when the relinquished property and the replacement property are each held for business use or investment. The IRS concluded in Rev. Rul. 59-229 that exchanges of personal residences can’t be deferred under §1031, and Rev. Proc. 2005-14 restates the rule plainly: “Section 1031 does not apply to property that is used solely as a personal residence.”

Courts agree. In Starker v. United States (9th Cir. 1979) — the case the “Starker exchange” is named after — the court explained that “use of property solely as a personal residence is antithetical to its being held for investment.” And in Moore v. Commissioner (T.C. Memo. 2007-134), the Tax Court rejected a couple’s exchange of one never-rented vacation home for another, holding that a “mere hope or expectation that property may be sold at a gain” doesn’t create investment intent when the owners use the property as a residence. (Both cases are discussed in the background section of Rev. Proc. 2008-16.)

The upshot: hoping your house appreciates doesn’t make it “held for investment.” How the property is actually used controls.

What governs a home sale instead: the Section 121 exclusion

If a 1031 exchange is off the table for your home, IRC §121 is usually the better deal anyway — it’s an exclusion, not a deferral. Gain up to the cap simply disappears from your taxable income, no replacement purchase required.

Section 121 (home sale exclusion)Section 1031 (like-kind exchange)
Applies toYour principal residenceReal property held for business or investment
Tax effectGain excluded permanently (up to cap)Gain deferred until a later taxable sale
Limit$250,000 single / $500,000 jointNo dollar limit
Key requirementOwned and used as your principal residence for 2 of the last 5 years45-day identification / 180-day closing, qualified intermediary, reinvestment
ReuseGenerally once every 2 yearsUnlimited, back to back

The 2-of-5-year test in §121(a) requires that you owned and used the property as your principal residence for periods aggregating at least two years during the five years ending on the sale date. The two years don’t need to be continuous, and — critically for the strategies below — the property doesn’t have to be your residence on the day you sell.

Strategy 1: Convert your primary residence to a rental, then exchange it

Because §1031 looks at how the property is held at the time of the exchange, a former home that has genuinely become a rental can qualify. There’s no fixed statutory holding period; qualification is a facts-and-circumstances question about your intent and actual use. But the IRS gave investors a bright-line answer for dwelling units in Rev. Proc. 2008-16, a safe harbor under which the IRS will not challenge whether the property was held for investment if, for the relinquished property:

  • You owned it for at least 24 months immediately before the exchange; and
  • In each of the two 12-month periods immediately before the exchange:
    • you rented it to another person at a fair rental for 14 days or more, and
    • your own personal use didn’t exceed the greater of 14 days or 10% of the days it was rented at fair rental.

Meet that standard and the “held for investment” question is settled in your favor; fall short and you’re back to arguing facts and circumstances. Everything else about the exchange still applies as usual — the 45/180-day deadlines, identification rules, and qualified intermediary requirement don’t change. See what qualifies for a 1031 exchange for the broader eligibility rules.

There’s a bonus: if you move out and rent the home for about two years and then exchange it, you may still satisfy the §121 2-of-5-year test at the time of the exchange — which lets you stack both benefits on one transaction (see the combined strategy below).

Strategy 2: Convert a 1031 replacement property into your primary residence

The reverse move — acquiring a rental in a 1031 exchange and later making it your home — is also possible, with two big caveats.

First, intent at acquisition matters. The replacement property must be acquired with genuine investment or business intent. If you buy it planning to move in immediately, the exchange itself is at risk. Rev. Proc. 2008-16’s replacement-property safe harbor mirrors the relinquished-property rules: own it for at least 24 months after the exchange, rent it at fair rental for 14+ days in each of the two 12-month periods, and keep personal use under the greater-of-14-days-or-10% limit. Satisfy that, and the IRS won’t challenge the property’s investment character.

Second, a special 5-year rule applies to the §121 exclusion. Under IRC §121(d)(10), if you acquired the property in a 1031 exchange, no §121 exclusion is available if you sell during the 5-year period beginning on the date you acquired it — even if you’ve already lived in it for two years. You must own the property at least five years and meet the normal 2-of-5-year residence test before the exclusion opens up. (This rule was added by the American Jobs Creation Act of 2004 and applies to sales after October 22, 2004, as the IRS notes in Rev. Proc. 2005-14.)

Even after five years, two more provisions shrink the exclusion:

  • Nonqualified use proration — under §121(b)(5), gain allocated to periods of “nonqualified use” (time after 2008 when the property wasn’t your principal residence, such as the rental years before you moved in) is not excludable. The excludable gain is prorated by the ratio of qualified to total ownership time. Note the asymmetry: rental years after you move out (within the 5-year window) don’t count against you, but rental years before you move in do.
  • Depreciation recapture — under §121(d)(6), gain attributable to depreciation deductions taken after May 6, 1997 can never be excluded under §121.

In short: moving into a replacement property can eventually convert deferred gain into partially excluded gain, but it’s a multi-year commitment and the exclusion will almost never wipe out the full deferred amount.

Selling a mixed-use property: combining §121 and §1031

What if the property is both — say, a house you lived in for years and then rented, or a duplex where you occupy one unit? Rev. Proc. 2005-14 lets qualifying taxpayers apply both provisions to a single sale, in a specific order:

  1. Apply §121 first to exclude gain, before applying §1031.
  2. §1031 can defer what §121 can’t reach — including gain attributable to post-May 1997 depreciation, which §121 excludes from its exclusion but §1031 can still defer.
  3. Cash boot is offset by the exclusion. Cash or other boot received is taxable only to the extent it exceeds the gain excluded under §121.
  4. Basis gets a boost. Your basis in the replacement property is increased by the gain excluded under §121.

The IRS’s own Example 1 in Rev. Proc. 2005-14 shows the power of the combination: a taxpayer buys a house for $210,000, lives in it for four years, rents it for two years (taking $20,000 of depreciation), then exchanges it for $10,000 cash plus a $460,000 rental townhouse. Of the $280,000 realized gain, $250,000 is excluded under §121, and the remaining $30,000 — including all the depreciation gain — is deferred under §1031. Even the $10,000 of cash boot triggers no tax, because it’s less than the excluded gain. Estimating your own numbers? Start with our 1031 exchange calculator.

This works because §121 doesn’t require the property to be your residence on the sale date — only for two of the last five years. The window is real but finite: rent the old home too long (more than about three years) and the 2-of-5 test fails, leaving §1031 alone.

Vacation homes and second homes

A second home used purely personally sits in the same boat as a primary residence: no §1031 deferral (that was exactly the fact pattern the taxpayers lost in Moore), and no §121 exclusion either, since it isn’t your principal residence. But a vacation home that is genuinely operated as a rental can qualify for a 1031 exchange — and Rev. Proc. 2008-16’s safe harbor (24 months of ownership, 14+ days of fair rental each year, limited personal use) was written precisely for these part-rental, part-personal dwelling units. If your “vacation rental” is rented two weeks a year and used by your family all summer, it fails the personal-use limit and you’d be relying on a shaky facts-and-circumstances argument.

If you’re planning a conversion-then-exchange in a specific market, our state-by-state 1031 guides cover local tax treatment, and our guide to 1031 exchange companies explains how to pick the qualified intermediary you’ll need.

Frequently asked questions

This page is for educational purposes only and is not legal or tax advice. 1031 exchanges are governed by IRC §1031 and related Treasury Regulations; consult a qualified tax professional or attorney about your specific situation. Primary sources: IRC §1031, IRC §121, Rev. Proc. 2008-16, Rev. Proc. 2005-14.

Find a 1031 Specialist

Get connected with qualified intermediaries and tax professionals in your area.