When you sell stock or a fund you have held for more than a year, the profit is a long-term capital gain. In a taxable brokerage account, most net long-term gains are taxed at 0%, 15%, or 20%, depending on your taxable income. The 0% zone is written right into the brackets — and the example below shows how a couple earning $100,000 can realize $31,100 of gains at a 0% federal income tax rate in 2026. (The video title rounds it to $31,000; the exact room in the example is $31,100.)
That is the gain, not the total sale proceeds. And a 0% federal rate on the gain does not mean the sale has no other cost, so read the traps before acting on it.
How does the 0% capital gains bracket work?
For 2026, the 0% ceiling is $98,900 of taxable income for married couples filing jointly, $49,450 for single filers, and $66,200 for heads of household. Gains that fall in that range are taxed at 0% federal income tax.
That is taxable income after deductions, so you can earn a lot more than $98,900 and still be in the 0% zone. Gains stack on top of ordinary income: your wages fill the bracket first, and the gain sits on top.
Qualified dividends and other capital gains use the same bracket room, and capital losses and carryovers also change the calculation. This applies to most net long-term gains in taxable brokerage accounts, not to retirement-account withdrawals. Short-term gains — on investments held one year or less — are taxed like ordinary income.
How much room do Mike and Lisa have?
Mike and Lisa file jointly, are under 65, and in this example have $100,000 in wages and no other income or adjustments. They take the 2026 standard deduction for married couples, $32,200. That leaves $67,800 of taxable ordinary income.
The 0% bracket goes up to $98,900, so they have $31,100 of room. They own an index fund they bought years ago with $31,100 of profit in it. If they sell it in 2026, all of that net profit lands in the 0% bracket. Federal income tax on those gains: zero. Ordinary income tax still applies to their wages.
Their income including the gain is $131,100. That is below the $250,000 joint-filer threshold for the net investment income tax, so that tax does not apply in this example. If those gains had instead all fallen in the 15% bracket, the same profit would have cost $4,665 in federal capital gains tax — a hypothetical comparison, not guaranteed savings.
What is tax-gain harvesting?
If Mike and Lisa do not need the cash, they can sell the fund at a gain and buy the same fund right back. For gains, there is no 30-day waiting rule like there is for losses: wash-sale rules disallow certain losses, not gains.
They still own the same investment. But the new shares’ basis is their actual repurchase cost, generally including purchase fees, so when they sell years later, that $31,100 of profit has already been taxed at 0%. People call this tax-gain harvesting. The new shares start a new holding period, prices can move, and trading costs still matter.
Note that some sold tax lots may have losses even if an overall account shows gains; losses require their own wash-sale review. A 0%-taxed sale remains reportable, generally on Form 8949 and Schedule D.
What are the three traps?
One: the gain itself counts toward your taxable income. If Mike and Lisa sold $50,000 of net gains instead, the $18,900 above their room would be taxed at 15% — $2,835 in direct federal gains tax, absent other changes. Calculate your room before selling.
Two: it only works for long-term gains. Investments held more than a year qualify. Short-term gains are taxed like your paycheck.
Three: a bigger income on paper can affect other things. State income tax, which many states charge on gains. Health insurance subsidies: even zero-percent gains increase income for premium tax credits. College financial aid can also be affected. And for retirees, more Social Security benefits can become taxable, and Medicare premiums generally look back two years and use that program’s own income thresholds, not this capital gains bracket. Check those first.
How do I estimate my room before December 31?
Take the top of the 0% bracket, subtract taxable income before the new gain — including qualified dividends and other gains — and floor the answer at zero. That is an estimate of how much additional net long-term gain can fit at 0% federal income tax. It is an estimate, not a complete tax projection.
The deadline for 2026 is December 31. For market-traded stocks, generally use the trade date, and allow for market hours and your broker’s cutoffs. Review your complete federal and state return and benefits before acting.