The $250,000 / $500,000 home-sale exclusion, explained

Section 121 of the tax code lets you sell your main home and keep up to $250,000 of the gain tax-free if you're single, or $500,000 if married filing jointly — if you pass two tests: you owned the home, and you lived in it as your main home, for at least 2 of the 5 years before the sale. Most long-time homeowners owe $0 federal tax on the sale. (Source: IRS Topic No. 701.)

The two tests

The two years don't have to be continuous, and they don't have to be the same two years. For married filing jointly, the $500,000 figure requires a joint return, at least one spouse meeting the ownership test, and both meeting the use test (IRS Topic No. 701).

Basis: the number your gain is measured from

Your gain is not "sale price minus what you paid." It is the amount realized (sale price minus selling costs) minus your basis — generally your purchase price, plus most purchase closing costs, plus the cost of major improvements: a roof, an addition, a finished basement, new HVAC. Routine repairs and maintenance do not add to basis (IRS Publication 523 has the full lists). Every improvement dollar you can document is a dollar of gain you'll never be taxed on — keep the receipts.

Worked example: bought for $300,000, added $50,000 of improvements → basis $350,000. Sell for $600,000 with $39,000 of selling costs → amount realized $561,000 → gain $211,000. Single, both tests passed: the $250,000 exclusion covers the whole gain → taxable gain $0. Same sale with the tests failed: the whole $211,000 is taxable. Try your own figures in the capital-gains checker.

Fine print that catches people

Sources: IRS Topic No. 701 — Selling Your Home and IRS Publication 523 — Selling Your Home. This page is a plain-English summary, not tax advice — your situation can differ, and a tax professional should confirm it before you sell.

Questions, answered straight

Can I use the exclusion more than once?

Generally once every two years. If you sold another home and used the exclusion within the last two years, you usually cannot use it again yet. (Source: IRS Topic No. 701.)

Do I have to buy another home to claim it?

No. That rule was repealed in 1997. The exclusion is yours whether you buy again, rent, or move in with family.

What records should I keep?

Your purchase settlement statement and receipts or contracts for major improvements — they are the proof of your basis if the IRS ever asks.