Capital Gains Tax Calculator 2026
Estimate 2026 federal tax on a stock or crypto sale: 0%, 15% and 20% long-term rates, short-term gains as income, the 3.8% NIIT and room left at 0%.
Enter your other income and the gain you plan to realize in 2026. The calculator stacks long-term gains on top of ordinary income the way the IRS worksheet does, taxes short-term gains as ordinary income, and adds the 3.8% net investment income tax when your income crosses its threshold. It uses the IRS figures for tax year 2026.
Explain my result
Sends your inputs and result to the AI you choose.
View or copy prompt
Quick answers
Common cases, computed by this calculator with the assumptions listed under the method. Select one to load it above.
- What is the tax on a $20,000 long-term gain with $60,000 of wages, filing single?
- $2,168 10.8% of the gain Federal tax on these gains Open in the calculator
- How much tax on a $100,000 long-term gain for a married couple with $150,000 of income?
- $15,000 15.0% of the gain Federal tax on these gains Open in the calculator
- What is the tax on a $10,000 short-term gain with $75,000 of wages, filing single?
- $2,200 22.0% of the gain Federal tax on these gains Open in the calculator
- How much long-term gain can a married couple with $60,000 of income realize at 0%?
- $71,100 Long-term gain you could still realize at 0% Open in the calculator
How the tax is worked out
Taxable income is other income plus gains minus the larger of the 2026 standard deduction and your itemized deductions. The deduction comes off ordinary income first. Ordinary income and short-term gains are taxed through the 2026 brackets. Long-term gains sit on top of that income: the part below the 0% ceiling for your filing status is taxed at 0%, the part up to the 15% ceiling at 15% and the rest at 20%. As on the IRS worksheet, the result is never more than taxing everything as ordinary income.
The net investment income tax is 3.8% of the smaller of your gains and the amount by which income plus gains exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). The tax on these gains is the difference between the total with and without them.
2026 thresholds used
0% up to $49,450 of taxable income for single filers, $98,900 married filing jointly, $66,200 head of household and $49,450 married filing separately. 15% up to $545,500, $613,700, $579,600 and $306,850. Standard deduction $16,100, $32,200, $24,150 and $16,100. Source: IRS Rev. Proc. 2025-32; see also IRS Topic 409 and Topic 559 on the NIIT.
What is left out
State tax, the alternative minimum tax, credits, the 28% rate on collectibles, the 25% rate on unrecaptured section 1250 gain, interest and dividends inside the NIIT base and the $3,000 limit on deducting net losses. Treat the result as an estimate, not tax advice.
Calculation notes updated .