Home sale tax calculator
Home sale tax calculator: enter what you paid for the house, what you spent improving it and what the sale netted, then flip the main-home switch on the real estate row. The calculator below takes the section 121 exclusion off the gain before it prices anything.
Most home sales owe nothing. The exclusion removes up to $250,000 of gain, $500,000 on a joint return, and a sale under those amounts never reports a capital gain at all. Above them, the leftover is a long-term gain on the 0/15/20 schedule, and this page prices one of each.
How it works
How the section 121 exclusion works
The gain is net proceeds, the sale price less selling costs, minus the cost basis: what you paid plus capital improvements. The exclusion then takes its amount off the top: $250,000 for a single filer, married filing separately or head of household, $500,000 for a joint return. Whatever survives is taxed; whatever the exclusion covers is simply gone from the return.
The calculator applies the dollar cap and nothing more. The rules behind the cap are flagged, not computed: you must have owned the home and lived in it for two of the last five years, and you must not have used the exclusion on another home within two years. A row that fails those tests is a warning on the checklist, not a different number.
What survives the exclusion keeps the holding period. A home owned more than one year, which almost every qualifying sale was, puts its above-exclusion gain on the long-term schedule. A home sold within a year of purchase puts the remainder in the short-term brackets instead. And a principal residence sold at a loss never produces a deductible loss; the row is marked exempt and that is the end of it.
Worked example
A $600,000 gain on a joint return: $15,000 of tax
You bought a home in May 2013 for $600,000 and sold it in July 2026 for $1,240,000, paying $40,000 in commission and closing costs. Net proceeds are $1,200,000, so the gain is $600,000. Filing jointly, with wages of $150,000.
The exclusion takes its $500,000 off first. That leaves $100,000 of taxable long-term gain from a house owned thirteen years. On the 2026 joint schedule, wages after the standard deduction of $32,200 already sit past the $98,900 zero breakpoint, so the whole remainder pays 15%: $15,000. Modified adjusted gross income lands exactly at $250,000, the joint net investment income tax threshold, and a dollar at the threshold pays nothing, so no surcharge follows. Against the whole $600,000 gain, the bill is an effective 2.5%.
Now the other case. Sell a $320,000 home bought in 2018 for $505,000, a gain of $185,000 on a single return: the exclusion covers all of it, the row is marked exempt, and the tax is $0. No capital gain is reported at all.
One joint-return home sale, 2026
| Step | Amount |
|---|---|
| Sale price | $1,240,000 |
| Selling costs | $40,000 |
| Purchase price | $600,000 |
| Gain on the sale | $600,000 |
| Section 121 exclusion, joint return | $500,000 |
| Taxable long-term gain | $100,000 |
| Federal tax at 15% | $15,000 |
| The second sale, gain under the exclusion | $0 |
What counts and what does not
Details that move a home sale bill
- Selling costs come straight off. Commission and closing costs reduce the proceeds before the gain is measured, and they matter most in a sale close to the exclusion.
- Improvements raise the basis. A new roof or an added room cuts the gain; repairs deducted or paid in their own year do not count twice.
- The cap follows your filing status on the row. The calculator reads the same status as the federal layer: $250,000 single, separate or head of household, $500,000 joint.
- The two-year tests are warnings. Owned and lived in for two of the last five years, no exclusion used in the last two: the checklist flags a main-home row with those checks and the calculator prices the cap only.
- A house sold within a year of purchase is the one soft spot. Its above-exclusion remainder is short-term and rides the ordinary brackets at up to 37%.
- State tax still reads the gain. Where a state taxes capital gains, the exclusion lowers what the state layer sees too, because the layer is computed on the gain the calculator reports.
Questions
Frequently asked questions
How much gain can I exclude on the sale of my home?
Up to $250,000 of gain, or $500,000 on a joint return, provided you owned and lived in the home for two of the last five years and have not used the exclusion on another home within two years.
Do I pay tax on the full sale price of my house?
No. Tax, if any, falls on the gain: net proceeds after selling costs, minus what you paid plus capital improvements. The exclusion then removes its amount from that gain.
What if my gain is larger than the exclusion?
The remainder is reported as capital gain. Held more than one year it takes the 0/15/20 long-term schedule, which is what the worked example's $100,000 remainder did at 15%.
Is the gain above the exclusion taxed at a special rate?
No. It is an ordinary long-term capital gain, stacked on your other taxable income across the 0, 15 and 20 percent bands like any other.
Do improvements and selling costs really change the answer?
Yes. Improvements raise the basis and selling costs reduce the proceeds, so both shrink the gain. On a sale near the exclusion they decide whether anything is taxable at all.
Can I deduct the loss if I sell my home for less than I paid?
No. A principal residence is personal-use property, and a loss on it is never deductible. The calculator marks such a row exempt.
Sources
Where these figures come from
Also on capitalgainstax.net