Selling Your Home: The $250K/$500K Tax Exclusion — and Where to Invest the Proceeds

ShareXLinkedInRedditFacebookWhatsApp

September 5, 2026 · BriMindInvest Research Team · 15 min read · Tax Strategy

After a decade of home price appreciation, a growing number of long-time homeowners are discovering that their gain exceeds the exclusion cap that was set back in 1997 — and never adjusted for inflation since. Here's exactly how the exclusion works, who qualifies, and what happens once you're over it.

Section 121 Exclusion at a Glance

Single Filer Exclusion
$250,000
Of gain, not sale price
Married Filing Jointly
$500,000
Both spouses must meet use test
Ownership Test
2 of last 5 years
Not necessarily consecutive
Use Test
2 of last 5 years
As primary residence
How Often
Once every 2 years
Can be reused indefinitely
Inflation-Adjusted?
No
Caps set in 1997, unchanged since
Gain Above Cap
Taxed as LTCG
0/15/20% + possible NIIT
Rental/2nd Home
Not eligible
Primary residence only

How the Exclusion Works

Under Internal Revenue Code Section 121, when you sell your primary residence, you can exclude up to $250,000 of gain from capital gains tax if you're single, or $500,000 if you're married filing jointly. This isn't a deduction from the sale price — it's an exclusion of the actual profit (sale price minus your adjusted cost basis, which includes the purchase price plus qualifying capital improvements minus any depreciation claimed).

To qualify, you must pass two tests during the 5-year period ending on the date of sale:

  • Ownership test — you owned the home for at least 2 years (24 months) total
  • Use test — you lived in the home as your primary residence for at least 2 years (24 months) total
  • For married couples claiming the full $500,000: both spouses must meet the use test, though only one needs to meet the ownership test, and neither spouse can have used the exclusion on a different home sale in the prior 2 years
Simple example

You bought a home for $400,000 in 2016, lived in it the entire time, and sell it in 2026 for $780,000. Adjusted cost basis (purchase price + $30,000 in qualifying improvements) = $430,000. Gain = $780,000 − $430,000 = $350,000. As a single filer, you exclude $250,000 and pay long-term capital gains tax only on the remaining $100,000.

From sale price to taxable gain, step by step:
Purchase Price
$400,000
=
Capital Improvements
$30,000
Adjusted Cost Basis
$430,000
Sale Price
$780,000
=
Adjusted Basis
$430,000
Total Gain
$350,000
=
Section 121 Exclusion
$250,000
Taxable Gain
$100,000

Why More Sellers Are Hitting the Cap

The $250,000/$500,000 exclusion was generous relative to home prices in 1997 — the median U.S. home sold for roughly $146,000 that year, meaning even a home that had fully doubled in value would stay well under the single-filer cap. Home prices have since roughly tripled while the cap hasn't moved at all, so long-tenured owners in high-appreciation markets are increasingly likely to see gain exceed the exclusion, especially when combined with decades of compounding appreciation and renovations.

U.S. Median Home Price vs. the Fixed Exclusion Cap
Illustrative median sale price ($ thousands) vs. the unchanged $250,000 single-filer cap, 1997–2026

Note this chart shows median sale price, not median gain — an individual seller's actual gain depends on their specific purchase price and improvements, so plenty of recent buyers will never approach the cap. It's long-tenured owners — especially those who bought decades ago in now-expensive metro areas — who are most likely to see the red dashed line become a real constraint rather than an abstract one.

What You Actually Owe When Gain Exceeds the Cap

Single filer, $350,000 total gain, $250,000 excluded, leaving $100,000 taxable — the tax owed depends entirely on your income bracket:

Tax Owed on $100,000 of Excess Home-Sale Gain
Taxable Income BracketLTCG RateNIIT Applies?Tax on $100K Excess Gain
Under $49,4500%No$0
$49,450 – $200,00015%No$15,000
$200,000 – $545,50015%Yes (3.8%)$18,800
Over $545,50020%Yes (3.8%)$23,800

The gain that pushed your MAGI above the NIIT threshold can also trigger the 3.8% surtax on the taxable portion — see our NIIT guide for how that interacts with a large one-time sale.

Tax Owed Scales Directly With Excess Gain
At the common 15% LTCG + 3.8% NIIT combined rate (18.8%), applied to gain above the exclusion

This is precisely why documenting every qualifying capital improvement matters — each $10,000 of improvements you can substantiate with receipts reduces your gain by $10,000, which at this combined 18.8% rate is worth $1,880 in avoided tax, dollar for dollar, once you're over the cap.

State-Level Considerations

Section 121 is a federal provision, and most states with an income tax conform to it for state purposes — but not universally, and state capital gains rates vary widely, which changes the total bill on any gain above the federal exclusion.

  • States with no personal income tax at all (Texas, Florida, Washington, Nevada, Tennessee, Wyoming, South Dakota, Alaska) impose no additional state tax on home-sale gain regardless of size
  • California taxes capital gains as ordinary income with no preferential rate, up to 13.3% at the top bracket — combined with federal LTCG and NIIT, a large excess gain can face a combined marginal rate above 35%
  • Washington State has no general income tax but does levy a 7% state capital gains excise tax on gains above an annually adjusted threshold, though it currently carves out real estate — always confirm current-year rules before relying on this
  • A handful of states (Pennsylvania is a notable example) don't fully conform to the federal Section 121 exclusion in the same way, so it's worth checking your specific state's treatment of home-sale gain rather than assuming full conformity

What About Rental or Investment Property? The 1031 Exchange Alternative

