How the calculator works
- Netting: short-term and long-term gains and losses offset each other, as on Schedule D. Up to $3,000 of net loss comes off your other income.
- Federal tax: short-term gains at your income tax rates. Long-term gains and qualified dividends sit on top of your other taxable income, at 0%, 15% or 20%.
- Net investment income tax: 3.8% on gains and dividends once your income is over the threshold.
- State and local tax: your state’s own rules for gains, including partial exclusions and separate rates, and local income taxes such as New York City’s.
Federal long-term capital gains rates
| Taxable income, 2026 | 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 |
Example: the same gain in different states
Single, earning $75,000, selling investments held for more than a year at a $20,000 gain in 2026:
| State | State tax | Total tax |
|---|---|---|
| Texas | $0 | $3,000 |
| Arkansas | $370 | $3,370 |
| Montana | $820 | $3,820 |
| South Carolina | $868 | $3,868 |
| Massachusetts | $1,000 | $4,000 |
| New York | $1,112 | $4,112 |
| Hawaii | $1,450 | $4,450 |
| California | $1,781 | $4,781 |
The federal tax is $3,000 in every state. Florida, like Texas, has no tax on capital gains. Washington’s capital gains tax only starts above $278,000 of long-term gains.
Short-term or long-term?
Held a year or less, the same $20,000 gain is taxed like wages: $4,400 of federal tax at 22% instead of $3,000 at 15%. Waiting until you’ve held an investment for more than a year can be worth more than a small move in its price.
What this calculator doesn’t include
Collectibles such as art, coins and gold (taxed at up to 28%), depreciation recaptured when you sell property (up to 25%), the exclusion on selling your home, the alternative minimum tax, and tax credits. Investments in a 401(k), IRA or HSA aren’t taxed when you sell.
Learn more
Read our guide to capital gains tax, and see year-end tax moves for selling losers to offset gains before December 31.