Capital Gains Tax Calculator 2026 and 2027

Estimate the federal tax on selling stocks, funds or crypto, using the official IRS brackets for 2026 and 2027: long-term rates of 0%, 15% and 20%, short-term gains at ordinary rates, and the 3.8% net investment income tax.

Education only, not tax advice. This calculator gives a federal estimate from the numbers you enter and the IRS brackets cited below. It does not cover every rule. Check your situation with a tax professional before acting. Everything runs in your browser; nothing you type is sent or stored.

Tax on your gains—
Long-term gains at 0%—
At 15% / 20%—
Net investment income tax—
Short-term gains tax—

Long-term capital gains brackets, 2026 and 2027

Source: IRS Revenue Procedure 2025-32 (2026) and 2026-35 (2027). Thresholds are taxable income, including the gains.

How capital gains are taxed

When you sell an investment for more than you paid, the profit is a capital gain. How it is taxed depends on how long you held it:

  • Long-term (held more than one year): taxed at 0%, 15% or 20%, depending on your total taxable income. Qualified dividends use the same rates.
  • Short-term (one year or less): taxed as ordinary income at your regular bracket, from 10% to 37%.
  • Net investment income tax: an extra 3.8% on investment income above $200,000 of modified AGI for single filers, $250,000 for joint filers and $125,000 for married filing separately. These thresholds are not indexed to inflation.

Long-term gains are “stacked” on top of your other taxable income. In 2026 a single filer pays 0% on long-term gains that fall within the first $49,450 of taxable income, 15% up to $545,500 and 20% above; for married couples filing jointly the 0% bracket runs to $98,900. For 2027 those thresholds rise to $51,050 (single) and $102,100 (joint).

Taxable income = total income − deduction; long-term gains fill the 0%, 15% and 20% bands that remain above your ordinary taxable income.

What this calculator leaves out

It uses federal brackets and standard deductions from the IRS revenue procedures, but not credits, the alternative minimum tax, the 25% rate on unrecaptured depreciation from real estate, the 28% rate on collectibles, or the home-sale exclusion. Net capital losses offset gains first, then up to $3,000 of ordinary income a year, with the rest carried forward. State tax is a flat estimate. Your cost basis method affects the size of the gain; see FIFO, specific identification and average basis.

Ways investors manage capital gains tax

  • Hold for more than a year to qualify for long-term rates.
  • Use low-income years to realize gains in the 0% bracket.
  • Offset gains with losses (watch the wash-sale rule).
  • Hold growth investments in IRAs and 401(k)s; compare Roth vs traditional.

Frequently asked questions

What is the capital gains tax rate for 2026?

Long-term gains are taxed at 0%, 15% or 20%. For 2026, single filers pay 0% up to $49,450 of taxable income and 20% above $545,500; married couples filing jointly pay 0% up to $98,900 and 20% above $613,700. Short-term gains are taxed as ordinary income.

What are the 2027 capital gains brackets?

For 2027 the 0% rate applies up to $51,050 of taxable income for single filers and $102,100 for joint filers; the 20% rate starts above $563,200 (single) and $633,600 (joint), per IRS Revenue Procedure 2026-35.

Can I pay 0% tax on capital gains?

Yes, if your taxable income including the gains stays within the 0% bracket. Retirees and people with a low-income year sometimes sell appreciated investments to use this band.

Do I pay the 3.8% net investment income tax?

Only if your modified adjusted gross income is above $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). It applies to the smaller of your net investment income or the amount over the threshold.

How are short-term capital gains taxed?

As ordinary income at your regular tax bracket, from 10% to 37%. That is why holding an investment for more than a year can cut the tax substantially.

Related tools and guides

Updated Nov 22, 2026. Built by the ECMSource team. Spot an error? Tell us.

Disclaimer: ECMSource tools are for general education. Results are hypothetical, assume constant rates, and ignore taxes, fees and other costs unless stated. Past returns do not predict future returns. See our full disclaimer and editorial policy.