Home Sale Tax Calculator
Will you owe tax when you sell your home? Calculate your capital gain, check if you qualify for the Section 121 exclusion ($250K single / $500K MFJ), and explore strategies to minimize or eliminate tax on your home sale.
Try another scenario
How to Use This Calculator
Capital Gain on Home Sale tab
The default tab. Enter your purchase price, sale price, capital improvements, and selling costs. The calculator computes your adjusted basis, total gain, Section 121 exclusion, and estimated federal + state tax. Expand "More options" to add other taxable income (affects your capital gains bracket), state tax rate, and depreciation recapture if you rented the home.
Do I Qualify? tab
Use this if you're unsure whether you meet the Section 121 ownership and use tests. Enter months owned and months lived in as a primary residence. If you lived there less than 2 years, select your reason for the early sale — you may qualify for a partial exclusion. If you rented the home, enter rental months to see the non-qualified use impact.
Tax Strategies tab
For gains that exceed your exclusion. See how documenting improvements increases your basis, whether an installment sale reduces your bracket, and how the Net Investment Income Tax (3.8%) affects high earners. Compare strategies side by side.
Share your result
Every input is encoded in the URL. Click Share to send your exact scenario to a spouse, accountant, or real estate agent.
The Formula
The IRS uses a straightforward formula to determine your taxable gain on a home sale:
Gain = Sale Price − Selling Costs − Adjusted Basis
Taxable Gain = max(0, Gain − Section 121 Exclusion)
Section 121 Exclusion:
• $250,000 if Single, HoH, or MFS
• $500,000 if Married Filing Jointly
• Must own AND live in home 2 of last 5 years
Partial Exclusion = Full Exclusion × (Months Lived / 24)
(only if moved for work, health, or unforeseen circumstances)
If your gain is below the exclusion, you owe $0 in capital gains tax and don't even need to report the sale on your tax return (unless you received a Form 1099-S). If your gain exceeds the exclusion, the excess is taxed at long-term capital gains rates: 0%, 15%, or 20% depending on your income, plus potentially 3.8% NIIT and state tax.
Example
Karen & Bill — selling their home of 12 years in Scottsdale, AZ
Karen and Bill bought their home for $280,000 and are selling for $625,000. Over 12 years they invested $65,000 in capital improvements (kitchen remodel, new HVAC, pool). Selling costs are 5.5% ($34,375). They file jointly.
Capital Gain on Home Sale tab
Gain = $625,000 − $34,375 − $345,000 = $245,625. This is well under the $500,000 MFJ exclusion. Karen and Bill owe $0 in tax.
Do I Qualify? tab
They easily qualify — 12 years of ownership and use far exceeds the 2-of-5-year requirement.