Retirees under an income threshold can sell investments and owe zero federal tax on the long-term gain

Image Credit: Unknown author/

The federal tax code contains a bracket that many retirees do not realize applies to them: a 0% rate on long-term investment gains. For households whose taxable income falls under an inflation-adjusted ceiling, profits from selling stocks, funds, or other appreciated assets held more than a year can be taxed at nothing at all. The low-income years that often follow leaving work are exactly when this window tends to open.

How the 0% long-term rate works

Long-term capital gains — profit on an asset owned for more than one year — are taxed on their own schedule, separate from ordinary income like wages or IRA withdrawals. The IRS applies rates of 0%, 15%, or 20% depending on total taxable income, and the lowest of those is a true zero.

The 0% rate is not a niche loophole; it is the standard treatment for anyone whose taxable income sits below the threshold for the year. Assets held a year or less do not qualify — those short-term gains are taxed as ordinary income — so the holding period is the first thing to confirm before counting on the break.


Free retirement updates: Keep more of your Social Security and savings with plain-English updates on the changes, deadlines, and costly mistakes retirees miss. Subscribe free.

The income ceiling that unlocks it

The break applies only up to a set level of taxable income, and that figure is adjusted for inflation each year. For 2025, the 0% rate reached up to about $48,350 in taxable income for a single filer and roughly $96,700 for a married couple filing jointly, with both figures rising modestly for 2026. Retirees should confirm the current-year numbers, which the IRS publishes annually, before acting.

Crucially, the measure is taxable income — the amount left after the standard deduction or itemized deductions. That means a married couple can often have gross income noticeably higher than the ceiling and still land under it once deductions are subtracted, leaving room for tax-free gains.

How the gain stacks on top of other income

One detail trips up many people: the capital gain itself counts toward the income total that determines the rate. Long-term gains sit on top of ordinary income, and only the portion of gain that fits underneath the ceiling gets the 0% rate. Any amount that pushes taxable income above the threshold is taxed at 15%.

Suppose a retired couple has $70,000 of taxable income before selling anything. With a 0% ceiling near $96,700, they have roughly $26,700 of headroom. A long-term gain up to that amount could be taxed at zero, while a larger gain would spill over and have the excess taxed at 15%. Running the numbers first shows exactly how much can be realized tax-free in a given year.

Tax-gain harvesting during low-income years

Financial planners call the deliberate use of this window tax-gain harvesting. In a year of unusually low income — after leaving work but before Social Security or required withdrawals begin — a retiree can sell appreciated investments, pay no federal tax on the qualifying gain, and immediately repurchase the same holdings to reset the cost basis at the higher price.

That reset matters because it reduces the taxable gain on a future sale. Unlike the wash-sale rule that restricts claiming losses, there is no similar prohibition on repurchasing after realizing a gain, so the shares can be bought back the same day. Repeated across several low-income years, the strategy can wash out years of accumulated appreciation without a tax bill.

Watch the ripple effects before selling

Zero capital-gains tax does not always mean zero cost. A large realized gain still raises total income, which can make more of a Social Security benefit taxable, push a household toward higher Medicare premium surcharges two years later, or affect eligibility for income-based credits and subsidies. The federal capital-gains rate can be zero while these side effects quietly add to the true cost.

State income tax is another consideration, since many states tax capital gains as ordinary income regardless of the federal rate. Because the calculation depends on the year’s full income picture, retirees generally benefit from mapping out a sale with a tax professional before executing it, ideally well before year-end when there is still time to adjust the amount sold.

Timing the strategy to the right years is what makes it powerful. The window is usually widest in the gap between retiring and the start of Social Security, pensions, or required withdrawals from tax-deferred accounts, when reported income is at its lowest. Once those income streams switch on, taxable income often rises above the 0% ceiling and the opportunity narrows or closes.

For that reason, some retirees treat the early retirement years as a limited chance to reshape a portfolio at little or no federal tax cost — trimming an oversized position in a single stock, diversifying, or resetting the cost basis on long-held funds. The gains do not vanish permanently, but realizing them while the 0% rate applies can save real money compared with selling the same assets later in a higher-income year.

This article was researched and drafted with the assistance of AI and reviewed by The Financial Wire editorial team.

More Financial Reading

Leave a Reply

Your email address will not be published. Required fields are marked *