Capital gains tax calculator for 2026

A capital gain is the profit when you sell something, like a stock, for more than you paid. Enter your sale to see the federal tax on it for 2026.

Updated Nov 2026 · 2026 IRS figures · Free, no sign-up · How to use it

What is the tax on your gain?

Enter what you paid, what you sold it for and your income. See the 2026 federal tax, long term and short term.

$

Include any fees you paid to buy.

$
Did you own it more than a year?
$

Taxable income: your income minus deductions. Leave out this sale.

Federal tax on your gain

$1,500

Your $10,000 gain is taxed at 15%. Owned one year or less, it would be $2,200.

Federal tax, in dollarsMore than 1 year$1,5001 year or less$2,200
  • Long term (more than 1 year)$1,500
  • Short term (1 year or less)$2,200
  • Gain left after tax$8,500

Hypothetical illustration based on your inputs. Not a prediction, a recommendation, or the performance of any Amaltash strategy. For learning only, not tax advice. An estimate of 2026 US federal tax using IRS figures (Rev. Proc. 2025-32). It leaves out state tax unless you add a rate. It also leaves out special rules, such as for home sales. Ask a tax professional about your own return. Example numbers are made up.

Try an example:

How to use this calculator

  1. Enter what you paid and what you sold it for.
  2. Pick "Yes" if you owned it more than a year.
  3. Enter your taxable income for the year, without this sale.
  4. Read your federal tax. The chart shows the tax both ways.

What is capital gains tax?

Capital gains tax is a tax on profit. You owe it when you sell an asset, like a stock, for a gain. The gain is what you sold it for minus what you paid. If you owned it more than one year, the gain is long term and gets lower rates. One year or less is short term, taxed like your pay.

What you paid, plus fees, is called your cost basis. A capital asset is almost anything you own for investing or personal use. Source: IRS Topic No. 409.

2026 capital gains tax rates and brackets

For 2026, long-term gains are taxed at 0%, 15% or 20%. The rate depends on your taxable income and how you file. A single filer pays 0% on gains that fit under $49,450 of taxable income. They pay 15% up to $545,500, and 20% above that.

How you file0% up to15% up to20% above
Single$49,450$545,500$545,500
Married filing jointly$98,900$613,700$613,700
Married filing separately$49,450$306,850$306,850
Head of household$66,200$579,600$579,600

2026 long-term capital gains rates by taxable income. Source: IRS Rev. Proc. 2025-32, section 4.03.

Your gain sits on top of your other income. So part of a gain can be taxed at 0% and the rest at 15%. These limits change each year with prices.

How are short-term gains taxed?

Short-term gains are taxed like your pay, at your regular income tax rates. For 2026 those rates are 10%, 12%, 22%, 24%, 32%, 35% and 37%. A gain from something you owned one year or less is added to your other income.

RateSingleMarried filing jointlyHead of household
10%$0 to $12,400$0 to $24,800$0 to $17,700
12%to $50,400to $100,800to $67,450
22%to $105,700to $211,400to $105,700
24%to $201,775to $403,550to $201,750
32%to $256,225to $512,450to $256,200
35%to $640,600to $768,700to $640,600
37%over $640,600over $768,700over $640,600

2026 income tax rates by taxable income. Married filing separately uses the single lines, but 35% stops at $384,350. Source: IRS Rev. Proc. 2025-32, section 4.01.

The one-year rule: owned "more than one year" is long term. For stocks, count from the day after the trade date you bought to the trade date you sold. Sources: IRS Topic No. 409, IRS Pub. 550.

How to calculate capital gains tax

First find your gain: what you sold it for minus what you paid. Then check if you owned it more than a year. Stack the gain on top of your other taxable income. Tax each part of the gain at the rate for that income band. Then add the 3.8% tax if your income is high.

Gain=Sale price−Cost basis\text{Gain} = \text{Sale price} - \text{Cost basis}

In words: Take what you sold it for. Subtract what you paid, plus fees.

Sale price\text{Sale price}
what you sold it for
Cost basis\text{Cost basis}
what you paid, plus fees

Example (made-up numbers, single, 2026):

  1. You paid $10,000 for shares and sold them for $20,000. Your gain is $10,000.
  2. You owned them more than a year, so the gain is long term.
  3. Your other taxable income is $60,000. That is already above $49,450, so none of the gain gets 0%.
  4. The whole $10,000 is taxed at 15%. Your tax is $1,500.

