Estimate your federal capital gains tax from selling real estate. Enter your details below.
Enter your property sale information
to estimate your capital gains tax.
Capital gains tax is levied on the profit (gain) from the sale of property. The gain is generally the difference between your adjusted basis (purchase price plus improvements and eligible costs) and the sale proceeds (sale price minus selling expenses). For primary residences, the IRS allows an exclusion of up to $250,000 ($500,000 for married filing jointly) if you meet the ownership and use tests.
Understanding your capital gains tax on property sale is important for financial planning. This calculator helps you estimate your potential federal tax liability.
Using this property capital gains calculator is straightforward. Follow these steps:
This calculator estimates your federal capital gains tax by:
Formula:
Sale Proceeds = Sale Price − Selling Expenses
Adjusted Basis = Purchase Price + Closing Costs + Improvements − Depreciation
Capital Gain = Sale Proceeds − Adjusted Basis
Taxable Gain = Capital Gain − Exclusion − Depreciation Recapture
Estimated Tax = Taxable Gain × Applicable Rate
Your cost basis can be increased by capital improvements such as:
Routine maintenance (repairs) does not count. For more details, see IRS Publication 551.
If you have owned and lived in the home for at least two of the five years before the sale, you may qualify for the home sale exclusion. This can exclude up to:
Partial exclusions may be available for certain situations (e.g., health issues, job relocation, or unforeseen circumstances).
Rental properties are subject to depreciation recapture. Depreciation claimed during ownership reduces your basis, potentially increasing the taxable gain. The recapture is taxed at a maximum rate of 25%. IRS Publication 544 covers sales of business property.
For rental properties, see our Capital Gains on Sale of Rental Property Calculator.
The holding period determines whether your gain is short-term or long-term:
For 2025, the 0% rate applies for single filers with taxable income up to $47,025, and the 20% rate applies above $518,900 (single) or $583,750 (joint).
This calculator focuses on federal capital gains tax. State and local taxes may apply and vary by jurisdiction:
Always consult a tax professional for a complete picture.
Hypothetical Scenario:
| Purchase Price | $300,000 |
| Closing Costs | $10,000 |
| Capital Improvements | $20,000 |
| Depreciation Taken | $0 |
| Adjusted Basis | $330,000 |
| Selling Price | $450,000 |
| Selling Expenses | $25,000 |
| Sale Proceeds | $425,000 |
| Capital Gain | $95,000 |
If this is a primary residence with a $250,000 exclusion, the taxable gain would be $0 (since $95,000 is below the exclusion). If it's a rental, the gain would be taxed at applicable rates.
Consider professional advice when:
Always consult a qualified tax professional for your specific situation.
Subtract your adjusted basis (purchase price + improvements + closing costs) from the net sale proceeds (sale price – selling expenses). Apply the home sale exclusion if eligible, then apply the applicable capital gains rate.
Cost basis is generally the original purchase price plus certain closing costs and capital improvements. It's used to determine your gain.
Yes, selling expenses such as commissions and legal fees are subtracted from the sale price to arrive at net sale proceeds, thereby reducing the gain.
Yes, qualifying improvements that add value or prolong the life of the property can increase your basis and reduce your gain.
Not always. If you meet the ownership and use tests, you may exclude up to $250,000 ($500,000 for joint filers) of gain.
It's an IRS provision that allows taxpayers to exclude a portion of gain from the sale of a primary residence, subject to conditions.
Rental properties are subject to depreciation recapture, which can increase the taxable gain. The remaining gain is taxed at capital gains rates.
Yes, depreciation claimed reduces your basis, potentially increasing the gain. Recapture is taxed at up to 25%.
No, it's based on the gain (sale proceeds minus adjusted basis), not the total sale price.
No, this calculator estimates federal tax only. State taxes vary and are not included.
Yes, short-term gains (held ≤1 year) are taxed as ordinary income; long-term gains have preferential rates (0%, 15%, 20%).
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 →