Published October 30, 2026 | Last reviewed October 2026
Short answer: you can eventually move into a property you bought in a 1031 exchange, but it must first be held for investment, and Section 121(d)(10) bars the home sale exclusion if you sell it within 5 years of the date you acquired it in the exchange. Even after 5 years, the exclusion is reduced for the rental years under the nonqualified use rule in Section 121(b)(5).
A common plan goes like this: sell a Sacramento rental, exchange into a house in a place you would like to retire, rent it out for a while, then move in. It can work. It just runs on two different clocks, and both are set by statute.
Step one: the replacement has to start as an investment
Section 1031(a)(1) defers gain only when the replacement real property is "to be held either for productive use in a trade or business or for investment." IRS Publication 523 says it directly: you cannot convert the replacement property to a main home immediately after the exchange, because Section 1031(a)(1) requires that it be held for investment or business use.
The statute does not name a minimum rental period. What the IRS does offer is a safe harbor for dwelling units in Rev. Proc. 2008-16. For replacement property, the IRS will not challenge investment status if you:
- own the dwelling unit for at least 24 months immediately after the exchange
- rent it to others at a fair rental for 14 days or more in each of the two 12-month periods after the exchange
- keep your personal use in each period within the greater of 14 days or 10 percent of the days it was rented at a fair rental
Moving in during those 24 months means you are outside the safe harbor. That does not decide the case by itself, but it leaves investment intent as a facts and circumstances question. The revenue procedure also says that if you report an exchange expecting the replacement to qualify and it later does not, you should file an amended return, if necessary, and not report the transaction as an exchange.
Step two: the 5-year rule in Section 121(d)(10)
Once the property is your home, the usual home sale exclusion in Section 121 can apply, but not right away. Section 121(d)(10) says that if you acquired the property in an exchange where gain was not recognized in whole or in part under Section 1031, the exclusion does not apply to a sale during the 5-year period beginning with the date of that acquisition.
Key details from the statute and Publication 523:
- The clock starts on the date you acquired the property in the exchange, not the date you moved in.
- The rule also follows the property to anyone whose basis is figured by reference to yours, for example a person who received the home from you as a gift.
- Publication 523 lists acquisition through a 1031 exchange in the past 5 years as an automatic disqualification from the exclusion.
You still need the 2 out of 5 year test
Passing the 5-year holding rule only removes the bar. You must also meet the regular test in Section 121(a): during the 5 years ending on the date of sale, you owned and used the property as your principal residence for periods adding up to 2 years or more. The maximum exclusion in Section 121(b) is $250,000, or $500,000 for certain joint filers who meet the joint return requirements.
Step three: the nonqualified use haircut
This is the part many owners miss. Section 121(b)(5) says the exclusion does not apply to the share of gain allocated to periods of nonqualified use. Gain is allocated by the ratio of nonqualified use time to total ownership time. A period of nonqualified use is generally any period after 2008 when the property was not used as the principal residence of you, your spouse or a former spouse.
For a converted replacement property, the rental years at the start are nonqualified use. The statute's main exception covers time after you move out, not before you move in. It excludes from nonqualified use any part of the 5-year window that comes after the last date the property was used as your principal residence.
A simple illustration
Say you own a replacement house for 7 years in total. You rent it for the first 3 years, then live in it for the last 4 and sell. Under the ratio in Section 121(b)(5), 3 of 7 years are nonqualified use, so 3/7 of the gain cannot be excluded. The remaining 4/7 may be eligible, subject to the dollar cap and the other limits. Real cases need a CPA to run the numbers.
One more limit: depreciation
- Depreciation. Section 121(d)(6) says the exclusion does not apply to gain up to the depreciation adjustments taken after May 6, 1997. The rental years generate depreciation on the replacement, and that portion of the gain cannot be excluded. Ask a CPA how depreciation from the property you exchanged is treated on your facts. See depreciation recapture and a 1031.
How this differs from going the other way
This post covers moving into a replacement. The reverse path, living in a home first and then renting it before an exchange, is covered in lived in it, then rented it. A property that is part home and part rental at the same time is covered in selling a duplex you live in.
A planning checklist
- Decide before closing whether a move in is part of the plan, and tell your CPA and qualified intermediary.
- Keep rental records for the first 24 months: leases, rent received at a fair rate, and any days you used the property.
- Write down the exchange acquisition date. That date starts the 5-year clock.
- Track the move in date so the 2 year use test and the nonqualified use ratio can be computed.
- Keep depreciation schedules from both the old and new property.
For the full exchange timeline, see how a 1031 exchange works. If you want a referral to a qualified intermediary and a CPA who handles conversions like this, use the referral request form.
Common questions
Can I move into my 1031 replacement property right after closing?
No. IRS Publication 523 says you cannot convert the replacement property to a main home immediately after the exchange, because Section 1031(a)(1) requires it be held for investment or business use.
When does the 5-year clock start?
Section 121(d)(10) starts the 5-year period on the date you acquired the property in the exchange, not the date you moved in.
After 5 years, can I exclude all of the gain?
Not always. You also need 2 years of ownership and use as a principal residence in the 5 years before the sale, the exclusion is capped, and gain allocated to post-2008 rental years is not excludable under Section 121(b)(5).
How long should I rent the replacement before moving in?
The statute sets no fixed period. The Rev. Proc. 2008-16 safe harbor protects a dwelling unit owned at least 24 months after the exchange and rented at a fair rental 14 days or more in each 12-month period with limited personal use. Ask a CPA about your facts.
Does the 5-year rule apply if I gift the house to my child?
Yes. Section 121(d)(10) also applies to any person whose basis is determined by reference to the basis in your hands, which includes a gift recipient.
Sources
- 26 U.S. Code 121, Exclusion of gain from sale of principal residence
- 26 U.S. Code 1031, Exchange of real property held for productive use or investment
- IRS Publication 523, Selling Your Home
- IRS, Internal Revenue Bulletin 2008-10, Rev. Proc. 2008-16
Sources checked October 30, 2026. Last reviewed October 2026.
General information only, not tax or legal advice. Consult a CPA or tax attorney.