To find your cost basis when you bought at different prices, use the stock average calculator.

Find your average cost with the stock average calculator →

Tax on a $10,000 gain at each income

The same $10,000 gain can be taxed $0 or as much as $3,880. It depends on your income and how long you owned it. Take a single filer in 2026. Long-term tax goes from $0 at $30,000 of income to $2,380 at $600,000. Short-term tax is higher at every income.

Taxable income before the saleLong termShort termOf which 3.8% tax
$30,000$0$1,200$0
$45,000$832.50$1,660$0
$60,000$1,500$2,200$0
$100,000$1,500$2,286$0
$250,000$1,880$3,693.25$380
$600,000$2,380$3,880$380

Federal tax on a $10,000 gain, single filer, 2026. Made-up incomes. Includes the 3.8% tax where it applies. We estimate MAGI as taxable income + gain + the $16,100 standard deduction.

Takeaway: at $45,000, $4,450 of the gain fits under the 0% line. Only the other $5,550 is taxed, at 15%.

What is the 3.8% net investment income tax?

It is an extra 3.8% federal tax on investment income, including capital gains. It applies only above an income line. The line is $200,000 if single, or $250,000 if married filing jointly. The income used is MAGI, your modified adjusted gross income. You pay it on the smaller of your investment income or the amount over the line.

How you fileMAGI over
Single or head of household$200,000
Married filing jointly$250,000
Married filing separately$125,000

Net investment income tax (NIIT) lines. Source: IRS Topic No. 559. These lines are not raised for inflation.

MAGI is your adjusted gross income with a few items added back. If you know it, enter it under "More options". Sources: IRS Topic No. 559, IRS NIIT questions and answers.

What this calculator leaves out

This calculator covers federal tax on one sale of stocks, funds or similar assets. It leaves out state tax unless you add a rate. It also leaves out special rules. These include home sales, collectibles, past losses and the alternative minimum tax.

  • State tax. Many states tax gains too, with their own rules. Add one flat rate under "More options" for a rough idea.
  • Selling your home. You may leave out up to $250,000 of gain, or $500,000 if married filing jointly. You must have owned and lived in it 2 of the last 5 years. Source: IRS Topic No. 701.
  • Collectibles like coins or art: up to 28%. Some real estate gain (section 1250): up to 25%. Source: IRS Topic No. 409.
  • Losses. Losses first cancel out gains. Up to $3,000 more ($1,500 if married filing separately) can lower other income each year. The rest carries forward. Source: IRS Topic No. 409.
  • The alternative minimum tax (AMT). It is a second way to figure tax for some people. We do not check it.

Questions people ask

How much is capital gains tax on stocks?

For stocks owned more than a year, it is 0%, 15% or 20% in 2026. Your income sets the rate. For stocks owned one year or less, it is your regular income tax rate, from 10% to 37%. High earners may owe 3.8% more.

What are the 2026 long-term capital gains tax brackets?

For a single filer: 0% up to $49,450 of taxable income, 15% up to $545,500, and 20% above. For married filing jointly: 0% up to $98,900, 15% up to $613,700, and 20% above.

How long do I have to hold a stock to pay less tax?

More than one year. Count from the day after the trade date you bought to the trade date you sold. One year or less is short term and taxed at regular rates.

Do I pay capital gains tax if I reinvest the money?

Yes, in a regular brokerage account. Selling is what sets the tax, even if you buy something else right away. Sales inside a 401(k) or IRA are not taxed when they happen.

Can capital losses lower my tax?

Yes. Losses cancel out gains first. Then up to $3,000 a year can lower your other income, or $1,500 if married filing separately. Any loss left over carries to next year.

Which income do I enter?

Your taxable income for the year without this sale. That is your income after deductions, such as the 2026 standard deduction of $16,100 for a single filer. Your tax return shows it.

Does this include state capital gains tax?

Not by default. States have their own rules. You can add one flat state rate under "More options" for a rough estimate.

Guides on this topic

More calculators

See this with your real accounts

Connect your accounts and we keep the numbers up to date for you.

Connect accounts

Published by Amaltash Advisors LLC, an SEC-registered investment adviser

Sources

Get started