$
Paycheck and Taxes

Capital Gains Tax Calculator

Estimate federal tax attributable to net short-term and long-term capital gains with 2026 rate thresholds and optional NIIT.

Calculator

Capital Gains Tax Calculator

Enter ordinary taxable income before gains and net gains after capital-loss netting. Long-term gains are stacked above ordinary taxable income across the 0%, 15% and 20% bands.

Review the year, jurisdiction, eligibility rules and limitations before relying on the estimate.

How to use this calculator

  1. Select filing status.
  2. Enter ordinary federal taxable income before capital gains.
  3. Enter net short-term and long-term gains after netting.
  4. Enter modified AGI and net investment income for the NIIT estimate.
  5. Calculate ordinary-rate, preferential-rate and NIIT components.

How this calculator works

Net short-term gain is taxed incrementally through 2026 ordinary brackets. Net long-term gain is stacked above ordinary taxable income and assigned to the 0%, 15% and 20% thresholds. NIIT is 3.8% of the lesser of net investment income or MAGI above the filing-status threshold.

What the estimate includes

Results show total estimated federal tax attributable to gains, long-term tax, short-term tax, NIIT and long-term gain portions assigned to each rate band.

Sources and assumptions

Inputs are already net amounts after federal capital-gain and loss netting. Most long-term assets qualify for standard 0%, 15% or 20% rates.

  • https://www.irs.gov/irb/2025-45_IRB
  • https://www.irs.gov/taxtopics/tc409
  • https://www.irs.gov/forms-pubs/about-form-8960

Important limitations

Collectibles, unrecaptured section 1250 gain, qualified small-business stock, wash sales, carryovers, AMT, state tax, basis errors and detailed NIIT adjustments are excluded.

Common questions

Capital Gains Tax Calculator FAQs

What does the Capital Gains Tax Calculator calculate?

Estimate federal tax attributable to net short-term and long-term capital gains with 2026 rate thresholds and optional NIIT. Results are based only on the entries and published assumptions shown on this page.

How does the Capital Gains Tax Calculator work?

Net short-term gain is taxed incrementally through 2026 ordinary brackets. Net long-term gain is stacked above ordinary taxable income and assigned to the 0%, 15% and 20% thresholds. NIIT is 3.8% of the lesser of net investment income or MAGI above the filing-status threshold.

Which inputs should I verify before calculating?

Verify filing status, ordinary taxable income before gains, net short-term gain, net long-term gain, modified AGI and net investment income. Use current records or an official source for every rate and amount you enter.

Is this result exact enough to file a tax return or make a plan election?

No. Collectibles, unrecaptured section 1250 gain, qualified small-business stock, wash sales, carryovers, AMT, state tax, basis errors and detailed NIIT adjustments are excluded.

Does this tool use a live API or hidden rate?

No. It runs locally in the browser with visible user inputs and the identified 2026 federal constants; it does not fetch or invent live rates.

Why can an official result differ from this estimate?

Official forms can apply eligibility tests, rounding, timing rules, definitions and exceptions beyond a planning calculator. Collectibles, unrecaptured section 1250 gain, qualified small-business stock, wash sales, carryovers, AMT, state tax, basis errors and detailed NIIT adjustments are excluded.

Keep calculating

Related tools