Skip to content
Capital Gains Tax on Home Sale: The $500K Exclusion Explained (2026) | Local Home Buyers USA
Tax Guide for Sellers • 15 Min Read

Capital Gains Tax on Home Sales: The $500K Exclusion

Most sellers owe $0 in capital gains tax. Here's exactly how the exclusion works, when you do owe, and 6 legal strategies to minimize your bill.

$250K
Single Exclusion
$500K
Married Exclusion
0-20%
Tax Rate (If Owed)
JE
Justin Erickson
Founder & CEO, Local Home Buyers USA
February 19, 2026 • IRS Topic 701, IRC § 121, Pub. 523

The first question every seller asks after "how much can I get?" is "how much will I owe in taxes?" Here's the good news: the vast majority of primary residence sellers owe zero capital gains tax, thanks to one of the most generous tax benefits in the entire tax code — the Section 121 exclusion.

But if you've owned your home for decades, inherited it, rented it out, or your gain exceeds $250K/$500K — you need to understand the rules. This guide covers everything, including a calculator to estimate your exact liability. See every other closing cost you'll pay →

The Section 121 Exclusion

Under IRC Section 121, you can exclude up to $250,000 of capital gain (single) or $500,000 (married filing jointly) from the sale of your primary residence. This means if your profit is under these thresholds, you owe zero federal capital gains tax — not a dollar.

Do You Qualify? The 3-Part Test

1
Ownership Test: You (or your spouse) owned the home for at least 2 of the last 5 years before the sale.
2
Use Test: You lived in the home as your primary residence for at least 2 of the last 5 years. The 2 years don't need to be consecutive.
3
Frequency Test: You haven't excluded gain from another home sale in the past 2 years.
Pass all 3 → Exclude up to $250K (single) or $500K (married) in gain. Tax owed: $0.
Don't pass all 3? You may qualify for a partial exclusion due to job relocation, health issues, or unforeseen circumstances.

Key details: For the $500K married exclusion, both spouses must meet the use test, but only one needs to meet the ownership test. The 2-year periods for ownership and use can occur at different times within the 5-year window. If you fail the tests due to a job relocation, health change, or unforeseen circumstance, you may qualify for a prorated partial exclusion.

2026 Capital Gains Tax Rates

