📊 Property Tax Tool

Capital Gains Tax Calculator on Sale of Property

Estimate your potential federal capital gains tax when selling property. This calculator provides a quick estimate based on current 2026 tax rates.

⚠️ Estimate only — actual tax liability depends on your basis, holding period, income, filing status, and federal/state rules.
🏠 Property Sale Information
Original purchase price of the property
Final sale price of the property
Date you acquired the property
Date the property was sold
Title insurance, legal fees, surveys, etc.
Major renovations, additions, upgrades
Commissions, advertising, legal fees
Total depreciation claimed (rental properties)
How the property was used
For determining exclusion and tax rates
Special assessments, casualty losses, legal fees, etc.
🏠

Enter your property sale information

to estimate your capital gains tax.

What Is a Capital Gains Tax Calculator on Sale of Property?

A capital gains tax calculator on sale of property is a free online tool that helps property owners estimate the potential federal capital gains tax when selling real estate. By entering your purchase and sale details, improvements, expenses, and other key information, you can get a quick estimate of your gain and potential tax.

Understanding your capital gains tax on property sale is important for financial planning. This calculator considers the home sale exclusion, depreciation recapture, and long-term vs short-term capital gains rates.

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 the sale price — The total amount you received from the sale.
  3. Add purchase closing costs — Title insurance, legal fees, surveys, etc.
  4. Add capital improvements — Major renovations, additions, or structural improvements.
  5. Enter selling expenses — Commissions, legal fees, and closing costs.
  6. Enter depreciation taken — For rental or investment properties.
  7. Select property type — Primary residence, rental, second home, or land.
  8. Select filing status — Single, Married Joint, etc.
  9. 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 Are Capital Gains on Property Calculated?

The basic formula for calculating capital gains on property is:

Net Sale Proceeds = Sale Price − Selling Expenses

Adjusted Basis = Purchase Price + Closing Costs + Improvements − Depreciation + Other Adjustments

Estimated Capital Gain = Net Sale Proceeds − Adjusted Basis

Taxable Gain = Estimated Capital Gain − Applicable Exclusion

Estimated Tax = Taxable Gain × Applicable Tax Rate

The home sale exclusion can eliminate tax on up to $250,000 (single) or $500,000 (married joint) of gain for qualifying primary residences.

What Is the Adjusted Basis of a Property?

Your adjusted basis is what you've invested in the property. It includes:

  • Purchase Price — The original cost of the property.
  • Closing Costs — Title insurance, legal fees, survey costs, recording fees, transfer taxes, and other settlement costs.
  • Capital Improvements — Major renovations that add value, extend life, or adapt the property (e.g., new roof, room addition, HVAC system).
  • Depreciation — For rental properties, depreciation taken reduces your basis.
  • Other Adjustments — Special assessments, casualty losses, legal fees, and certain other costs.

A higher basis means a lower taxable gain. For more details, see IRS Publication 551.

What Can Increase Your Cost Basis?

Several items can increase your cost basis, which reduces your taxable gain:

  • Major renovations — Kitchen remodels, bathroom additions, finished basements.
  • Structural improvements — New roofing, siding, windows, or HVAC systems.
  • Landscaping — Extensive landscaping, fencing, or outdoor structures.
  • Legal fees — Costs associated with defending or perfecting title.
  • Special assessments — Assessments for local improvements like streets or sidewalks.

Normal maintenance and repairs (painting, fixing leaks) do not increase basis.

Do Selling Expenses Reduce the Gain?

Yes. Selling expenses are subtracted from the sale price to determine your net proceeds. Common selling expenses include:

  • Real estate commissions — Typically 5-6% of the sale price.
  • Legal fees — Attorney fees for the closing.
  • Advertising costs — Marketing and listing expenses.
  • Transfer taxes — State or local transfer taxes.
  • Title insurance — For the buyer (if paid by seller).

Primary Residence Considerations: The Home Sale Exclusion

If the property was your primary residence, you may be eligible for the home sale exclusion. To qualify, you generally must have:

  • Owned and lived in the home as your primary residence for at least 2 of the 5 years before the sale.
  • Not used the exclusion on another home in the 2 years before the sale.

The exclusion allows you to 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 and Investment Property Considerations

Rental and investment properties have additional tax considerations:

  • Depreciation recapture — Depreciation taken during the rental period is subject to recapture, which is taxed at a maximum rate of 25%.
  • 1031 exchanges — May defer capital gains tax if you reinvest proceeds into a similar property.
  • Passive activity rules — May affect how losses are treated.

For rental properties, see our Capital Gains on Sale of Rental Property Calculator.

Short-Term vs Long-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 2026).

For 2026, the 0% rate applies for single filers with taxable income up to $44,600, and the 20% rate applies above $492,300 (single) or $553,850 (joint).

Federal vs State Taxes on Property Sales

This calculator estimates federal capital gains tax only. State tax treatment varies:

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

Check with your state's tax authority for complete guidance.

Step-by-Step Example: How Input Creates Output

Hypothetical Scenario:

Purchase price$200,000
Capital improvements$30,000
Purchase closing costs$8,000
Depreciation taken$12,000
Adjusted basis$226,000
Sale price$350,000
Selling expenses$21,000
Net sale proceeds$329,000
Estimated capital gain$103,000

If this is a primary residence with a $250,000 exclusion, the taxable gain would be $0 (since $103,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

Basic formula: Net Sale Proceeds − Adjusted Basis = Estimated Gain. Net sale proceeds are sale price minus selling expenses. Adjusted basis includes purchase price, closing costs, capital improvements, and adjustments for depreciation. The gain is then taxed at applicable rates based on your filing status and holding period.

Adjusted basis is what you've invested in the property. It's your original purchase price, plus closing costs and capital improvements, minus depreciation taken, plus other basis adjustments. A higher basis means a lower taxable gain.

Yes. Selling expenses such as real estate commissions, legal fees, transfer taxes, and advertising costs reduce your net sale proceeds, which in turn reduces your taxable gain. These costs are subtracted directly from the sale price.

Yes. Qualifying capital improvements that add value, extend the property's life, or adapt it to new uses increase your cost basis. Examples include room additions, new roofs, HVAC systems, and major renovations. Routine repairs do not increase basis.

Not necessarily. If it was your primary residence and you meet the 2-out-of-5-year ownership and use test, you may exclude up to $250,000 ($500,000 for married joint filers) of gain. Gains above the exclusion may be taxable.

The home sale exclusion allows primary residence sellers to exclude a portion of their capital gain from federal tax. For 2026, the exclusion is $250,000 for single filers and $500,000 for married joint filers, subject to eligibility requirements.

Rental properties are subject to capital gains tax on the sale, but with additional considerations. Depreciation taken during the rental period must be recaptured and taxed at a maximum rate of 25%. The remaining gain is taxed at long-term capital gains rates. 1031 exchanges may defer the gain.

Yes. Depreciation reduces your cost basis, which increases your taxable gain. It also triggers depreciation recapture, which is taxed at a 25% maximum rate for residential rental property.

No. Capital gains tax is based on the capital gain (sale price minus selling expenses minus adjusted basis), not the entire sale price. Only the profit portion is taxed. The home sale exclusion can also eliminate tax on the gain for primary residences.

No. This calculator estimates federal capital gains tax only. State capital gains taxes vary widely and are not included. Some states have no capital gains tax, while others tax it as ordinary income. Consult your state's tax authority for state tax information.

📘
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 →