Primary Residence and 1031 Exchange
The home you live in follows a different set of rules
A home you live in does not qualify for a 1031 exchange, because Section 1031 covers only property held for investment or business use. Your home has its own break: Section 121 lets you exclude up to $250,000 of gain, or $500,000 for many married couples filing jointly, if you owned and lived in it for 2 of the last 5 years.
The residence conversion planner: 10 items. The first is free on this page.
Updated November 16, 2026 by Private Exchange Group. 3 minute read. Not tax or legal advice.
The short version
- Section 1031 does not apply to a home used solely as your personal residence, because it is not held for investment or business use.
- Section 121 lets you exclude up to $250,000 of gain, or $500,000 for qualifying joint filers, after 2 of 5 years of ownership and use.
- A home acquired through a 1031 exchange cannot use the Section 121 exclusion if it is sold within 5 years of that acquisition.
- A former home now rented, or a property with a separate business portion, may use both rules under Rev. Proc. 2005-14.
Why your home is outside Section 1031
Section 1031 covers real property held for productive use in a trade or business or for investment. Rev. Proc. 2005-14 states that it does not apply to property used solely as a personal residence, a position the IRS has held since at least Rev. Rul. 59-229. Selling your house and buying a bigger one is not an exchange, however you structure it.
Your home has its own provision. Under Section 121, you can exclude gain on the sale of a home you owned and used as your principal residence for periods totaling 2 years or more during the 5 years ending on the sale date. The exclusion is capped at $250,000, or $500,000 for married couples filing jointly who meet the conditions, and generally can be used once every 2 years.
Anyone who has rented the property runs into 2 limits. Gain equal to depreciation taken after May 6, 1997 is not excluded under Section 121(d)(6). And under Section 121(b)(5), gain allocated to periods of nonqualified use after 2008, when the property was not your principal residence, is not excluded either, with exceptions.
Moving into a property you acquired by exchange
Owners get into trouble with one plan in particular. Someone exchanges a rental for a house in a place they love, rents it for a while, then moves in and plans to sell later tax free under Section 121. Congress closed that route in 2004. Section 121(d)(10) says the exclusion does not apply if you sell a property acquired in a 1031 exchange within 5 years of acquiring it.
- Investment intent first
- The replacement must be held for investment when you acquire it. Moving in quickly undercuts the exchange itself, not only the later exclusion.
- The 5-year bar
- Section 121(d)(10) runs 5 years from the exchange acquisition date and also applies to anyone whose basis is figured from yours, such as a gift recipient.
- Nonqualified use
- Rental years after 2008 before you moved in can reduce the exclusion by the share of ownership time that was not residence use.
- Depreciation stays taxable
- Depreciation taken while the property was a rental, after May 6, 1997, is not excluded under Section 121 when you eventually sell.
Before closing or not at all
Three ways a property fails the test
You live in it
A home you live in is not held for investment, and Section 1031 does not cover it.
You bought it to resell
Property held mainly for sale, such as a flip or a builder's lots, is excluded.
It crosses the border or is not real estate
Real property in the United States and real property abroad are not like-kind. Stock, partnership interests and REIT shares are not real property.
General rules, not tax or legal advice.
Turning your home into a rental before you sell
The opposite move can work in your favor. Section 121 does not require the property to be your residence on the day you sell. Rev. Proc. 2005-14 explains how a former home that has since become a rental can use both provisions in one transaction: Section 121 is applied to the gain first, and Section 1031 can defer what is left, including the gain from depreciation.
In the IRS's own Example 1, an owner lived in a house from 2000 to 2004, rented it until 2006 with $20,000 of depreciation, and then exchanged it for a $460,000 rental townhouse plus $10,000 of cash, realizing $280,000 of gain. The owner excluded $250,000 under Section 121 and deferred the remaining $30,000. The cash was not taxed because boot counts only to the extent it exceeds the excluded gain.
Basis follows a specific rule. Rev. Proc. 2005-14 treats the gain excluded under Section 121 as gain recognized for basis purposes, so the replacement's basis rises by that amount. In the example, the townhouse took a basis of $430,000. Rental time after you move out, within the 5 years before the sale, is not treated as nonqualified use, but the 2-of-5-year test means this window eventually closes.
Mixed-use property under Rev. Proc. 2005-14
Some properties are part home and part business. The rule depends on whether the business part sits inside the same dwelling unit. A home office within the house is treated as part of the residence for the 2-year use test. A separate structure, such as a guesthouse used as an office, is not, and the gain allocated to it is outside the Section 121 exclusion unless it meets the use test on its own.
That separate business portion can be exchanged. In the IRS's Example 2, an owner used a house as a residence and a guesthouse as an office, allocated basis by square footage, excluded the gain on the house under Section 121, and deferred the gain on the guesthouse under Section 1031 by acquiring a separate office property of equal value. The allocation and the paperwork matter, so involve your CPA early.
Questions people ask
Can I do a 1031 exchange on my house and use the money to buy a bigger house?
No. Section 1031 does not apply to a home used solely as a personal residence, so trading one home for another is a sale and a purchase. The Section 121 exclusion may cover much or all of the gain instead: up to $250,000, or $500,000 for qualifying joint filers, if you owned and lived in the home for 2 of the last 5 years.
How long do I have to rent a 1031 replacement house before I can move into it?
The 1031 rules set no fixed number, but the property must be held for investment when you acquire it. The IRS safe harbor for dwelling units looks at the 24 months after the exchange, with rental and personal-use limits. Separately, the home-sale exclusion is unavailable if you sell within 5 years of the exchange acquisition. Plan the timeline with your advisor.
If I lived in my rental years ago can I still use the home sale exclusion?
Only if you meet the use test: you must have owned and used it as your principal residence for 2 of the 5 years before the sale. If you moved out more than 3 years ago, that window has closed. If you are still inside it, rental time after you moved out is generally not counted as nonqualified use.
Does the $250,000 home sale exclusion cover depreciation from when it was a rental?
No. Section 121(d)(6) says the exclusion does not apply to gain equal to depreciation taken for periods after May 6, 1997. That part of the gain stays taxable when you sell. Rev. Proc. 2005-14 notes that Section 1031 may still defer it if the property is exchanged as investment property, as in the IRS's former-residence example.


Know where you stand before you close
Tell us when the sale closes and what you own. You will hear where you stand and what has to happen first.
- Whether the property qualifies
- Your 2 deadlines on a calendar
- What your closing agent needs
Asking commits you to nothing. It keeps the option open.
