Selling losing investments to offset taxable gains can trim a retiree’s tax bill

Image Credit: Unknown author/

A retiree who sells a winning stock or fund usually braces for the tax bill on the gain. Far fewer think to glance at the position sitting in the red a few lines down on the same statement. Yet a losing investment, once actually sold, can cancel that taxable gain out dollar for dollar — a maneuver called tax-loss harvesting that ranks among the few tax levers still fully within a retiree’s control after required withdrawals, pension income, and Social Security have locked the rest of the year’s tax picture in place.

How a Realized Loss Erases a Taxable Gain

The mechanism runs through the way the tax code tallies investment results at year’s end. Before a single dollar of tax is calculated, the IRS nets capital gains against capital losses, first matching long-term gains against long-term losses and short-term against short-term, then offsetting whatever is left of one category against the other. The agency’s guidance on capital gains and losses lays out that ordering. A retiree who booked a $9,000 long-term gain selling an appreciated fund and then sold a separate holding at a $9,000 loss reports a net capital result of zero, and owes nothing on the gain that would otherwise have been taxed at 0, 15, or 20 percent, depending on taxable income. The short-versus-long distinction matters because short-term gains, on assets held a year or less, are taxed at higher ordinary rates, so wiping those out first often saves the most. The one firm requirement is that the loss be realized. A fund that has merely fallen on paper does nothing for the tax bill until the shares are sold and the loss is locked in.


Free retirement updates: Social Security and Medicare change every year, and nobody sends you a memo. Our free Retirement Shield newsletter breaks down what changed and what to do. Get it free in your inbox.

The $3,000 Floor and the Loss That Never Expires

Losses often overshoot the gains available to absorb them, and the code accounts for that. Once every capital gain has been wiped out, up to $3,000 of the leftover loss can be subtracted from ordinary income — a part-time paycheck, pension payments, interest, even the taxable portion of Social Security — in a single year, or $1,500 for someone married filing separately. Whatever remains does not disappear. It carries forward to the next year and every year after, with no expiration date, first erasing future capital gains in full and then trimming another $3,000 from ordinary income annually until the balance is exhausted. A $24,000 loss with no gains to offset it, for example, produces $3,000 of ordinary-income relief this year and leaves $21,000 held in reserve for later returns. A carried-over loss also keeps its character: a long-term loss stays long-term as it moves forward, and a short-term loss stays short-term, which governs how each one nets against gains in future years.

The Wash-Sale Rule That Quietly Voids the Benefit

The strategy carries one tripwire that regularly catches sellers who move too fast. Buying back the same investment — or one the IRS treats as substantially identical — within 30 days before or after the sale triggers the wash-sale rule, and the loss is disallowed for that year. The IRS rules on investment income and expenses explain that the blocked loss is not erased but added to the cost basis of the replacement shares, deferring the benefit until those shares are eventually sold — with one permanent exception: if the replacement is bought inside an IRA, the loss is gone for good. The 30-day window cuts both directions and straddles New Year’s, so a December sale and a January repurchase can still collide. Retirees who want to stay invested through the waiting period usually either sit out 31 days before buying back in, or rotate into a similar but not identical holding — a comparable index fund from a different provider — to keep market exposure without surrendering the write-off.

Why Only a Taxable Account Qualifies

The whole strategy depends on where the losing investment is held. Capital gains and losses arise only in taxable brokerage accounts; the buying and selling that goes on inside a traditional IRA, Roth IRA, or 401(k) is invisible to the tax code until money is withdrawn, so a loss booked inside a retirement account produces no deduction at all. That is the same reason the wash-sale rule is so punishing when a replacement is bought in an IRA: the loss is not merely deferred, it disappears for good. A retiree holding the same fund in both a brokerage account and an IRA has to be careful not to let an IRA purchase disqualify a loss harvested on the taxable side. There is also an end-of-life wrinkle worth weighing. Assets held until death generally receive a stepped-up cost basis for heirs, erasing the unrealized gain, so selling a winner purely to pair it with a harvested loss can occasionally trade away a benefit an estate would have captured for free.

Where the Move Fits in a Retiree’s Tax Year

Harvested losses are reported on Form 8949 and carried onto Schedule D, the same schedule that reports the gains they offset. The Schedule D instructions walk through the netting line by line. The timing tends to matter most in years a retiree deliberately generates income — converting part of a traditional IRA to a Roth, or selling a long-held appreciated position to rebalance — because a booked loss can soften the tax on the very transaction that created the gain. It also interacts with required minimum distributions, which cannot themselves be offset by capital losses but do lift the income that sets a retiree’s capital-gains rate. Because the carryforward never expires, a loss captured in a down market at 70 can still be shielding gains at 80, long after the fund that produced it has faded from memory. That durability is what turns a bad year in the market into a multiyear tax asset.

This article was produced with the assistance of artificial intelligence 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 *