🇺🇸 2026 tax year
Selling your home

Home sale tax exclusion

If you owned and lived in your main home for at least 2 of the last 5 years, you can exclude up to $250,000 of gain ($500,000 jointly).

Your details

How it works

Gain = amount realized (sale price minus selling costs) − adjusted basis (what you paid plus capital improvements). If you meet the ownership and use tests – at least 2 of the 5 years before the sale – and did not exclude gain on another home in the 2 years before, you exclude up to $250,000, or $500,000 if married filing jointly (both spouses must meet the use test). Gain above that is a capital gain reported on Form 8949 and Schedule D. A reduced (partial) exclusion can apply after a move for work, health or unforeseen events; see IRS Publication 523.

FAQ

How much gain can I exclude when I sell my home?

Up to $250,000, or up to $500,000 if you file jointly, when you meet the 2-out-of-5-year ownership and use tests.

Example: sold for $700,000 with $40,000 costs, bought for $300,000, $50,000 improvements?

Gain is $310,000. A single filer excludes $250,000 and has a $60,000 taxable gain; a joint filer excludes all of it.

How often can I use the exclusion?

Generally not if you excluded gain on another home sold in the 2 years before this sale.

Estimate for information only — confirm with the IRS (Publication 523) before you rely on it. Sources (checked Nov 15, 2026): IRS Topic 701 – Sale of your home · IRS Publication 523.

Capital gains tax calculator →All US calculators →