Life Event

Capital Gains on Selling a House 2026

Most home sales are tax-free — here's how the $250k / $500k exclusion works.

Run the numbers
Calculate the tax on your home-sale gain
Open the calculator →
The short answer

When you sell your main home, the Section 121 exclusion lets you exclude up to $250,000 of gain from tax ($500,000 if married filing jointly) — provided you owned and lived in it as your primary residence for at least 2 of the last 5 years. Only gain above the exclusion is taxed, at long-term capital-gains rates. Improvements raise your cost basis and shrink the taxable gain.

Exclusion (single)
$250,000
Exclusion (MFJ)
$500,000
Ownership + use
2 of last 5 years
Gain above it
Long-term rates

What changes for your taxes

  • Your gain = sale price − selling costs − (purchase price + improvements).
  • Up to $250,000 ($500,000 MFJ) of that gain can be excluded from tax.
  • Only gain above the exclusion is taxed, at long-term capital-gains rates.
  • Capital improvements you made over the years increase your basis and cut the gain.

How the Section 121 exclusion works

To qualify, you must have owned the home and used it as your main residence for at least 2 of the 5 years before the sale (they don't have to be continuous). Meet that and a single filer excludes up to $250,000 of gain; a married couple filing jointly excludes up to $500,000. You can use the exclusion again on another home, but generally not more than once every two years.

Figuring the gain is where people overpay: start with the sale price, subtract selling costs (agent commission, closing costs), then subtract your adjusted basis — the original purchase price plus the cost of capital improvements (a new roof, addition, renovation) you made over the years. Keeping those receipts can save thousands. Any gain left after the exclusion is taxed at 0/15/20% long-term rates.

Worked example — single filer who owned 8 years
StepAmount
Sale price$700,000
− Selling costs (≈6%)−$42,000
− Original purchase price−$300,000
− Capital improvements−$40,000
= Gain before exclusion$318,000
− Section 121 exclusion (single)−$250,000
= Taxable gain (long-term rates)$68,000

Which situation is yours?

Single, bought $300k, sold $560k, lived 4 years
After ~$34k of selling costs and $20k of improvements, the gain is about $206,000 — under the $250,000 single exclusion.
$0 federal tax on the sale.
Married couple, $450,000 gain
A joint filer excludes up to $500,000, so the entire gain is covered as long as both owned and used the home for 2 of the last 5 years.
$0 taxable gain — fully excluded.
Owned only 1 year, then relocated for a new job
You don't meet the 2-year test, but a job move can qualify you for a partial exclusion — here, roughly half of the $250k/$500k limit.
Partial exclusion; the rest is taxed at long-term rates.

Your action checklist

1
Confirm you owned and lived in the home 2 of the last 5 years.
2
Total your selling costs (commission, closing costs, concessions).
3
Add up capital improvements to raise your cost basis.
4
Apply the $250k / $500k exclusion to your gain.
5
Report the sale if you received a 1099-S or have taxable gain above the exclusion.

Frequently asked questions

Do I pay tax when I sell my house?

Usually not. If it was your main home for 2 of the last 5 years, you can exclude up to $250,000 of gain ($500,000 married filing jointly). Only gain above that is taxed at capital-gains rates.

How do I calculate my home-sale gain?

Sale price minus selling costs, minus your adjusted basis (purchase price plus capital improvements). Improvements and selling costs both reduce the taxable gain.

What if I didn't live there 2 years?

You may still get a partial exclusion if you sold due to a work move, health reasons, or certain unforeseen circumstances. Otherwise the full gain is taxable at capital-gains rates.

Sources & verification

Last reviewed July 12, 2026.

Related calculators & guides

Capital Gains Tax Calculator
Tax on gain above the exclusion
Form 8949 + Schedule D guide
Where a taxable sale is reported
Federal Tax Calculator 2026
Your full-year estimate
Educational overview only. This page explains common tax effects of a life event and pairs them with an estimator; it is not personalized tax advice and does not cover every situation. Confirm with a qualified tax professional. Full disclaimer.