# Can You 1031 Exchange a Primary Residence?

URL: https://elevatedtaxstrategies.com/real-estate-investing/1031-primary-residence-mixed-use/
Markdown: https://elevatedtaxstrategies.com/real-estate-investing/1031-primary-residence-mixed-use.md
Category: Real Estate Investing
Published: 2026-09-14
Author: Ramon Liriano Jr.

> Not as a residence. But a home you later rented, or one with a real business portion, can combine the Section 121 exclusion with a 1031 on the rest.

## TLDR

Not as a residence. §1031 requires property **held for productive use in a trade or business or for investment**, and a home you live in is the opposite of that. But the real question is usually narrower, and the answer there is yes: **Rev. Proc. 2005-14** lets you apply the §121 exclusion and a §1031 deferral to *one* transaction when part of the property was business or rental use. The order is fixed: **§121 first, then §1031**. And if you acquire a home *through* a 1031, §121 is unavailable for five years.

People ask this two ways, and they are completely different questions with different answers.

The first is "can I sell the house I live in and roll the gain into a rental without paying tax?" No. The second is "part of this property was a rental, or I moved out and rented it for a few years, what happens now?" That one has a real and often very good answer.

## Why a residence itself cannot be exchanged

Section 1031 defers gain on property **held for productive use in a trade or business or for investment**. A personal residence is neither, and the IRS has said so consistently: Rev. Rul. 59-229 concluded gain from exchanging personal residences cannot be deferred under §1031, and Rev. Proc. 2005-14 restates plainly that §1031 does not apply to property used solely as a personal residence.

Courts agree. The Ninth Circuit in *Starker* said use of property solely as a personal residence is "antithetical to its being held for investment." In *Moore v. Commissioner* two vacation homes that were never rented failed the test, and the Tax Court held that a hope of appreciation "cannot establish an investment intent if the taxpayer uses the property as a residence."

So the mental model to drop is "1031 is how I avoid tax on my house." The one to pick up is that a home already has its own, usually better, tax break.

## The break you probably want instead

**Section 121** excludes gain on a principal residence you **owned and used as your principal residence for at least 2 of the 5 years** ending on the sale date. The exclusion is up to **$250,000**, or **$500,000** on certain joint returns.

Compare the two honestly. §121 is an **exclusion**, meaning the gain is gone permanently. §1031 is a **deferral**, meaning the gain follows you into the next property and waits. For a house that qualifies, §121 is the stronger outcome, and it does not require an intermediary, a 45-day identification window or a replacement property.

The interesting cases are the ones where a single property has a foot in each world.

## When part of the property was business or rental

This is the situation Rev. Proc. 2005-14 was written for: a property that is both a principal residence under §121 and, in part, held for business or investment use under §1031. A duplex where you live in one unit. A house with a genuinely separate office structure. A home you moved out of and rented before selling.

You may apply **both** provisions to the same exchange. The procedure sets the sequence, and the sequence matters:

1. **§121 is applied first, to gain realized.** Not second, and not to whatever is left after 1031.
2. **§1031 can then apply to gain that §121 cannot reach**, specifically gain attributable to depreciation. Under §121(d)(6) the exclusion does not cover gain attributable to post-May 6, 1997 depreciation, and that is exactly the gain §1031 can defer.
3. **Boot is measured after the exclusion.** Cash or non-like-kind property received for the business portion counts as boot only **to the extent it exceeds the gain excluded under §121** on that portion.
4. **Basis picks up the excluded gain.** Under §1031(d), gain excluded under §121 is treated as recognized, so the replacement property's basis is increased by it.

That third point is the one that surprises people, and pleasantly. Cash you take out of the deal can be sheltered by the §121 exclusion before it is treated as taxable boot.

> **Note: Depreciation is the part §121 will not save**
>
> If you rented the property, you claimed depreciation, and the gain
> attributable to it is carved out of the §121 exclusion by §121(d)(6). It does
> not disappear because you moved back in. Section 1031 is one of the few tools
> that can defer that specific slice, which is precisely why the two get used
> together.

## The five-year trap on the other end

This one costs real money and it runs in the opposite direction.

If you **acquire** a property in a 1031 exchange and later want to sell it as your principal residence, the §121 exclusion is **not available if the sale occurs within 5 years of the acquisition date**. That rule came from the American Jobs Creation Act of 2004 and applies to sales or exchanges after October 22, 2004.

So the "buy a rental through a 1031, move into it, sell it tax-free" plan has a five-year clock on it before §121 is even on the table, and the two-year use requirement still has to be satisfied inside that. Anyone describing this as a quick conversion is skipping the part that matters.

## Allocation, when the property is mixed

If the business portion is **inside the same dwelling unit** as the residence, §1.121-1(e) treats you as using the whole property as your principal residence for the 2-year use test. An office in a spare bedroom does not split the house.

If the business portion is **separate** from the dwelling unit, an outbuilding, a converted garage with its own use, the gain allocable to that portion is not excludable unless you also met the 2-year use requirement for that portion. Where allocation is required, basis and amount realized are split between the residential and business portions on a reasonable basis.

## What to do with this

The order of operations is not optional and it is not intuitive, so it is worth being deliberate:

- If the property is purely your home and you meet the 2-of-5 test, take §121 and do not build a 1031 around it.
- If you rented it, find out how much of the gain is attributable to depreciation before you decide anything. That number usually determines whether an exchange is worth the machinery.
- If you are moving out and considering renting before selling, watch the 5-year window, because the 2-of-5 test starts expiring the day you leave.
- If you acquired the property through a 1031, calendar the five-year date.

Bring the closing statement from the purchase, the depreciation schedule, and the dates you actually lived there. Which combination applies is a facts question, and the facts here are mostly dates. The [general 1031 mechanics](https://elevatedtaxstrategies.com/real-estate-investing/1031-exchange-mechanics/) still apply on top of all this, and so do the [timing rules](https://elevatedtaxstrategies.com/real-estate-investing/1031-timing-rules/), which do not soften because a residence is involved.
