This United States capital gains tax calculator estimates the federal tax you'll pay on gains from selling shares, funds, property or other investments in 2026. Choose your filing status, enter your other taxable income and your long-term and short-term gains, and the capital gains tax calculator shows how much falls in the 0%, 15% and 20% bands, the tax on short-term gains, any 3.8% net investment income tax and the share of your gains you keep.
How to use the United States capital gains tax calculator
- Choose your filing status.
- Enter your other taxable income: wages, interest and other ordinary income after your standard or itemized deduction.
- Enter your net long-term gain on assets held more than a year and your net short-term gain on assets held a year or less.
- Leave the net investment income tax ticked unless you know it doesn't apply, and press Calculate.
What counts as a capital gain
Almost everything you own and use for personal or investment purposes is a capital asset, including a home, household furnishings and stocks or bonds held as investments. When you sell one, the difference between what you receive and your adjusted basis is your capital gain or loss. Your basis is generally what the asset cost you, but it works differently for assets you received as a gift or inherited. Losses on personal-use property, such as your car, can't be deducted, but gains on them are taxable. Work out the gain on each sale, add up the long-term and short-term results separately, and enter the totals here.
Short-term and long-term gains
How long you held an asset decides how its gain is taxed. Assets held for one year or less give short-term gains, taxed at the same rates as wages. Assets held for more than a year give long-term gains, which get lower rates: for most people the rate on net capital gain is no higher than 15%, and some pay 0%. Gains and losses of the same type are netted first, so a short-term loss offsets short-term gains before anything else.
2026 long-term capital gains rates
The 0% rate applies up to the maximum zero rate amount, 15% up to the maximum 15% rate amount, and 20% above that. These thresholds count your whole taxable income, with long-term gains added on top of everything else:
| Filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
| Head of household | $66,200 | $579,600 | $579,600 |
Because long-term gains sit on top of your other income, the same gain can be taxed at different rates in different years. A couple with $60,000 of other taxable income can realise $30,000 of long-term gains and pay nothing, because their total stays under $98,900.
The net investment income tax
Higher earners may also pay the 3.8% net investment income tax. It applies to the smaller of your net investment income, which includes capital gains, or the amount by which your modified adjusted gross income exceeds a threshold: $200,000 for single filers and heads of household, $250,000 for married couples filing jointly and $125,000 for married filing separately.
Worked example
Say you're single with $40,000 of other taxable income and a $30,000 long-term gain. Your income fills the first $40,000, so $9,450 of the gain fits under the $49,450 zero-rate line and pays nothing. The remaining $20,550 is taxed at 15%, giving $3,082.50, about 10.3% of the gain. Now say your other taxable income is $150,000, with a $100,000 long-term gain and a $20,000 short-term gain. The short-term gain is taxed at your 24% bracket, $4,800. The long-term gain all falls in the 15% band, $15,000. Your income plus gains of $270,000 is $70,000 over the $200,000 threshold, so the net investment income tax is 3.8% of $70,000, $2,660. The total is $22,460, about 18.7% of your gains.
Rates at a glance
| Situation (single) | Federal tax on the gain |
|---|---|
| $40,000 income, $30,000 long-term gain | $3,082.50 |
| $150,000 income, $100,000 long-term + $20,000 short-term gain | $22,460 |
| $600,000 income, $200,000 long-term gain | $47,600 (20% + 3.8%) |
Other capital gains rates
A few kinds of gain have their own rates. Net gains on collectibles, such as coins or art, are taxed at up to 28%, as is the taxable part of a gain on qualified small business stock. The unrecaptured section 1250 part of a gain from selling section 1250 real property is taxed at up to 25%. This calculator uses the standard 0%, 15% and 20% rates, so leave those special gains out or treat the result as a lower estimate.
Losses
If your capital losses are larger than your gains, you can deduct up to $3,000 of the net loss against other income in a year, or $1,500 if married filing separately, and carry the rest forward to later years. Enter a net loss as zero here, because the calculator works out tax on gains.
Common mistakes
- Using your salary before deductions. The bands use taxable income, after the standard or itemized deduction.
- Treating all gains at 15%. Part of a gain can fall at 0% or 20% depending on your other income.
- Selling a day too early. Held one year or less, a gain is short-term and taxed like wages.
- Forgetting state tax. Most states tax capital gains as ordinary income.
Tips
- Check how long you've held an asset before selling.
- Gains in a year with lower income may fall into the 0% band.
- Keep records of what you paid so you can work out your gain correctly.
What next
Use this often? Add United State to your Home screen.
Frequently asked questions
How much capital gains tax will I pay in 2026?
It depends on your income. A single filer with $40,000 of other taxable income and a $30,000 long-term gain pays about $3,082.50: $9,450 at 0% and $20,550 at 15%.
What are the 2026 long-term capital gains brackets?
For single filers 0% up to $49,450 of taxable income, 15% up to $545,500 and 20% above. For married couples filing jointly 0% up to $98,900, 15% up to $613,700, 20% above.
How are short-term capital gains taxed?
Gains on assets held a year or less are taxed as ordinary income at your normal federal rates.
When does the 3.8% net investment income tax apply?
When modified AGI is over $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). It's 3.8% of the smaller of your investment income or the excess.
Does this United States capital gains tax calculator include state tax?
No. It covers federal income tax and the net investment income tax. Most states tax gains as ordinary income.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.