Calculator

Do you pay capital gains tax when you sell your house?

For most people, no. The gain on a main home is usually smaller than the exclusion federal law gives you, so most sellers owe no federal capital gains tax at all. Enter your numbers and this estimates the taxable gain after the $250,000 single or $500,000 married exclusion, so you can see where you stand before you price the sale. United States only. It runs in your browser and stores nothing.

$
$

What you paid for it. This is the start of your cost basis.

$

Additions and major upgrades that add lasting value, like a new roof or addition. Not routine repairs.

$

Any agent commission you pay plus your closing costs. These reduce the gain.

How the gain is figured, and why most sellers owe nothing

Your gain is not the sale price. It is the sale price minus your selling costs, minus your cost basis (what you paid plus the capital improvements you made over the years). The federal Section 121 exclusion then removes up to $250,000 of gain if you file single, or $500,000 if you are married filing jointly, as long as you owned and used the home as your main home for at least 24 of the 60 months before the sale. Most main-home sales fall under the exclusion and owe nothing.

For the full rules, the partial exclusion for a forced move, second homes and rentals, and the 2026 reform debate, read do you pay taxes when you sell your house. For your overall take-home, use the net proceeds calculator.

How to reduce capital gains tax when you sell your house

The levers are few, and all of them are paperwork rather than tricks. Meet the tests before you sell: owning and living in the home for 24 of the 60 months before closing is what unlocks the full exclusion, so if you are a few months short, the closing date matters. Prove your basis: every documented capital improvement, an addition, a new roof, a new heating system, raises the basis and shrinks the gain, but only the receipts you kept make it count. And claim every selling cost, since closing costs, transfer taxes, legal fees, and any commission you pay all come off the sale price; the closing costs calculator estimates what those run in the US.

If you are selling early because of a new job, your health, or something you could not foresee, a prorated partial exclusion may still apply even though you miss the two-year tests. What does not work: buying another house. The rollover rule ended in 1997, and replacing your home changes nothing about the tax on this sale.

Common questions

What counts as a capital improvement when I sell my home?

Work that adds lasting value or extends the life of the home counts: an addition, a new roof, a remodeled kitchen, a new heating system. It raises your cost basis and lowers your gain. Routine repairs and maintenance, like repainting or fixing a leak, do not count.

What is my cost basis?

For most sellers it is the price you paid for the home plus the capital improvements you made while you owned it. Some closing costs from the purchase add to it too. A higher basis means a smaller gain.

Who qualifies for the $250,000 or $500,000 exclusion?

You qualify if you owned the home and used it as your main home for at least 24 of the 60 months before the sale, and you have not claimed the exclusion on another sale in the prior two years. Married couples filing jointly can exclude up to $500,000 when both spouses meet the use test.

What if I do not meet the two-year ownership and use tests?

You may still get a partial exclusion, prorated for the time you did qualify, if you sold because of a change of employment, for health reasons, or because of an unforeseeable event.

Is the taxable gain the tax I owe?

No. The taxable gain is the amount the tax applies to. After owning the home for more than a year, it is usually taxed at the long-term capital gains rate of 0, 15, or 20 percent depending on your income.

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

No. The old US rollover rule that deferred the gain when you bought a more expensive home ended in 1997. The exclusion replaced it: up to $250,000 of gain tax free, or $500,000 married filing jointly, whether you buy again, rent, or move abroad. Buying a replacement home changes nothing about the tax on this sale.

Do I have to report the sale of my home to the IRS?

Not always. If the whole gain is excluded and you do not receive a Form 1099-S from the closing, the sale generally does not go on your return. If you do receive a 1099-S, or any part of the gain is taxable, report the sale on Form 8949 and Schedule D, even when no tax ends up due.

Do selling costs reduce my capital gain?

Yes. Selling expenses come off the sale price before the gain is figured: closing costs, transfer taxes, legal fees, and any commission you pay. Selling without a listing agent shrinks the commission line, so the gain on paper is a little larger and the money you keep is larger too; for most main homes the exclusion covers the gain either way.

Free checklist

Your FSBO prep checklist

Enter your email and your checklist downloads as a PDF.

What to do with this number

The other stops worth making: the capital gains guide for the exclusion rules, ownership tests, and partial exclusions. And one plain limit: this is an estimate that excludes depreciation recapture, state tax, and partial exclusions, so confirm with a tax professional before you act on it.

Ready to sell? List it yourself on Anyone.com

Once you know your numbers, Anyone.com lets owners list and sell directly as for sale by owner, with no platform fee or commission to Anyone. Or compare every way to list it yourself.