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
* requiredProfit from selling the asset (sale price − cost basis)
Wages & salary — used to determine your long-term rate and NIIT threshold
2026 Long-Term Rates
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
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