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
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 Rate | Single Filer | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 | Up to $66,500 |
| 15% | $49,451 - $533,400 | $98,901 - $600,050 | $66,501 - $566,700 |
| 20% | Over $533,400 | Over $600,050 | Over $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.
Capital Improvements
Repairs & Maintenance
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
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
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.
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 →
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.
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.
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 →
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.