Capital Gains Tax Calculator
Estimate the 2026 federal tax on a stock gain — short-term vs long-term, the 0/15/20% brackets, the famous 0% bracket, and the 3.8% NIIT.
A $50,000 profit on an asset held over a year costs $7,500 in federal tax for a single filer earning $100,000 — an effective 15.0%. Sell the same asset before the one-year mark and it costs $11,564, because short-term gains are taxed as ordinary income.
That is a $4,064 difference for waiting. Figures are 2026 federal only, single filer taking the standard deduction; state tax and NIIT where applicable come on top.
How capital gains stack on your income
A long-term gain doesn't start at the bottom of the 0/15/20% brackets — it stacks on top of your other income. Your ordinary taxable income (after the standard deduction) fills the capital-gains brackets first, and the gain is taxed in the layers above it. That's how the 0% bracket really works: it only applies to the part of the gain that fits below the 0% ceiling after your other income is counted.
Short-term gains skip the preferential brackets entirely: they're added to ordinary income and taxed at your regular marginal rates — the same subtraction, but over the ordinary brackets. On top of either, the 3.8% NIIT applies to the gain once modified AGI crosses the statutory threshold.
Common questions
What's the difference between short-term and long-term gains?
Where are the 0/15/20% breakpoints for 2026?
What is NIIT?
Does this include state tax?
How we calculate this
2026 federal brackets and LTCG breakpoints from IRS Rev. Proc. 2025-32, stacked marginally; NIIT at the statutory thresholds. Federal only, single gain, no carryover losses — not tax advice.
Where to go next
Long-term capital gains rates depend on your ordinary income, so the two are linked. Work out your ordinary federal income tax first to see which gains bracket you land in.
Selling crypto rather than shares? The rates are identical, but the cost basis is the hard part — calculate crypto gains with FIFO, LIFO or HIFO cost basis, since the method you choose changes the bill.
Gains are only half of a total return. To project the other half, model dividends reinvested and yield on cost over time.
Estimates assume the gain is your only net investment income and approximate MAGI as gross income plus the gain. Actual tax depends on losses and carryovers, qualified dividends, state tax, the wash-sale rule, and circumstances not modeled here. General information only — not tax or investment advice.