Home Sale Capital Gains Tax Calculator ($250k/$500k Exclusion)

Estimate the capital gains tax when you sell your house, with the $250,000 or $500,000 exclusion, partial exclusions and depreciation recapture.

Education only, not financial advice. This calculator gives estimates from the numbers you enter. It is not a recommendation to buy, sell or hold anything. Check important decisions with a qualified professional. Everything runs in your browser; nothing you type is sent or stored.

Official IRS rules Section 121 home sale exclusion of $250,000 ($500,000 married filing jointly) per IRS Publication 523; 0%/15%/20% capital gains brackets for 2026 and 2027 from Rev. Proc. 2025-32 and 2026-35; 3.8% net investment income tax above $200,000 / $250,000 MAGI.

Tax on the sale—
Gain on the sale—
Excluded from tax—
Taxable gain—
Cash after tax—

How the home sale exclusion works

When you sell your main home, you can exclude up to $250,000 of gain from income ($500,000 for a married couple filing jointly) if you owned it and lived in it for at least two of the five years before the sale, and have not used the exclusion on another home in the past two years. Only gain above that amount is taxed, at long-term capital gains rates of 0%, 15% or 20% if you owned the home more than a year, plus the 3.8% net investment income tax for higher earners.

Gain = (sale price − selling costs) − (purchase price + improvements − depreciation)

If you fall short of two years because of a job change, health reasons or certain unforeseen events, you may qualify for a reduced exclusion in proportion to the time you lived there. Depreciation you claimed (or could have claimed) for a rental or home office after May 6, 1997 cannot be excluded and is taxed at up to 25%. The $250,000 and $500,000 limits are set in law and are not adjusted for inflation, so long-time owners in expensive markets increasingly owe tax.

Lower your taxable gain

Keep records of capital improvements such as additions, new roofs, kitchen remodels and landscaping, which raise your basis, and count selling costs such as agent commissions. Married couples where only one spouse meets the tests may get less than $500,000; see IRS Publication 523 for the details. For other investments use the capital gains tax calculator, weigh owning against renting with the rent vs buy calculator, or plan your next purchase with the home affordability calculator.

Frequently asked questions

How much capital gain on a home sale is tax-free?

Up to $250,000 for single filers and $500,000 for married couples filing jointly, if you owned and lived in the home at least two of the last five years and haven’t used the exclusion in the past two years.

Do I pay tax if I sell my house after less than two years?

Usually, but if you moved because of a job change, health or an unforeseen event, you may get a partial exclusion based on how long you lived there.

What tax rate applies to a taxable home sale gain?

Long-term capital gains rates of 0%, 15% or 20% if owned over a year, plus 3.8% net investment income tax above $200,000 MAGI ($250,000 joint), and up to 25% on depreciation recapture.

Is the $500,000 home sale exclusion adjusted for inflation?

No. The $250,000 and $500,000 amounts have been fixed since 1997.

What counts as a home improvement for basis?

Improvements that add value, extend the home’s life or adapt it to new uses, such as additions, a new roof, central air or a kitchen remodel. Routine repairs and maintenance do not count.

Related tools and guides

Updated Nov 23, 2026. Built by the ECMSource team. Spot an error? Tell us.

Disclaimer: ECMSource tools are for general education. Results are hypothetical, assume constant rates, and ignore taxes, fees and other costs unless stated. Past returns do not predict future returns. See our full disclaimer and editorial policy.