Home  /  Tax Center  /  Capital Gains Calculator
Capital Gains Calculator

Capital Gains Tax Calculator

Estimate what a property sale really costs in tax for 2026 — the long-term capital-gains rate, depreciation recapture, the 3.8% surtax, and state tax, layer by layer.

Jerry Baker · Updated June 2026 · Free interactive tool
1

Your numbers

$
$

Sale price, then commissions/closing costs you paid to sell.

$
$

What you paid, then capital improvements added over the years.

$

Cumulative depreciation claimed. This is recaptured at up to 25%.

$

Taxable income excluding this gain — sets your bracket and the 3.8% NIIT.

%

Most states tax the full gain as ordinary income. Use 0 for no-tax states.

2

Your estimate

Enter your numbers and select Calculate to see your estimate.
How it works

A property sale is taxed in four layers

The headline capital-gains rate is only one piece. This estimator builds the bill the way the IRS does — starting from your gain (amount realized minus your adjusted basis), then applying each layer that can sit on top of it.

  • Depreciation recapture. The depreciation you claimed lowered your basis and is recaptured at sale — "unrecaptured Section 1250 gain," taxed at a federal rate of up to 25%.
  • Long-term capital gain. The remaining appreciation is taxed at 0%, 15%, or 20% for 2026, stacked on top of your other income to find the rate.
  • The 3.8% NIIT. Higher earners owe an extra 3.8% on the gain above the $200k single / $250k joint thresholds (frozen since 2013).
  • State tax. Most states tax the full gain as ordinary income with no preferential rate.

About the 25% recapture rate

We apply the 25% maximum to the recapture layer. The true rate is your ordinary marginal rate capped at 25%, so at lower incomes your recapture tax may be less than shown — making this a conservative, worst-case estimate of that piece.

This tool is for general educational purposes only. It produces a simplified estimate, not tax advice, and omits many situational rules (stacking with other income, AMT, state-specific treatment, partial-year and like-kind nuances). Your actual tax depends on your full return. Always confirm with your CPA before acting.