Home Sale Capital Gains in 2026: the $250K/$500K Exclusion, Ownership Tests & How to Qualify

Under IRC Section 121, you can exclude up to $250,000 of profit when you sell your main home — $500,000 for a qualifying married couple filing jointly. To get the full exclusion, you must have owned and lived in the home for at least two of the five years before the sale.

Key facts

  • The exclusion applies to gain, not the sale price: $250,000 single / $500,000 for a qualifying married joint return.
  • You must meet 2-of-5-year ownership AND use tests; the 24 months need not be consecutive.
  • Frequency test: you cannot have claimed the exclusion on another home sold within the prior two years.
  • For the full $500,000, either spouse must meet the ownership test, but both spouses must meet the use test.
  • Gains above the exclusion may also face the 3.8% Net Investment Income Tax when MAGI exceeds $200,000 single / $250,000 joint — thresholds unchanged since 2013.

The $250K/$500K Rule, Simply Stated

Section 121 of the Internal Revenue Code is the most valuable tax break most homeowners will ever use. Sell your principal residence at a profit, and up to $250,000 of that profit ($500,000 on a qualifying joint return) is excluded from gross income — no age requirement, no income limit, no requirement to buy another home. Three conditions apply: the two-year ownership test, the two-year use test, and the frequency test — no excluded gain on another home sold within the prior two years. The critical distinction: the caps apply to gain (profit), not the sale price. A $900,000 sale with a $700,000 basis produces a $200,000 gain — fully excludable for a single filer.

Test 1: The Ownership Test

You must have owned the home for at least two years (24 months) during the five-year window ending on the sale date — the closing date, when title passes. The months need not be consecutive, and ownership and use periods need not overlap. Approaching the deadline? Count actual days and leave a buffer for closing delays.

Test 2: The Use Test

Separately, you must have used the property as your principal residence for at least 24 months (730 days) within the same five-year window — not necessarily continuous. It is a facts-and-circumstances test: voting registration, mail, and where you spend most nights all matter. Short absences do not break residence, but long pure-rental stretches do not count — and post-2008 rental periods can trigger the nonqualified use allocation below.

How Your Taxable Gain Is Actually Calculated

Taxable gain = amount realized (sale price minus selling costs) minus adjusted basis: generally what you paid, plus capital improvements (a new roof, an addition, a remodeled kitchen — keep every receipt), minus depreciation claimed for business or rental use. Example: bought for $320,000, added a $45,000 kitchen remodel, paid $22,000 in selling costs on a $520,000 sale. Amount realized: $498,000. Adjusted basis: $365,000. Gain: $133,000 — within the $250,000 exclusion, so no federal capital gains tax is due. Improvements are the lever most sellers underuse: every documented dollar is a dollar of gain erased. For how the result fits your overall picture, see our 2026 federal tax bracket guide.

Selling Early? The Partial Exclusion

If you sell before meeting the full tests because of a qualifying work-related move, health reasons, or other unforeseen circumstances (divorce, job loss, natural disaster), you may claim a reduced, pro-rata exclusion: divide qualifying months by 24, then multiply by the full exclusion. Twelve qualifying months before a forced job transfer yields half — $125,000 single / $250,000 joint. The IRS provides safe harbors for common situations, but the reason for the early sale must be genuinely beyond your control. Document it carefully.

When Gain Exceeds the Exclusion

Gains above the exclusion are taxed as capital gains — and they stack on top of your ordinary income, which can push part of the gain into a higher rate tier. High-income sellers also face the 3.8% Net Investment Income Tax when MAGI exceeds $200,000 (single) or $250,000 (joint). If you receive Form 1099-S from the closing, report the sale and claim the exclusion on your return. And if the resulting bill exceeds what you can pay at once, the IRS offers installment payment plans — interest still accrues, but it beats ignoring the balance.

The $500K Playbook for Couples

