How the home sale exclusion works
By Jude Wallis
The exclusion applies to the gain on a main home, not to the sale price. Sell for $520,000 with a $200,000 basis and the gain is $320,000. A $250,000 exclusion covers most of it and 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.
On this page
In short
- Gain is proceeds minus basis: $520,000 minus $200,000 is $320,000.
- The exclusion is capped, so it removes $250,000 here and no more.
- What is left, $70,000, is the taxable capital gain.
- Improvements raise the basis and so cut the gain, which is why receipts from a renovation matter years later.
- A gain smaller than the cap is fully excluded, and there is nothing left to report as taxable.
The exclusion works on gain, not on price
The single most common misreading of this rule is that a cap covers a sale price. It does not. It covers gain, which is proceeds minus basis, so a house that sold for $520,000 against a $200,000 basis produced a $320,000 gain and the cap is measured against that.
With a $250,000 cap, $250,000 of the gain is excluded and the remaining $70,000 is taxable. A far more expensive house with a small gain can be entirely covered, and a modest house held for decades can breach the cap easily.
Basis is the number worth defending
Basis starts as the purchase price and then moves. Buying costs add to it. Capital improvements add to it: a new roof, an extension, a rewire. Ordinary repairs do not. Anything that raises basis lowers gain dollar for dollar, which makes a kept receipt worth its face value in reduced taxable gain.
Over a long ownership those adjustments are frequently the difference between a gain inside the cap and a gain over it. The capital gains tax calculator shows what a taxable slice costs once it is established, and capital gain sets out the underlying identity.
The cap depends on who is selling
The exclusion is per filer, so a couple filing jointly commonly has twice the cap of a single filer, provided the ownership and use conditions are met by the right people. That is why this page takes the cap as an input rather than baking one in: the number that applies to you is a status question, not an arithmetic one.
The second example on this page uses a $500,000 cap on a $450,000 gain, and the whole gain disappears. Same identity, different cap, completely different outcome, and neither result depended on what the house sold for.
What the calculation covers
This is the gain, exclusion and taxable remainder computed exactly, for a main home, from the three figures you supply. Residence and ownership tests, partial exclusions for a move forced by circumstance, and depreciation recapture on a period of letting all sit outside the arithmetic and inside the rules that decide which cap applies. The home sale exclusion calculator runs the identity, and how investments are taxed covers gains outside the family home. This is educational material, not financial advice.
Worked examples
A \$520,000 sale with a \$200,000 basis
A main home sells for $520,000. The basis is $200,000 and the exclusion cap is $250,000. How much gain is taxable?
- Gain is proceeds minus basis: 520,000 minus 200,000 is $320,000.
- The exclusion covers up to the cap, so $250,000 comes off.
- What remains is 320,000 minus 250,000, which is $70,000.
$70,000 of the $320,000 gain is taxable, and the $520,000 sale price never entered the test.
A larger gain under a \$500,000 cap
A couple sells for $700,000 with a $250,000 basis and a $500,000 cap.
- The gain is 700,000 minus 250,000, which is $450,000.
- That is under the cap, so the exclusion covers the whole $450,000.
Taxable gain is 0. A bigger sale price produced a smaller taxable amount, because the cap tests gain rather than price.
Common questions
Does the exclusion apply to a rental property?
No. It is for a main home. A period of letting also brings depreciation rules into the calculation.
Do improvements really change the tax?
Yes. Every dollar added to basis takes a dollar off the $320,000 gain, and here that is a dollar off the taxable slice.
What if the gain is below the cap?
Then the whole gain is excluded and nothing is taxable, as the second example shows.
Is this financial advice?
No. It is educational material about how a gain exclusion is calculated.
Keep reading
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.