Estimate your capital gain, potential home-sale exclusion, and tax when selling your home.
Enter your home sale information
to estimate your capital gains tax.
A capital gains tax on home sale calculator is a free online tool that helps homeowners estimate the potential capital gains tax when selling a home. By entering your sale price, purchase price, improvements, selling expenses, and other key information, you can get a quick estimate of your gain and potential tax.
Understanding your capital gains tax on home sale is important for financial planning. This calculator also estimates your potential eligibility for the home-sale exclusion, which can eliminate tax on up to $250,000 (single) or $500,000 (married joint) of gain for qualifying primary residences.
Using this home sale capital gains calculator is straightforward. Follow these steps:
The basic formula for calculating capital gain on a home sale is:
Adjusted Basis = Purchase Price + Capital Improvements + Other Basis Adjustments
Amount Realized = Sale Price โ Selling Expenses
Estimated Gain = Amount Realized โ Adjusted Basis
Taxable Gain = Estimated Gain โ Potential Exclusion
Estimated Tax = Taxable Gain ร Estimated Tax Rate รท 100
The home-sale exclusion can eliminate tax on up to $250,000 (single) or $500,000 (married joint) of gain for qualifying primary residences.
The home-sale exclusion allows qualifying taxpayers to exclude a portion of the gain from the sale of a primary residence:
This calculator provides an estimate of potential eligibility. Actual qualification depends on your specific circumstances.
To qualify for the home-sale exclusion, you generally must meet the 2-out-of-5-year test:
Yes. Selling expenses reduce the amount you realize from the sale, which reduces your capital gain. Common selling expenses include:
Yes. Qualifying capital improvements increase your adjusted basis, which reduces your taxable gain. Examples include:
Routine repairs and maintenance (painting, fixing leaks) do not generally increase basis.
No. The home-sale exclusion is generally associated with a qualifying primary residence:
For second homes and investment properties, see our Selling Second Home Tax Calculator.
Previous use of the exclusion can affect your eligibility:
This calculator includes a warning if previous exclusion use is indicated.
Yes, in many cases. State tax treatment varies widely:
This calculator estimates federal tax only. Check with your state's tax authority for complete guidance.
Hypothetical Scenario:
| Sale Price | $600,000 |
| Selling Expenses | $30,000 |
| Amount Realized | $570,000 |
| Purchase Price | $350,000 |
| Capital Improvements | $50,000 |
| Adjusted Basis | $400,000 |
| Estimated Gain | $170,000 |
| Potential Exclusion (Single) | $170,000 |
| Taxable Gain | $0 |
| Estimated Tax | $0 |
This is a hypothetical example for illustration only. Actual eligibility and tax treatment can differ.
Consider professional advice when:
Always consult a qualified tax professional for your specific situation.
Calculate as: Amount Realized โ Adjusted Basis = Gain. Then subtract any eligible exclusion to get taxable gain. Multiply taxable gain by your estimated tax rate. This calculator provides an estimate based on your inputs.
The capital gains tax depends on your gain, filing status, and whether you qualify for the home-sale exclusion. For qualifying primary residences, up to $250,000 (single) or $500,000 (married joint) of gain may be excluded from tax.
The home-sale exclusion allows qualifying taxpayers to exclude up to $250,000 (single) or $500,000 (married joint) of gain from the sale of a primary residence. To qualify, you generally must have owned and lived in the home for at least 2 of the 5 years before the sale.
Yes, single filers may be able to exclude up to $250,000 of gain from the sale of a qualifying primary residence, provided they meet the ownership and use requirements.
Yes, married couples filing jointly may be able to exclude up to $500,000 of gain from the sale of a qualifying primary residence, provided both spouses meet the ownership and use requirements.
Yes. The home must have been your primary residence for at least 2 years (24 months) in the 5-year period before the sale to qualify for the full exclusion.
Yes. Qualifying capital improvements that add value, extend the property's life, or adapt it to new uses increase your adjusted basis, which reduces your taxable gain.
Yes. Selling expenses such as real estate commissions, legal fees, and closing costs reduce your amount realized, which reduces your capital gain.
If you sell your home for less than your adjusted basis, you have a capital loss. Losses from the sale of a personal residence are generally not deductible. This calculator will show "Estimated Loss."
No. This calculator estimates federal tax only. State tax treatment varies widely. Some states have no capital gains tax, while others tax it as ordinary income.
No. The home-sale exclusion generally applies to primary residences only. Rental properties and investment properties do not qualify. For rental properties, see our Selling Rental Property Tax Calculator.
Generally, you can use the exclusion once every 2 years. If you used it within the last 2 years, you may not be eligible for a new exclusion. A partial exclusion may be available in certain circumstances.
No. This calculator provides an estimate for educational purposes. Actual tax liability depends on many factors including your basis, exclusion eligibility, income, filing status, and federal and state rules.
Keep records of: purchase price, closing costs, capital improvements, selling expenses, ownership and use dates, and any prior exclusion use. These records support your tax basis and exclusion eligibility.
This calculator is designed for primary residences. For second homes, see our Selling Second Home Tax Calculator.
Our team of financial writers, tax researchers, and technical developers work together to deliver clear, accurate, and useful tax calculators and guides for U.S. taxpayers. We are committed to helping you understand your taxes better and make informed financial decisions.
Learn More About Our Team โ