Home sale capital gains calculator

When you sell your main home, up to $250,000 of gain ($500,000 for married couples) is tax-free if you owned and lived in it for two of the last five years. Our home sale capital gains calculator works out your gain, the exclusion, any depreciation taken back, and federal tax on the rest.

Updated November 2026

Calculator

Taxable gain
$0

    Check my real numbers

    Estimates only, for the 2026 tax year, using IRS figures (Rev. Proc. 2025-32, Pub 15-T) and state rates as of January 1, 2026. Your real tax depends on details a calculator can't see. Not tax, legal or investment advice. Nothing you type is stored or sent.

    How does the home sale exclusion work?

    Section 121 lets you exclude up to $250,000 of gain, or $500,000 on a joint return, if you owned the home and lived in it as your main home for at least two of the five years before the sale. You can use it once every two years. A partial exclusion may apply after a job move, health reason or other unforeseen event.

    What raises my basis?

    Your purchase price plus closing costs and the cost of improvements, like a new roof, addition or kitchen. Repairs don't count. Keep the receipts: they lower your gain. Our record retention guide says how long.

    What about depreciation?

    If you claimed a home office or rented the home, the depreciation you took is taxed back at up to 25% and can't be excluded. See Form 8829.

    Sources

    General information, not tax advice for your situation.

    Want your return done?

    One fixed price, agreed before we start.

    See our personal tax returns service
    Questions

    Still wondering?

    Ask anything else on a free 30-minute call.

    Book a call
    Do I pay tax when I sell my house?

    Not if your gain is under $250,000 ($500,000 joint) and you meet the two-out-of-five-year test.

    What if I lived there less than two years?

    You may get a partial exclusion for a move for work, health or another unforeseen reason. Otherwise the gain is taxable.

    Do I report the sale if no tax is due?

    If you got a Form 1099-S or have taxable gain, yes. Otherwise often not.

    Get started

    Tell us what's messy. We'll tell you what it takes.

    Tell us what you need and get a fixed price before any work starts. No pressure and no contract.

    Get a free quote

    Your name, plus an email or a phone number, whichever you prefer.

    A sentence or two is plenty. Please don't include Social Security numbers, bank or card numbers, or tax documents here.

    Thanks. This is a design preview, so nothing was sent.