Skip to main content
    Skip to main content

    Real Estate

    Home Sale Capital Gains Tax Calculator

    Updated Reviewed for 2025 & 2026 tax years

    The Section 121 home-sale exclusion can shelter qualifying gain on a main home, while depreciation and possible net investment income tax remain separate. This calculator estimates the exclusion, taxable long-term gain, unrecaptured Section 1250 amount, and federal tax from the facts entered; it does not determine eligibility when ownership, use, prior sales, or business use require factual review.

    IRS-Sourced
    Inflation-adjusted

    How much federal tax will I owe on the sale of my home?

    On a $1,200,000 sale with a $430,000 adjusted basis, your total gain is $698,000. The §121 exclusion covers $500,000, leaving $198,000 in taxable long-term gain plus $0 in unrecaptured §1250 depreciation. Estimated federal tax: $35,788.

    • §121 exclusion cap: $500,000 (MFJ). NOT indexed since 1997.
    • Depreciation recapture is taxed at your ordinary rate capped at 25% — and can NEVER be excluded under §121.
    • NIIT (3.8%) applies to the lesser of net investment income or MAGI over $200K single / $250K MFJ.
    • State capital gains tax is NOT included — rates vary by state.

    Source:IRS Topic 701 & Publication 523

    Filing & sale

    $
    $
    $
    $

    §121 exclusion eligibility

    Advanced

    $
    $
    $

    What this calculator DOES NOT model (be honest)

    • State tax. State capital gains rates vary widely (0% in TX/FL/WA on wages; 13.3% top in CA). Add your state's rate separately.
    • Surviving spouse rule. If your spouse died no more than 2 years before the sale and you have not remarried, you can keep the $500K cap. Check the surviving-spouse box under §121 eligibility; keep the filing status you actually file with.
    • Non-qualified use (post-2008), in months. The §121(b)(5) proration uses the months you enter; Pub 523 Worksheet 3 counts days, so your return can differ slightly.
    • Personal-residence losses are not deductible. If the sale is at a loss, the IRS gives you nothing. Only investment/rental property losses flow to Schedule D.
    • Current law only. The "No Tax on Home Sales Act" (H.R. 4327) is a proposal — not law. This calculator uses IRC §121 as it stands in 2026.

    Estimated federal tax

    $35,788

    Net proceeds after federal tax: $1,092,212

    Amount realized$1,128,000
    Adjusted basis$430,000
    Total gain$698,000
    §121 exclusion cap$500,000
    Exclusion applied$500,000
    Taxable long-term gain$198,000
    Unrecaptured §1250$0
    Recapture rate (effective)0.0%
    Recapture tax$0
    LTCG marginal rate15.0%
    LTCG tax$29,700
    NIIT (3.8%)$6,088

    How this calculator works

    Step 1 — Compute the gain. Amount realized = sale price − selling costs. Adjusted basis = purchase price + acquisition costs + capital improvements − depreciation allowed or allowable (even if you never claimed it). Total gain = realized − basis.

    Step 2 — Apply §121. Full $250K / $500K exclusion only if you owned AND used the home ≥24 of the last 60 months AND didn't use §121 in the prior 2 years. Otherwise a prorated cap = full cap × min(months owned, months used) / 24 — and ONLY if the sale was for a qualifying reason (job change ≥50 mi, health, unforeseen circumstance). Married filing jointly, the $500K needs both spouses' use and neither spouse's recent prior exclusion; otherwise each spouse's own limit is figured separately and added. No exclusion within 5 years of acquiring the home in a 1031 exchange. If the home was not your main home for a period after 2008 before you last lived there, the share of the gain (other than depreciation) for that nonqualified use can't be excluded (§121(b)(5)).

    Step 3 — Depreciation recapture. Depreciation allowed or allowable after May 6, 1997 (whether or not you claimed it) becomes unrecaptured §1250 gain, taxed at your marginal ordinary rate capped at 25%. It's never excludable under §121.

    Step 4 — LTCG + NIIT. Your other income minus your deduction is your taxable income before the sale; the taxable long-term gain is stacked on top of it and taxed at 0 / 15 / 20% per the year-aware brackets. A home held 1 year or less produces short-term gain instead, taxed as ordinary income at your regular rates. NIIT of 3.8% applies to the lesser of net investment income or MAGI (your AGI, the taxable gain included) over $200K single / $250K MFJ (thresholds are also NOT inflation-indexed).

    Disclaimer: This calculator provides estimates for educational purposes only. Not tax, legal, or financial advice. Results may vary based on your specific circumstances. Consult a qualified CPA or tax professional for personalized guidance.