Guides · Capital gains

Filling the 0% capital gains bracket: how much you can realize tax-free in 2026

In 2026, long-term capital gains and qualified dividends are taxed at 0% federally until taxable income reaches $98,900 for a married couple, or $49,450 for a single filer. Because deductions come first, a retired couple who are both 65 or older can have up to about $146,400 of income and still pay no federal tax on their gains. Selling and immediately buying back appreciated shares in that range raises their cost basis for free.

The 2026 thresholds

Filing status0% rate up to15% rate up to20% rate above
Married filing jointly$98,900$613,700$613,700
Single$49,450$545,500$545,500
Head of household$66,200$579,600$579,600
Married filing separately$49,450$306,850$306,850

These are taxable income limits, after deductions. Gains and qualified dividends sit on top of ordinary income, so wages, pensions, IRA withdrawals, interest, and taxable Social Security fill the 0% range first.

How much income still leaves room

For a married couple who are both 65 or older, the 2026 standard deduction of $32,200, the extra $1,650 each for age, and the $6,000 senior deduction each add up to $47,500. Taxable income of $98,900 plus $47,500 of deductions means adjusted gross income of up to $146,400, including the gains, with no federal capital gains tax. The senior deduction stays whole because that is below $150,000.

A single filer who is 65 or older can reach about $73,600 of adjusted gross income the same way.

A worked example

A married couple, both 66, has $48,000 of Social Security, $40,000 of pension and IRA withdrawals, $5,000 of interest, and $8,000 of qualified dividends. They hold $100,000 of unrealized long-term gains in a brokerage account.

Long-term gains realizedAdjusted gross incomeTaxable Social SecurityFederal tax
$0$87,050$34,050$3,290
$8,000$101,800$40,800$4,100
$52,600$146,400$40,800$4,100
$60,000$153,800$40,800$5,333

The couple can realize $52,600 of gains with none of it taxed as a capital gain. Their federal tax still rises by $810, because the first $8,000 of gains makes $6,750 more of their Social Security taxable at 12%. After that, Social Security is already 85% taxable, and the next $44,600 of gains adds nothing. Past $52,600, gains are taxed at 15%.

Paying $810 to raise the basis of $52,600 of shares is a good trade. Selling those shares later at 15% would have cost $7,890. The Social Security effect is why a simple "stay under $98,900" rule can understate the cost, and why some households with income just below the Social Security thresholds find the 0% bracket costs more than it seems.

When harvesting gains makes sense

  • You expect to sell the shares during your lifetime, to rebalance, diversify, or spend. Raising the basis now avoids 15% later.
  • You are not planning to hold them until death. Heirs receive a stepped-up basis on inherited shares, which erases the gain anyway. In California and other community property states, both halves of a couple's shares step up at the first death.
  • You do not have capital loss carryovers. Carryovers offset harvested gains first, using them up on gains that would have been taxed at 0%.

Things that use the same room

Roth conversions

A conversion is ordinary income, so every converted dollar pushes a dollar of gains from 0% to 15%. Converting is often worth more, because it moves money permanently out of future required distributions. The calculator compares the two for the same year.

Medicare and other limits

Realized gains count toward Medicare premium surcharges two years later, starting at $218,000 for a married couple in 2026 figures, and toward the senior deduction phase-out above $150,000.

California

California has no special rate for capital gains. The couple above would owe about $2,109 of California tax on the $52,600. Harvesting only moves that California tax earlier, unless the shares are held until death or sold after leaving California.

How to do it

  1. Confirm your projected income for the year, including December fund distributions.
  2. Sell shares held more than one year, up to the amount your projection allows.
  3. Buy them back right away if you want to keep the position. The wash sale rule applies only to losses, so there is no waiting period.
  4. Finish by December 31.
Run your own numbers

The calculator opens with this couple's figures, federal tax only. With a 12% expected future rate, so that no conversion competes for the room, it shows $52,600 of gains at 0% and the $810 Social Security cost. Change the figures to match your own household.

Sources

General information about federal tax rules, not tax advice for your situation. Figures are for 2026 and are reviewed each January. Last reviewed November 2026.