Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Tax Tools / Section 121 plus 1031
Tax Tool Analysis

Section 121 and 1031 Together: How It Works, Who It Fits, and the Catch

exclusion deferral
Short answerIf a home you lived in for at least 2 of the last 5 years is now a rental, Rev. Proc. 2005-14 lets you exclude up to $250,000 of gain ($500,000 for most married couples) under Section 121 and defer the rest, including gain from depreciation, with a 1031 exchange. Cash you take out is taxed only to the extent it exceeds the excluded gain.

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:

  1. Apply Section 121 first. Exclude gain up to $250,000 or $500,000.
  2. Then apply Section 1031 to the gain that remains, including gain from depreciation after May 6, 1997, which Section 121(d)(6) never excludes.
  3. Cash boot is taken into account under 1031(b) only to the extent it exceeds the gain excluded under 121.
  4. 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.

StepAmount
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?
Yes, if the property was your principal residence for at least 2 of the 5 years before the exchange and is held for investment or business use at the time of the exchange. Rev. Proc. 2005-14 sets the rules.
How long can I rent my old home and still use both?
Generally less than 3 years after you move out, so that you still meet the 2 of 5 year use test on the exchange date.
Is depreciation gain excluded under Section 121?
No. Section 121(d)(6) does not exclude gain from depreciation after May 6, 1997. Under Rev. Proc. 2005-14, that gain can be deferred with a 1031 exchange.
Can I take cash out of the exchange?
Yes. Cash boot is taxed only to the extent it exceeds the gain excluded under Section 121. The basis of the replacement property is reduced accordingly.
Can I move into a property I got in a 1031 exchange and later exclude the gain?
Only after holding it at least 5 years from the exchange acquisition (Section 121(d)(10)), and nonqualified use rules can still reduce the exclusion.
Is the 121 plus 1031 combination legit?
Yes. It is laid out in IRS guidance, Rev. Proc. 2005-14, with worked examples. The audit questions are factual, such as residence and rental dates.
How Hans helps: the $5,000 Big Sale Tax Analysis models this path side by side with every other option for your sale and ends with a written recommendation. See the analysis.
Next step

Know 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.

Book a callCall Hans