basic

Capital Gains Tax Calculator

Estimated tax on a capital gain.

Estimate the tax owed on a capital gain from sale price, cost basis, and the applicable long- or short-term tax rate.

Published Last reviewed 1 min read

Inputs

$
$
%

Results

Enter values and click Calculate to see results.
Was this helpful?

How to use this calculator

  1. Fill in the inputs above using the units you already have.
  2. Values update automatically as you type — no submit button needed.
  3. Hover any result row for the underlying formula and intermediate values.

Formula

Gain = Proceeds − Cost basis. Tax = Gain × Rate. Use long-term rates if held > 1 year, otherwise short-term (your ordinary income rate).

In depth

Estimate the tax owed on a capital gain from sale price, cost basis, and the applicable long- or short-term tax rate.