Capital gains tax calculator: federal and state, 2026

Last reviewed:

Enter what you sold for, what you paid, how long you held it, your other income and your state. You get the federal tax, the net investment income tax, your state’s tax and what you keep, with every state on the map.

By Abiot Y. Derbie, PhD · Reviewed by Eskezeia Y. Dessie, PhD and Armin Allahverdy, PhD · Published · How we check our numbers · Part of Investing and retirement decisions

Calculator

What you sold it for, after fees
Your cost basis, including purchase fees
Wages, interest and other income before deductions

Turn on JavaScript to see the tax on your gain.

–
Total tax on the gain
–
Federal tax, with NIIT
–
State tax
Where your gain goes
Tax rate on the gain: long-term against short-term

2026 federal capital gains tax rates

Gains on assets held more than a year are long-term and get their own rates. The rate depends on your taxable income with the gain included, and the gain is stacked on top of your other income.

2026 long-term capital gains rates by taxable income
Filing status0% rate15% rate20% rate
SingleUp to $49,450$49,450 to $545,500Over $545,500
Married filing jointlyUp to $98,900$98,900 to $613,700Over $613,700
Head of householdUp to $66,200$66,200 to $579,600Over $579,600
Married filing separatelyUp to $49,450$49,450 to $306,850Over $306,850

Short-term gains, on assets held a year or less, are taxed as ordinary income at up to 37%. On top of either, the net investment income tax adds 3.8% on the part of your income over $200,000 ($250,000 joint). That threshold is set in law and does not rise with inflation.

A few gains have higher caps: 25% for depreciation recaptured on real estate and 28% for collectibles such as art, coins and gold.

Capital gains tax by state: the map

Turn on JavaScript to see every state on the map. The table below has each state’s rule.

How each state taxes capital gains in 2026

Most states tax capital gains like wages, at their normal income tax rates. 8 have no tax on them, and 11 give long-term gains a break or their own rate: Arizona, Arkansas, Hawaii, Massachusetts, Montana, New Mexico, North Dakota, South Carolina, Vermont, Washington and Wisconsin.

Capital gains tax treatment and top rate by state
StateHow capital gains are taxedTop rate on long-term gains
AlabamaOrdinary income5%
AlaskaNo tax on capital gains0%
Arizona25% of long-term gains excluded1.88%
Arkansas50% of long-term gains excluded1.95%
CaliforniaOrdinary income13.3%
ColoradoOrdinary income4.4%
ConnecticutOrdinary income6.99%
DelawareOrdinary income6.6%
FloridaNo tax on capital gains0%
GeorgiaOrdinary income5.19%
HawaiiLong-term gains capped at 7.25%7.25%
IdahoOrdinary income5.3%
IllinoisOrdinary income4.95%
IndianaOrdinary income2.95%
IowaOrdinary income3.8%
KansasOrdinary income5.58%
KentuckyOrdinary income3.5%
LouisianaOrdinary income3%
MaineOrdinary income7.15%
MarylandOrdinary income6.5%
MassachusettsLong-term 5%, short-term 8.5%, plus the surtax over $1,083,1509%
MichiganOrdinary income4.25%
MinnesotaOrdinary income, plus 1% on investment income over $1,000,0009.85%
MississippiOrdinary income4%
MissouriOrdinary income4.7%
MontanaOwn long-term rates: 3% and 4.1%4.1%
NebraskaOrdinary income4.55%
NevadaNo tax on capital gains0%
New HampshireNo tax on capital gains0%
New JerseyOrdinary income10.75%
New MexicoFirst $2,500 of gains excluded5.9%
New YorkOrdinary income10.9%
North CarolinaOrdinary income3.99%
North Dakota40% of long-term gains excluded1.5%
OhioOrdinary income2.75%
OklahomaOrdinary income4.5%
OregonOrdinary income9.9%
PennsylvaniaOrdinary income3.07%
Rhode IslandOrdinary income5.99%
South Carolina44% of long-term gains excluded3.36%
South DakotaNo tax on capital gains0%
TennesseeNo tax on capital gains0%
TexasNo tax on capital gains0%
UtahOrdinary income4.5%
VermontFirst $5,000 of gains excluded8.75%
VirginiaOrdinary income5.75%
WashingtonLong-term gains only: 7% over a $290,000 deduction, 9.9% over $1,000,0009.9%
West VirginiaOrdinary income4.82%
Wisconsin30% of long-term gains excluded5.35%
WyomingNo tax on capital gains0%
District of ColumbiaOrdinary income10.75%

Top rates are for a single filer at the highest bracket, after any exclusion. Your own rate depends on your income, which the calculator handles. Washington taxes only long-term gains, through a separate excise tax, and exempts real estate and retirement accounts.

States with no capital gains tax

Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas and Wyoming do not tax capital gains. New Hampshire ended its tax on interest and dividends in 2025 and never taxed gains. Moving to one of them before a big sale can save state tax, but the state you leave may tax gains it considers earned while you lived there, and you need to truly change your residence.

Ways to pay less capital gains tax

Questions people ask

What is the capital gains tax rate for 2026?

Long-term gains are taxed at 0%, 15% or 20% depending on taxable income. A single filer pays 0% up to $49,450 and 15% up to $545,500. Short-term gains are taxed as ordinary income at up to 37%. High earners also pay the 3.8% net investment income tax.

Which states have no capital gains tax?

Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas and Wyoming. Washington has no income tax but charges 7% on long-term gains over $290,000 in 2026, and 9.9% over $1 million.

Which state has the highest capital gains tax?

California, at up to 13.3% because it taxes gains as ordinary income. New York City residents can pay more once city tax is added, and Washington reaches 9.9% on gains over $1 million.

How is capital gains tax calculated?

Subtract what you paid (your cost basis, with fees) from what you sold for. If you held it more than a year, the gain is stacked on top of your other taxable income and taxed at 0%, 15% or 20% across the bands. Add the net investment income tax if your income is over the threshold, and your state’s tax.

Do I pay state tax on capital gains if I move?

You pay the state where you live when you sell. A state you left can still tax a gain it considers earned there, such as on real estate in that state, and states watch moves just before big sales.

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

It depends on your income and state. A single filer with $85,000 of other income pays 15% federally on a $100,000 long-term gain ($15,000), plus state tax: about $9,300 in California and nothing in Texas.

Your next decision

Related: Crypto tax · ROI · Dividends · Rental property · State taxes · All investing and retirement decisions

Sources

Written by Abiot Y. Derbie, PhD. Federal rates and bands follow IRS Rev. Proc. 2025-32 and the 2026 tax tables; each state’s brackets and capital gains rule are loaded from data with their sources and tested. Our editorial policy explains how we source numbers and correct mistakes. This is an estimate, not tax advice. It uses the standard deduction, treats the gain as your only investment income for the net investment income tax, and leaves out local taxes, the alternative minimum tax and special assets such as real estate recapture and collectibles. Some states have narrow exclusions for in-state businesses or farms that are not modeled.