Capital gains tax calculator 2026: long-term rates, short-term gains and NIIT
This capital gains tax calculator shows how much federal tax a sale adds to your return. Choose your filing status, enter your other income and your short-term and long-term gains, and see which part of the long-term gain falls into the 0%, 15% and 20% rates, the 3.8% net investment income tax and the extra tax caused by the gains. It uses the figures in the IRS inflation adjustment revenue procedure. For tax on your other income use the federal income tax calculator.
Result
Breakdown
| Other income | $70,000.00 |
|---|---|
| Short-term gains, taxed as ordinary income | $0.00 |
| Long-term gains | $20,000.00 |
| Standard deduction | -$16,100.00 |
| Taxable income | $73,900.00 |
| Tax on ordinary income and short-term gains | $6,570.00 |
| Long-term gains taxed at 0% (up to 49,450 of taxable income) | $0.00 |
| Long-term gains taxed at 15% (up to 545,500) | $20,000.00 |
| Long-term gains taxed at 20% | $0.00 |
| Tax on long-term gains | $3,000.00 |
| Net investment income tax (3.8%) | $0.00 |
| Total federal income tax | $9,570.00 |
| Extra tax caused by the gains | $3,000.00 |
Long-term gains are stacked on top of ordinary taxable income, so the rate depends on your other income. Capital losses and carryovers, collectibles and unrecaptured section 1250 gain, which have higher maximum rates, qualified dividends, other investment income and state tax are not included.
The net investment income tax uses your gains as net investment income and your income plus gains as modified adjusted gross income.
Long-term capital gains rates 2026
| Filing status | 0% rate up to taxable income of | 15% rate up to | 20% rate above | Net investment income tax above |
|---|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 | $200,000 |
| Married filing jointly | $98,900 | $613,700 | $613,700 | $250,000 |
| Head of household | $66,200 | $579,600 | $579,600 | $200,000 |
| Married filing separately | $49,450 | $306,850 | $306,850 | $125,000 |
Worked examples
Example for 2026: a single filer earns $70,000 and sells shares held for more than a year for a $20,000 gain. After the $16,100 standard deduction, taxable income is $73,900. The ordinary income is taxed through the brackets, and because it already sits above the 0% limit of $49,450, the whole gain is taxed at 15%, which is $3,000. The gain adds $3,000 of federal tax, or 15% of the gain.
Example for 2026: a married couple filing jointly has $40,000 of other income and a $60,000 long-term gain. Taxable income is $67,800. The ordinary part is $7,800, so $60,000 of the gain falls under the 0% limit of $98,900 and $0 is taxed at 15%. The tax on the gain is $0.
Example for 2026: a single filer has $200,000 of other income, a $10,000 short-term gain and a $100,000 long-term gain. The short-term gain is added to ordinary income. The long-term gain is taxed at 15%, which is $15,000. Income of $310,000 is above the $200,000 threshold, so the 3.8% net investment income tax applies to $110,000, which is $4,180. The gains add $21,580 of federal tax in total.
How capital gains tax is calculated
- A gain on an asset held one year or less is short-term and is taxed as ordinary income at the regular brackets. A gain on an asset held longer is long-term.
- Taxable income is your income plus the gains, minus the standard or itemized deduction.
- Long-term gains are stacked on top of your ordinary taxable income. The part that falls at or below the 0% limit pays no tax, the next part up to the 15% limit pays 15%, and anything above pays 20%.
- The 3.8% net investment income tax applies to the smaller of your net investment income and the amount your income is over the threshold: $200,000 for single filers and head of household, $250,000 for married filing jointly and $125,000 for married filing separately. These thresholds are not adjusted for inflation.
State tax on capital gains
This calculator covers federal tax only. States treat gains in their own way. California has no lower rate for capital gains: all capital gains are taxed as ordinary income, so use the California paycheck calculator to see state rates on wages and add the gains to your California taxable income. Texas and Florida have no state tax on wages, and Washington has no tax on wages but charges a separate excise tax on some long-term gains, which will be confirmed against the official text in our January review. Check your state revenue department for the rules that apply to you.
Gains from collectibles, certain small business stock and unrecaptured section 1250 gain can be taxed at higher maximum rates than 20%, and are not included here.
What this calculator leaves out
Capital losses and loss carryovers, qualified dividends, interest and other investment income, the alternative minimum tax and tax credits are not included. To compare the result with tax you have already paid, use the tax refund calculator, and see every bracket in the federal tax brackets guide. For what comes out of each paycheck, use the paycheck calculator.
Frequently asked questions
What are the long-term capital gains rates for 2026?
The rates are 0%, 15% and 20%. For a single filer the 0% rate applies up to $49,450 of taxable income, 15% up to $545,500 and 20% above that. For married filing jointly the limits are $98,900 and $613,700.
How are short-term capital gains taxed?
Gains on assets held one year or less are taxed as ordinary income at your regular bracket rates, with no lower rate.
What is the net investment income tax?
It is a 3.8% tax on the smaller of your net investment income and the amount your modified adjusted gross income is over $200,000 for single filers, $250,000 for married filing jointly and $125,000 for married filing separately.
Is a long-term gain taxed at the same rate as my wages?
No. Long-term gains use their own 0%, 15% and 20% rates. They are stacked on top of your other taxable income, so the rate depends on how much other income you have.
Does my state tax capital gains?
Most states with an income tax do. California taxes capital gains as ordinary income with no lower rate. Texas and Florida have no tax on wages, and each state has its own rules, so check the revenue department of your state.