2025 Capital Gains Tax Calculator
Selling stock, a rental property, or a business you've held for more than a year? Your long-term capital gain is not taxed at one flat rate — it is stacked on top of your other taxable income and taxed layer by layer across the 0%, 15%, and 20% brackets. This calculator shows exactly where your gain falls, and adds the 3.8% Net Investment Income Tax if your income is high enough to trigger it — using the official 2025 IRS thresholds.
0%
Why "what tax bracket am I in" is the wrong question for capital gains
Most people assume their capital gains rate is simply whatever percentage matches their income bracket. It is close, but the mechanism is different in a way that matters. The IRS looks at your taxable income including the gain and figures out which part of that combined total falls into the 0%, 15%, and 20% capital gains brackets — treating your ordinary income as filling up the lower brackets first, so your gain sits on top. That means the same $50,000 gain can be entirely tax-free for one household and partly taxed at 15% for another, depending on what else they earned that year. The breakdown table above shows this stacking explicitly, bracket by bracket, using your own numbers.
The 3.8% surtax that catches people off guard
Above certain income levels, the Net Investment Income Tax adds an extra 3.8% on top of the capital gains rate — so a gain taxed at 20% can effectively cost 23.8%. The NIIT does not use the same brackets as the capital gains rates; it triggers once your modified adjusted gross income passes $200,000 (single and head of household), $250,000 (married filing jointly), or $125,000 (married filing separately), and applies to whichever is smaller: your net investment income or the amount you're over the threshold. This calculator applies that comparison automatically rather than just multiplying your whole gain by 3.8%, which is a common shortcut that overstates the tax for people near the threshold.
Timing a sale can change your bracket entirely
Because the gain stacks on top of ordinary income, the calendar year you sell in — and what else happens in that year — can swing your rate substantially. Retiring, taking a sabbatical, or having a lower-income year can push a gain that would otherwise be taxed at 15% partly or fully into the 0% bracket. Selling in tranches across two tax years instead of all at once can sometimes keep more of the gain inside the lower brackets. None of this is a reason to delay a sale for the wrong reasons, but it is a reason to run the numbers before, not after, a large sale closes — our guide on capital gains versus wages walks through how these interact with income planning in more detail.
Frequently asked questions
How is long-term capital gains tax actually calculated?
Your gain stacks on top of your ordinary taxable income. Each layer of the combined total is taxed at the 0%, 15%, or 20% rate for the bracket it falls into — a gain can straddle two brackets and be partly taxed at each.
What are the 2025 brackets?
Single: 0% to $48,350, 15% to $533,400, 20% above. Married filing jointly: 0% to $96,700, 15% to $600,050, 20% above. Head of household: 0% to $64,750, 15% to $566,700, 20% above.
What is the NIIT and when does it apply?
A 3.8% surtax on investment income once MAGI exceeds $200,000 (single/HOH), $250,000 (MFJ), or $125,000 (MFS) — applied to the lesser of your net investment income or the amount over the threshold.
Does this cover short-term gains or collectibles?
No. Short-term gains (held ≤1 year) are taxed as ordinary income. Collectibles cap at 28% and unrecaptured Section 1250 real estate gain caps at 25% — both are outside this calculator's scope.