Skip to content

Home sale exclusion calculator

By Jude Wallis

The home sale exclusion applies to the gain, not to the sale price. Sell at $520,000 with a $200,000 basis and the gain is $320,000. A $250,000 exclusion leaves $70,000 taxable.

Taxable gain

$70,000.00

$250,000.00 excluded of $320,000.00 realised.

Realised gain
$320,000.00
Excluded
$250,000.00
Taxable
$70,000.00
$
$
$

Teaching single cap is 250,000. Joint is 500,000.

Put this on a class page: one iframe, free, for Google Sites, Canvas, WordPress or Notion.

The formula

G=SB,X=min(G,cap),T=GXG=S-B,\qquad X=\min(G,\text{cap}),\qquad T=G-X

SS is the sale price, BB the adjusted basis, GG the gain, XX the excluded part and TT what remains taxable. The exclusion cap is entered rather than assumed.

The gain is the only thing being excluded

Selling at $520,000 does not mean $520,000 is anywhere near the exclusion. The gain is $320,000, because the house cost $200,000, and it is that gain the cap applies to. A $250,000 cap covers most of it and leaves $70,000.

So the exclusion is far larger than it looks. On a house held long enough for the price to more than double, a $250,000 cap can still cover the whole gain.

Basis is where the money is

Adjusted basis is the purchase price plus buying costs plus capital improvements over the years of ownership. A new roof, an extension, a rewire: each one raises basis and lowers the gain by the same amount, dollar for dollar.

That is the strongest reason to keep receipts on a home for decades. Improvements that were never recorded are basis that cannot be proved, and unproved basis is taxable gain. See capital gains tax for what happens to the part above the cap.

The cap is an input for a reason

Different situations carry different caps, and joint filers usually have twice the cap of a single filer. The second example uses a $500,000 cap on a $600,000 gain from an $800,000 sale, leaving $100,000 taxable, and the arithmetic is identical.

That is why the number is typed in rather than fixed. Enter the cap that fits the case and the identity handles the rest.

What happens to the taxable part

Whatever is left over is a capital gain like any other, taxed at the rate that applies to the holding. The capital gains tax calculator takes $70,000 and a rate and prices it. Eligibility rules about ownership and use are separate from this arithmetic, which starts once eligibility is settled. This is educational material, not financial advice.

Worked examples

A \$320,000 gain against a \$250,000 cap

A home sells for $520,000 with an adjusted basis of $200,000, and the exclusion cap is $250,000. What is taxable?

  1. Gain: 520000200000=320000520000 - 200000 = 320000.
  2. Excluded: the smaller of the gain and the cap, so 250000.
  3. Taxable: 320000250000=70000320000 - 250000 = 70000.

The gain is $320,000, $250,000 is excluded, and $70,000 remains taxable.

A larger sale against a \$500,000 cap

The sale is $800,000, the basis is $200,000, and the cap is $500,000.

  1. Gain: 800000200000=600000800000 - 200000 = 600000.
  2. Excluded: the cap of 500000, since the gain is larger.
  3. Taxable: 600000500000=100000600000 - 500000 = 100000.

The gain is $600,000, $500,000 is excluded and $100,000 is taxable. Twice the cap covers twice as much gain.

Comparing the cap to the sale price

A $520,000 sale against a $250,000 exclusion looks like most of the money is exposed. It is not. The gain is $320,000, and after the exclusion only $70,000 is taxable. Basis is the difference between panic and arithmetic.

Common questions

What raises the basis on a home?

Purchase costs and capital improvements. Repairs and maintenance generally do not.

Which cap should I enter?

The one that fits the filing situation. Joint filers usually have twice the single figure, and this calculator takes either.

Is this financial advice?

No. It is educational material for the gain and exclusion identity.

This page is educational material, not financial advice. The figures come from the formula shown and assume the inputs you enter hold for the whole term. Your own rate, fees, taxes and timing will differ, so treat the output as arithmetic to check a decision against, not as a recommendation.