Capital gains tax calculator

How long you held an investment decides how it is taxed. Enter your other income and your gains to see how much is taxed at 0%, 15% or 20%, what short-term gains cost, and whether the 3.8% surtax applies.

$
$
$
$
Interest, rents, non-qualified dividends. Used only for the 3.8% surtax.

How capital gains are taxed

  • Short-term gains (assets held one year or less) are added to your ordinary income and taxed at your normal bracket, from 10% to 37%.
  • Long-term gains (held more than one year) and qualified dividends are taxed at 0%, 15% or 20%, depending on your total taxable income. They are stacked on top of your other income, so other income fills the 0% band first.
  • Net investment income tax. An extra 3.8% applies to the smaller of your investment income or the amount your modified AGI is above $200,000 (single and head of household) or $250,000 (married filing jointly). These thresholds are not adjusted for inflation. See the IRS net investment income tax page.

2026 long-term capital gains brackets

RateSingleMarried filing jointlyHead of household
0%taxable income up to $49,450up to $98,900up to $66,200
15%$49,451 – $545,500$98,901 – $613,700$66,201 – $579,600
20%over $545,500over $613,700over $579,600

Source: IRS Revenue Procedure 2025-32. Some gains have special rates, such as up to 28% on collectibles and up to 25% on depreciation recaptured from real estate; this calculator does not include those. See IRS Topic 409, Capital gains and losses.

Examples

A single filer with $80,000 of wages sells shares held for three years at a $20,000 profit. After the standard deduction, wages already fill the 0% band, so the whole gain is taxed at 15%: $3,000.

A married couple filing jointly with $60,000 of other income and a $40,000 long-term gain has $67,800 of taxable income, all below the $98,900 limit. Their federal tax on the gain is $0.

A single filer earning $180,000 who realizes $10,000 of short-term and $50,000 of long-term gains pays $2,400 on the short-term gains at 24%, $7,500 on the long-term gains at 15%, and $1,520 of net investment income tax: $11,420 in all, or 19% of the gains.

Ways to pay less tax on gains

  1. Hold for more than a year before selling when you can; it can cut the rate on the gain by more than half.
  2. Use the 0% band in low-income years, such as early retirement or a gap between jobs.
  3. Harvest losses. Losses offset gains, and up to $3,000 of net losses a year ($1,500 if married filing separately) can offset other income, with the rest carried forward.
  4. Use the home sale exclusion. Up to $250,000 of gain ($500,000 for married couples) on a main home you owned and lived in for two of the last five years is tax-free.

Frequently asked questions

What is the capital gains tax rate for 2026?

Long-term gains are taxed at 0%, 15% or 20%. A single filer pays 0% while taxable income is $49,450 or less, 15% up to $545,500, and 20% above that. For married couples filing jointly the limits are $98,900 and $613,700.

How long do I have to hold an investment for long-term rates?

More than one year. An asset bought on March 10, 2026 must be sold on March 11, 2027 or later to get long-term treatment.

Is cryptocurrency taxed as a capital gain?

Yes. The IRS treats digital assets as property, so selling, trading or spending crypto at a profit is a capital gain, short-term or long-term depending on how long you held it.

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

Yes. Selling triggers the tax even if you buy another investment straight away. Gains inside a 401(k) or IRA are not taxed when you trade within the account.

Last reviewed December 5, 2026 by the PayLessTaxPro editorial team. Results are estimates for planning only. Your actual tax depends on your full return and the IRS rules that apply to you.