Capital Gains Tax Calculator 2026: 0%, 15% and 20% Rates

In 2026 a single filer pays 0% on long-term gains while taxable income stays at or below $49,450, 15% up to $545,500 and 20% above that (joint: $98,900 and $613,700), short-term gains are taxed like wages, and a 3.8% net investment income tax can apply once income passes $200,000.

Capital gains tax rewards patience. Hold a stock past its first birthday and the IRS stops treating you like a day trader with a phone and starts treating you like an investor.

Enter your other income and your gains below. The calculator stacks the gains on top of your income, the way the Form 1040 worksheet does, and shows how much falls in each rate band.

Before the standard deduction, gains not included.

Negative for a loss.

Federal tax caused by the gains (2026)

$3,000.00

15% of $20,000.00 net gain

Taxed at 0%$0.00
Taxed at 15%$20,000.00
Taxed at 20%$0.00
Short-term gain (taxed like wages)$0.00
Capital loss used against other income$0.00
Net investment income tax (3.8%)$0.00
Taxable income$83,900.00
Federal income tax on everything$11,770.00
Same without the gains$8,770.00
Show the working
  1. $100,000.00 income - $16,100.00 standard deduction = $83,900.00 taxable, of which $63,900.00 is ordinary income.
  2. The 0% rate runs up to $49,450 of taxable income and 15% up to $545,500 (Single, 2026). Gains stack on top of the ordinary income.
  3. Gains tax: $20,000.00 x 15% + $0.00 x 20% = $3,000.00; ordinary income tax $8,770.00.
  4. NIIT: 3.8% of the smaller of the net gain and income over the threshold, $0.00 = $0.00.

An estimate from the numbers you entered and the rules listed below, not tax, legal or financial advice.

How we calculate it

Long-term means held more than one year; anything shorter is short-term and taxed at your normal bracket rates. Gains and losses are netted first. A net loss lowers other income by at most $3,000 a year ($1,500 married filing separately); the rest carries forward.

We take your other income plus gains, subtract the standard deduction for your status, and run the Qualified Dividends and Capital Gain Tax Worksheet: ordinary income fills the brackets first, then long-term gains fill the 0% band up to the maximum zero rate amount, then the 15% band up to the maximum 15% amount, then 20%. The amounts are from Rev. Proc. 2025-32 for 2026 and Rev. Proc. 2026-35 for 2027.

Net investment income tax: 3.8% of the smaller of your net gain and the amount your income is over the threshold. Collectibles, qualified small business stock and unrecaptured section 1250 gain have their own higher maximum rates and are not modelled.

Worked example: married, $120,000 of wages, $65,000 of gains

A made-up couple filing jointly sells shares: $60,000 long-term gain and $5,000 short-term. Income: $120,000 + $65,000 = $185,000. Minus the $32,200 standard deduction: $152,800 taxable. Of that, $92,800 is ordinary income (wages plus the short-term gain) and $60,000 is long-term gain.

Stacking: ordinary income fills up to $92,800. The 0% band for joint filers runs to $98,900, so the first $6,100 of the gain is tax-free. The rest, $53,900, fits under $613,700 and pays 15%: $8,085.00. Ordinary income tax: $10,640.00. Total federal income tax $18,725.00.

Without any gains their tax would be $10,040.00, so the sale costs $8,685.00, 13.4% of the $65,000 gain. Income stays under the $250,000 joint threshold, so no net investment income tax.

Long-term gain at 0% $6,100.00
Long-term gain at 15% $53,900.00
Long-term gain at 20% $0.00
Total federal income tax $18,725.00
Tax caused by the gains $8,685.00

Long-term capital gains bands for 2026

Tax year 2026. Sources at the bottom.

  • Single: 0% up to $49,450 of taxable income, 15% up to $545,500, 20% above.
  • Married filing jointly: 0% up to $98,900 of taxable income, 15% up to $613,700, 20% above.
  • Married filing separately: 0% up to $49,450 of taxable income, 15% up to $306,850, 20% above.
  • Head of household: 0% up to $66,200 of taxable income, 15% up to $579,600, 20% above.
  • Net investment income tax: 3.8% over $200,000 single or head of household, $250,000 joint, $125,000 married filing separately (amounts written into the law, the IRS calls them statutory).
  • 2027: the single bands move to $51,050 and $563,200, joint to $102,100 and $633,600. Pick 2027 in the calculator.

The 0% band is real

Single, $40,000 of wages and a $20,000 long-term gain: taxable income is $43,900, under the $49,450 line, so $20,000 of the gain is taxed at 0% and the sale adds $0.00 of federal income tax. That is why a year with little other income can be a cheap year to take gains.

Where the 3.8% kicks in

Single, $180,000 of wages and a $120,000 long-term gain: income of $300,000 is $100,000 over the $200,000 line, so net investment income tax applies to $100,000 of the gain: $3,800.00. Together with $18,000.00 of income tax on the gain, the sale costs $21,800.00. Wages are never subject to this tax, only investment income.

Selling at a loss elsewhere in the same year lowers the net gain before any of this; the investment calculator shows growth before tax if you are deciding whether to hold.

Real estate gains, short-term gains and your state

Selling real estate follows the same federal rules as shares: a gain on property held longer than a year is long-term, and a shorter hold is taxed like ordinary income at your bracket rate. A home you lived in may qualify for an exclusion that shrinks the taxable gain, but the ownership and use tests are strict, so read the IRS page on selling your home first. Rental and investment property has its own rules, including depreciation.

State tax is separate. Texas has no state income tax, so a Texas seller owes no Texas tax on the gain, though the federal tax still applies. Most other states tax gains as ordinary income, so check your state revenue agency.

FAQ

What is the capital gains tax rate for 2026?

Long-term gains are taxed at 0%, 15% or 20% depending on taxable income: single filers pay 0% up to $49,450 and 15% up to $545,500. Short-term gains are taxed at your normal rates, 10% to 37%. High earners may add 3.8% net investment income tax.

How long do I have to hold to get the long-term rate?

More than one year. The IRS counts from the day after you bought the asset up to and including the day you sold it. Sell on the one-year anniversary or earlier and the gain is short-term, taxed like wages. A few assets, such as gifts and inherited property, follow their own rules.

How much tax do I pay on a $20,000 gain?

It depends on your other income. A single filer with $80,000 of other income pays $3,000.00 on a $20,000 long-term gain in 2026, all at 15%. With $40,000 of other income most or all of it falls in the 0% band instead. Short-term, the same gain is taxed at your bracket rate.

Can capital losses lower my taxes?

Yes. Losses first cancel gains of the same year. If losses are bigger, up to $3,000 of the net loss ($1,500 if married filing separately) comes off your other income each year, and whatever is left carries forward to later years.

What is the net investment income tax?

A 3.8% tax on the smaller of your net investment income and the amount your modified AGI is over $200,000 (single or head of household) or $250,000 (joint). It covers gains, dividends, interest and rents, never wages, and the IRS calls the thresholds statutory amounts, fixed in the law.

Sources

More on paycheck, take-home pay and tax