Home Sale Capital Gain Calculator

Gain on saleTaxable, singleTaxable, married
$200,000$0$0
$300,000$50,000 (about $7,500 tax)$0
$450,000$200,000 (about $30,000 tax)$0
–gain after improvements
–taxable gain
–estimate at 15% long-term
Section 121 excludes 250k of gain single, 500k married, if you owned and lived there two of the last five years - improvements count toward basis, repairs do not: IRS: Publication 523. The next house: affordability and closing costs.

Selling a primary home comes with the best tax break in the code: single filers exclude $250,000 of gain, married couples $500,000, under the two-of-five-years ownership and use rule. The calculator sizes the gain, applies the exclusion, and estimates what is left for the IRS.

Bottom line: buy at $250,000, sell at $550,000 with $50,000 of improvements, and your $250,000 gain is entirely tax-free for a married couple - the exclusion is a reason to track every receipt, because improvements raise your basis dollar for dollar.

The honest part: the exclusion covers gain, not price - a house sold for less than you paid has no capital gain at all, and the break only applies to a primary residence lived in for two of the last five years. Rental years break the chain unless handled separately.

How to use

  1. Enter the sale price, your original purchase price, and documented improvements - not repairs.
  2. Pick your filing status for the right exclusion: 250k single, 500k married filing jointly.
  3. Read the taxable gain and the estimate at long-term capital gains rates - 0, 15 or 20 percent by income.

Frequently asked questions

How much of a home sale is tax free?

Up to $250,000 of gain for a single filer and $500,000 for married-filing-jointly, under IRS Section 121. The gain is sale price minus purchase price minus documented improvements minus selling costs - not the sale price itself, which is why basis records matter.

What counts as an improvement for basis?

Anything that adds value or extends life: a new roof, addition, remodel, HVAC. Repairs that restore the original condition - fixing a leak, repainting - do not count, but every improvement receipt raised your basis and shrinks the taxable gain dollar for dollar.

What is the two-of-five-years rule?

You must have owned and lived in the home as your primary residence for at least two of the five years before the sale. It does not have to be consecutive, and the exclusion resets after a two-year gap - a pattern frequent movers use legally, once per two years.

What rate applies to the taxable gain?

Long-term capital gains rates - 0, 15 or 20 percent depending on total income - plus possible state tax and, for high earners, the 3.8 percent net investment income tax. The estimate here uses 15 percent as the middle band; your bracket decides the rest.

Related tools