Home › Capital Gains on Home Sale

Guide toSection 121

Capital Gains Tax on a Home Sale

Most people pay no tax when they sell their home. If you owned it and lived in it as your main home for 2 of the 5 years before the sale, you can exclude up to $250,000 of gain — $500,000 for a married couple filing jointly.

2026

Checked against IRS Publication 523, Selling Your Home and 2 more official sources on November 25, 2026. How we check

The exclusion at a glance

Filing statusMaximum gain you can exclude
Single, head of household, married filing separately$250,000
Married filing jointly$500,000
Surviving spouse, sold within 2 years of the spouse’s death and not remarried$500,000

The amounts are set in the law and are not adjusted for inflation — they have been the same since 1997.

Bar chart of the home sale gain exclusion: $250,000 single, $500,000 married filing jointly
Tax-free gain on a main home

The eligibility test

For the $500,000 joint amount, either spouse can meet the ownership test, but both must meet the residence test, and neither can have used the exclusion in the past 2 years.

How to figure your gain

Example. A couple bought their house in 2012 for $310,000 and added a $45,000 kitchen and roof. They sell in 2026 for $900,000 and pay $50,000 in agent and closing costs.
Amount realized: $900,000 − $50,000 = $850,000
Adjusted basis: $310,000 + $45,000 = $355,000
Gain: $495,000 — all of it excluded on a joint return. Had they been single, $245,000 would be a long-term capital gain.

Improvements that add value or extend the home’s life raise your basis; repairs and upkeep do not. Keep the receipts.

Gain above the exclusion

Any gain over the limit is a long-term capital gain if you owned the home more than a year, taxed at 0%, 15% or 20% (see capital gains tax 2026). It also counts toward the 3.8% net investment income tax if your income is high enough — but the excluded part does not.

Didn’t make 2 years? Partial exclusion

If the main reason you sold early was a job move (new workplace at least 50 miles farther away), health, or an unforeseen event such as divorce, death, job loss or multiple births, you can exclude part of the limit. The fraction is the time you qualified divided by 24 months.

Example. You owned and lived in a home for 12 months, then took a job 300 miles away. 12 ÷ 24 = 50%, so up to $125,000 of gain can be excluded.

Things that reduce the exclusion

Do you have to report the sale?

If all of the gain is excluded and you did not receive Form 1099-S, you don’t need to report the sale. If you received a 1099-S, or part of the gain is taxable, report it on Form 8949 and Schedule D and subtract the excluded amount.

Frequently asked questions

How much profit can you make on a house sale without paying taxes?

Up to $250,000 of gain if single, or $500,000 if married filing jointly, as long as you owned and lived in the home as your main home for 2 of the 5 years before the sale.

Do I have to buy another house to avoid capital gains?

No. The old rollover rule ended in 1997. The exclusion applies whether or not you buy again.

Do the 2 years have to be consecutive?

No. You need 24 months of ownership and 24 months of residence anywhere within the 5 years ending on the sale date.

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

No. The $250,000 and $500,000 amounts are fixed in section 121 of the tax code.

Sources

Last updated: . Figures reflect IRS, SSA and CMS guidance published as of this date.