Last updated: November 5, 2026 · Uses 2026 federal tax brackets and thresholds
Enter your income and your gains or losses to estimate how much tax you’ll owe on them for 2026. The calculator applies the 2026 federal brackets, stacks long-term gains on top of your ordinary income to find the 0%, 15% or 20% rate, adds the 3.8% net investment income tax when it applies, and lets you add your state’s rate.
How the calculation works
- Short-term gains are taxed with your ordinary income at 10% to 37%.
- Long-term gains sit on top of your ordinary taxable income; the part below $49,450 (single) or $98,900 (married filing jointly) is taxed at 0%, then 15%, and 20% above $545,500 or $613,700.
- Losses offset gains first; up to $3,000 of net loss ($1,500 if married filing separately) reduces other income, and the rest carries forward.
- The 3.8% NIIT applies to the smaller of your investment income or the amount your income exceeds $200,000 (single) or $250,000 (joint).
Example
A single filer earning $85,000 who sells shares with a $20,000 long-term gain pays $3,000 of federal tax on it: her ordinary taxable income of $68,900 is already above the 0% limit, so the whole gain is taxed at 15%. See short-term vs long-term capital gains.
Frequently asked questions
Does it include state tax?
Enter your state’s marginal rate. Most states tax gains as ordinary income. See state capital gains taxes.
What isn’t included?
Special rates on collectibles and real estate depreciation, the alternative minimum tax, credits and phase-outs. Use it as an estimate.
Sources
- IRS Topic No. 409: Capital gains and losses
- IRS: 2026 inflation adjustments
- IRS: Net investment income tax
This calculator gives educational estimates only and is not tax, legal or investment advice. Results depend on details it doesn’t capture; consult a qualified tax professional before acting.