Life Money USA
Primary residence

Home Sale Exclusion: Skip Tax on $250K/$500K of Gain

When you sell your main home, IRC §121 lets you exclude up to $250,000 of gain if you file single and up to $500,000 if you’re married filing jointly — meaning that gain never appears on your tax return at all. To qualify, you must have owned the home and used it as your main home for at least 24 of the last 60 months (the two-year ownership and use tests), and you can’t have used the exclusion on another sale in the prior two years. Gain above your exclusion is taxed at long-term capital-gains rates of 0%, 15%, or 20%, plus a possible 3.8% net investment income tax. The first dollar of decision: figure out your true gain, because home improvements raise your basis and shrink the taxable overflow.

Emily Martinez, CPA, CCIM
Real Estate Tax Editor
Updated May 29, 2026
11 min
2026 verified
Share

The answer first: $250K single, $500K married, and the two tests that unlock it

Maria and David, a married couple filing jointly in Austin, Texas, bought their home in 2014 for $310,000. They’re selling in 2026 for $1,010,000. After $80,000 of documented improvements and roughly $60,000 in selling costs, their gain is about $560,000. Here is the decision that controls their tax bill: because they owned and lived in the home for all 12 years, they exclude the first $500,000 of that gain under IRC §121 and are taxed only on the remaining $60,000 — at long-term capital-gains rates, not ordinary rates. Texas has no state income tax, so their entire state bill on the sale is $0.

That is the whole framework in one paragraph. The home-sale exclusion (the gain you never report) is the single largest tax break most people will ever use. Two tests stand between you and it:

  • Ownership test: you owned the home for at least 24 months out of the 60 months (5 years) ending on the sale date.
  • Use test: you used the home as your main home for at least 24 months out of those same 60 months.

The two 24-month periods don’t have to be continuous and don’t have to line up with each other — they just both have to land inside the same trailing five-year window. Meet both, and the exclusion is yours: $250,000 if you file single, $500,000 if you’re married filing jointly.

How the math actually works: gain, not sale price

The most common and most expensive mistake is thinking the exclusion applies to the sale price. It applies to gain. Gain is what’s left after you subtract your adjusted basis (your tax cost) and your selling costs from the sale price.

  1. Start with the original purchase price — what you paid, including most closing costs you paid at purchase.
  2. Add capital improvements — the new roof, the addition, the kitchen remodel. These raise your basis under IRC §1016. Routine repairs (painting, fixing a leak) do not.
  3. That sum is your adjusted basis.
  4. Subtract adjusted basis and selling costs (agent commission, transfer taxes, title fees) from the sale price. The result is your gain.
  5. Apply the §121 exclusion ($250K / $500K) to the gain. Only the overflow above the exclusion is taxable.

Because improvements raise basis, every $1 of documented improvement is $1 less of potential taxable gain. For a couple sitting right around the $500,000 line, a shoebox of remodel receipts can be the difference between a $0 tax bill and a five-figure one.

Worked example: a $620,000 gain for a MFJ couple in California

Jennifer and Marcus file jointly and live in San Jose, California. They bought in 2012 for $480,000, put in $90,000 of documented improvements over the years, and are selling in 2026 for $1,250,000 with $60,000 in selling costs. Their gain: $1,250,000 − ($480,000 + $90,000) − $60,000 = $620,000.

ItemAmount
Total gain$620,000
§121 exclusion (MFJ)−$500,000
Taxable overflow$120,000
Federal LTCG at 15%$18,000
NIIT at 3.8% (MAGI over $250K MFJ)$4,560
California state tax (~9.3% marginal)$11,160
Total tax on the sale$33,720

The $500,000 they excluded never appears on their return — no LTCG, no NIIT, no California tax on that slice. The tax falls only on the $120,000 overflow. Note the NIIT: because their MAGI tops $250,000 MFJ, the overflow is hit with the extra 3.8% under IRC §1411, pushing the federal rate on that slice to 18.8%. California has no preferential capital-gains rate, so it taxes the overflow as ordinary income (roughly 9.3% at their bracket). Had this been the same sale in Texas, Florida, or Washington, the state line would read $0.

The lever here is the $90,000 of improvements. Without those receipts, the gain would have been $710,000, the overflow $210,000, and the total tax roughly $59,000 — about $25,000 more. Basis documentation is the single highest-ROI hour you’ll spend before closing.

