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
- Select filing status.
- Enter ordinary federal taxable income before capital gains.
- Enter net short-term and long-term gains after netting.
- Enter modified AGI and net investment income for the NIIT estimate.
- 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.