Capital Gains Tax Calculator (2026)

Enter what you paid, what you sold for and your other income to see the federal tax on the gain, which bracket it falls in, and how much holding longer would save.

Runs in your browser; nothing you type is sent anywhere. · Updated

How to use the capital gains tax calculator

  1. Pick the asset type and how long you held it.
  2. Enter your cost basis (what you paid, plus improvements or reinvested dividends) and the sale price, and any selling costs.
  3. Enter your other 2026 income and filing status. The calculator subtracts the 2026 standard deduction and stacks the gain on top.

2026 long-term capital gains brackets

Long-term gains (assets held more than one year) and qualified dividends are taxed at 0%, 15% or 20% based on your total taxable income:

Filing status 0% 15% 20%
Single Up to $49,450 $49,451–$545,500 Over $545,500
Married filing jointly Up to $98,900 $98,901–$613,700 Over $613,700
Head of household Up to $66,200 $66,201–$579,600 Over $579,600
Married filing separately Up to $49,450 $49,451–$306,850 Over $306,850

Source: IRS Rev. Proc. 2025-32. Short-term gains (held one year or less) are taxed as ordinary income at 10% to 37%.

Example: $20,000 gain

Situation Long-term tax Short-term tax
Single, $40,000 other income $0 $2,400
Single, $80,000 $3,000 $4,400
Single, $150,000 $3,000 $4,800
Married filing jointly, $80,000 $0 $2,400
Single, $600,000 $4,760 (incl. $760 NIIT) $7,760 (incl. $760 NIIT)

Holding past the one-year mark often cuts the tax by a third or more. A married couple earning $80,000 can realize $20,000 of long-term gains tax-free because their taxable income stays under $98,900.

Net investment income tax (NIIT)

An extra 3.8% applies to investment income, including capital gains, to the extent your modified AGI exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). These thresholds aren't indexed for inflation.

Selling your home

If you owned and lived in your main home for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of gain ($500,000 married filing jointly). Example: a couple with $100,000 of other income selling with a $600,000 gain excludes $500,000 and owes about $10,335 on the remaining $100,000.

Collectibles

Gains on art, antiques, coins, precious metals (including many gold and silver ETFs) and other collectibles held over a year are taxed at ordinary rates capped at 28%, not the 0/15/20% schedule.

Ways to lower capital gains tax

  • Hold for more than a year before selling.
  • Harvest losses: losses offset gains, and up to $3,000 a year of net loss ($1,500 married filing separately) offsets ordinary income, with the rest carried forward.
  • Use the 0% bracket in low-income years, such as early retirement.
  • Give appreciated shares to charity instead of cash, or hold them until death for a step-up in basis.
  • Use tax-advantaged accounts: trades inside a 401(k) or IRA aren't taxed when made.

This is an estimate of federal tax; your actual return can include other items (AMT, deductions, credits). For capital gain distributions you don't control, see the dividend calculator.

Frequently asked questions

How much tax do I pay on $50,000 of capital gains?

It depends on your other income. A married couple with $60,000 of other income would pay $0 federal tax on $50,000 of long-term gains; a single filer earning $100,000 would pay $7,500 at 15%.

Is the capital gains tax rate based on the gain alone?

No. The gain is added to your other taxable income, and the brackets apply to the total.

What counts as long-term?

Held for more than one year: from the day after you bought it to the day you sold it.

Do I pay state tax on capital gains?

Most states tax capital gains as regular income. A few, including Florida, Texas, Nevada, South Dakota, Tennessee, Wyoming and Alaska, have no income tax; Washington taxes large long-term gains separately.