The once-every-two-years rule

You can only claim the §121 exclusion once every two years. Under IRC §121(b)(3), the exclusion is unavailable if you excluded gain from the sale of another main home during the 2-year period ending on the date of the current sale. If you sold a prior home in March 2025 and used the exclusion, you cannot use it again until March 2027. Sell in between, and the entire gain on the second home is taxable — there is no partial credit for the wait (unless you qualify for one of the partial-exclusion reasons below). Serial home-flippers and people relocating frequently get caught here most often.

Partial exclusion: the three escape hatches if you sell early

What if you have to sell before hitting 24 months? IRC §121(c) provides a partial exclusion — not all-or-nothing — if the sale is triggered by one of three categories of reasons:

  • Job change: a new place of work that is at least 50 miles farther from the home than your prior workplace was (or 50+ miles from the home if you had no prior workplace). This is a bright-line, automatic safe harbor.
  • Health: a move to obtain, provide, or facilitate diagnosis, care, or treatment of a disease, illness, or injury — for yourself or a qualifying family member — on a physician’s recommendation.
  • Unforeseen circumstances: events you couldn’t reasonably have anticipated — divorce or legal separation, death, multiple births from one pregnancy, job loss qualifying for unemployment, or a casualty that makes the home unlivable.

The partial exclusion is prorated by the fraction of the 24-month requirement you actually met — measured in days or months, whichever you choose. The formula:

ScenarioMonths metAvailable exclusion (MFJ)
Full qualification24 of 24$500,000
Job move at 18 months18 of 24 (75%)$375,000
Health move at 12 months12 of 24 (50%)$250,000
Unforeseen event at 6 months6 of 24 (25%)$125,000

A single filer would halve each of those figures. The key point: even a 12-month stay for a qualifying reason gives a MFJ couple $250,000 of exclusion — enough to wipe out most gains in that short a window. If you sell early for a reason that isn’t on the list (you simply wanted to move), you get nothing, and the full gain is taxable.

What most people miss: the 1997 thresholds were never indexed for inflation

The $250,000 and $500,000 figures were set by the Taxpayer Relief Act of 1997 — and Congress never indexed them to inflation. They are the same dollar amounts today as they were nearly three decades ago. Over that period, the typical US home price has more than tripled, which means the exclusion that comfortably covered almost every sale in 1997 now leaves a growing share of long-tenured owners in high-cost metros with a taxable overflow.

This is the under-indexed trap. A couple who bought a modest home in San Francisco, Seattle, Boston, or coastal California 25 years ago can easily have a gain well past $500,000 today — not because they’re wealthy, but because the threshold stood still while home values ran. Three implications you should act on:

  • Track basis obsessively if you’ve owned a long time. Every documented improvement directly reduces the overflow that the frozen threshold now exposes. Decades of receipts can shelter six figures of gain.
  • For surviving spouses, timing matters enormously. A widow or widower can claim the full $500,000 MFJ exclusion if they sell within 2 years of the spouse’s death (IRC §121(b)(4)) and were eligible for joint filing. After two years, the exclusion drops to $250,000. There is also a basis step-up at death under IRC §1014 — in community-property states (CA, AZ, ID, LA, NV, NM, TX, WA, WI) the entire home gets a full step-up, often eliminating the gain outright.
  • Don’t assume you’re safe. Run the gain math before you list. The frozen thresholds mean “I’ll obviously be under the limit” is no longer a safe assumption for a long-held home.

The overflow tax: how the $120K above $500K gets taxed

Gain above your exclusion is a long-term capital gain (you’ve held more than a year by definition if you met the 2-year ownership test). For 2026, the federal LTCG brackets for married filing jointly are:

MFJ taxable incomeSingle taxable incomeLTCG rate
$0 – $96,700$0 – $48,3500%
$96,701 – $600,050$48,351 – $533,40015%
$600,051+$533,401+20%

Layer on the 3.8% NIIT (IRC §1411) for the slice of overflow that lands while your MAGI is over $200,000 single / $250,000 MFJ. So the realistic combined federal rate on the taxable overflow runs from 0% (if you’re in the bottom LTCG band and under the NIIT thresholds) up to 23.8% (20% LTCG + 3.8% NIIT) at the top. Remember the overflow itself stacks on top of your other income, so a large overflow can push the top dollars from the 15% into the 20% band — another reason to time the sale and harvest losses in the same year if you can.