For the full $500,000, three conditions must all hold: either spouse meets the ownership test, both spouses meet the use test, and neither spouse is disqualified by the frequency rule. Two traps deserve attention. Depreciation recapture: depreciation claimed (or claimable) for a home office or rental is generally taxable and cannot be excluded. Nonqualified use: gain from post-2008 rental periods is allocated pro-rata — (nonqualified days ÷ total ownership days) × total gain — and that slice is not excludable. Time after you last used the home as your principal residence generally does not count, so selling reasonably soon after moving out usually preserves the full exclusion.

Want home-sale tax rules explained on video? Subscribe to Problem Solved on YouTube — new explainers every week.

Who Benefits From This — and Who Does Not

This section shows who the $250,000/$500,000 exclusion helps — and who it leaves out — because the caps apply to gain (profit), not the sale price, and three tests decide everything.

Who benefits:

  • Single filers and couples who meet the two-year tests: Sell a principal residence at a profit, and up to $250,000 of gain ($500,000 on a qualifying joint return) is excluded — no age requirement, no income limit, no requirement to buy another home. How to use it: count actual days for the 24-month ownership and use periods within the five years before the sale, leaving a buffer for closing delays.
  • Sellers forced to move early: A qualifying work move, health reason, or unforeseen circumstance may allow a reduced, pro-rata exclusion — 12 qualifying months yields half ($125,000 single / $250,000 joint). How to use it: check whether your reason qualifies before assuming the full exclusion is lost.
  • Couples planning around the $500,000 tier: On a joint return, either spouse meeting the ownership test and both meeting the use test can unlock the higher cap. How to use it: verify both tests for each spouse, and remember neither may have used the exclusion on another sale in the prior two years.

Who does not benefit:

  • Sellers of non-principal residences: Rental property, second homes and flips do not meet the principal-residence requirement, so the exclusion does not apply to them at all.
  • Anyone confusing price with gain: A $900,000 sale with a $700,000 basis produces a $200,000 gain — fully excludable for a single filer — but a gain above the cap leaves the excess taxable, and the 3.8% Net Investment Income Tax may also apply if MAGI exceeds $200,000 single / $250,000 joint.
  • Repeat sellers inside two years: The frequency test bars another excluded gain on a home sold within the prior two years, so back-to-back excluded sales are not available.

Related reading: the 2026 federal tax brackets.

Frequently Asked Questions

Do I qualify for the $250,000 or the $500,000 exclusion?

Up to $250,000 single; up to $500,000 joint when either spouse meets the ownership test, both meet the use test, and neither used the exclusion on another sale in the prior two years.

Do the two years of ownership and use have to be consecutive?

No — each period must total 24 months within the five years before the sale, but months need not be continuous and the periods need not overlap.

What if I have to sell before two years?

A qualifying work move, health reason, or unforeseen circumstance may allow a reduced, pro-rata exclusion — 12 qualifying months yields half ($125,000 single / $250,000 joint).

Does the exclusion apply to the sale price or the profit?

The profit only: amount realized (sale price minus selling costs) minus adjusted basis (purchase price plus improvements, minus depreciation). Mortgage payoff and down payment are not part of the formula.

Will I owe the 3.8% Net Investment Income Tax on my home sale gain?

Possibly, if MAGI exceeds $200,000 single / $250,000 joint. The 3.8% surtax applies to the lesser of net investment income or the MAGI excess — thresholds unchanged since 2013.

Who benefits most from the home sale exclusion, who does not, and how do I start?

Single filers and couples meeting the two-year ownership and use tests, sellers forced to move early for a qualifying reason, and couples planning for the $500,000 tier benefit most — start by counting your 24 months of ownership and use within the five years before the sale. It does not cover non-principal residences, it applies to gain rather than sale price, and the frequency test bars another excluded sale within two years.

Disclaimer: This article is for general information only and is not legal, tax, or financial advice. Tax rules change; consult a qualified tax professional about your situation before selling.

Watch on YouTube

Problem Solved on YouTube