Converting a Primary Residence into a 1031 Exchange Property
A home you’ve lived in can be part of a 1031 exchange, but only if you meet strict holding and intent requirements. You must own it for at least 24 months before it qualifies as replacement or relinquished property, and you cannot have claimed the $250,000/$500,000 primary residence exclusion on the same property during that period. The IRS examines intent closely to prevent tax avoidance.
This article covers federal rules under IRC § 1031. State and local treatment varies; consult a tax professional before converting a home.
The Core Requirement: 24-Month Holding Period
For a property to qualify in a 1031 exchange, the IRS requires a 24-month holding and use period. This is the most common trap: a home you sell and that enters a 1031 exchange must have been held for investment purposes (not as a primary residence) for the full 24 months before the exchange closes.
Example: You sell your primary residence in June 2024. You moved out in January 2024 and rented it to tenants for six months before the sale. You’ve owned the house since 2020. Does it qualify?
- Ownership period: 2020–2024 = 4 years ✓
- Investment use period: January 2024 – June 2024 = 6 months ✗
No. You only held it as an investment for 6 months. You lived in it from 2020 to January 2024 (primary residence period). You cannot use the 1031 exchange for this property.
The 24-month window is noncumulative. You must own the property for 24 continuous months in an investment capacity. Gaps or mixed use reset the clock.
The Primary Residence Exclusion Conflict
The IRS allows homeowners to exclude up to $250,000 of capital gains (or $500,000 if married filing jointly) on the sale of a primary residence, provided they owned and occupied the home for at least 2 of the 5 years before the sale.
A 1031 exchange is incompatible with this exclusion. If you’re doing a 1031 exchange on a property, you are explicitly saying the property is investment real estate, not your primary home. You cannot both claim the home exclusion and enter a 1031 exchange on the same property.
More broadly: once you’ve claimed the primary residence exclusion on a property, you cannot immediately convert it to investment property and use 1031 treatment. The conversion must be genuine and lasting, with clear intent.
Intent: The IRS’s Scrutiny
Beyond the mechanics, the IRS examines contemporaneous intent. When did you decide to treat this property as an investment? What evidence shows that intent?
Red flags include:
- Selling your home in 2024, claiming it’s a rental, then immediately buying a different primary residence through a 1031 exchange (this looks like using 1031 to avoid the holding period)
- Listing the property as a primary residence with the assessor, then changing it to investment property right before the exchange
- No rental history, lease agreement, or evidence of tenant occupancy
- Selling the property within months of claiming investment status
Evidence of genuine intent includes:
- A signed lease agreement with a third-party tenant
- Rental income reported on Schedule E (your tax return)
- Documentation of repairs and maintenance as a landlord
- Years of treating the property as a rental on prior tax returns
- Professional property management (not managing it yourself from next door)
Converting a Primary Residence: The Step-by-Step Path
If you want to eventually use a 1031 exchange on a home you’ve been living in, the timeline is:
- Stop living in the home. Move out. Change your filing with the county assessor from primary to investment (or rental).
- Rent it to tenants. For 24 months. Maintain a lease, collect rent, report income on your tax return.
- After 24 months, the property qualifies as investment real estate. You can sell it in a 1031 exchange.
This is the only defensible path. The IRS will compare your tax returns year-to-year; if you claimed primary residence status in Year 1 and Year 2, then suddenly claimed a depreciation deduction (available only for investment property) in Year 3, the timing must square up.
Using a Home as the Replacement Property
You can also use a primary residence as the replacement property in a 1031 exchange—that is, you can buy a home using 1031 proceeds. But again, the 24-month rule applies to that home:
If you buy a property through a 1031 exchange, you cannot occupy it as a primary residence until 24 months have passed. Some investors do this: they acquire a property through a 1031 to defer taxes, rent it out for 24 months, then move in and claim primary residence status later.
Once you occupy it as a primary residence and it’s been your main home for 2 of the last 5 years, you can sell it and claim the primary residence exemption (assuming you didn’t do another 1031 exchange on it).
The Two-Home Scenario
What if you own a primary residence and a rental property, and you want to do a 1031 exchange?
Scenario 1: Exchange the rental. Sell your rental property, buy a different investment property through the 1031. No issue. You live in the primary residence the whole time. The rental qualifies because it has been investment property for years.
Scenario 2: Exchange the primary residence. Sell your primary home and try to use 1031 to buy another primary home. This is problematic. If you’ve been living in the home you’re selling, it doesn’t meet the 24-month investment-use requirement. You could claim the primary residence exclusion instead (no 1031 needed) and avoid tax on up to $250k/$500k of gains.
Scenario 3: Convert primary to investment, then exchange. Move out, rent for 24 months, then exchange. This works, but why not just sell under the primary residence exemption, pocket $250k/$500k tax-free, and buy a new home cash? A 1031 is useful only if gains exceed the exclusion or if you want to defer all gains.
Basis and Depreciation Recapture
If you convert a home to a rental and later sell via 1031, you must recapture any depreciation deductions you’ve taken. Depreciation is deducted from the building’s basis each year; when you sell, the IRS taxes those deductions back at a higher rate (up to 25% in most cases, vs. 15%–20% for long-term capital gains).
Example: You buy a home for $400,000 (building value $320,000). You live there, then convert to a rental. Over 10 years, you deduct $100,000 in depreciation. You sell for $500,000.
- Adjusted basis: $400,000 – $100,000 = $300,000
- Gain: $500,000 – $300,000 = $200,000
- Long-term capital gain: $200,000 × 15% = $30,000 (federal)
- Depreciation recapture: $100,000 × 25% = $25,000 (federal)
If you do a 1031 exchange, the gain defers, but depreciation recapture cannot be deferred—you owe it in the year of the sale. This is a major tax cost many miss.
State and Local Considerations
Many states and localities allow their own primary residence exemptions or reduced tax rates on the sale of a primary home. Entering a 1031 exchange forfeits these benefits. Some states also require 24-month holding periods; others have different rules. Always confirm with a local tax professional.
When a 1031 Exchange Is Actually Worth It
For a former primary residence, a 1031 exchange makes sense only if:
- Your capital gain exceeds the primary residence exemption ($250k/$500k), or
- You live in a state or locality with an additional exemption that you’ve already used, or
- You want to defer tax by rolling proceeds into a more valuable property and taking on a mortgage.
If your gain is under the exemption, just sell and claim the exclusion. It’s simpler and avoids depreciation recapture.
See also
Closely related
- 1031 exchange — the full mechanics and timeline of like-kind exchanges
- Capital gains tax for investors — how home sales are taxed and exemption thresholds
- Depreciation and recapture — the tax cost of depreciation on real estate
- Basis and cost basis — how basis is adjusted when you convert property use
- Schedule E — where rental income and losses are reported
Wider context
- Real estate investment trusts — another way to invest in property with potential tax benefits
- Commercial real estate — investment properties often used in 1031 exchanges
- Residential real estate — the housing market and home valuation
- Tax-loss harvesting — strategies to offset gains
- Estate tax — what happens to deferred gains when you pass away