Tax Planning

Selling Your Home: $250K/$500K Tax Exclusion Guide

By Editorial Team — reviewed for accuracy Published
Last reviewed:

Data Notice: Tax rules cited in this article reflect current law as of April 2026. Real estate and tax regulations vary by state. Confirm details with a tax professional before making decisions based on this information.

Selling Your Home: The $250K/$500K Capital Gains Tax Exclusion

When you sell your primary residence, you can exclude up to $250,000 of capital gains from federal income tax ($500,000 for married couples filing jointly) under IRC Section 121. This exclusion has no age requirement, no reinvestment requirement, and can be used repeatedly — once every two years. For many Americans, it is the single largest tax break they will ever use. Getting the details right, particularly the ownership and use tests, partial exclusion rules, and basis calculation, determines whether you owe zero or tens of thousands in tax.

The Basic Rules

To qualify for the full exclusion, you must meet two tests:

Ownership test: You owned the home for at least 2 of the 5 years preceding the sale.

Use test: You lived in the home as your primary residence for at least 2 of the 5 years preceding the sale.

The 2-year periods do not need to be consecutive. You could live in the home for year 1, rent it out for years 2-3, move back for year 4, and sell in year 5. You would meet both tests.

Filing StatusMaximum ExclusionRequirement
Single$250,000Owned and lived in home 2 of last 5 years
Married Filing Jointly$500,000Both spouses meet the use test; at least one meets the ownership test
Married Filing Separately$250,000 eachEach spouse must independently meet both tests

You cannot use the exclusion if you have already excluded gain on another home sale within the past 2 years.

Source: IRS Topic 701 — Sale of Your Home

Calculating Your Gain

Your taxable gain is the sale price minus your adjusted basis minus selling expenses.

Adjusted basis = Purchase price + Capital improvements - Depreciation claimed

Capital Improvements That Increase Your Basis

Capital improvements (not repairs) permanently increase your home’s basis, reducing your taxable gain:

Qualifies (Capital Improvement)Does Not Qualify (Repair/Maintenance)
Kitchen remodelPainting walls
Bathroom additionFixing a leaky faucet
New roofPatching roof shingles
Central AC installationHVAC filter replacement
Finished basementCarpet cleaning
Swimming poolPool maintenance
New windowsWeatherstripping
Landscaping (permanent)Lawn mowing

Keep records: The IRS can ask for documentation of improvements even years after the work was done. Save receipts, contractor invoices, and building permits. If you cannot prove the improvement, you cannot add it to your basis.

Example calculation:

ItemAmount
Sale price$850,000
Purchase price$400,000
Capital improvements (kitchen, roof, bathroom)$85,000
Selling expenses (agent commissions, closing costs)$51,000
Adjusted basis$485,000 ($400K + $85K)
Gain$314,000 ($850K - $485K - $51K)
Exclusion (MFJ)$314,000 (fully excluded)
Tax owed$0

If this couple were single (or each filing separately), $64,000 of the gain ($314,000 - $250,000) would be taxable at long-term capital gains rates. At a 15% rate, that is approximately $9,600. For current capital gains rates, see Capital Gains Tax Rates 2026.

Source: IRS Publication 523 — Selling Your Home

Partial Exclusion: When You Do Not Meet the Full 2-Year Test

If you sell before meeting the 2-year ownership or use test due to a qualifying reason, you may claim a partial exclusion proportional to the time lived in the home:

Qualifying reasons:

  • Job relocation (new workplace is 50+ miles farther from your home)
  • Health-related move (on advice of a physician)
  • Unforeseen circumstances (divorce, death, natural disaster, multiple births from a single pregnancy, job loss)

Calculation: (Months lived in home / 24 months) x Maximum exclusion

Example: A single homeowner lives in the house for 15 months, then sells due to a job relocation.

Partial exclusion = (15 / 24) x $250,000 = $156,250

Source: IRS Publication 523 — Partial Exclusion

Special Situations

Renting Before Selling

If you converted your primary residence to a rental property, you can still use the exclusion if you meet the 2-of-5-year use test. However, any depreciation claimed during the rental period is subject to recapture at a 25% rate, regardless of the Section 121 exclusion.

Example: You lived in a home for 3 years, rented it for 2 years, and then sold. You meet the 2-of-5 test. If you claimed $20,000 in depreciation during the rental years, that $20,000 is taxed at 25% ($5,000 in tax) even though the overall gain is excluded.

Divorce

  • If the home is transferred to you as part of a divorce settlement, your ex-spouse’s period of ownership counts as yours for the ownership test
  • If you continue to live in the home after divorce, you meet the use test on your own
  • The $250,000 exclusion applies to each single filer; the $500,000 exclusion is only available on a joint return

Death of a Spouse

If your spouse dies and you sell the home within 2 years of the death, you can still use the $500,000 exclusion if you file a joint return for the year of death and meet the other requirements. After the 2-year period, the exclusion drops to $250,000 as a single filer.

Inherited Home

An inherited home does not qualify for the Section 121 exclusion unless you meet the ownership and use tests yourself. However, the stepped-up basis at death often eliminates most or all of the capital gain. See Estate Tax Exemption Planning for step-up basis details.

State Tax Considerations

Most states conform to the federal Section 121 exclusion, but a few impose additional rules:

  • California: Conforms to Section 121 but taxes capital gains at up to 13.3% on any gain exceeding the exclusion
  • New York: Conforms, but NYC transfer taxes (1-2.625%) apply regardless of the exclusion
  • New Jersey: Imposes an estimated tax payment at closing for non-residents and those with gains over the exclusion

Check your state’s conformity before closing.

Key Takeaways

  • The Section 121 exclusion shelters up to $250,000 (single) / $500,000 (MFJ) of capital gains on your primary residence sale — no age or reinvestment requirement
  • You must have owned and lived in the home as your primary residence for at least 2 of the last 5 years
  • Capital improvements (kitchen, roof, additions) increase your basis and reduce taxable gain — keep all receipts
  • A partial exclusion is available if you sell early due to a job move, health issue, or unforeseen circumstance
  • Depreciation recapture applies at 25% if the home was used as a rental, even if the overall gain is excluded

Next Steps


This content is for educational purposes only and does not constitute financial, tax, or legal advice. Consult a licensed tax professional for your specific situation.

Sources

  1. IRS Topic 701 — Sale of Your Home — accessed April 2026
  2. IRS Publication 523 — Selling Your Home — accessed April 2026
  3. IRS — Capital Gains and Losses — accessed April 2026
  4. SSA.gov — Retirement Benefits — accessed April 2026

About This Article

Researched and written by the iAdviser editorial team using official sources. This article is for informational purposes only and does not constitute professional advice.

Last reviewed: · Editorial policy · Report an error