Capital Gains Tax Calculator

Estimate 2025 & 2026 US federal short-term vs. long-term capital gains tax, 3.8% NIIT, and state tax.

Example
Filing Status
Holding Period

Enter your marginal state rate on this gain. Top state rates (e.g., CA 13.3%) apply only above $1M+.

NIIT & MAGI settingsEst. from taxable

The 3.8% Net Investment Income Tax (NIIT) threshold ($200,000 for Single) is based on MAGI (before standard/itemized deductions), not Taxable Income.

Estimated Total Tax (Short-Term)
$7,036
Effective rate 28.1% on $25,000 gain
After-Tax Profit
$17,964
Keep 71.9%
Federal Tax
$5,786
State Tax (5%)
$1,250
3.8% NIIT
$0
After-tax 71.9%Federal 23.1%State 5.0%
Short-Term TaxSelected
$7,036
Eff. 28.1%
Long-Term Tax
$5,000
Eff. 20.0%

Estimated tax difference: $2,036 lower under long-term rates, assuming the same realized gain and ordinary income (market price changes during a longer hold are not modeled).

Source: IRS Rev. Proc. 2025-32 (2026 tax year). Excludes AMT, Section 1256 (60/40), state brackets & loss carryforwards.Methodology
Related calculators

Tax-Lot Optimization Platforms

Partner disclosure · Affiliate links (no impact on calculations)
Interactive BrokersExecution & Tax-Lots

Supports specific tax-lot matching (FIFO/LIFO/Highest Cost) and institutional routing.

View IBKR features

Frequently Asked Questions

Are stock options profits taxed as short-term or long-term capital gains?

Most equity option trades held for 1 year or less are taxed as short-term capital gains at ordinary income tax rates. Long LEAPS options held longer than 12 months before closing qualify for long-term rates, while certain broad-based index options (Section 1256 contracts like SPX) receive 60/40 long-term/short-term treatment.

When does the 3.8% Net Investment Income Tax (NIIT) apply?

The 3.8% NIIT applies to the lesser of net investment income or Modified Adjusted Gross Income (MAGI) above $200,000 for Single/Head of Household filers or $250,000 for Married Filing Jointly. Because MAGI is measured before standard or itemized deductions, use the NIIT & MAGI settings if your deductions put you near the threshold.

How does capital gain bracket stacking work?

Capital gains stack on top of your taxable ordinary income. Only the dollars crossing into a higher bracket are taxed at that higher rate — not your entire gain.