Home Sale Gains

The Section 121 exclusion, in plain English

Section 121 lets you keep up to $250,000 of gain on your main home tax-free ($500,000 married filing jointly). The rules that decide how much you get are the ownership test, the use test, and — when life intervenes early — the prorated exclusion.

Estimate, not tax advice. This calculator estimates federal tax using simplified 2026 rules. It is not a filed-return figure and cannot replace a tax professional for your full situation.

The two tests

Ownership: you owned the home for at least 24 of the 60 months before the sale. Use: you lived in it as your main home for at least 24 of those 60 months. The periods do not have to be continuous. Meet both and the full exclusion applies. For the $500,000 joint amount, either spouse may meet the ownership test but both must meet the use test, and neither may have used the exclusion in the prior two years (IRS Topic No. 701; Publication 523).

Sold early? The prorated (reduced) exclusion

If you miss the tests because of a job move (new workplace at least 50 miles farther from the home than the old one), health reasons, or unforeseen circumstances (divorce, death, multiple births, involuntary conversion and similar events listed in Publication 523), you can still exclude a fraction: the shorter of your ownership or use period, divided by 24 months, times the full amount. Twelve qualifying months married filing jointly = 12/24 × $500,000 = $250,000 of exclusion.

Depreciation is never excludable

Rent the home out for a while and the depreciation you claimed (or could have claimed) comes back: the slice of gain equal to that depreciation cannot be excluded at all. It is taxed as unrecaptured §1250 gain — at the capital-gains band rate where it lands, capped at 25%. This is the single most-missed line in home-sale tax estimates for former rentals and house-hackers.

How the remaining gain is taxed

Whatever survives the exclusion stacks on top of your other taxable income. For 2026 (IRS Rev. Proc. 2025-32), long-term gains are taxed at 0% up to $49,450 of taxable income single / $98,900 joint, 15% up to $545,500 / $613,700, and 20% above. Past MAGI of $200,000 / $250,000, the 3.8% net investment income tax (§1411) can apply to the taxable gain as well. Run your own numbers in the home sale capital gains calculator.

Losses and second homes

A loss on a home you lived in is not deductible. Vacation homes and pure rentals do not qualify for Section 121 at all (a rental converted to a main home can qualify partially, with extra nonqualified-use rules beyond this guide's scope — see Publication 523 and a tax professional).

Sources: IRS Publication 523 (Selling Your Home), IRS Topic No. 701, IRS Rev. Proc. 2025-32. This guide is original educational writing summarizing public IRS material.