Skip to main content
Free Tool · IRS 2026 Data

Capital Gains Tax Calculator

Calculate federal capital gains tax on your investments using 2026 IRS brackets (IRC §1(h)). Enter your ordinary income and gain — the calculator determines whether the 0%, 15%, or 20% preferential rate applies, plus any NIIT.

Your Information

* required
$

Profit from selling the asset (sale price − cost basis)

$

Wages & salary — used to determine your long-term rate and NIIT threshold

2026 Long-Term Rates

0%$0 – $47,025
15%$47,026 – $518,900
20%$518,901+

NIIT 3.8% applies if MAGI > $200K (single) / $250K (married) · IRC §1411

IRS Rev. Proc. 2024-40 · IRC §1(h) · IRC §1411 · IRS Pub. 550

Total Capital Gains Tax

Enter a capital gain amount to see your federal tax estimate.

Key Rules

• Long-term gains (held >1 yr) taxed at 0%, 15%, or 20%

• Short-term gains taxed as ordinary income

• NIIT 3.8% on investment income above $200K/$250K MAGI

• Does not include state capital gains tax

Enter a capital gain amount above to see the flow
Net Proceeds
Capital Gains Tax
NIIT (3.8%)

Found this useful? Share it with a friend.

Spend Sense App

Want these calculations done automatically?

Spend Sense tracks your income, expenses, and tax deductions — on-device, privately. No spreadsheets, no data sharing, no monthly fees to get started.

Join the free waitlist →

Free during beta · iOS first · No credit card