You can make a 1031 replacement property your home, but not right away: the house must be held for investment when you buy it, and the IRS safe harbor in Rev. Proc. 2008-16 asks you to rent it at a fair rent for two years first. After you move in, the section 121 exclusion of up to $250,000 ($500,000 for most couples) isn't available until five years after the exchange, and the years it was rented after 2008 cut the exclusion. In the Folsom example below, 40% of the gain stays taxable even after a three-year stay.
You own a Sacramento-area rental, you're weighing a 1031 exchange into a house you might live in one day, or you're thinking of moving into a rental you already own, and you want the rules before you decide.
1031 exchange rental to primary residence at a glance
| Move in right after the exchange? | No: the replacement must be held for investment |
|---|---|
| IRS safe harbor (Rev. Proc. 2008-16) | Own 24 months; rent at a fair rental 14+ days in each 12-month period; limited personal use |
| Section 121 after a 1031 exchange | No exclusion if sold within 5 years of the exchange (IRC 121(d)(10)) |
| Exclusion amount | Up to $250,000, or $500,000 for most married couples |
| Rental years after 2008 | Nonqualified use: their share of the gain can't be excluded |
| Depreciation | Taxed when you sell, never excluded |
| Home first, then rental, then exchange | Section 121 and 1031 can both apply (Rev. Proc. 2005-14) |
Can you move into a 1031 exchange property?
Eventually, yes. Section 1031 defers tax only on property held for investment or business, and IRS Publication 523 (2025) says you can't convert the replacement to a main home immediately after the exchange. Rev. Proc. 2008-16 recites the older rulings: a personal residence was never exchange property, and in one Tax Court case a hope that a vacation home would rise in value wasn't enough to make it an investment. What decides it is how you use the house after you buy it.
Investment intent for the 1031 replacement
The IRS looks at what you did, not what you say you planned. A house bought through an exchange and lived in by its owner a month later looks like a home bought with deferred tax, and an audit can undo the whole exchange. Treat the first two years as a real rental: a lease, rent you can document, and a Schedule E.
Rev. Proc. 2008-16 safe harbor tests for a 1031 dwelling
The safe harbor covers a dwelling unit: a house, condo or apartment with sleeping space, a bathroom and a kitchen. The IRS won't challenge that a replacement was held for investment if:
- You own it for at least 24 months right after the exchange.
- In each of the two 12-month periods after the exchange, you rent it to someone at a fair rental for 14 days or more.
- In each of those periods, your own personal use is no more than the greater of 14 days or 10% of the days it was rented at a fair rental.
The same tests, looking back 24 months, apply to the house you give up. They've applied to exchanges since March 10, 2008.
Personal use and fair rent under the 1031 safe harbor
Personal use is defined by the vacation home rules in IRC section 280A(d)(2), so days a relative stays below market rent can count against you. Whether the rent is fair is judged on the facts when the lease is signed. Renting to your adult child at a family discount is the classic way to fail.
Missing the 1031 safe harbor
Falling outside the safe harbor doesn't by itself disqualify the exchange; it means the IRS can question your intent on the facts. The revenue procedure does say that if you reported an exchange expecting the replacement to meet the tests and it doesn't, you should file an amended return, if necessary, and not report it as an exchange.
The 5-year rule for section 121 after a 1031 exchange
IRC 121(d)(10): five years from the 1031 exchange
Publication 523 lists it as an automatic disqualification: if you acquired the home in a like-kind exchange during the past five years, the sale isn't eligible for the exclusion at all. The clock starts on the date you acquired the replacement, not the day you moved in. Two years of renting and two years of living there gets you to the ownership and use tests, but you still have to own the house for five years from the exchange before you sell.
A gift doesn't reset the 1031 five-year clock
The rule follows the basis. If someone gives you a house they acquired in an exchange, and your basis comes from theirs, the five years still run from their exchange.
The 1031 related-party rule is a separate test
Publication 523 also points to a separate 2-year holding period for exchanges between related persons under section 1031(f). It applies only if you exchanged with a relative or a company you control, and it's explained in the guide to a 1031 exchange out of California.
Nonqualified use: how rental years cut the 1031 home's exclusion
Even after five years, the exclusion only covers the part of the gain that matches the time the house was your home. Section 121(b)(5) reaches periods after 2008.
Nonqualified use on a former 1031 rental
Any period after 2008 when neither you nor your spouse used the property as your main home is nonqualified use, with exceptions. Gain is split by time: the share that matches nonqualified years can't be excluded. Rental time before you move in counts against you; rental time after you move out, within the five-year window before the sale, doesn't.
Depreciation on a converted 1031 rental
Depreciation you took, or could have taken, after May 6, 1997 is never excluded. It's set aside first and taxed as unrecaptured section 1250 gain at up to 25%. The depreciation recapture rules covers that math.
1031 exchange into a future home: a Folsom example
Labelled assumptions, not a forecast. A married couple sells a Sacramento rental and, through a qualified intermediary, buys a Folsom house on January 1, 2027 for $755,000, about Zillow's September 2026 typical value there of $754,898. They carry $250,000 of deferred gain into it, so its basis is $505,000. They rent it out for two years with an assumed $13,773 of depreciation a year, move in on January 1, 2029, and sell on January 2, 2032 for an assumed $860,000 after selling costs.
| Line | Amount |
|---|---|
| Basis carried from the exchange | $505,000 |
| Depreciation, 2027 and 2028 | -$27,546 |
| Adjusted basis at sale | $477,454 |
| Total gain | $382,546 |
| Depreciation part, taxed (up to 25%) | $27,546 |
| Rest of the gain | $355,000 |
| Nonqualified use: 2 of 5 years, 40% | $142,000 taxable |
| Excluded under section 121 | $213,000 |
| Taxable gain | $169,546 |
What the Folsom 1031 example shows
Most of the $250,000 they deferred from the Sacramento rental ends up inside the excluded share, which is why this move draws so much attention. The price is time: seven years from the original sale, two of them as landlords again, and a sale that can't happen before January 2032. Sell after living there two years, in January 2031, and none of the gain is excludable, because the five-year rule isn't met.
Where the Folsom 1031 numbers could change
The example measures nonqualified use over the five years the couple owned the Folsom house. How time on the old rental counts, how depreciation on the carried-over basis is figured, and the California figures are questions for your CPA: the state taxes any remaining gain as ordinary income, according to the FTB. Moving in doesn't change the Folsom property tax base, since it isn't a change in ownership, but you'd then qualify for the homeowners' exemption; the Sacramento County property tax guide explains it.
The reverse case: a former home you rented, then exchange with 1031
Many Sacramento landlords became landlords by moving out and renting the old house. If you lived there at least two of the five years before the sale, section 121 and section 1031 can both apply to one exchange. IRS Rev. Proc. 2005-14 sets the order, and Publication 523 repeats it.
Section 121 first, then the 1031 deferral
The exclusion comes off the gain first. Whatever's left, including the gain from depreciation, can be deferred by the exchange. In the revenue procedure's first example, a single owner lived in a house for four years, rented it for two, and exchanged it with a $280,000 gain: $250,000 was excluded and the other $30,000, including $20,000 of depreciation, was deferred.
Cash out of a 1031 exchange on a former home
Cash you receive is taxed as boot only to the extent it's more than the excluded gain. In the same example, $10,000 of cash came out with no tax. The excluded gain is added to the basis of the replacement, so the new rental starts with more basis than a plain exchange would give it.
Timing the 1031 exchange of a former home
The two-of-five-years test is the deadline: once you've been out of the house for more than three years, the exclusion is gone and only the 1031 deferral is left. Time renting after you move out, inside that window, isn't nonqualified use. If you're deciding whether to rent out the home you're leaving at all, start with whether to rent or sell your house.
Converting a rental to a primary residence without a 1031 exchange
Moving into a rental you already own, with no exchange involved, skips the five-year rule but not the rest.
Section 121 on a converted rental you already own
Live there two of the five years before the sale and you can claim the exclusion, minus the share for rental years after 2008 and minus all depreciation since May 1997. Publication 523's own example: an owner rents for two years, lives there two, moves out and sells a year later, and 40% of the $300,000 gain left after depreciation is taxed as nonqualified use.
When moving into a California rental makes sense
It works best when the house was a rental for a short time and you'd live there for many years. If it's been a rental for a decade, most of the gain belongs to nonqualified years, and you'd be giving up the rent for a small exclusion. Price that trade in the California rental capital gains guide before you serve your tenant notice.
Should a Sacramento owner plan a 1031 exchange into a future home?
Plan it if you'll truly rent the replacement for two years, can wait five years before selling, and expect to live there long enough that the rental years are a small share. Skip it if you want out of being a landlord now: the exchange makes you one for at least two more years, and a plain sale settles the tax and the tenant at once. Ask yourself three questions:
- Would I still buy this house as a rental if I never moved in?
- Can I hold it for five years from the exchange date?
- How many of those years will it be rented after I buy it?
This is general information, not tax or legal advice; have a CPA model your own numbers before you sign an exchange agreement. For pricing the house you'd sell first, see the site's guide to selling a Sacramento rental property.
1031 exchange rental to primary residence questions
Can I convert a 1031 exchange property to my primary residence?
Yes, after it has been held as an investment. The IRS safe harbor in Rev. Proc. 2008-16 is met if you own it 24 months after the exchange, rent it at a fair rental at least 14 days in each 12-month period, and keep personal use within limits. To exclude gain under section 121 later, you must also own it five years from the exchange and meet the two-year use test.
Can you make a rental property your primary residence?
Yes. You can move into a rental you own, after ending the tenancy lawfully. Once you've owned and lived in it two of the five years before a sale, section 121 can exclude part of the gain. Rental years after 2008 before you moved in reduce the exclusion, and the depreciation you took is taxed. If you acquired the house in a 1031 exchange, wait five years from the exchange.
How long do I have to live in my rental to avoid capital gains?
At least two years out of the five before the sale, and you must have owned it two of those years. That makes you eligible, but the gain from rental years after 2008 and all depreciation since May 1997 stay taxable. If the house came from a 1031 exchange, you also must own it five years from the exchange date before selling.
What is the 5-year rule for a 1031 exchange and section 121?
IRC section 121(d)(10) denies the home sale exclusion if you sell within five years of acquiring the house in a like-kind exchange. The five years run from the exchange, not from the day you moved in. The rule also applies if your basis comes from someone who acquired it in an exchange, such as a parent who gave you the house.
Can I do a 1031 exchange on a house I used to live in?
Yes, if it's a rental or investment property when you exchange it. If you lived there two of the five years before the exchange, Rev. Proc. 2005-14 lets you exclude gain under section 121 first and defer the rest with the 1031 exchange, including the depreciation part. Cash up to the excluded amount isn't taxed as boot.
Do I pay California tax when I move into a 1031 replacement?
Moving in isn't a sale, so it doesn't trigger tax. California taxes the gain when you later sell, at ordinary income rates, on whatever isn't excluded or deferred. If the replacement is outside California, you file FTB Form 3840 each year, and California still taxes the deferred gain from the original California rental when it's recognized. Ask your CPA how the exclusion is figured on your state return.
Sources
- IRS Rev. Proc. 2008-16: Safe harbor for exchanges of dwelling units
- IRS Publication 523 (2025): Selling your home (like-kind exchanges, 5-year rule, nonqualified use)
- IRS Rev. Proc. 2005-14, Internal Revenue Bulletin 2005-7 (sections 121 and 1031 together)
- IRS Publication 544 (2025): Sales and other dispositions of assets
- FTB: Capital gains and losses
- FTB: 2025 Instructions for Form FTB 3840, California like-kind exchanges
- Sacramento County Assessor: Homeowners' exemption