1031 Exchange vs. Section 121 Capital Gains Exclusion
10 min · Compare Options · Last updated
Key Takeaways
Section 121 excludes up to $250K ($500K married) of gain on your primary residence - tax-free, no reinvestment required. Section 1031 defers unlimited gains on investment property but requires reinvestment in real estate. Different properties, different rules. In some cases, you can use both on the same property.
How each provision works
Section 121 (Primary Residence Exclusion):
- Excludes up to $250,000 of gain ($500,000 married filing jointly) from income
- Must have owned and used the property as your primary residence for at least 2 of the past 5 years
- Can be used once every 2 years
- No reinvestment requirement - take the cash
- Tax is excluded permanently, not just deferred
Section 1031 (Like-Kind Exchange):
- Defers unlimited capital gains on investment/business real property
- Must reinvest in like-kind real property within strict deadlines
- Can be used unlimited times
- Tax is deferred, not excluded (though estate planning can make it permanent)
- Requires a qualified intermediary and extensive documentation
Key differences
| Factor | Section 121 | Section 1031 |
|---|---|---|
| Property type | Primary residence | Investment/business property |
| Max benefit | $250K/$500K exclusion | Unlimited deferral |
| Reinvestment required | No | Yes (like-kind real property) |
| Holding requirement | 2 of past 5 years as primary residence | Held for investment (no minimum specified) |
| Frequency | Once every 2 years | Unlimited |
| Tax treatment | Permanent exclusion | Deferral (potentially permanent via stepped-up basis) |
| Depreciation recapture | Generally not applicable (personal residence isn't depreciated) | Deferred entirely |
| Complexity | Low (claim on tax return) | High (QI, deadlines, documentation) |
Using both on the same property
When a property has served as both your primary residence and a rental, you may be able to use both provisions. The most common scenarios:
Scenario 1: Lived in it, then rented it. You lived in a house for 8 years, then rented it for 3 years. You've met the 2-of-5-year test for Section 121 (you lived there for 2 of the past 5 years, even though you've been renting it for 3 - wait, that means 3 rental years takes you past the 5-year window). Timing matters here. If you're within the 5-year window, you can potentially exclude gain up to the 121 limit and 1031 exchange the remainder.
The gain must be allocated between "qualified use" periods (personal residence) and "non-qualified use" periods (rental, vacancy). The gain allocated to non-qualified use doesn't qualify for the 121 exclusion but may be deferred through 1031.
Scenario 2: Rented it, then lived in it. You rented a property for 5 years, moved in, and lived there for 3 years. You can potentially exclude up to $250K/$500K of gain under Section 121. However, post-2008 rules require the gain to be allocated, and the rental period creates non-qualified use that reduces the 121 exclusion.
Important limitations: The 2004 American Jobs Creation Act added restrictions on using Section 121 for property acquired through a 1031 exchange. A home acquired in a like-kind exchange is subject to a mandatory 5-year ownership rule before the Section 121 exclusion can apply, and mixed-use allocations between qualified and non-qualified use are nuanced. Gain attributed to non-qualified use (rental periods) may not be excludable. These rules make the combined strategy more complex than it initially appears - consult your CPA before relying on both provisions.
Converting investment to personal (or vice versa)
Investment → Personal: You can 1031 exchange into a property, hold it as a rental for the required period, then convert it to your primary residence. After meeting the 5-year ownership requirement and the 2-of-5 use test, a portion of future gain may qualify for Section 121.
Personal → Investment: Move out of your primary home, convert it to a rental, hold it as investment property for a reasonable period (2+ years recommended), and then 1031 exchange it. You forfeit the Section 121 exclusion on this sale but defer the full gain through 1031. This makes sense when the gain exceeds the 121 exclusion limits.
Example: Your home has appreciated $800,000. The 121 exclusion covers $500,000 (married filing jointly). The remaining $300,000 gain would be taxable. If you convert to a rental and 1031 exchange, you can defer the full $800,000 gain. Whether this is better depends on your timeline, the conversion period required, and your estate planning goals.
Which should you plan around?
Use Section 121 when:
- Your gain is under $250K/$500K
- You want the cash with no reinvestment obligation
- You want permanent exclusion, not deferral
- The property has been your primary residence for 2+ of the past 5 years
Use Section 1031 when:
- Your gain exceeds the 121 limits
- The property is investment/business use
- You want to continue building a real estate portfolio
- Estate planning (stepped-up basis) is part of your strategy
Consider both when:
- A property has mixed use (both personal residence and rental history)
- Your gain significantly exceeds the 121 limit and you're willing to convert and hold
The Bottom Line
Section 121 is simpler and provides a permanent exclusion - but it's limited to your primary residence and capped at $250K/$500K. Section 1031 is more powerful for investment property with unlimited deferral potential, especially when combined with estate planning. For properties with mixed use, both provisions may apply, but the allocation rules and timing requirements are complex enough to require CPA guidance.
Frequently Asked Questions
Related Articles
How Much Does a 1031 Exchange Cost?
A 1031 exchange involves three cost categories: the exchange-specific costs (QI fees, legal review), the normal transaction costs of selling and buying property, and opportunity costs that are harder to quantify.
1031 Exchange vs. Installment Sale: A Detailed Comparison
**1031 Exchange:** Sell your investment property. Have a qualified intermediary hold the proceeds. Identify replacement property within 45 days. Close within 180 days. Defer all capital gains taxes. Continue owning real estate.
DST vs. NNN Lease: Two Paths to Passive Income
You purchase a property leased to a single tenant under a triple-net lease. The tenant pays base rent plus all operating expenses: property taxes, insurance, and maintenance. You collect rent and have virtually no landlord responsibilities.