Special situations to flag before you sell

  • Former rental / business use. If you rented the home or claimed depreciation after May 6, 1997, that depreciation is not excludable — it’s “unrecaptured §1250 gain” taxed at up to 25%, separate from the §121 exclusion. The exclusion shelters the appreciation, never the recapture.
  • Nonqualified use. Time the home was used for something other than your main home after 2008 (a vacation home, a rental) can reduce the excludable fraction under IRC §121(b)(5). Periods of absence after you last used it as a main home generally don’t count against you.
  • Divorce. A spouse who keeps the home under a divorce decree can tack on the other spouse’s ownership and use periods (IRC §121(d)(3)), and a transfer of the home incident to divorce is tax-free under IRC §1041.
  • Surviving spouse. As noted, sell within 2 years of a spouse’s death to keep the $500,000 cap, and check the basis step-up under IRC §1014 first — it may erase the gain before §121 is even needed.

Your decision lever

Before you list, do three things in order. First, compute your true gain — sale price minus adjusted basis (purchase price plus every documented capital improvement) minus selling costs. Second, confirm both 24-month tests are met inside the trailing five years, and that you haven’t used §121 in the prior two years. Third, if a gain overflow exists, pull every improvement receipt you can find — each dollar of basis is a dollar pulled out of the taxable slice, and for a couple near the frozen $500,000 line that’s where the real money is decided. If you’re selling early, check whether a 50-mile job move, a health reason, or an unforeseen event unlocks a prorated exclusion before you assume the whole gain is taxable. The exclusion is the gain you simply never report; basis is your tax cost. Get both numbers right and you control the bill.

Join the 2026 tax newsletter

Decision checklists + key 2026 federal/state numbers. Free, one click.

Found this useful? Share it.
Share

Frequently asked

Under IRC §121, you exclude up to $250,000 of gain if you file single and up to $500,000 if married filing jointly. The exclusion applies to gain (sale price minus your adjusted basis), not the sale price. A MFJ couple with a $480,000 gain owes $0 federal tax on the sale because the full gain fits under the $500,000 cap.

You must have owned the home for at least 24 months and used it as your main home for at least 24 months during the 5 years (60 months) ending on the sale date. The two periods don't have to be continuous or overlap. For MFJ, only one spouse needs to meet the ownership test, but both must meet the use test to claim the full $500,000 (IRC §121(b)(2)).

Once every two years. IRC §121(b)(3) bars the exclusion if you already excluded gain from another main-home sale during the 2-year period ending on the date of this sale. If you sold a prior home and claimed §121 14 months ago, you must wait until the 24-month mark before the exclusion is available again on a new sale.

Yes. Gain above your $250,000 or $500,000 exclusion is a long-term capital gain taxed at 0%, 15%, or 20% depending on your taxable income, plus a possible 3.8% NIIT (IRC §1411) if your MAGI tops $200,000 single / $250,000 MFJ. A MFJ couple with a $620,000 gain excludes $500,000 and is taxed on the remaining $120,000.

Yes. If you sell before meeting the 2-year tests because of a job change (a new workplace 50+ miles farther from the home than your old one), a health reason, or an unforeseen circumstance, IRC §121(c) prorates the exclusion. Living there 12 of 24 months gives you 12/24 × $500,000 = $250,000 of exclusion for a MFJ couple.

Yes. Capital improvements (a new roof, addition, kitchen remodel) add to your adjusted basis under IRC §1016, which lowers your gain dollar for dollar. $80,000 of documented improvements cuts a $620,000 gain to $540,000 — turning a $120,000 taxable overflow into $40,000. Keep receipts; routine repairs don't count.

Only the taxable gain above your §121 exclusion can be subject to the 3.8% net investment income tax (IRC §1411), and only if your MAGI exceeds $200,000 single / $250,000 MFJ. Excluded gain is never net investment income. A MFJ couple taxed on $120,000 of overflow at 15% LTCG plus 3.8% NIIT faces a combined 18.8% on that slice.

Free newsletter

Join the Life Money USA newsletter

Decision checklists, 2026 federal + state numbers, and our glossary. One click, free.

Join the newsletter