Skip to main content

The Money Overview

Some retirees pay zero federal tax on long-term investment gains when their income stays low enough

The federal tax code contains a bracket that many older investors never notice: a zero percent rate on long-term capital gains for taxpayers whose taxable income stays under a set annual threshold. A retiree in a lean year can sell stock held longer than a year and owe nothing in federal tax on the profit. The rule is not a loophole or a temporary break. It is a permanent feature of how the government taxes investment gains, and it rewards timing more than wealth.

How the 0% long-term capital gains bracket works

The distinction between long-term and short-term matters before the zero rate ever enters the picture. An asset sold at a profit after twelve months or less is a short-term gain, taxed like wages at ordinary rates, and it never qualifies for the preferential brackets. Only gains on assets held past the one-year mark reach the zero, fifteen, or twenty percent schedule. For a retiree sitting on shares bought years earlier, that holding period is rarely the obstacle; the deciding factor is how much other income the year already carries.

Long-term capital gains, the profit on an asset owned more than one year, are taxed on their own schedule with three rates: zero, fifteen, and twenty percent. Which rate applies depends on total taxable income, not on the size of the gain alone. When a filer’s income falls below the first threshold that Congress adjusts each year for inflation, the long-term gain is taxed at zero. The same preferential brackets also govern qualified dividends, so a retiree who lives partly on dividend income sees those payments taxed under the identical zero-rate rule when the year’s income stays low. The Internal Revenue Service’s guidance on capital gains and losses lays out the structure, including the holding-period line that separates long-term treatment from ordinary short-term rates.


Free retirement updates: Want plain-English help keeping more of your money in retirement? The free Retirement Shield newsletter covers the benefits, deadlines, and money mistakes that cost retirees, a couple times a week. Subscribe free.

Why the gain stacks on top of ordinary income

The reason timing decides everything is that the capital gain sits on top of ordinary income, not beside it. Wages, pension payments, taxable Social Security, and required retirement-account withdrawals fill the lower brackets first. Whatever room remains beneath the zero-rate ceiling is the space a long-term gain can occupy tax-free. Once ordinary income alone climbs near or past that ceiling, there is little or no room left, and the gain spills into the fifteen percent band.

That mechanism explains why a low-income retirement year is the window. Between the end of full-time work and the start of required minimum distributions, and before delayed Social Security is claimed, many retirees pass through years of unusually low taxable income. A homeowner who has paid off a mortgage and lives partly on cash savings may show very little on a tax return. Selling appreciated stock in exactly that kind of year can convert a large paper gain into a realized one at no federal cost, then resetting the cost basis higher if the shares are repurchased. Details on how gains and losses net against each other appear in the IRS material on net investment income, which governs an additional tax that can apply at higher income levels.

The standard deduction widens the window further. Because it is subtracted from income before the zero-rate ceiling is measured, a retiree can take in more than the raw threshold figure and still keep a gain untaxed, since the deduction lifts the effective point at which ordinary income begins to crowd out the tax-free room. The same logic makes partial harvesting possible: rather than selling an entire position at once, a retiree can realize only the slice of gain that fits beneath the ceiling in a given year, leave the rest in place, and repeat the exercise the following year while income remains low.

State taxes and Medicare premiums can still reach the gain

A zero federal rate does not mean a zero total bill. Most states that levy an income tax treat capital gains as ordinary income, so a sale that escapes federal tax entirely can still generate a state tax liability. A few states impose no income tax at all, which makes the strategy cleaner for residents there, while others tax the same gain that Washington ignores. The size of that state hit varies enough that a gain worth realizing in one state may be costlier in another.

The larger trap for older filers is the effect on Medicare. Premiums for Part B and Part D carry an income-related surcharge, known as IRMAA, that rises in steps as income climbs. A one-time stock sale inflates the income figure Medicare examines, and because that figure is drawn from a tax return filed two years earlier, a single large gain can raise premiums well after the sale. The Medicare cost guidance describes how those income-related amounts are set. A retiree who realizes a gain purely to capture the zero federal rate can still push past a surcharge threshold and pay more for coverage the following year.

The practical lesson is that the zero rate is real but narrow. It works best when a retiree can see the full picture of a year’s income in advance, keep a planned sale beneath both the federal zero-rate ceiling and any nearby IRMAA step, and account for whatever the home state will take. Stretching a sale across two low-income years, rather than realizing everything at once, is often what keeps a gain inside the tax-free zone. The benefit belongs to the filer who treats the sale as part of a full-year income plan, not to the one who sells first and calculates later.

This article was researched and drafted with the assistance of artificial intelligence.

More Financial Reading

Avatar photo

Daniel Harper

Daniel is a finance writer covering personal finance topics including budgeting, credit, and beginner investing. He began his career contributing to his Substack, where he covered consumer finance trends and practical money topics for everyday readers. Since then, he has written for a range of personal finance blogs and fintech platforms, focusing on clear, straightforward content that helps readers make more informed financial decisions.​