📊 Property Tax Tool

Capital Gains Tax Calculator on Sale of Property

Estimate your federal capital gains tax from selling real estate. Enter your details below.

⚠️ Estimate only — actual tax liability depends on your basis, holding period, income, filing status, and federal/state rules.
🏠 Property Sale Information
The amount you paid for the property.
Eligible costs such as title fees, legal fees, inspection.
Qualifying improvements that add value or prolong life (e.g., new roof, addition).
The final sale price of the property.
Commissions, legal fees, advertising, transfer taxes.
Your total taxable income for the year (excluding this gain).
🏠

Enter your property sale information

to estimate your capital gains tax.

What Is Capital Gains Tax on Property?

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.

How to Use This Capital Gains Tax Calculator

Using this property capital gains calculator is straightforward. Follow these steps:

  1. Enter the purchase price — What you originally paid for the property.
  2. Enter purchase closing costs — Title fees, legal fees, inspection costs.
  3. Add capital improvements — Major renovations, additions, or structural improvements.
  4. Enter the selling price — The final sale price of the property.
  5. Enter selling expenses — Commissions, legal fees, advertising, transfer taxes.
  6. Select filing status — Single, Married Joint, Head of Household, or Married Separate.
  7. Enter your taxable income — Your total taxable income for the year (excluding this gain).
  8. Select property type — Primary residence, rental/investment, or second home.
  9. Select holding period — Long-term (> 1 year) or short-term (≤ 1 year).
  10. Click Calculate — Review your estimated gain and tax.
💡 Important: The home sale exclusion can significantly reduce or eliminate your taxable gain for primary residences.

How the Calculator Works

This calculator estimates your federal capital gains tax by:

  1. Calculating sale proceeds = sale price – selling expenses.
  2. Calculating adjusted basis = purchase price + closing costs + capital improvements – depreciation taken.
  3. Determining capital gain = sale proceeds – adjusted basis.
  4. Applying the home sale exclusion for primary residences.
  5. Accounting for depreciation recapture on rental properties.
  6. Applying the appropriate capital gains rate based on your taxable income and filing status.

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

What Can Increase Your Cost Basis?

Your cost basis can be increased by capital improvements such as:

  • Adding a room or finishing a basement.
  • Replacing the roof, siding, or windows.
  • Installing a new HVAC system.
  • Major kitchen or bathroom renovations.
  • Adding a deck, patio, or garage.

Routine maintenance (repairs) does not count. For more details, see IRS Publication 551.

Primary Residence Rules

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:

  • $250,000 for single filers
  • $500,000 for married couples filing jointly

Partial exclusions may be available for certain situations (e.g., health issues, job relocation, or unforeseen circumstances).

Rental or Investment Property

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.

Long-Term vs. Short-Term Capital Gains

The holding period determines whether your gain is short-term or long-term:

  • Short-term — Held for 1 year or less. Taxed as ordinary income (rates up to 37%).
  • Long-term — Held for more than 1 year. Taxed at preferential rates (0%, 15%, or 20% for 2025).

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).

Federal vs. State Taxes

This calculator focuses on federal capital gains tax. State and local taxes may apply and vary by jurisdiction:

  • Some states have no capital gains tax (e.g., Texas, Florida, Washington).
  • Others tax capital gains as ordinary income (e.g., California, New York).
  • Some states have special rules for property sales.

Always consult a tax professional for a complete picture.

Step-by-Step Example: How Input Creates Output

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.

Common Mistakes to Avoid When Calculating Property Capital Gains

  • Forgetting to include capital improvements — Many sellers don't track improvements, leading to a higher taxable gain.
  • Ignoring depreciation recapture — Rental property owners must account for depreciation.
  • Missing selling expenses — Real estate commissions and other costs reduce your gain.
  • Not considering the home sale exclusion — Primary residence sellers often qualify for significant exclusions.
  • Confusing state and federal rules — Each has its own rates and rules.

When to Consult a Tax Professional

Consider professional advice when:

  • You're unsure about your basis or improvements.
  • You have a rental or investment property with depreciation.
  • You're considering a 1031 exchange or other deferral strategy.
  • You have multiple properties or complex ownership structures.

Always consult a qualified tax professional for your specific situation.

Frequently Asked Questions

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%).

📘
SmartTaxCalculator Editorial Panel
Written and technically verified by the SmartTaxCalculator Personal Finance Editorial Panel

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 →
Disclaimer: This calculator provides an estimate for informational purposes only. Actual tax liability may depend on individual circumstances, federal and state rules, property use, depreciation, deductions, exclusions and other factors. Consult a qualified tax professional for advice about your specific situation.

Read full disclaimer →