US capital gains tax calculator
Enter this year's realized gains and losses. The calculator nets them the way Schedule D does, stacks long-term gains on your other income and shows the federal tax they add.
Rules: 2026 federal tax yearResult
Fill in your numbers and press Calculate. The answer shows the formula and the rules it used.
Signed in, INDYXQUANT nets your real lots across every account, flags wash sales and shows which losses to harvest before year end.
Do this with your real portfolioHow it is worked out
Short-term and long-term results are netted separately, last year's carryover joins its own term, then a net loss in one term offsets a net gain in the other (Schedule D, lines 7, 15 and 16).
Net short-term gains are taxed as ordinary income. Net long-term gains sit on top of your ordinary taxable income and are taxed at 0%, 15% or 20% depending on where they land.
A net loss reduces other income by up to $3,000 ($1,500 married filing separately); the rest carries forward with its character.
Net investment income tax adds 3.8% on investment income above $200,000 MAGI (single and head of household), $250,000 (joint) or $125,000 (separate).
Questions
What are the 2026 long-term capital gains brackets?
For 2026 the 0% rate applies to taxable income up to $49,450 single ($98,900 married filing jointly, $66,200 head of household), 15% up to $545,500 single ($613,700 joint, $579,600 head of household) and 20% above that (IRS Rev. Proc. 2025-32).
How much capital loss can I deduct?
Up to $3,000 a year against other income ($1,500 if married filing separately). Any remaining net loss carries forward to later years without expiring.
Does this include state tax?
Pick a state to add it. New Jersey, New York (and New York City), California, Massachusetts, Illinois, Pennsylvania, Georgia, North Carolina, Virginia, Ohio, Michigan, Arizona, Colorado and Washington are computed from their own published tables; the result shows the table year. Other states use a labelled flat-rate estimate. Texas and Florida have no income tax.
Sources
- IRS Rev. Proc. 2025-32 (2026 inflation adjustments)
- IRS Topic 409: capital gains and losses
- IRS Schedule D instructions
Rules: 2026 federal tax year. This page is for education and is not tax, legal or investment advice.