Capital Gains Tax Calculator for a Home Sale

Most homeowners owe nothing when they sell a primary residence, thanks to the Section 121 exclusion. Enter your numbers to see your adjusted basis, gain, how much the exclusion shelters, and an estimate of any federal tax using 2026 rates. Texas has no state income tax.

The sale
Your basis
You
Estimated federal tax-
Adjusted basis-
Total gain-
Excluded (Sec. 121)-
Taxable gain-
Incl. 3.8% NIIT-
Effective rate on gain-

Estimates only. Results depend on the inputs you provide and are not a loan offer, appraisal, tax bill or claim determination.

How the gain is calculated

Gain = sale price minus selling costs minus your adjusted basis (purchase price, certain purchase closing costs and capital improvements, less any depreciation you claimed). If you owned and lived in the home for at least 2 of the last 5 years, you can exclude up to $250,000 of gain, or $500,000 if married filing jointly.

2026 long-term capital gains rates

For 2026 (IRS Rev. Proc. 2025-32), long-term gains are taxed at 0% up to $49,450 of taxable income for single filers ($98,900 married filing jointly), 15% up to $545,500 ($613,700 joint), and 20% above. A 3.8% net investment income tax may apply above $200,000 of modified AGI ($250,000 joint). Depreciation claimed after May 6, 1997 cannot be excluded and is taxed at up to 25%.

Frequently asked questions

Do I pay capital gains tax if I sell my house in Texas?

Texas has no state income tax, so only federal tax can apply. If you meet the ownership and use tests, the first $250,000 of gain ($500,000 for most married couples) is excluded, so many sellers owe nothing.

What if I lived there less than two years?

You may qualify for a partial exclusion if you moved for a job change, health reasons or certain unforeseen circumstances. This calculator does not compute partial exclusions - see IRS Publication 523 or a CPA.

What counts as a capital improvement?

Improvements that add value, extend the home's life or adapt it to new uses - a new roof, HVAC system, addition, remodel or foundation repair. Routine repairs and maintenance do not count. Keep receipts for as long as you own the home.

Related guides

Make your next move with confidence

Run the numbers before you buy, sell, refinance or file a claim. Every calculator is free, private and runs right in your browser.

Browse free tools