Capital gains tax calculator

Estimate 2027 federal tax on long-term capital gains for your filing status and taxable income.

By Aanukul Mishra Updated Sources

Key figures above and the worked example below are in the page HTML. Interactive inputs need JavaScript.

Federal long-term capital gains only. NIIT, state tax and short-term gains are excluded.

Inputs

Tax return

Taxable income before adding the long-term gain.

Estimated tax on the gain

$4,185.00

8.37% effective rate on $50,000.00

Breakdown

Gain taxed at 0%
$22,100.00
Gain taxed at 15%
$27,900.00
Gain taxed at 20%
$0.00
Tax on long-term gain
$4,185.00
  • Uses 2027 long-term capital gains thresholds from IRS Rev. Proc. 2026-35. Ordinary taxable income stacks with the gain.
  • Net Investment Income Tax (NIIT), state and local tax, the standard deduction, and short-term gains are not included.
  • This is an educational estimate, not tax advice.

Estimated tax on the gain

$4,185.00

See breakdown

What to check next

What this calculation includes

Long-term capital gains use different rate breakpoints than ordinary income. The gain stacks on top of your other taxable income to see how much falls in the 0%, 15% and 20% brackets.

Thresholds for 2027 come from Rev. Proc. 2026-35 §3.03. Married filing jointly uses 0% up to $102,100 and 15% up to $633,600 of taxable income including the gain. Single and married filing separately use $51,050 for the 0% ceiling, with 15% ceilings of $563,200 (single) or $316,800 (separate). Head of household uses $68,350 and $598,400.

Full tables live in long-term capital gains in 2027. Prior-year thresholds remain at long-term capital gains in 2026.

The calculator splits your long-term gain across those buckets. It does not apply the standard deduction again, model the 3.8% NIIT, or handle collectibles or depreciated property rates.

Long-term capital gains tax

tax on G = 0 · G 0 + 0.15 · G 15 + 0.20 · G 20 TI = taxable income including G

In words Stack the long-term gain on taxable income, then apply 0%, 15% and 20% rates to each portion of the gain under the filing-status thresholds.

G
Long-term capital gain (split into 0%, 15% and 20% slices)
TI
Taxable income including the gain

2026 thresholds from IRS Rev. Proc. 2025-32.

Worked example

Using the default inputs on this page.

Filing status
Married filing jointly
Taxable income without the gain
$80,000.00
Long-term capital gain
$50,000.00

Estimated tax on the gain

$4,185.00

8.37% effective rate on $50,000.00

Questions

Which tax year is this?

2027 federal long-term capital gains thresholds from IRS Revenue Procedure 2026-35.

Is NIIT included?

No. Net Investment Income Tax is not modeled. State and local taxes are also excluded.

What income should I enter without the gain?

Taxable income after deductions but before adding the long-term gain, as you would stack it on the return.

Are short-term gains covered?

No. Only long-term capital gains use the 0%, 15% and 20% rates shown here.

Sources

Methodology and worked examples