Tax-Loss Harvesting in Retirement: Turn Market Dips Into a Tax Asset
How retirees use tax-loss harvesting in taxable accounts to offset capital gains, reduce ordinary income by up to $3,000 per year, carry losses forward indefinitely, and coordinate with Roth conversions and the 0% LTCG bracket — plus the wash-sale traps that destroy the benefit.
Market volatility is unpleasant. But in a taxable account, a position trading below your cost basis is something the tax code will pay you to acknowledge.
Tax-loss harvesting is the practice of selling that position to realize the loss, immediately replacing it with a similar investment to stay in the market, and using the loss to reduce your tax bill — either by offsetting capital gains or, if losses exceed gains, reducing up to $3,000 of ordinary income per year with the remainder carrying forward indefinitely.
In retirement, where taxable accounts often serve as a primary spending or rebalancing source, harvesting is not just an annual chore. It is a coordinated tool that interacts with RMDs, Roth conversions, IRMAA thresholds, and Social Security taxation.
The Mechanics
Tax-loss harvesting only works in taxable brokerage accounts. Losses inside traditional IRAs, Roth IRAs, 401(k)s, and other tax-advantaged accounts have no harvestable effect — gains and losses inside those accounts are invisible to your tax return until withdrawal.
The four-step sequence:
- Identify unrealized losses — positions in your taxable account currently worth less than your adjusted cost basis.
- Sell to realize the loss — the sale creates a "realized" loss reportable on Schedule D.
- Replace immediately with a similar but not substantially identical security — maintaining market exposure while satisfying the wash-sale rule.
- Apply at filing — losses offset capital gains first, then up to $3,000 of ordinary income, with any excess carrying forward to future years with no expiration.
How Losses Are Applied: The Netting Order
The IRS requires a specific netting sequence before losses can offset anything. Short-term losses must first offset short-term gains; long-term losses must first offset long-term gains. Cross-category netting happens after within-category netting. This matters because short-term gains are taxed at ordinary income rates while long-term gains are taxed at preferential rates — and a long-term loss that wipes out a short-term gain is more valuable than one that wipes out a long-term gain.
After gains are fully offset, up to $3,000 of excess net capital loss can offset ordinary income in the current year ($1,500 if married filing separately). Any remaining loss carries forward indefinitely — there is no cap on the carryforward amount and no expiration date.
The Wash-Sale Rule
The wash-sale rule disallows a harvested loss if you buy a "substantially identical" security within 30 days before or after the sale — a 61-day window centered on the sale date. The loss is not permanently destroyed in most cases; it is added to the cost basis of the newly purchased shares, deferring the recognition. But there is a critical exception.
The IRA trap — permanent loss destruction. If you sell a security at a loss in a taxable account and buy the same or substantially identical security in an IRA, Roth IRA, or 401(k) within the 61-day window, the loss is disallowed — and because IRA assets have no outside cost basis tracking, the disallowed loss cannot be added to the IRA's basis. The loss is permanently gone. This is one of the most expensive accidental wash sales in retirement planning.
The cross-account and spouse rule. The wash-sale rule applies across all accounts at all institutions — including your spouse's accounts. Selling in your taxable account while your spouse's IRA auto-reinvests dividends in the same fund triggers a wash sale. Most brokerage platforms do not automatically catch violations across accounts or spouses.
Why Retirement Changes the Calculus
During accumulation, tax-loss harvesting primarily offsets realized gains from selling positions. In retirement, the relevant gains are often involuntary — and the interactions with other income sources make harvesting more consequential.
Mutual fund capital gain distributions. Actively managed funds distribute accumulated capital gains to shareholders each year, typically in November or December, regardless of whether you sold anything. These distributions appear on your tax return as gains. Harvesting losses earlier in the year — or carrying a loss forward from a prior year — can offset them before they push you into a higher bracket or across an IRMAA cliff.
Rebalancing without a tax cost. Rebalancing a taxable portfolio to target allocation generates gains in overweight positions. Deliberately pairing those sales with harvested losses from underweight positions allows you to rebalance without a net tax bill.
Buffering RMD income spikes. A larger-than-expected RMD can push capital gains into the 15% or 20% LTCG tier, trigger provisional income above a Social Security threshold, or cross an IRMAA cliff. A carryforward loss from a prior-year harvest can absorb gains in that spike year, partially neutralizing the effect.
The $3,000 ordinary income offset. When losses exceed all capital gains, the $3,000 ordinary income deduction is particularly valuable in retirement because it reduces AGI — not just taxable income. A lower AGI reduces provisional income for Social Security taxation, lowers MAGI for IRMAA purposes, and creates additional Roth conversion headroom within the same bracket ceiling.
The 0% LTCG Rate — Gain Harvesting
When taxable income keeps you in the 0% long-term capital gains bracket, the harvesting logic inverts. Rather than realizing losses, you can intentionally realize gains on appreciated positions — stepping up cost basis to current market value at zero federal tax cost. This is gain harvesting, and it is one of the most underused tools in early retirement.
For 2026, the 0% LTCG rate applies to taxable income up to $48,350 (single) or $96,700 (MFJ). A retired couple with $70,000 in taxable income who own appreciated index funds can sell and immediately repurchase, resetting their basis higher with no federal tax — permanently reducing the future gain when those positions are eventually sold in a higher-income year.
The wash-sale rule does not apply to gain harvesting because there is no loss being claimed.
Three Retirement-Specific Pitfalls
Lower basis after harvest. Selling at a loss and reinvesting resets your cost basis to the current (lower) price. When you eventually sell the replacement fund at a gain, the taxable amount is larger. Tax-loss harvesting is a tax deferral strategy — not permanent elimination. The benefit is the time value of the deferred tax, and the math works best when the replacement is held for a long time or passes through an estate with a step-up.
Step-up at death. Appreciated assets held until death receive a stepped-up basis, eliminating embedded capital gains for heirs. A retiree who harvests losses, resets basis lower on replacement shares, and holds them for decades may reduce the potential step-up available to the estate. For retirees prioritizing estate transfer over spending, this is a genuine trade-off to model.
Dividend reinvestment wash sales. If automatic dividend reinvestment (DRIP) is active on the fund you harvested — or on a substantially identical fund in any account — the automatic purchase of shares will trigger a wash sale. Disable DRIP on related funds during the 61-day window around any harvest.
Coordinating with Roth Conversions
Tax-loss harvesting and Roth conversions compete for the same AGI budget but can reinforce each other in the right sequence. A year with a large harvested loss that offsets capital gains and reduces ordinary income by $3,000 may lower effective AGI enough to create additional Roth conversion headroom — allowing a larger conversion before hitting an IRMAA cliff or bracket ceiling than would otherwise be possible.
The coordination works in reverse too: a Roth conversion that pushes you toward an IRMAA cliff can be partially offset by a tax-loss harvest executed in the same year, netting AGI back down before the cliff is crossed.
Important Notes
- Tax-loss harvesting applies only to taxable brokerage accounts.
- "Substantially identical" is not precisely defined in the tax code. Different funds tracking similar but not identical indices are generally considered distinct. Two share classes of the same fund are substantially identical.
- State tax treatment of capital losses varies. Some states do not allow a $3,000 ordinary income offset. Verify with a tax professional in your state.
- Loss carryforwards survive indefinitely but do not transfer to heirs at death.
- This is education, not individualized tax or legal advice.
In ModernRetire
The Tax-Loss Harvesting Tracker under Strategy -> Taxable Account is built for this workflow:
- Enter your taxable account positions with cost basis to identify current unrealized losses.
- Project year-end capital gains from fund distributions, rebalancing, and planned sales.
- See how harvested losses net against projected gains and whether any $3,000 ordinary income offset is available.
- Check whether current taxable income keeps you in the 0% LTCG bracket — flagging gain harvesting opportunities automatically.
The tracker also alerts when a planned Roth conversion combined with capital gains would cross an IRMAA cliff, and shows how a tax-loss harvest could bring the combined figure back below the threshold.
Related: Asset location — which accounts should hold which assets, and how keeping high-turnover funds out of taxable accounts reduces the need for annual harvesting in the first place.
Quick Check
A retiree holds VTSAX in their taxable account at a loss. They sell it and the next day their IRA's automatic dividend reinvestment purchases VTSAX. What is the tax consequence?