Section 121 only ever applies to a primary residence — it has no application to a rental property, vacation home you never lived in, or other investment real estate. For those properties, the relevant tax-deferral tool is a Section 1031 like-kind exchange, which lets you defer (not eliminate) capital gains tax by rolling sale proceeds into another investment property of equal or greater value, using a qualified intermediary and strict 45-day identification / 180-day closing deadlines.

The two provisions are mutually exclusive on the same sale, but a property that was partly your home and partly a rental — a duplex where you lived in one unit and rented the other, for example — can sometimes let you apply Section 121 to the residential portion and a 1031 exchange to the rental portion, with gain allocated between the two based on square footage or another reasonable method. This is a genuinely complex area of the tax code; work with a CPA experienced in real estate before attempting a split transaction.

What to Do With Your Proceeds: Buy Again, or Invest in the Market?

Section 121 doesn't require you to reinvest anything — unlike the pre-1997 rollover rule, you can take the excluded gain in cash and do whatever you want with it. That makes the sale a natural moment to ask whether rolling the full proceeds into another home is actually the best use of that capital, especially for sellers who are downsizing, relocating, or simply house-rich relative to their retirement and brokerage savings.

$250,000 Invested in Stocks vs. Left as Home Equity
Illustrative 20-year growth at long-run historical averages — actual returns for both asset classes vary widely by period and location

Home equity is illiquid and concentrated in a single asset and market, while a stock portfolio can be diversified and compounds without a renovation budget or property taxes eating into returns — but it also carries market volatility and no roof over your head. The right split depends on your housing needs, not just the numbers; see our full real estate vs. stocks comparison for the complete framework.

  • If you're downsizing or relocating to a lower-cost area, consider directing a portion of the excess proceeds toward maxing out retirement accounts for the year, then building a diversified taxable brokerage position with the rest — see our guide on building your first portfolio.
  • If you're renting for a period before buying again, a broad, low-cost index fund is a reasonable place to park proceeds you'll need in a few years, though short time horizons argue for keeping a meaningful cash/short-term bond cushion rather than going fully into stocks.
  • Selling costs, capital improvements, and the exclusion itself already shelter a large share of typical gains from tax — so the after-tax amount available to invest is often larger than sellers expect once they run the actual numbers from the calculator above.
  • If your investable proceeds push your MAGI over the NIIT threshold in the sale year (see our NIIT guide), the dividends and gains that new stock position throws off could themselves become subject to the 3.8% surtax — one more reason to think about the size and timing of a reinvestment, not just where the money goes.

Lowering Your Taxable Gain — What Counts as Basis

Your cost basis isn't just the purchase price. Keeping records of the following can meaningfully reduce your taxable gain:

  • Original purchase price plus closing costs (title fees, transfer taxes, attorney fees — not the mortgage itself)
  • Capital improvements: a new roof, kitchen remodel, room addition, new HVAC system, finished basement — anything that adds value or extends the home's life
  • Selling costs: real estate agent commissions, staging, and closing costs on the sale reduce your amount realized, further lowering the gain
  • NOT includable: routine repairs and maintenance (painting, fixing a leaky faucet, replacing a broken window) — these are not capital improvements
  • If you claimed a home office deduction or depreciated part of the home for rental use, that depreciation must be recaptured and is not eligible for the exclusion

Partial Exclusion for Unforeseen Circumstances

If you have to sell before meeting the full 2-year ownership/use requirement, you may still qualify for a prorated exclusion if the sale is due to a change in employment location, health reasons, or another qualifying unforeseen circumstance (divorce, death of a spouse, multiple births from one pregnancy, involuntary conversion of the home, or a natural disaster).

Prorated Exclusion = (Months Owned/Used ÷ 24) × Full Exclusion

Example: you're forced to relocate for a new job after living in your home for 15 months. Prorated exclusion = (15 ÷ 24) × $250,000 = $156,250 instead of the full $250,000.

Sponsored
Save 20% at E-file.com
We may earn a commission if you sign up through this link.
Save 20% at E-file.com

Frequently Asked Questions

More tax-smart investing guides

Real Estate vs StocksNIIT: The 3.8% Surtax ExplainedTax-Loss Harvesting GuideBest Index Funds 2026Building Your First Portfolio
Disclaimer: This article is for educational purposes only and does not constitute tax or legal advice. Tax rules change and individual circumstances vary widely — consult a qualified CPA or tax advisor before selling a home or relying on the exclusion.
Free Financial Calculators
Put the numbers to work — try our free tools.
View all tools →
CAGR CalculatorCompound InterestDCA CalculatorDividend & DRIPInflation CalculatorInvestment ReturnPosition SizeRetirement Calculator
ShareXLinkedInRedditFacebookWhatsApp

Read Next

Unlock Full AI-Powered Analysis

Get AI prediction signals, unlimited stock comparisons, portfolio analytics, and personalized watchlists — free for 14 days, no credit card required.

Start Free TrialSign In

14-day free trial · No credit card required · Cancel anytime

Data sources & disclosures: Financial data and metrics cited in this article are sourced from company SEC filings, earnings releases, and investor relations materials. Market prices and fundamental data are provided by financial market data providers. Market size estimates and industry projections are sourced from industry research and analyst reports. Figures reflect information available at the time of writing and may have changed. AI scores and price targets are proprietary estimates — see our Methodology. This article is for informational and educational purposes only and does not constitute financial advice or a recommendation to buy or sell any security. Investing involves risk, including the possible loss of principal. Please read our full Disclaimer and consult a licensed financial adviser before making investment decisions.