Capital Gains Tax Calculator

This capital gains tax calculator estimates 2026 federal tax on a sale, taxing long-term gains at 0%, 15% or 20% and short-term gains as ordinary income.

Disclaimer: This calculator gives estimates based on 2026 IRS figures. It is not tax advice. Consult a tax professional for your situation.

Example. A single filer with $60,000 of other taxable income and a $20,000 gain owes about $3,000 if the gain is long-term (15%) or $4,400 if short-term (22%).

How to use the capital gains tax calculator

  1. Enter your figures in the fields above.
  2. Choose your options and rates where asked.
  3. Read the result and change inputs to compare scenarios.

Gains held over one year are long-term. Long-term gains are stacked on top of your other taxable income to find which rate applies. The 3.8% net investment income tax is shown as an approximation using taxable income instead of MAGI.

What your result means

Your result is the estimated federal tax on the gain. Long-term gains use 0%, 15% or 20% rates based on total taxable income, while short-term gains are taxed like ordinary income.

How the capital gains tax calculator calculates your result

Taxable income is income minus the 2026 standard deduction ($16,100 single, $32,200 married filing jointly, $24,150 head of household). Each slice of taxable income is taxed at its bracket rate. Source: IRS Revenue Procedure 2025-32 and the IRS capital gains thresholds for 2026. Last updated November 20, 2026.

2026 long-term capital gains rates by taxable income

RateSingleMarried filing jointlyHead of household
0%Up to $49,450Up to $98,900Up to $66,200
15%Up to $545,500Up to $613,700Up to $579,600
20%Over $545,500Over $613,700Over $579,600

2026 federal tax brackets (IRS Rev. Proc. 2025-32)

RateSingleMarried filing jointlyHead of household
10%$0 – $12,400$0 – $24,800$0 – $17,700
12%$12,401 – $50,400$24,801 – $100,800$17,701 – $67,450
22%$50,401 – $105,700$100,801 – $211,400$67,451 – $105,700
24%$105,701 – $201,775$211,401 – $403,550$105,701 – $201,750
32%$201,776 – $256,225$403,551 – $512,450$201,751 – $256,200
35%$256,226 – $640,600$512,451 – $768,700$256,201 – $640,600
37%Over $640,600Over $768,700Over $640,600

Tips for using the capital gains tax calculator

Frequently asked questions

How long must I hold an asset for long-term rates?

More than one year.

What is the net investment income tax?

It is an extra 3.8% tax on investment income when modified adjusted gross income passes $200,000 for single filers or $250,000 for joint filers.

Is my data stored?

No. Calculations run in your browser and nothing you enter is sent to our servers.

Related calculators