Home sale capital gains calculator

Married couples get $500,000 only if both spouses used the home as a main home for 2 of the last 5 years.

Agent commissions, closing costs and other costs of selling.

Costs that add to your basis, such as title fees and recording fees.

Additions and other improvements that last more than a year. Repairs do not count.

Use 24 or more for the full exclusion.

Your income before the sale, before deductions. It decides which capital gains rate applies.

Rental use, depreciation and special cases

From a home office or a rental since 6 May 1997. It is taxed even when the rest of the gain is excluded.

For example, months you rented it out after 2008 before moving in.

A job change, a health reason or an unforeseen event allows a reduced exclusion if you lived there under 2 years.

Federal tax on the sale

$24,400.00

The gain is $400,000. $250,000 of it is excluded, and the remaining $150,000 is taxed.

Gain on the sale
$400,000.00
Most you can exclude
$250,000.00
Gain excluded
$250,000.00
Gain that is taxed
$150,000.00
Tax on the rest of the gain
−$22,500.00
Net investment income tax
−$1,900.00
Total federal tax on the sale
$24,400.00
  • Tax is estimated from the 2026 federal rates, stacking the gain on your other income. The net investment income tax uses income as given. State tax, the military and disability rules, and homes used partly for business are not included.

Calculator by Sumverge