Home Sale Long-term Capital Gains Tax Estimator*

For use by professionals. No warranty; confirm results and design decisions with a licensed engineer. Site Terms

Click here to provide feedback on this calculator

Your current inputs are sent with it, so we can see what you saw.

*For long-term gains: property held for more than one year. A short-term gain (property held a year or less) is taxed as ordinary income at your income tax rate.

Method

Capital gain

Capital gain = sales price × (1 − sales commission) − original purchase price − expenses

If you owned the property and lived in it as your primary residence for two of the last five years, and have not claimed the exclusion on another home sale in the past two years, up to $250,000 of the gain is excluded, or $500,000 if you are married filing jointly and both spouses meet the two-year use test. See IRS Publication 523. The exclusion never goes beyond the gain itself, and a loss on the sale of a personal home is not deductible, so the tax is never negative.

Taxable gain = capital gain − excluded amount (not less than zero)

Tax on the gain

Long-term capital gains are taxed at 0%, 15% or 20%, depending on where they fall in your total taxable income. Your ordinary taxable income fills the brackets first, and the gain is stacked on top of it. So a gain is taxed at 0% only as far as the 0% ceiling is above your other income, and at 20% only above the 15% ceiling.

  • Gain at 0% = the part of the gain below the 0% ceiling
  • Gain at 15% = the part between the 0% and 15% ceilings
  • Gain at 20% = the rest

Net investment income tax

A 3.8% net investment income tax (NIIT) applies to the smaller of the taxable gain and the amount by which income exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). The law bases this on modified adjusted gross income; the estimator uses taxable income plus the gain, which is lower than MAGI by at least your deductions, so the NIIT may be understated. See IRS: Net investment income tax.

Capital gains tax = 15% × gain at 15% + 20% × gain at 20% + NIIT

Proceeds

  • Net gain after tax = sales price − purchase price − expenses − sales commission − capital gains tax
  • Cash on hand = sales price − remaining mortgage − sales commission − capital gains tax − next home's price

Example

A married couple, filing jointly, bought a home for $555,000 and spent $300,000 renovating it. They sell it in 2026 for $1,900,000, pay a 7% commission and still owe $100,000 on the mortgage. It has been their home for more than two of the last five years. Their 2026 taxable income, not counting the sale, is $260,000.

  • Capital gain = $1,900,000 × (1 − 7%) − $555,000 − $300,000 = $912,000
  • Excluded = $500,000, so the taxable gain is $412,000
  • Their $260,000 of other income is already above the 0% ceiling ($98,900), so none of the gain is at 0%.
  • Gain at 15% = $613,700 − $260,000 = $353,700 → $53,055
  • Gain at 20% = $412,000 − $353,700 = $58,300 → $11,660
  • NIIT = 3.8% × the smaller of $412,000 and ($672,000 − $250,000 = $422,000) = 3.8% × $412,000 = $15,656
  • Capital gains tax = $53,055 + $11,660 + $15,656 = $80,371, an effective 19.5% of the taxable gain
  • Net gain after tax = $1,900,000 − $555,000 − $300,000 − $133,000 − $80,371 = $831,629
  • Cash on hand = $1,900,000 − $100,000 − $133,000 − $80,371 = $1,586,629

What it leaves out

This is an estimate of the federal tax only. It does not include state income tax; depreciation recapture on a rental or a home office, which is taxed at up to 25%; the reduced exclusion for a partial period of use; or other adjustments to basis. Consult a tax professional.

Long-term capital gains rates by filing status

Taxable income, including the gain. From IRS Revenue Procedures 2024-40 (2025) and 2025-32 (2026), section 3.03; NIIT thresholds from IRC §1411 and the exclusion from IRC §121.

2026

Filing status0% rate15% rate20% rate3.8% NIIT overHome-sale exclusion
Single$0 to $49,450$49,451 to $545,500over $545,500$200,000$250,000
Married, filing jointly$0 to $98,900$98,901 to $613,700over $613,700$250,000$500,000
Married, filing separately$0 to $49,450$49,451 to $306,850over $306,850$125,000$250,000
Head of household$0 to $66,200$66,201 to $579,600over $579,600$200,000$250,000

2025

Filing status0% rate15% rate20% rate3.8% NIIT overHome-sale exclusion
Single$0 to $48,350$48,351 to $533,400over $533,400$200,000$250,000
Married, filing jointly$0 to $96,700$96,701 to $600,050over $600,050$250,000$500,000
Married, filing separately$0 to $48,350$48,351 to $300,000over $300,000$125,000$250,000
Head of household$0 to $64,750$64,751 to $566,700over $566,700$200,000$250,000

See also IRS Topic 409, Capital gains and losses.

Top