Capital Gains on Home Sale
Estimate the tax on a home sale
See how much of your profit from selling a home is taxable, and roughly what you’d owe in federal tax. You’ll need the expected sale price, what you paid for the home, and what you’ve spent on major improvements.
Results are estimates based on your inputs and the assumptions on this page, not quotes or advice. A lender, servicer, or tax advisor will give you different numbers. Disclaimer
Something look off? Report it
Terms used on this page
The IRS terms that turn a sale price into taxable profit, and the rates that apply to it.
- Capital gain
- Your profit when you sell: the sale price minus selling costs, minus your cost basis.
- Cost basis
- What the IRS counts as your investment in the home: the purchase price, plus some purchase closing costs, plus major improvements, minus any depreciation. A higher basis means a smaller taxable profit. More
- Capital improvements
- Projects that add value or extend the home’s life, like a remodel, an addition, or a new roof. They raise your basis. Repairs and routine upkeep don’t.
- Selling costs
- Agent commissions, transfer tax, title fees, and credits to the buyer. They come off the sale price before your profit is figured.
- Section 121 exclusion
- The rule that makes up to $250,000 of profit on your main home tax-free ($500,000 married filing jointly) if you owned and lived in it for 2 of the 5 years before the sale. More
- Long-term capital gains rate
- The lower federal rate (0%, 15%, or 20%) on profit from something you owned for more than a year. Which rate applies depends on your income.
- Depreciation recapture
- If the home was ever a rental or had a home office, the depreciation from those years is taxed at sale at up to 25%. The Section 121 exclusion doesn’t cover it.
- NIIT (net investment income tax)
- An extra 3.8% federal tax on investment income, including taxable home sale profit, for higher earners. Profit covered by the exclusion isn’t subject to it. More
- Marginal tax bracket
- The federal income tax rate on your last dollar of income, such as 22% or 24%. This tool uses it to estimate your capital gains rate.
- Married filing jointly (MFJ)
- The tax filing status for married couples who file one return together. It doubles the home sale exclusion to $500,000.
Keep learning
Next steps
- Seller net sheet: the cash you’d walk away with after your loan payoff
- Cost basis tracker: add up your improvements and basis
- Sell vs rent out: whether to sell now or keep it as a rental
- 1031 exchange: put off tax when selling an investment property