How the combination works
Section 121 excludes gain on the sale of a principal residence you owned and used as your main home for at least 2 of the 5 years before the sale. Section 1031 defers gain on real property held for business or investment. A home that you lived in and then rented out can be both at once: it passed the 121 use test recently, and it is investment property on the day of the exchange.
Rev. Proc. 2005-14 sets the order of operations:
- Apply Section 121 first. Exclude gain up to $250,000 or $500,000.
- Then apply Section 1031 to the gain that remains, including gain from depreciation after May 6, 1997, which Section 121(d)(6) never excludes.
- Cash boot is taken into account under 1031(b) only to the extent it exceeds the gain excluded under 121.
- Basis in the replacement property is figured under 1031(d), increased by the gain excluded under 121.
The tests that make or break it
- 2 of 5 years. You must have owned and used the home as your principal residence for at least 2 years of the 5 years ending on the exchange date. In practice that means renting it for less than 3 years after you move out, as in the revenue procedure's first example.
- Held for investment at exchange. The property must be genuinely held for rental or investment when you exchange it. Listing it for rent at market rates and renting it to unrelated tenants is the clean pattern.
- Nonqualified use. Under 121(b)(5), periods after 2008 when the home was not your main residence can reduce the exclusion, but periods after you last lived there do not count against you. Renting first and moving in later is the problem pattern, not the reverse.
- Mixed-use property. Where part of a single dwelling is a home office, Treas. Reg. 1.121-1(e) and the revenue procedure's examples show how gain is allocated; a separate guesthouse or unit is treated as separate business property.
One trap in the other direction: if you acquire a property in a 1031 exchange and later move into it, Section 121(d)(10) denies the exclusion on a sale within 5 years of the exchange acquisition.
Who it fits, and who it does not
Good fit: long-time owners with large appreciation, who moved out recently, rented the old home, and want rental property going forward. Couples with more than $500,000 of gain, or any owner with depreciation from rental years, gain the most.
Poor fit: owners who rented for 3 years or more (the 121 piece is gone), owners whose gain is under the exclusion limit (a plain sale may be simpler), and owners who do not want another property to manage. For the last group, an installment sale on the taxable remainder may fit better.
Worked example (engine-computed)
Assumptions (labeled, not a client case): married filing jointly, both lived in the home 10 years, then rented it out for 2 years and claimed $40,000 of depreciation. Purchase price $700,000, so adjusted basis is $660,000. They exchange it in 2026 for a $1,600,000 rental. Other ordinary income is $150,000.
| Step | Amount |
|---|---|
| Realized gain ($1,600,000 minus $660,000) | $940,000 |
| Excluded under Section 121 | $500,000 |
| Remaining gain: $400,000 of capital gain plus $40,000 of depreciation gain | $440,000 |
| Deferred under Section 1031 if fully reinvested | $440,000 |
| Basis of replacement property ($1,600,000 minus $440,000 deferred) | $1,160,000 |
Without the exchange, the $440,000 is taxable. The Big Sale Tax engine puts the added 2026 tax at $81,720 for Texas residents ($68,800 federal plus $12,920 net investment income tax) and $122,551 for California residents (adding $40,831 of state tax). Under Rev. Proc. 2005-14, the couple could also take up to $500,000 of cash out of the exchange without recognizing gain, because cash boot counts only to the extent it exceeds the excluded gain; the replacement basis then drops by the cash taken.
IRS stance and audit risk
This is the IRS's own published guidance, so the combination itself is low risk. Audit questions are factual: did you really live there 2 of the last 5 years, was the property genuinely held for investment at the exchange, were rents at market, and was depreciation claimed and tracked. Keep utility bills, voter and driver records, the lease, and the rental ledger. Report the 121 exclusion and the exchange together on Form 8824 and the sale schedules. California residents exchanging into out-of-state property also file the FTB 3840 information return each year.
Costs and fees
- Qualified intermediary fee for the 1031 portion.
- Normal sale and purchase closing costs on two properties.
- Preparation time to document residence and rental periods.
- The ongoing cost of owning and managing a rental, which is the real price of deferral.
How it compares with a Section 453 installment sale
A plain sale of a qualifying former home already excludes up to the 121 limit. The question is what to do with the gain above it. A 1031 exchange defers that gain but keeps you in real estate. A Section 453 installment sale lets you sell outright and pay tax on the taxable remainder as principal arrives, with no replacement property. Gain excluded under 121 is simply excluded; the installment method applies to the taxable part, and depreciation recapture taxed as ordinary income under Section 1245 or 1250 is recognized in the year of sale, though straight-line real estate depreciation usually produces unrecaptured Section 1250 gain that can be spread.
The installment route works best with real protections: a solid down payment, a first-position deed of trust, interest at or above the applicable federal rate, and default and acceleration terms (see seller financing). Model both against a straight sale before you list the property.
What to know
The window closes fast: rent the home for 3 years or more and the 121 exclusion is gone. The property must be genuinely held for investment when exchanged, and an exchanged property you later move into needs 5 years before a sale can use 121. The deferred part of the gain stays with the replacement property.
Frequently asked questions
Can I use Section 121 and 1031 on the same property?
How long can I rent my old home and still use both?
Is depreciation gain excluded under Section 121?
Can I take cash out of the exchange?
Can I move into a property I got in a 1031 exchange and later exclude the gain?
Is the 121 plus 1031 combination legit?
Sources
- IRC 121, exclusion on sale of principal residence (Cornell LII)
- IRC 1031 (Cornell LII)
- Rev. Proc. 2005-14, Sections 121 and 1031 together (IRB 2005-7, p. 528)
- IRS Publication 523, Selling Your Home
- IRS Form 8824, Like-Kind Exchanges
- IRC 453, installment method (Cornell LII)
- IRC 1250, depreciable real property (Cornell LII)
Last reviewed October 3, 2026. Education only, not legal or tax advice.
Keep comparing
1031 exchange
Defer the whole gain by trading investment real estate for more real estate, if you can find it and close inside 180 days.
Read1031 boot
Cash out, debt not replaced, or a note from the buyer: how boot is taxed in a 1031, how mortgage netting works, and how to spread boot over time.
ReadInstallment sale (Section 453)
Report the gain as the buyer pays you instead of all in the year of sale, under rules that have been in the tax code for decades.
ReadReverse 1031 exchange
Buy the replacement property first and sell the old one later, using a parking arrangement under Rev. Proc. 2000-37.
ReadSection 1033 involuntary conversion
When property is condemned, destroyed or sold under threat of condemnation, Section 1033 defers the gain if you reinvest in time.
ReadSeller financing
Carry the buyer's note, collect interest, and pay the tax as the principal comes in, with the right collateral and terms behind it.
ReadKnow your number before you sign.
The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.
Prefer email? Request the analysis by email.