Capital Gains on Home Sale Calculator
Estimate your home-sale gain, see how the exclusion may apply, and plan for possible federal tax before you sell.
- 2026 figures, checked October 26, 2026
- 2 official sources
- Private: runs in your browser
- How we check our work
Result
…
Verify before you act: review these results with a CPA, enrolled agent or tax attorney before making any decision based on them.
Suggestions for your numbers
Updated as you type, from your inputs only. General information, not personal advice; confirm any change with a qualified professional.
See it over time
Hover over or tap the chart to see the numbers for any point.
What is capital gains tax on a home sale?
A capital gain is the profit you make when you sell an asset for more than its adjusted cost. For a home sale, this calculator estimates the gain by subtracting selling costs, your purchase price, and qualifying improvements from the sale price.
The federal home-sale exclusion may let you exclude up to $250,000 of gain, or up to $500,000 if you file jointly, when you meet the ownership and use tests. If your gain is larger than the amount you can exclude, the remaining taxable gain may be taxed as a long-term gain. The calculator provides an estimate, not a tax return.
Why home-sale capital gains matter
A home can sell for much more than you paid, but the sale price alone does not tell you how much gain may be taxable. Selling costs and qualifying improvements can affect the calculation, and your filing status and eligibility for the exclusion also matter.
An estimate can help you compare a sale price with the money you may have left after costs and estimated federal tax. That can inform decisions about your next home, savings, or other plans. The estimate can also help you decide which receipts and sale documents to gather before filing.
The result depends on the information you enter and the exclusion rules that apply to you. It focuses on the federal tax estimate shown, including net investment income tax when applicable. Check separately whether state or other tax rules affect your sale, and confirm your situation with a qualified tax professional.
How to use this home sale tax calculator
- Choose your filing status. The available home-sale exclusion can depend on whether you file individually or jointly.
- Enter the sale price you expect or received. Use the actual sale price when you have it.
- Enter selling costs, such as costs directly tied to completing the sale. Use records or closing documents rather than a rough guess.
- Enter your original purchase price and the cost of qualifying home improvements. The calculator uses these amounts to estimate your gain.
- Answer the eligibility question as accurately as you can. The exclusion depends on meeting the ownership and use tests; do not assume you qualify if you are unsure.
- Enter your other taxable income if requested. It can affect the estimated federal tax on any taxable gain that remains after the exclusion.
Home sale capital gains calculator example
Worked example
With a filing status of Married filing jointly, a sale price of $650,000, selling costs of $35,000, an original purchase price of $300,000, and improvements of $40,000, the estimated gain is $275,000. The sample result applies a $275,000 exclusion, leaving a taxable gain of $0. It estimates federal tax of $0, net investment income tax of $0, and total tax of $0. This example assumes the eligibility conditions are met and uses other taxable income of $120,000. Your result may differ if your facts or eligibility differ.
How to read your home-sale tax estimate
Start with the gain. The calculator subtracts selling costs, purchase price, and improvements from the sale price. In the sample, $650,000 minus $35,000, $300,000, and $40,000 equals a gain of $275,000.
Next, compare the gain with the exclusion shown. The exclusion in the sample is $275,000, so the taxable gain is $0. The exclusion shown is the amount applied to the gain, not necessarily the maximum exclusion available to you. If some gain remains taxable, the calculator estimates federal tax and net investment income tax using the information entered. Treat the total as an estimate and review the underlying assumptions.
How to improve your home-sale tax estimate
- 01
Gather complete sale records
Use your closing documents to check the sale price and selling costs. Enter supported amounts so the estimate reflects the transaction rather than an approximation.
- 02
Document qualifying improvements
Keep invoices and other records for work that adds value or extends the home's life. The calculator includes improvements in its gain formula, but routine repairs do not count as improvements under the guidance cited on this page.
- 03
Check exclusion eligibility
Review whether you meet the ownership and use tests before relying on an exclusion. If your living or ownership history is complicated, ask a tax professional to review it.
- 04
Compare sale scenarios
If you are still deciding whether to sell, run the calculator with realistic sale prices and costs. Compare the estimated proceeds with the cash you need for your next home or other plans. Do not change or omit costs to produce a preferred result.
Common home-sale tax calculator mistakes
Using the sale price as the gain
The gain is not simply the sale price. The calculator subtracts selling costs, purchase price, and improvements.
Counting routine repairs as improvements
Routine repairs do not count as improvements in the guidance cited here. Include only qualifying work, and keep records to support the amount.
Assuming you automatically qualify for the exclusion
The exclusion depends on meeting ownership and use tests. Check your circumstances instead of assuming the maximum applies.
Treating an estimate as your final tax bill
The result depends on your entries and the calculator's assumptions. Confirm your federal and state tax situation with a qualified tax professional.
The home sale gains formula
Gain = sale price - selling costs - purchase price - improvements. Up to $250,000 ($500,000 joint) is excluded if you meet the ownership and use tests; the rest is taxed as a long-term gain.
Key terms
- Capital gain
- The profit estimated from selling an asset for more than its cost, after the deductions included in the calculator's formula.
- Home-sale exclusion
- A federal exclusion that may let an eligible homeowner exclude up to $250,000 of gain, or up to $500,000 on a joint return, when the ownership and use tests are met.
- Taxable gain
- The portion of the estimated gain remaining after the exclusion shown by the calculator.
- Net investment income tax
- A federal tax that may apply in some situations. The calculator shows an estimate for it when applicable.
Home sale gains questions
Do repairs count as improvements?
Only improvements that add value or extend the home's life count, such as a new roof; routine repairs do not.
Does filing status affect the home-sale exclusion?
Yes. The exclusion can be up to $250,000, or up to $500,000 for a joint return, if you meet the ownership and use tests. The amount applied in your estimate depends on your gain and eligibility.
Can selling costs reduce the gain?
Selling costs are subtracted in this calculator's formula. Enter documented costs connected with the sale, and ask a tax professional if you are unsure whether a cost qualifies.
Why does the calculator ask for other taxable income?
Other taxable income can affect the estimated federal tax on a taxable gain that remains after the exclusion. Enter a reliable figure and treat the result as an estimate.
Does this estimate include state tax?
The result displays federal tax and net investment income tax. Check your state's rules separately because this estimate does not show a state-tax line.
Sources
Before you act on this result. Cordwell calculators and guides are educational estimates, not legal, tax, investment, lending or other professional advice. They rely on the numbers you enter and on simplified rules, and they can't see your full situation. Before you file, sign, borrow, invest, hire, change your withholding or form a business based on anything here, meet with a CPA, enrolled agent or tax attorney who can review your specific facts and confirm the numbers. Rules change, and official agency guidance always controls.