The Section 121 Exclusion
The Section 121 Exclusion
The Section 121 exclusion is the most generous tax benefit for most households. It allows you to exclude up to $500,000 (married filing jointly) or $250,000 (single) of gains from the sale of your primary residence from taxation. This is tax-free, not tax-deferred. Gains below the exclusion are never taxed. There is no equivalent benefit for stocks, bonds, or other assets.
Key takeaways
- §121 excludes gains on primary-residence sales: $500,000 (married), $250,000 (single).
- The exclusion is available once every two years for the same property, and only if you owned and lived in the home for at least 2 of the last 5 years.
- For a married couple buying a home at $500,000 and selling it 20 years later at $1.5 million, the $1 million gain is entirely tax-free.
- The exclusion is inflation-adjusted but has remained at current levels since 1997 (when it was last increased from $125,000 single / $250,000 married).
- Capital gains tax rates on amounts exceeding the exclusion are 0%, 15%, or 20% (federal) depending on income, plus state taxes.
Availability and eligibility
The §121 exclusion requires two tests:
Ownership test: You must have owned the home for at least 2 of the last 5 years. The 2 years do not need to be consecutive.
Use test: You must have lived in the home as your principal residence for at least 2 of the last 5 years. Again, not consecutive.
Both tests must be satisfied in the same 5-year period. If you owned the home for 3 years and lived in it for 2, you meet both tests. If you owned it for 4 years but lived in it for only 1.5 years, you fail.
The exclusion is available once every two years. If you sold a home in 2022 and bought a new primary residence, you could not use the exclusion again until 2024 (two years later). This prevents abuse, though the IRS allows an exception for changed circumstances (job loss, death, divorce).
The $500,000 married exclusion is the largest tax break
For a married couple, the $500,000 exclusion is extraordinarily valuable. Compare:
Scenario 1: Primary residence purchase and sale
- Buy a home in 2004 for $500,000.
- Live in it for 20 years.
- Sell in 2024 for $2 million.
- Realized gain: $1.5 million.
- §121 exclusion: $500,000.
- Taxable gain: $1 million.
- Federal capital-gains tax (20% long-term rate): $200,000.
- State tax (varies; assume 5%): $50,000.
- Total tax: $250,000.
- After-tax proceeds: $2,000,000 – $250,000 = $1.75 million.
This is extraordinary. A $1.5 million gain incurs only $250,000 in tax—a 16.67% effective rate, far below ordinary income rates (up to 37% federal).
Scenario 2: Stock portfolio with same gain
- Buy $500,000 of VTI (Vanguard Total Stock Market ETF) in 2004.
- Hold 20 years.
- Sell in 2024 at $2 million.
- Realized gain: $1.5 million.
- No exclusion available.
- Federal capital-gains tax (20% long-term rate): $300,000.
- State tax (assume 5%): $75,000.
- Total tax: $375,000.
- After-tax proceeds: $2,000,000 – $375,000 = $1.625 million.
The difference: $1.75M (home) versus $1.625M (stocks) = $125,000 in additional after-tax proceeds from the home, purely due to §121.
Why §121 matters so much
For most households, the primary residence is the single largest asset. A $1 million home purchase is common in many US markets. A $1 million stock portfolio is not. This asymmetry makes §121 the largest tax break available to the median household.
The exclusion was originally $125,000 (single) / $250,000 (married) when it was introduced in 1997. It was increased to current levels in 1997 and has not been adjusted since, despite 27 years of inflation. If it were indexed for inflation, it would be roughly $220,000 (single) / $440,000 (married) in 2024 dollars. This hasn't happened, which means the exclusion has quietly eroded in real terms.
Still, for households in moderate real-estate markets, the current exclusion is sufficient. In high-cost areas (California, Massachusetts, New York), the exclusion is often insufficient to cover all gains.
Example: A San Francisco couple buys a condo in 2004 for $800,000. In 2024, it's worth $3 million. Gain: $2.2 million. §121 exclusion: $500,000. Taxable gain: $1.7 million. Federal tax at 20%: $340,000. State tax at 13.3% (California): $226,100. Total: $566,100.
This is still a lower rate than ordinary income (39.3% combined federal-state), but it's substantial.
Frequency: once every two years
The exclusion is available once every two years. This prevents gaming, but it also means that frequent movers cannot use the exclusion repeatedly on the same property.
However, if you own multiple properties, the rule is per-property, per-use. You can use §121 on a Florida home you sell in 2023, and on a California home you sell in 2024 (different properties = separate applications).
Sophisticated investors sometimes buy rental properties, live in them for 2+ years to establish primary-residence status, then sell tax-free (or nearly tax-free if gains are under the exclusion). After selling, they move to another property and repeat. This strategy is legal and is particularly common among real-estate investors in high-appreciation markets.
The "widows and widowers" exception
A surviving spouse can claim the $500,000 exclusion for 2 years after the death of their spouse, even if filing single. This is significant because it extends the benefit to those who lose their spouse.
Similarly, the IRS allows exceptions to the once-every-two-years rule for changes in circumstances: death, divorce, or a significant change in financial or health circumstances. This provides relief for those forced to sell unexpectedly.
Changes in circumstances and the 2-year rule exception
The Tax Cuts and Jobs Act of 2017 did not modify §121, but the IRS has guidance on when the exclusion can be used more frequently due to changed circumstances. Examples include:
- Death of a spouse or family member.
- Divorce or separation.
- Loss of employment or job relocation (to a location incompatible with commuting).
- Adverse health conditions.
- Multiple, unforeseen contingencies making the original home unsuitable.
The IRS interprets "changed circumstances" broadly, so it's worth consulting a tax professional if you anticipate a sale within 2 years of a prior claim.
Depreciation recapture does not apply to §121
An important distinction: if you rent out part of your primary residence (like a rental room or ADU), depreciation deductions on that portion are subject to recapture when you sell, even if the overall gain is covered by §121.
But the building depreciation on the purely residential portion is not recaptured under §121 exclusion rules. Only the business-use portion triggers recapture.
This creates a tax planning opportunity: if you can structure a property so that it's clearly separated (separate entrance, separate utilities), you can claim depreciation on the rental portion and still claim §121 on the overall gain, with recapture applying only to the rental fraction.
Real versus deferred gains: §121 is exclusion, not deferral
§121 is a true exclusion. The gain below the threshold is never taxed at any point. This is different from a deferral (like a 1031 exchange), where taxes are postponed but eventually due.
If you sell a $1.5M home and realize a $1M gain, and $500K is excluded under §121, the remaining $500K is subject to capital gains tax. That tax is due in the year of sale. It is not deferred to a future transaction.
This distinction matters for planning. §121 benefits those who stay in homes (accumulate gains) and sell. It doesn't benefit renters or frequent movers (who incur §121 penalties if they fail the 2-of-5 test).
State variations
Most states conform to federal §121 treatment: long-term capital gains on primary residences are taxed the same way in state as in federal tax. However, some states have modified the treatment:
- New Hampshire and Tennessee: No state income tax, so no state capital-gains tax.
- California: Conforming state; capital gains taxed as ordinary income at up to 13.3%, but §121 exclusion applies.
- Washington: No state income tax on capital gains (but 7% capital-gains tax on long-term gains over $250K—enacted 2021).
State variations can affect the after-tax benefit of §121. In high-tax states, state capital-gains tax on the excess gain (above $500K exclusion) can be significant.
Flowchart: §121 exclusion planning and application
Related concepts
Next
The §121 exclusion is available once every two years, and only if you meet the 2-of-5 ownership and use tests. Understanding these tests and planning around them allows you to maximize the benefit when selling a primary residence.