US Capital Gains Tax Calculator 2026: 0%, 15% and 20% Rates
By FindMySum · Last reviewed
This capital gains tax calculator shows the federal tax on selling stocks, ETFs, mutual funds, crypto or an investment property in the United States for 2026. It applies the IRS rules for how long you held the asset, stacks the gain on top of your other taxable income to find which rate applies, and adds the 3.8% Net Investment Income Tax when your income is high enough. All figures are in US dollars.
Short-term or long-term
The holding period decides the rate. An asset held for one year or less produces a short-term gain, which is simply added to your wages and taxed at ordinary income tax rates from 10% to 37%. Held for more than a year, the gain is long term and gets its own lower rates of 0%, 15% or 20%. The difference is large: a 22%-bracket worker pays 15% on a long-term gain, and someone in the 35% bracket still pays only 15% or 20%.
How the 0%, 15% and 20% bands stack
Long-term gains sit on top of ordinary taxable income. For single filers in 2026 the 0% rate covers taxable income up to $49,450, the 15% rate up to $545,500 and 20% above that; for married couples filing jointly the breakpoints are $98,900 and $613,700. If your wages already fill part of the 0% band, only the rest of it is available for the gain, so one sale can be taxed partly at 0% and partly at 15%. The calculator works this out by computing your tax with and without the gain and showing the difference.
On top of that, the Net Investment Income Tax adds 3.8% on investment income once modified adjusted gross income passes $200,000 for a single filer or $250,000 for a joint return. These thresholds are not indexed for inflation.
Worked example: $20,000 gain on shares held two years
With the calculator's starting values a single filer sells shares for $50,000 that cost $30,000, and has $85,000 of other income.
- Capital gain: $50,000 − $30,000 = $20,000.
- Taxable income without the gain: $85,000 − $16,100 = $68,900, already past the $49,450 limit of the 0% band.
- The whole gain is in the 15% band: $20,000 × 15% = $3,000.
- Income is below $200,000, so no NIIT. The seller keeps $17,000 of the gain and $47,000 of the proceeds.
Raise the other income to $250,000 and the same gain costs $3,760: $3,000 at 15% plus $760 of NIIT, because the whole gain is above the $200,000 threshold.
Losses, homes and what is not included
Capital losses offset gains first; up to $3,000 of any net loss a year ($1,500 if married filing separately) can come off ordinary income, and the rest carries forward. Selling your main home lets you exclude up to $250,000 of gain ($500,000 for a couple) if you owned and lived in it for two of the last five years. The calculator does not cover the 28% rate on collectibles, the 25% rate on unrecaptured depreciation from rental property, or state income tax, which most states charge on gains as ordinary income. For a sale taxed in Canada, use the Canadian capital gains tax calculator.
Sources
This article explains how the calculator works and is general information, not financial, tax or legal advice. Rules change; check the sources above or a qualified professional before you act.