TaxCalcAtlas

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 ↓

Result

Extra federal tax caused by the gains$3,000.00
Net investment income tax$0.00
Share of the gains paid as tax15%

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 status0% rate up to taxable income of15% rate up to20% rate aboveNet 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

  1. 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.
  2. Taxable income is your income plus the gains, minus the standard or itemized deduction.
  3. 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%.
  4. 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.

More calculators and guides

Paycheck calculator 2026: take-home pay after federal tax, FICA and state taxUS paycheck calculator for 2026: federal withholding, Social Security, Medicare and state tax for TX, CA, NY, FL and WA, with W-4 and 401(k) inputs.Texas paycheck calculator 2026Estimate take-home pay in Texas for 2026: federal withholding, Social Security, Medicare and Texas payroll deductions, per paycheck and per year.California paycheck calculator 2026Estimate take-home pay in California for 2026: federal withholding, Social Security, Medicare and California payroll deductions, per paycheck and per year.New York paycheck calculator 2026Estimate take-home pay in New York for 2026: federal withholding, Social Security, Medicare and New York payroll deductions, per paycheck and per year.Florida paycheck calculator 2026Estimate take-home pay in Florida for 2026: federal withholding, Social Security, Medicare and Florida payroll deductions, per paycheck and per year.Washington paycheck calculator 2026Estimate take-home pay in Washington for 2026: federal withholding, Social Security, Medicare and Washington payroll deductions, per paycheck and per year.Illinois paycheck calculator 2026Estimate Illinois take-home pay for 2026: federal withholding, Social Security, Medicare and Illinois state tax, per paycheck and per year.Ohio paycheck calculator 2026Estimate take-home pay in Ohio for 2026: federal withholding, Social Security, Medicare and Ohio payroll deductions, per paycheck and per year.Michigan paycheck calculator 2026Estimate take-home pay in Michigan for 2026: federal withholding, Social Security, Medicare and Michigan payroll deductions, per paycheck and per year.Tennessee paycheck calculator 2026Estimate take-home pay in Tennessee for 2026: federal withholding, Social Security, Medicare and Tennessee payroll deductions, per paycheck and per year.Virginia paycheck calculator 2026Estimate take-home pay in Virginia for 2026: federal withholding, Social Security, Medicare and Virginia payroll deductions, per paycheck and per year.Georgia paycheck calculator 2026Estimate take-home pay in Georgia for 2026: federal withholding, Social Security, Medicare and Georgia payroll deductions, per paycheck and per year.North Carolina paycheck calculator 2026Estimate North Carolina take-home pay for 2026: federal withholding, Social Security, Medicare and NC state tax, per paycheck and per year.Pennsylvania paycheck calculator 2026Estimate Pennsylvania take-home pay for 2026: federal withholding, Social Security, Medicare, 3.07% state tax and Philadelphia wage tax, per paycheck.New Jersey paycheck calculator 2026Estimate take-home pay in New Jersey for 2026: federal withholding, Social Security, Medicare and New Jersey payroll deductions, per paycheck and per year.Federal income tax calculator 2026Work out your 2026 US federal income tax from income, filing status, standard or itemized deduction and credits, with the bracket by bracket breakdown.Self employment tax calculator 2026Estimate 2026 US self-employment tax: 15.3% on 92.35% of profit, the Social Security cap, Additional Medicare Tax, half deduction and quarterly payments.Salary to hourly calculator 2026: convert salary to hourly pay and backConvert a US salary to an hourly rate or an hourly rate to a yearly salary for 2026, with hours per week, paid weeks and take-home pay after tax.Overtime calculator 2026: overtime pay, take-home pay and the overtime tax deductionWork out 2026 overtime pay at one and a half times your rate over 40 hours, your take-home pay after tax, and the federal overtime deduction.Tax refund calculator 2026: estimate your federal refund or amount owedEstimate your 2026 federal tax refund or balance due from wages, tax withheld, deductions and the child tax credit, using IRS brackets and credit rules.Bonus tax calculator 2026: federal and state withholding on a bonusSee how much of a 2026 bonus you keep: 22% federal supplemental withholding, 37% above $1 million, Social Security, Medicare and state tax.Federal tax brackets 20262026 and 2027 US federal income tax brackets for every filing status, the standard deduction, and how marginal rates work, from IRS revenue procedures.