
Published: 22 November 2026 · Updated: 22 November 2026
A single filer with $40,000 of other taxable income who sells stock for a $30,000 long-term gain pays about $3,082.50 in federal tax in 2026 — but the same gain held one year or less would cost about $5,560. Enter your own sale below and see the difference before you sell.
Long-term gains are taxed at 0%, 15% or 20% — short-term gains at your ordinary rate. The rate depends on your total taxable income, not just the size of the gain: a single filer pays 0% up to $49,450 of taxable income and 15% up to $545,500 in 2026. Holding an asset past one year is the biggest legal tax cut available on a sale.
Researched by MixKhazana Team · Last updated 22 November 2026 · Data: IRS Revenue Procedure 2025-32 (tax year 2026)
Capital gains tax is not a flat rate on the gain — it is a stack. Step one: the gain. Gain = sale price minus cost basis. Step two: the stack. Long-term gains sit on top of your other taxable income, so the part of the gain below the 0% ceiling is taxed at 0%, the part below the 15% ceiling at 15%, and only the part above it at 20%. For 2026 the ceilings are $49,450 / $545,500 for single filers, $98,900 / $613,700 for married filing jointly, $66,200 / $579,600 for head of household and $49,450 / $306,850 for married filing separately. Step three: short-term. A gain on an asset held one year or less is taxed as ordinary income at 10% to 37% using the 2026 brackets — for a single filer, 12% to $50,400, then 22% to $105,700. Step four: NIIT. If your modified AGI passes $200,000 (single) or $250,000 (joint), a further 3.8% net investment income tax applies to the investment income. If you want the full federal picture for your wages too, run the same income through our US federal income tax calculator — the two pages use the same IRS 2026 tables.
One statistic worth knowing: for 2026 the 0% long-term rate covers taxable income up to $49,450 for a single filer and $98,900 for a married couple filing jointly, per IRS Revenue Procedure 2025-32 — which means a retired couple with modest income can sell a large gain and owe 0% federal tax on part or all of it. The thresholds rise with inflation every year, so last year's calculator gives last year's answer.
Sarah, single filer, sells shares in 2026: bought for $50,000, sold for $80,000, with $40,000 of other taxable income:
At $250,000 of other income the picture changes again: the 3.8% NIIT switches on and part of the gain crosses into the 20% band. Try it in the widget.
| Figure | 2026 value |
|---|---|
| Long-term rates | 0% / 15% / 20% |
| 0% ceiling — single | $49,450 |
| 0% ceiling — married filing jointly | $98,900 |
| 0% ceiling — head of household | $66,200 |
| 15% ceiling — single / joint / HoH | $545,500 / $613,700 / $579,600 |
| Short-term rates | Ordinary 10% – 37% |
| NIIT rate + thresholds | 3.8% over $200k / $250k / $125k |
| Long-term holding test | More than 1 year |
It depends on your other income. A single filer with $40,000 of other taxable income pays about $3,082.50 on a $30,000 long-term gain: $9,450 of the gain falls in the 0% bracket and $20,550 is taxed at 15%. The same gain held one year or less would cost about $5,560 as ordinary income. Enter your own figures in the calculator above.
For 2026 the long-term rates are 0%, 15% and 20%, set by taxable income: single filers pay 0% up to $49,450 and 15% up to $545,500; married filing jointly 0% up to $98,900 and 15% up to $613,700; head of household 0% up to $66,200 and 15% up to $579,600. Above those ceilings the rate is 20%. Source: IRS Revenue Procedure 2025-32, section 4.03.
An asset held more than one year produces a long-term gain, taxed at 0%, 15% or 20%. An asset held one year or less produces a short-term gain, taxed as ordinary income at your marginal rate of 10% to 37%. Holding past the one-year mark is the single biggest legal way to cut the tax on a gain.
The NIIT adds 3.8% on investment income when modified adjusted gross income passes $200,000 for single and head-of-household filers, $250,000 for married filing jointly, or $125,000 for married filing separately. The thresholds are fixed by law and are not indexed for inflation. This calculator adds it automatically when your income crosses the line.
In most states, yes — capital gains are usually taxed as ordinary income at the state level, on top of the federal tax shown here. A handful of states have no state income tax at all. This calculator covers federal tax only; check your state's rules before you sell.
Hold assets longer than one year to reach the 0%, 15% or 20% long-term rates; sell losing investments to offset gains (tax-loss harvesting, up to $3,000 of net losses a year against ordinary income); keep taxable income inside the 0% bracket where possible; and hold investments inside retirement accounts such as a 401(k) or IRA, where gains are not taxed year to year.
The 0%, 15% and 20% thresholds come from IRS Revenue Procedure 2025-32, section 4.03, and the ordinary-income brackets from section 4.01 of the same procedure. The 3.8% NIIT and its thresholds come from 26 U.S.C. section 1411, and the long-term versus short-term rules from IRS Topic 409. This page is an estimate, not tax advice.