The 0% capital gains bracket in retirement
A married couple under age 65 can have up to $131,100 of total income in 2026 and still pay zero federal tax on the long-term gain portion. It's a deliberate feature of the tax code, but realistically only retirees in their gap years are positioned to use it.
What the 0% bracket actually is
Long-term capital gains (profits on assets held more than a year) are taxed on a separate, preferential schedule from ordinary income. That schedule has three rates: 0%, 15%, and 20%. The 2026 thresholds are inflation-indexed under Rev. Proc. 2025-32.
| 2026 LTCG BRACKET (TAXABLE INCOME) | SINGLE | MARRIED JOINT | HEAD OF HH |
|---|---|---|---|
| 0% rate up to | $49,450 | $98,900 | $66,200 |
| 15% rate up to | $545,500 | $613,700 | $579,750 |
| 20% rate above | $545,500 | $613,700 | $579,750 |
Two details matter more than the headline numbers. First, the thresholds are taxable income, meaning after the standard deduction. With the 2026 standard deduction at $16,100 single and $32,200 married, total gross income can be up to $65,550 single or $131,100 married before any gains start to be taxed. Taxpayers age 65 or older get an additional $2,050 (single) or $1,650 per qualifying spouse (married), expanding the room further.
Second, gains stack on top of ordinary income, they don't replace it. Every dollar of ordinary income (pensions, IRA withdrawals, taxable Social Security, interest, short-term gains) fills the bracket first. A retiree with $80,000 of ordinary taxable income (married) has only $18,900 of room left at the 0% rate; any gains beyond that hit 15%.
The gap-year window
For most working households, salary fills the 0% bracket before any gain can land in it. Retirees are the exception, for one specific reason: the gap years.
The gap years are the period between leaving paid work and the start of Social Security, pensions, and Required Minimum Distributions. For early retirees this can run a decade or more; even a traditional retirement at 65 has a 2-to-8-year gap before Social Security at 67-70 and RMDs at 73-75. During that window, ordinary income is unusually low while taxable brokerage balances can be substantial.
The window closes quickly. Claiming Social Security fills the bracket with up to 85% of the benefit (per the provisional income formula), and RMDs from tax-deferred accounts can crowd out the entire 0% room by themselves. Once both are active, the 0% bracket is usually gone for good.
Tax gain harvesting: the mechanic
Tax gain harvesting is the deliberate version of using the 0% bracket. The mechanic has three steps:
- Identify long-term holdings in a taxable brokerage with embedded unrealized gains.
- Sell as much as can be sold without pushing taxable income above the 0% ceiling.
- Immediately repurchase the same security. The proceeds buy back the position at a new, higher cost basis.
The result: the gain is realized at a federal tax rate of 0%, and future sales of the new lot will only be taxed on appreciation above the new basis. Repeated annually across the gap years, this can step taxable cost basis up by hundreds of thousands of dollars at no federal tax cost.
A common point of confusion: the wash-sale rule applies only to losses, not gains. The sell and the buy-back can settle on the same day.
Tax-loss harvesting (in working years) and tax-gain harvesting (in low-income retirement years) are opposite strategies that use the same brokerage account. Don't confuse the rules: losses require a 31-day wait to repurchase the same security; gains have no such restriction.
A worked example
A married couple, both age 63, retired last year. They have a $500,000 taxable brokerage account with $200,000 of unrealized gains, and they're living off cash and a small bond portfolio. They expect to claim Social Security at 70 and have no other income this year.
| 2026 TAX YEAR | AMOUNT |
|---|---|
| Ordinary income (bond interest) | $8,000 |
| Standard deduction (MFJ, both under 65) | −$32,200 |
| Ordinary taxable income | $0 |
| 0% LTCG room available | $98,900 |
| Long-term gains harvested | $98,900 |
| Federal tax on the gain | $0 |
They sell enough shares to realize $98,900 of long-term gain (with a $200K embedded gain on a $500K position, that's roughly 40% of the lot) and repurchase the same fund the same day. The federal tax on the realized gain is $0. Their cost basis steps up by $98,900, permanently reducing tax on any future sale.
Repeating this for five gap years (2026 through 2030) before Social Security begins at 70 could step basis up by close to half a million dollars at zero federal tax cost.
The Roth conversion tradeoff
The 0% capital gains bracket sits in the same income space as the 10% and 12% ordinary brackets. That makes it a direct competitor with the most powerful tax move of the gap years: the Roth conversion.
Every dollar of Roth conversion is treated as ordinary income. It fills the ordinary brackets from the bottom and, in doing so, raises the floor under capital gains. If the couple above did a $98,900 Roth conversion instead of harvesting gains, their ordinary taxable income would jump to $74,700 (the $8,000 of bond interest plus the conversion, minus the $32,200 standard deduction), leaving only $24,200 of room at the 0% LTCG rate. The conversion would cost roughly $8,500 in federal tax, effectively at the 10-12% ordinary rate.
Neither choice is universally better. The decision depends on three things:
- Cost basis in the taxable account. Low basis means more unrealized gain per share sold; harvesting compounds in value.
- Size of the tax-deferred balance. If a large 401(k) means future RMDs (plus Social Security) will be taxed at 22% or more, converting at 10-12% in the gap years locks in the lower rate.
- How many gap years remain. More years let you do both: harvest in some, convert in others, or some of each in a single year.
The right mix depends on your taxable cost basis, your tax-deferred balance, and how many gap years remain. Run your specific numbers before committing to a sequence.
What breaks the strategy
Three things quietly push gains out of the 0% bracket or generate tax that the bracket itself doesn't cover. The common mechanic: every dollar of realized gain raises Modified Adjusted Gross Income (MAGI) and the related "provisional income" test, which trips separate calculations elsewhere. Plan around all three before harvesting.
For retirees under 65 buying healthcare on the marketplace, realized capital gains count toward MAGI. A gain harvest that costs $0 in federal income tax can still cost thousands in lost ACA subsidies, particularly near the 400% FPL cliff if it ever returns. Model the subsidy loss before harvesting.
Medicare's IRMAA surcharges use a two-year lookback on MAGI starting from the year you turn 63. A gain harvested at age 63 affects Part B and Part D premiums at age 65. The first IRMAA tier costs about $1,000-$2,000 per person per year.
Realized gains count as provisional income for the formula that determines how much of Social Security is taxable. Once benefits start, even a "0% bracket" harvest can push 50% or 85% of the SS benefit into ordinary income. The Social Security "tax torpedo" walks through how this makes each extra $1 of income behave like $1.85 of taxable income (a 22.2¢ or 40.7¢ effective cost on the dollar at the 12% or 22% bracket).
One more line item that's rarely binding here: the Net Investment Income Tax adds 3.8% to investment income once MAGI exceeds $200,000 single / $250,000 married. The 0% LTCG bracket caps at $98,900 (MFJ), so a pure-harvest year stays well clear. The NIIT only bites if other income sources push MAGI past those thresholds.
State taxes don't follow the federal rule
The 0% capital gains bracket is a federal provision. Most states do not mirror it. They tax long-term capital gains as ordinary income at the state's regular bracket, so a federal-tax-free harvest can still trigger meaningful state tax.
A handful of states have no income tax at all, so capital gains are genuinely tax-free there: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming. Washington added a separate 7% surtax on gains above $270,000 in 2022; below that threshold gains remain untaxed.
A few states give partial relief: Hawaii caps the rate on long-term gains at 7.25%, Massachusetts taxes long-term gains at 5%, and Arkansas and South Carolina offer a partial exclusion. Most other states tax gains at the same rate as wages. California and Oregon, at 9.3% and 9.9% top rates respectively, are particularly painful states to harvest in. See the state tax hub for the full picture. In a high-tax state, harvesting may still be worth doing (saving 15% federal is significant), but it isn't zero.
Run your own numbers
The 0% bracket window depends on your specific balances, your other income, when you plan to claim Social Security, and how many gap years you have. The calculator models your year-by-year ordinary income path through retirement, so you can see what's left below the 0% LTCG ceiling each gap year and how Roth conversions, RMDs, and state tax shift that picture.
The button below loads a married couple, both age 62, with $500K in a taxable brokerage, claiming Social Security at 70.
Related guides