If your gain exceeds the exclusion (or you don't qualify), here's what you'll pay on the taxable portion. Long-term rates apply to homes owned 1+ year.

Tax RateSingle FilerMarried Filing JointlyHead of Household
0%Up to $49,450Up to $98,900Up to $66,500
15%$49,451 - $533,400$98,901 - $600,050$66,501 - $566,700
20%Over $533,400Over $600,050Over $566,700

The 3.8% surtax: An additional Net Investment Income Tax (NIIT) of 3.8% applies to taxpayers with modified adjusted gross income over $200,000 (single) or $250,000 (married). This can push the effective rate to 23.8% for high earners. The NIIT does not apply to gains covered by the Section 121 exclusion — only to the taxable portion above the exclusion.

Short-term gains: Homes owned less than 1 year are taxed as ordinary income (up to 37%). This is rare for primary residences but common for quick flips. See how different buyer types affect your timeline →

Adjusted Cost Basis: The Hidden Tax Saver

Your taxable gain isn't simply "sale price minus purchase price." It's sale price minus selling costs minus adjusted cost basis. Your adjusted cost basis = original purchase price + qualifying capital improvements. Every dollar you add to your basis is a dollar less in taxable gain.

✅ Increases Your Basis (Reduces Tax)

Capital Improvements

New roof — $8,000-$15,000+ addition to basis
Kitchen remodel — full gut renovation counts
Room additions / finished basement
New HVAC, plumbing, electrical systems
New windows, siding, insulation
Permanent landscaping — retaining walls, fences, driveways
Accessibility modifications — ramps, wider doors
❌ Does NOT Increase Basis

Repairs & Maintenance

Painting — interior or exterior
Fixing leaks — plumbing patches, roof patches
Replacing broken fixtures — faucets, outlets
Patching drywall, re-caulking
Cleaning, pest control, lawn mowing
Appliance repairs
Exception: Repairs done as part of a larger renovation project may qualify

Pro tip: Keep every receipt for home improvements. A $50,000 kitchen remodel + $12,000 roof + $8,000 HVAC replacement = $70,000 added to your cost basis. That's $70,000 less in potentially taxable gain. On a home you bought for $200K and sold for $500K, those improvements reduce your taxable gain from $300K to $230K — potentially below the $250K exclusion threshold.

Situations That Change the Math

🏡

Inherited Property (Stepped-Up Basis)

Inherited homes receive a stepped-up basis to fair market value on the date of death. If parents bought a home for $80K and it's worth $400K when inherited, your basis is $400K — not $80K. Sell for $410K and your gain is only $10K. This can save $50,000+ in taxes. Full inherited house guide →

⚖️

Divorce

Transfers between spouses (or ex-spouses if incident to divorce) are tax-free under IRC § 1041. The receiving spouse takes the transferor's cost basis. If you sell the home during or after divorce, each spouse can exclude up to $250K of gain if they meet the ownership/use tests individually. Divorce house sale guide →

🎖️

Military / Foreign Service

Active duty military can extend the 5-year lookback period to up to 10 years while on qualified official extended duty. This helps service members who are stationed away from their primary residence maintain eligibility for the full exclusion.

🏢

Rental or Business Use

If you rented out your home or used part of it for business, you must recapture any depreciation you claimed (taxed at 25%). The Section 121 exclusion still applies to the residential-use portion of the gain, but the business-use portion follows different rules. Partial business use after 2008 may create "nonqualified use" periods that reduce your exclusion.

📉

Selling at a Loss

Capital losses on your primary residence are not deductible. If you sell for less than you paid, you can't write off the loss against other income. This is different from investment properties, where losses may be deductible. Maximize your sale price even in tough markets →

🏗️

Partial Exclusion

If you don't meet the full 2-year ownership/use test due to job relocation, health reasons, or unforeseen circumstances (death, divorce, natural disaster), you may claim a prorated exclusion based on the time you did live there. For example: 1 year of use out of 2 required = 50% of the $250K/$500K exclusion. Job relocation tax rules →

Capital Gains Tax Calculator

🧮

Estimate Your Tax Liability

Total Gain
$0
Exclusion Applied
$0
Taxable Gain
$0
Est. Tax (15%)
$0

Important: This is an estimate only. Your actual tax depends on your total taxable income, filing status, other capital gains/losses, and state taxes. Consult a CPA or tax advisor for your specific situation. This calculator assumes the 15% long-term capital gains rate — your rate may be 0% or 20% depending on income.

6 Strategies to Minimize Tax

💰

1. Maximize Your Cost Basis

Document every capital improvement: roofs, HVAC, kitchens, bathrooms, additions, fencing, driveways. A $70K in documented improvements on a $250K purchase price raises your basis to $320K — potentially eliminating all taxable gain.

2. Time Your Sale to Meet the 2-Year Test

If you're at 20 months of residency, waiting 4 months could save you tens of thousands. The 2-year threshold is one of the most valuable tax gates in existence. Don't sell 2 months early and lose a $250K-$500K exclusion.

📊

3. Manage Your Income in the Sale Year

The 0% capital gains rate applies to taxable income under $49,450 (single) or $98,900 (married). If you can control the timing of other income, selling in a low-income year could mean a 0% rate on your taxable gain.

🏠

4. Use the Exclusion Every 2 Years

The exclusion resets every 2 years. If you're a serial homeowner who buys, improves, and sells, you can take the $250K/$500K exclusion repeatedly — potentially sheltering millions in gains over a lifetime.

📉

5. Offset Gains With Investment Losses

Capital losses from stocks, bonds, or other investments can offset capital gains from your home sale (on the taxable portion above the exclusion). Strategically harvesting investment losses in the same tax year can reduce your home sale tax bill.

🤝

6. Reduce Selling Costs to Reduce Gain

Selling costs (commissions, closing costs, staging, repairs negotiated during inspection) are subtracted from the sale price when calculating gain. Lower net sale price = lower taxable gain. Our partnership model maximizes sale price while keeping your costs transparent and predictable.

Frequently Asked

Do I have to pay capital gains tax when I sell my house?

Most primary residence sellers owe $0. The Section 121 exclusion lets you exclude up to $250K (single) or $500K (married) in gain if you owned and lived in the home 2+ of the last 5 years. You only owe tax on gains above these limits.

How is capital gains calculated on a home sale?

Gain = Sale price – Selling costs – Adjusted cost basis (purchase price + improvements). If the gain is under $250K/$500K and you qualify, tax = $0. Above the exclusion, gains are taxed at 0%, 15%, or 20% depending on income. See how our process works →

What is the capital gains tax rate in 2026?

Long-term rates: 0% (income under $49,450 single / $98,900 married), 15% (most taxpayers), 20% (income over $533,400 single / $600,050 married). Plus 3.8% NIIT for high earners over $200K/$250K.

What improvements increase my cost basis?

Capital improvements that add value or prolong the home's life: new roof, kitchen/bath remodel, additions, HVAC, windows, fencing, landscaping. Routine repairs (painting, fixing leaks, patching) do not qualify. Keep all receipts.

Do I owe capital gains on an inherited house?

Inherited homes get a stepped-up basis to FMV at the date of death. You only owe tax on appreciation after you inherit. Sell quickly and your gain could be near $0. Full inherited house guide →

Claude
Chief Technology Officer — Local Home Buyers USA
Anthropic Opus 4.6

This guide references IRC § 121 (principal residence exclusion), IRS Topic 701, IRS Publication 523, and IRC § 1041 (interspousal transfers). 2026 capital gains rate brackets reflect IRS inflation adjustments (~4% increase from 2025). The 3.8% Net Investment Income Tax is codified in IRC § 1411. Congress has considered legislation to modify the Section 121 exclusion, including H.R. 1340 (doubling exclusions and indexing for inflation) and H.R. 4327 (eliminating the ceiling). As of February 2026, neither has been enacted. If the original $250K/$500K caps had been indexed to home prices since 1998, they would be approximately $715K/$1.43M today. Tax law is complex — always consult a CPA or tax advisor for your specific situation.

Related Resources

Know Your Net Before You Sell

Get a transparent offer that accounts for every cost — closing fees, potential tax implications, and your actual take-home. No hidden fees, no surprises.