ThunderHarborThunderHarbor← Back to app

The 0% Capital Gains Bracket in Retirement: How to Use It

Most people assume selling investments always triggers a tax bill. In the right years, it does not. The federal tax code includes a 0% bracket for long-term capital gains and qualified dividends, and retirees with modest ordinary income can sometimes realize tens of thousands of dollars in gains completely tax-free. The catch is that the window is narrow, and using it well requires planning your whole income picture, not just the sale.

How the 0% bracket works

Long-term capital gains, gains on investments held more than a year, and qualified dividends are taxed at preferential rates of 0%, 15%, or 20%, separate from the ordinary income brackets that apply to wages, withdrawals, and Social Security. Which rate applies depends on your total taxable income for the year, including the gain itself.

For many married couples, the 0% bracket extends to roughly the same ceiling as the top of the 12% ordinary income bracket, somewhere in the neighborhood of $94,000 to $96,000 of taxable income for 2026, with single filers facing roughly half that threshold. Below that line, qualifying gains are taxed at 0% federally. Above it, they begin to be taxed at 15%.

Why "stacking" determines whether you qualify

The IRS treats capital gains as if they are stacked on top of your ordinary income, not blended with it. Your ordinary income, pension, withdrawals, Social Security, fills the lower brackets first. Your long-term gains then occupy the space above that, and the rate that applies depends on where the gains land relative to the thresholds.

This means the size of your 0% opportunity is not fixed, it shrinks as your ordinary income grows. A retiree with very little ordinary income might be able to realize $60,000 or more in gains at 0%. A retiree whose pension and Social Security already fill most of the bracket may have little or no room left before gains start being taxed at 15%.

The best years to use this strategy

The years between retirement and when Social Security and RMDs begin are typically the best window. Ordinary income is often unusually low during this stretch, which leaves substantial room below the 0% threshold. Selling appreciated taxable brokerage positions during these years, to rebalance, fund spending, or simply reset your cost basis, can be done with no federal tax at all.

One underused version of this is "gain harvesting": selling a position that has appreciated and immediately buying it back, which resets your cost basis higher with no wash-sale restriction (that rule only applies to losses). This can reduce future taxable gains without changing your actual investment exposure at all.

The tradeoff with Roth conversions

Both 0% capital gains harvesting and Roth conversions compete for the same scarce resource: the low-income years before Social Security and RMDs begin, and the limited room below the relevant tax thresholds. A Roth conversion adds directly to ordinary income, which can crowd out your 0% capital gains room or push gains you planned to realize at 0% into the 15% bracket instead.

Neither strategy is automatically better. A Roth conversion permanently removes future RMDs and converts the balance to tax-free growth, while 0% gain harvesting resets your cost basis and reduces future taxable gains. The right mix depends on the size of your traditional balances versus your taxable brokerage balances, and usually requires running both scenarios side by side.

The hidden costs: Social Security and IRMAA

A gain taxed at 0% federally is not invisible to the rest of your tax return. It still adds to your adjusted gross income and your "combined income" figure, which can make a larger share of your Social Security benefit taxable, the same effect described in our guide to the Social Security tax torpedo. It can also raise your Modified Adjusted Gross Income for IRMAA purposes, increasing your Medicare premiums two years later.

None of this means the strategy is not worthwhile, realizing gains at 0% federal tax is usually still a win. It means the true cost of a large sale needs to be modeled against your full tax picture, not evaluated in isolation, especially if you are close to a Social Security or IRMAA threshold in the same year.

Not financial advice

This guide is for informational purposes only. Nothing here constitutes financial, tax, or legal advice. Tax thresholds change annually with inflation adjustments. Always consult a qualified professional before making significant financial decisions.

Find your 0% capital gains window

ThunderHarbor projects your taxable income year by year, so you can see exactly how much room you have to realize gains at 0% and how it interacts with conversions and Social Security.

Build your free plan

Free plan included · Full tax bracket projections with Premium ($47/year)

© 2026 ThunderSecurity LLCGuidesBlogAboutPrivacyTermsOpen the app