capital gains tax on sale of property calculator

Estimate Capital Gains Tax on a Property Sale

Enter your numbers below for a quick estimate of federal capital gains tax, depreciation recapture, and optional state/NIIT impact.

Enter your values and click Calculate Tax to see the estimate.

How this capital gains tax calculator works

When you sell real estate, your gain is generally the difference between what you net from the sale and your adjusted cost basis. This calculator helps you estimate that number and then applies tax rates to produce a quick tax estimate.

  • Adjusted cost basis starts with your purchase price, then adds closing costs and capital improvements, and subtracts depreciation (if any).
  • Net sale proceeds is the sale price minus selling expenses such as commissions and closing fees.
  • Total gain is net proceeds minus adjusted basis.
  • Taxable gain can be reduced by an exclusion amount (for eligible primary residence sales).

Formula used in this property sale tax estimate

1) Adjusted basis

Adjusted Basis = Purchase Price + Purchase Closing Costs + Capital Improvements - Depreciation Claimed

2) Net proceeds and gain

Net Sale Proceeds = Sale Price - Selling Costs
Total Gain = Net Sale Proceeds - Adjusted Basis

3) Depreciation recapture and capital gains

If depreciation was taken (common for rental/investment property), part of your gain may be taxed as depreciation recapture, often at a different rate. The calculator estimates:

  • Recapture portion = lesser of total gain or depreciation claimed
  • Remaining gain = total gain - recapture portion
  • Taxable capital gain = remaining gain - exclusion amount (not below zero)

Example calculation

Suppose you bought a property for $300,000, paid $5,000 in purchase costs, invested $30,000 in improvements, and sold it for $500,000 with $30,000 in selling costs.

  • Adjusted basis: $300,000 + $5,000 + $30,000 = $335,000
  • Net sale proceeds: $500,000 - $30,000 = $470,000
  • Total gain: $470,000 - $335,000 = $135,000

If your federal long-term capital gains rate is 15% and there is no exclusion, estimated federal tax is about $20,250. If state tax applies, your total may be higher.

Important inputs explained

Capital improvements vs repairs

Capital improvements usually add value or extend useful life (new roof, major remodel, room addition). Routine repairs and maintenance generally do not increase basis.

Depreciation (rental property)

If the property was used as a rental, depreciation deductions typically reduce your basis. On sale, some of that amount may be taxed as recapture.

Exclusion amount

Many homeowners may qualify for a primary residence gain exclusion (up to $250,000 single or $500,000 married filing jointly), subject to IRS ownership and use tests. This calculator provides a place to model that exclusion quickly.

Ways to potentially reduce capital gains tax

  • Track and document eligible capital improvements carefully.
  • Include valid selling expenses in your calculations.
  • Understand whether you qualify for primary residence exclusion.
  • For investment property, ask a tax professional about strategies like installment sales or 1031 exchanges (where applicable).
  • Time the sale with your overall income planning, since your capital gains bracket may change by year.

Common mistakes when estimating tax on property sales

  • Forgetting to subtract commissions and selling fees from proceeds.
  • Ignoring depreciation recapture for former rental properties.
  • Using the wrong capital gains rate (short-term gains are often taxed differently).
  • Assuming federal rules automatically match your state tax treatment.
  • Not keeping receipts and records to support adjusted basis.

FAQ

Does this tool file taxes for me?

No. It is an educational estimator to help with planning and rough projections.

What rate should I use for federal capital gains?

Use the rate that matches your situation (commonly 0%, 15%, or 20% for long-term gains in many cases). If your gain is short-term, you may need to use your ordinary income tax rate instead.

Can I use this for inherited property?

You can estimate with a custom basis, but inherited property often involves stepped-up basis rules, so verify your numbers with a qualified tax advisor.

Disclaimer: This calculator is for informational purposes only and does not constitute tax, legal, or financial advice. Tax law is complex and changes over time. Always consult a licensed tax professional for advice tailored to your exact circumstances.

🔗 Related Calculators