The single most valuable line in the federal tax code for a homeowner is fixed at two numbers that haven’t moved in 28 years: $250,000 and $500,000. Under Internal Revenue Code Section 121, a single filer excludes up to $250,000 of gain on the sale of a principal residence, and a married couple filing jointly excludes up to $500,000 — limits enacted by the Taxpayer Relief Act of 1997 and never indexed for inflation since.
That last clause is where the analysis lives. A $500,000 ceiling set in 1997 buys far less shelter against a 2026 sale price, and for households in the $150k+ income band — precisely the buyers who purchased in expensive metros a decade or two ago — the gain on a long-held primary residence now routinely clears the cap. The question is no longer whether the exclusion applies. It’s what the tax looks like on every dollar above it.
Scope: this analysis covers federal capital gains treatment of a U.S. principal-residence sale under IRC Section 121, applying 2026 long-term capital gains brackets (IRS Revenue Procedure 2025-32), the 3.8% net investment income tax, and — for the state layer — California’s top ordinary-income rate as the high-water-mark example. Figures assume the seller meets the two-of-five-year ownership and use tests and reports gain as long-term. State treatment varies; California is used to bound the maximum. This is data analysis, not tax advice — depreciation history, partial-exclusion safe harbors, and basis adjustments are fact-specific and shift the result.
The numbers that matter
| Figure | Amount |
|---|---|
| Section 121 exclusion — single filer | $250,000 |
| Section 121 exclusion — married filing jointly | $500,000 |
| LTCG rate on gain above exclusion (high earners) | 20% |
| NIIT on non-excluded gain (MAGI over threshold) | 3.8% |
| Max federal rate on taxable home-sale gain | 23.8% |
Source: IRC Section 121; IRS Revenue Procedure 2025-32 (2026 LTCG thresholds); IRC §1411 (NIIT). Figures current as of the 2026 tax year.
How the exclusion actually works on a real gain
Start with the mechanics, because the exclusion applies to gain, not sale price — a distinction that trips up sellers who fixate on the headline number. Gain equals the amount realized (sale price minus selling costs) less your cost basis, which is purchase price plus qualifying improvements. The exclusion then carves $250,000 or $500,000 off that gain. Only the remainder is taxable.
Consider a married couple who bought in 2006 for $400,000, put $100,000 into improvements over the years, and sell in 2026 for $1.4 million net of costs. Cost basis is $500,000. Gain is $900,000. After the $500,000 exclusion, $400,000 is taxable.
Here is the part most coverage gets wrong by omission: that $400,000 of taxable gain is long-term capital gain, and at this couple’s income it lands in the 20% federal bracket. For 2026, the 20% rate applies to married filers with taxable income above $613,700 (Rev. Proc. 2025-32) — and a $400,000 gain stacked on a $150k+ base income clears that line with room to spare. On top of the 20% sits the 3.8% NIIT, because the non-excluded gain is investment income and the household’s modified AGI is well above the $250,000 MFJ threshold. The excluded $500,000 escapes NIIT entirely; only the $400,000 above the cap is exposed.
| Line item | Amount |
|---|---|
| Net sale price | $1,400,000 |
| Cost basis (purchase + improvements) | $500,000 |
| Total gain | $900,000 |
| Section 121 exclusion (MFJ) | −$500,000 |
| Taxable gain | $400,000 |
| Federal LTCG at 20% | $80,000 |
| NIIT at 3.8% | $15,200 |
| Total federal tax | $95,200 |
Source: IRC Section 121; IRS Revenue Procedure 2025-32; IRC §1411. Assumes long-term holding, full exclusion eligibility, MFJ taxable income above the 20% LTCG threshold, and MAGI above the NIIT threshold.
The state layer changes everything
Federal tax of $95,200 on a $400,000 taxable gain is the floor. The state can nearly double it. California — the relevant ceiling case for high earners, and one reason the highest state capital gains rate draws so much attention — does not recognize a Section 121 equivalent at a preferential rate. The state taxes the full taxable gain as ordinary income, at brackets reaching 13.3% (including the 1% Mental Health Services Tax on income over $1 million), per the California Franchise Tax Board.
California does follow the federal exclusion itself — the $500,000 carve-out reduces the gain California sees. But the $400,000 that remains taxable federally is also taxable in California, and there it gets no long-term discount. The state’s lack of short-term versus long-term rate distinction means a 30-year hold and a 30-day flip face identical state treatment. For a household already in California’s top bracket, layer 13.3% onto the $400,000: another $53,200.
| Tax component | Rate | Tax on $400,000 |
|---|---|---|
| Federal LTCG | 20% | $80,000 |
| NIIT | 3.8% | $15,200 |
| California (ordinary income, top) | 13.3% | $53,200 |
| Combined | 37.1% | $148,400 |
Source: IRS Revenue Procedure 2025-32; IRC §1411; California Franchise Tax Board (top marginal rate incl. 1% Mental Health Services Tax). Combined rate assumes top California bracket and federal MAGI above NIIT threshold.
A resident of Florida, Texas, or any of the nine states without a capital gains tax on this gain stops at the $95,200 federal figure. The $53,200 California delta on a single home sale is not a rounding error — it exceeds the median U.S. household’s annual income. Where you sell matters as much as what you sell, a gap mapped in detail across the state-by-state capital gains comparison.
Finluxy After-Tax Gain Rate
Headline gain figures flatter the seller. The Finluxy After-Tax Gain Rate strips out the tax to show what the homeowner keeps relative to original cost basis — net gain after all applicable taxes divided by cost basis, expressed as a percentage, set against the pre-tax gain rate to expose the haircut.
Take the same couple: $500,000 cost basis, $900,000 total gain. Pre-tax, that gain is 180% of cost basis. But the exclusion shelters $500,000, so the tax applies only to the $400,000 above the cap. Net of tax, the couple keeps the full $500,000 exclusion plus the after-tax remainder of the taxable slice.
| Measure | No state tax (e.g., FL/TX) | California (top bracket) |
|---|---|---|
| Total gain | $900,000 | $900,000 |
| Tax on taxable $400,000 | $95,200 | $148,400 |
| Net gain after tax | $804,800 | $751,600 |
| Pre-tax gain rate (gain ÷ cost basis) | 180.0% | 180.0% |
| Finluxy After-Tax Gain Rate | 161.0% | 150.3% |
| Tax haircut | 19.0 pts | 29.7 pts |
Source: Finluxy calculation applying IRS Revenue Procedure 2025-32, IRC §1411, and California Franchise Tax Board top rate. After-tax rate = net gain after tax ÷ cost basis × 100. Haircut = pre-tax gain rate − Finluxy After-Tax Gain Rate.
The haircut is modest precisely because the exclusion does most of the work. Without Section 121, all $900,000 would be taxable, and the California haircut would balloon. The exclusion’s value, in other words, isn’t the $500,000 it shelters — it’s that it shelters the gain at the household’s highest marginal capital gains rate, which is exactly where shelter is worth the most.
The depreciation trap most sellers don’t price in
One scenario breaks the clean math above: prior rental use. If the home was ever rented and depreciation was claimed — or could have been claimed — that depreciation is recaptured on sale and taxed separately. Under IRC §1250, unrecaptured depreciation is taxed at a maximum 25% federal rate, and critically, the Section 121 exclusion does not cover it. Neither does the exclusion shield it from the rest of the calculation.
A seller who rented the property for several years, claimed $80,000 in depreciation, then moved back in to re-establish primary residence might assume the full $500,000 exclusion wipes out their gain. It doesn’t touch the $80,000 of recapture, which gets taxed at up to 25% regardless — $20,000 of federal tax that materializes even when the headline gain sits comfortably under the cap. This is the gap between a clean primary-residence sale and a mixed-use one, and it interacts with the broader holding period tax cost in ways that reward planning before the rental conversion, not after.
Partial exclusion: the safe harbors
Sellers who fail the two-of-five-year test aren’t automatically shut out. Treasury regulations provide reduced-exclusion safe harbors for sales driven by a change in employment, health, or unforeseen circumstances. The partial exclusion prorates the $250,000 / $500,000 cap by the fraction of the 24-month requirement actually satisfied.
Sell after 12 months of qualifying use under a safe harbor, and a married couple’s available exclusion is roughly half — about $250,000 rather than $500,000. That’s still substantial, but it changes the taxable-gain math materially, and the documentation burden to claim a safe harbor is real. For a household timing a sale around a job relocation, the difference between selling at month 23 and month 25 can be six figures of exclusion capacity.
Methodology
Figures were synthesized from primary federal sources first. The $250,000 / $500,000 exclusion limits and the ownership-and-use tests come directly from IRC Section 121 and the Taxpayer Relief Act of 1997, confirmed as not inflation-indexed. The 2026 long-term capital gains brackets (0%, 15%, 20%) and their income thresholds were drawn from IRS Revenue Procedure 2025-32: the 20% rate applies above $545,500 single / $613,700 MFJ. The 3.8% net investment income tax thresholds ($200,000 single / $250,000 MFJ, not inflation-indexed) come from IRC §1411, and the maximum 25% depreciation-recapture rate from IRC §1250. State figures use the California Franchise Tax Board’s top ordinary-income rate of 13.3% (including the 1% Mental Health Services Tax over $1 million) as the high-end bound, consistent with Tax Foundation state rate tables. I verified each threshold against current-year IRS guidance rather than relying on prior-year figures, because the LTCG brackets shift annually and the 2026 numbers differ from 2025. All after-tax and Finluxy After-Tax Gain Rate calculations apply the marginal framework — taxable gain times applicable rate, summed across federal LTCG, NIIT, and state — to a consistent example so the components are individually traceable. Secondary tax-guide sources were used only to corroborate primary figures, never as sole citation.
What this means for a $150k+ household
At this income level, the exclusion is rarely the whole story — it’s the deductible before the real tax begins. A two-earner household above $150k that bought in a coastal metro a decade ago is the prototypical seller who clears the $500,000 cap, lands in the 20% LTCG bracket, and triggers NIIT on the overage. The practical levers are fewer than the marketing suggests. Basis is the cleanest one: every documented improvement raises cost basis dollar-for-dollar and shrinks the taxable gain, which is why a disciplined improvement log over years of ownership is worth more at sale than most owners realize. Filing status matters at the margin — the $500,000 joint exclusion versus $250,000 single is the rare case where being married filing jointly is unambiguously worth a quarter-million in shelter, relevant for unmarried co-owners weighing timing. And location of residence at sale, not just location of the property, drives the state layer; the same gain that costs nothing in state tax in Florida costs $53,200 in California’s top bracket.
The threshold worth internalizing: the exclusion shelters gain at your highest rate, so its real value scales with your bracket. For a household that will pay 20% federal plus 3.8% NIIT plus a state rate, every dollar of exclusion is worth up to 37 cents kept. That makes the boring work — basis tracking, holding-period discipline, sale-year income management to control which LTCG bracket the gain lands in, and pairing a large gain year with tax-loss harvesting — more lucrative at $150k+ than any single clever maneuver. Where depreciation recapture or a partial-exclusion safe harbor is in play, the interaction with a tax professional pays for itself, because those are the two places the clean exclusion math quietly breaks.
Does the $500,000 exclusion adjust for inflation?
No. The $250,000 single and $500,000 MFJ limits were set by the Taxpayer Relief Act of 1997 and have never been indexed for inflation. In real terms, the shelter has eroded substantially since enactment, which is why long-held homes in appreciated markets increasingly produce taxable gain above the cap.
Is gain above the exclusion subject to NIIT?
Yes, for high earners. The excluded portion ($250,000 / $500,000) is not subject to the 3.8% net investment income tax, but any taxable gain above the cap is investment income and faces NIIT when modified AGI exceeds $200,000 single / $250,000 MFJ. The interaction is detailed in the analysis of when the 3.8% NIIT applies.
How often can the exclusion be claimed?
Generally once every two years. You must not have used the exclusion on another home sale within the two years preceding the current sale, in addition to meeting the two-of-five-year ownership and use tests.
Does prior rental use reduce the exclusion?
It can, in two ways. Depreciation claimed during rental use is recaptured and taxed at up to 25% under IRC §1250, outside the exclusion entirely. Separately, periods of non-qualified use can reduce the portion of gain eligible for exclusion. A home rented briefly within the five-year window can still qualify for the full exclusion if the ownership and use tests are met, but the recapture always survives.
Sources & References
- IRS Topic No. 701 — Sale of Your Home, Section 121 exclusion rules
- Tax Foundation — 2026 federal brackets and LTCG rates (Rev. Proc. 2025-32)
- Kiplinger — 2026 capital gains thresholds from IRS Revenue Procedure 2025-32
- Cornell LII — IRC §1411, net investment income tax thresholds
- SmartAsset — capital gains tax rates by state, California top rate
Analysis by