Hypothetical examples, federal rules only

The couples below are composites, not readers, and their figures are illustrative. Tax figures are 2026 federal amounts from the cited IRS and CMS sources. States tax capital gains in their own ways, and some do not follow the federal loss rules; check your state before acting. This is education, not tax advice.

Tax-loss harvesting is usually sold as a trick for high earners. In retirement it becomes something more useful: a way to decide, year by year, how much capital gain shows up on your return. That number feeds your tax bracket, your Medicare premiums two years later, and how much of your Social Security is taxed.

The reader we have in mind has a taxable brokerage account of several hundred thousand dollars or more, much of it with large unrealized gains, plus traditional IRAs that will soon produce required minimum distributions. For that reader the question is not only "should I sell this loser?" but "is this a year to realize losses, or a year to realize gains?"

Key Takeaways

  • •Harvest losses in high-income years: large RMDs, Roth conversions, a big sale, or when you are near an IRMAA tier.
  • •Harvest gains in low-income years. In 2026, long-term gains are taxed at 0% within taxable income up to $98,900 for joint filers (Rev. Proc. 2025-32).
  • •Buying the same fund in your IRA within 30 days destroys the loss permanently (Rev. Rul. 2008-5).
  • •Unused loss carryforwards die with you (IRS Publication 559). Use them while you can.
  • •Hold gains until death for the step-up; sell losers before death, because the basis steps down too.

What Does Tax-Loss Harvesting Actually Save?

It saves tax on gains you realize this year, plus up to $3,000 of other income, and carries the rest forward. You sell a holding that is worth less than you paid, use the loss to offset realized capital gains without limit, then offset up to $3,000 of ordinary income ($1,500 if married filing separately), and carry any remainder into later years (IRS Topic 409). You buy a similar, not identical, holding so your market exposure barely changes.

The honest description is that harvesting is mostly a deferral. The replacement shares have a lower basis, so the tax you skip today is waiting in the new position. Deferral turns into permanent savings in three cases, and all three are common after 60:

  1. 1The deferred gain is realized later at 0%. A year with low taxable income, before Social Security and RMDs start, lets you realize it for nothing.
  2. 2The gain is never realized. Shares held until death get a basis equal to their value at death (IRS Publication 551), and shares given to charity are never taxed on their gain.
  3. 3The loss avoids a threshold. Keeping income under an IRMAA tier or the net investment income tax threshold saves more than the rate on the gain.

Should You Harvest Losses or Gains This Year?

Harvest losses when your marginal rate on gains is high this year; harvest gains when it is 0%. The rate that matters is not only the 15% or 20% on the return. It includes the 3.8% net investment income tax above $250,000 of modified AGI for joint filers ($200,000 single) (IRS Topic 559), any IRMAA tier you would cross, and, if you receive Social Security, the extra benefits that become taxable.

Losses or gains: the year-end check
  1. Low-income year

    Retired, before Social Security and RMDs, living on savings

    Taxable income under $98,900 joint ($49,450 single)

    Gains, at 0%

    Sell and buy straight back; the wash-sale rule does not apply to gains

    Harvest gains
  2. Large Roth conversion or first RMD year

    The 0% room is used up

    Losses

    Keep gains from stacking on top of the extra income

    Check IRAs for wash sales
  3. Selling a business, rental or concentrated stock

    Gains taxed at 15% to 23.8%

    Losses

    Each dollar of loss offsets a dollar of gain

    Check IRAs for wash sales
  4. MAGI just above an IRMAA tier

    First joint tier: $218,000

    Would a loss bring MAGI back under?

    Losses

    One dollar over a tier costs the whole year’s surcharge

    Check IRAs for wash sales
  5. Serious illness, or very advanced age

    Basis steps up at death, and down for losses

    Losses only

    Gains on shares held until death are never taxed; unused losses die with you

    Hold the winners

Gains in the quiet years, losses in the busy ones. Before any loss sale, check that no IRA or Roth IRA, yours or your spouse’s, buys the same fund within 30 days: a wash sale through an IRA loses the deduction for good.

Which to harvest, by the kind of year you are having (2026 federal thresholds)
Your yearHarvestWhy
Retired, before Social Security and RMDs, living on savingsGainsTaxable income under $98,900 joint ($49,450 single) means 0% on long-term gains
Large Roth conversion or first RMD yearLossesConversions and RMDs use up the 0% room; losses keep gains from stacking on top
Selling a business, rental or concentrated stockLossesOffsets gains that would be taxed at 15% to 23.8%
MAGI just above an IRMAA tierLossesOne dollar over a tier costs the whole year's surcharge
Serious illness, or very advanced ageLosses onlyGains will be stepped up at death; losses will be stepped down

Gain harvesting is simpler than loss harvesting because the wash-sale rule applies only to losses (IRS Publication 550). You can sell a position at a gain and buy it straight back the same day. Nothing about the portfolio changes except that your basis is now higher, which shrinks the tax on any later sale.

How Much Gain Can a Retired Couple Realize at 0%?

More than most people expect, because the 0% threshold applies to taxable income, after deductions. Long-term gains and qualified dividends are taxed at 0% to the extent they fall under $98,900 of taxable income for joint filers in 2026, 15% up to $613,700, and 20% above (Rev. Proc. 2025-32). Gains stack on top of ordinary income, so every dollar of IRA withdrawal, pension or Roth conversion uses up 0% room.

Example: Ray, 67, and Carol, 65

Ray and Carol retired last year with $2.5 million: $1.6 million in IRAs and a $900,000 joint taxable account whose cost basis is $520,000. They are delaying Social Security to 70 and living on the taxable account, which throws off about $18,000 a year in dividends and interest. Both are 65 or older, so they get the standard deduction, the additional deduction for age and the senior deduction under the 2026 rules (IRS).

Standard deduction, married filing jointly
$32,200
Additional deduction, both 65+
$3,300
Senior deduction, both 65+ (AGI under the phase-out)
$12,000
Top of the 0% capital-gains range (taxable income)
$98,900
AGI they can reach with gains still at 0%
$146,400
Less dividends and interest already received
−$18,000
Long-term gain they can realize at 0% this year
$128,400

They sell $128,400 of gain in December and buy the same funds back the same day. Federal tax on the gain: zero. Had the same gain been realized later in the 15% bracket, it would have cost about $19,260. Two or three years of this, before Social Security and RMDs raise their income, resets most of the account's basis.

Three cautions. First, the 0% room competes with Roth conversions, which fill the same low brackets with ordinary income; our guide to Roth conversions before RMDs helps decide which use of the room is worth more. Second, realized gains raise AGI, which matters for Medicare premiums two years later and, for anyone under 65 on a marketplace plan, for premium tax credits. Third, your state may tax the gain even when the IRS does not.

How Does the Wash-Sale Rule Work, Including IRAs?

You lose the deduction if you buy substantially identical securities within 30 days before or after the sale at a loss, a 61-day window. The rule also applies when your spouse, or a corporation you control, makes the purchase. Normally the disallowed loss is added to the basis of the new shares, so it is deferred rather than lost (IRS Publication 550).

IRAs are the exception that costs real money. Rev. Rul. 2008-5 holds that when you sell at a loss and your IRA or Roth IRA buys substantially identical securities within the window, the loss is disallowed and the IRA's basis is not increased (Rev. Rul. 2008-5). The loss does not move anywhere. It is gone.

Where retirees trip the rule without noticing

  • • Dividend reinvestment in the same fund, in any account, within 30 days.
  • • An IRA rebalancing trade, or a target-date fund in the IRA that buys the same ETF.
  • • A spouse's IRA or 401(k) buying the fund you just sold.
  • • Buying the ETF share class of the mutual fund you sold, such as VTI after VTSAX; treat share classes of one fund as identical.
  • • Selling the loser to a family member; losses on sales to related persons are not deductible (IRS Publication 550).

The IRS has never published a bright-line test for "substantially identical." A common, conservative approach is to replace a fund with one that tracks a different index: an S&P 500 fund with a total-market fund, or one international index with another provider's fund built on a different index. Before any harvest, turn off dividend reinvestment for that fund in every household account, and look at what each IRA is set to buy in the next month. Our index funds vs. ETFs guide covers which wrapper belongs in which account.

What Is the $3,000 Offset Worth, and What Happens to Carryforwards at Death?

The $3,000 offset saves your ordinary-income rate on $3,000 a year, and carryforwards die with you. After losses cancel all of the year's gains, $3,000 can offset IRA withdrawals, pension income or interest (IRS Topic 409). That figure is set in the tax code and is not indexed to inflation.

Annual value of the $3,000 ordinary-income offset by bracket
Federal bracketTax saved per year
22%$660
24%$720
32%$960
35%$1,050

Large carryforwards are common among people who sold during 2008 or 2022. The IRS is explicit about what happens next: a decedent's capital losses, including carryovers, can be deducted only on the final income tax return, and cannot be deducted on the estate's return (IRS Publication 559). For a married couple, the part of a joint carryover that belongs to the deceased spouse is generally lost after the final joint return; how a carryover is split between spouses depends on whose property produced the loss, so ask your preparer to document it now.

Example: Harold, 81, and a $96,000 carryforward

Harold, a widower with $1.8 million, has carried a $96,000 loss since 2008 and uses $3,000 a year. At that pace it lasts 32 more years. Instead, he uses it against gains: he sells $96,000 of gain from a concentrated bank stock he has wanted to diversify, pays no tax, and reinvests in a total-market fund. The same carryforward could fund cash gifts to grandchildren from appreciated shares, or a new roof. What it cannot do is offset a Roth conversion beyond $3,000 a year, since conversions are ordinary income.

How Does the Step-Up in Basis Change the Plan?

It makes gains worth holding and losses worth selling. Inherited property generally takes a basis equal to its fair market value at the date of death (IRS Publication 551). For a winner, that erases the gain. For a loser, the basis steps down to the lower value and the loss disappears. Nobody ever deducts it.

Gifts do not help either. When you give property worth less than your basis, the recipient's basis for figuring a loss is the lower market value at the time of the gift (IRS Publication 551), so the loss is gone. The order of operations for an older owner:

  1. 1Sell positions with losses, and use the losses against gains you need to realize.
  2. 2Give appreciated shares to charity rather than cash. Long-held appreciated securities given to a public charity are generally deductible at market value, and the gain is never taxed (IRS Publication 526). After 70½, a qualified charitable distribution from an IRA is often better still.
  3. 3Give cash, not losing shares, to family. Sell the loser, keep the loss, gift the proceeds. See gifting to children and grandchildren.
  4. 4Hold the lowest-basis shares for heirs. Spend from IRAs, cash and high-basis lots first; the step-up handles the rest.

For married couples, jointly held assets generally get a new basis on the deceased spouse's half, and in community property states generally on the whole (IRS Publication 551). The surviving spouse can often sell and simplify with little tax afterward. The estate planning basics guide covers titling.

How Do Realized Gains Affect IRMAA and Social Security Tax?

Realized gains count in full toward both, so a harvested loss can be worth more than the capital-gains rate suggests. Medicare Part B and Part D premiums rise in tiers based on modified AGI from the tax return two years earlier (SSA). In 2026, the standard Part B premium is $202.90 a month and the first surcharge tier, which begins above $218,000 of joint MAGI, raises it to $284.10 per person (CMS). The tiers are cliffs: one dollar over costs the full surcharge for the year.

Example: Frank, 74, and Helen, 72

Frank and Helen have $3.1 million, RMDs, two Social Security checks and a pension. This year they sold part of an old stock position, and their MAGI is heading for $232,000, just over the first IRMAA tier. Their international ETF is down $15,000. They sell it, buy a fund tracking a different international index, and check that neither IRA owns the original fund.

MAGI before harvesting
$232,000
Harvested loss
−$15,000
MAGI after harvesting
$217,000
Federal tax saved at 15%
$2,250
Part B surcharge avoided two years later, both spouses (at 2026 rates)
$1,948.80

The Part D surcharge avoided comes on top. Thresholds are adjusted for inflation each year, so check the current table before relying on a specific number. If income drops because of a life-changing event such as retirement or the death of a spouse, Form SSA-44 asks Social Security to use the more recent year (SSA). Our Medicare and IRMAA guide has the full table.

Social Security works the same way at lower incomes. Up to 50% of benefits become taxable once combined income (AGI plus nontaxable interest plus half of benefits) passes $32,000 on a joint return, and up to 85% above $44,000; the single-filer lines are $25,000 and $34,000 (SSA). In the range where benefits are being phased into income, a dollar of capital gain can also make up to 85 cents of benefits taxable, so the effective rate on the gain is well above its stated rate. Most readers with large portfolios are already at the 85% maximum, where this effect has run its course; retirees with modest other income should run both versions of the return before realizing gains.

A Year-End Harvesting Checklist

  1. Estimate this year's taxable income and MAGI, including RMDs, conversions and fund distributions announced for December.
  2. Compare taxable income with the 0% ceiling ($98,900 joint) and MAGI with the next IRMAA tier and the $250,000 NIIT line.
  3. Low year: realize gains up to the ceiling and buy back. High year: realize losses, using specific-lot identification to pick the highest-basis lots.
  4. Turn off dividend reinvestment and check every IRA and spouse account for purchases in the 61-day window.
  5. Record the new basis and any carryforward; you will need the carryover worksheet with next year's Schedule D.
  6. If you carry a large loss forward and are in your 80s, plan to use it against gains within a few years.

Questions to ask your CPA or adviser

Use this guide to understand the numbers, then take these questions to the professionals who know your whole situation.

  1. Is this a year to harvest gains or losses for us? What are our projected taxable income and MAGI, including RMDs, conversions and December fund distributions? Bring year-to-date statements and last year's return.
  2. How much long-term gain can we realize at 0% before we reach $98,900 of taxable income, and does that room do more good as gains or as a Roth conversion?
  3. If we harvest a loss, which replacement fund would you use, and who will check that none of our IRAs, Roth IRAs or a spouse's accounts buy the same fund within 30 days?
  4. How large is our capital loss carryforward, how is it split between us, and how do we use it before it is lost at death?
  5. Would realizing a gain this year push our MAGI over $218,000 or the $250,000 NIIT line, and how does our state tax the gain?
  6. If you propose an automated tax-loss harvesting or direct-indexing account, what does it cost each year, how are you paid for it, and how much tax has it actually saved clients once the lower basis is counted?

Frequently Asked Questions

Is tax-loss harvesting worth it in retirement?

Often more than while working, for three reasons: realized gains raise Medicare IRMAA premiums and the taxable share of Social Security, a loss can keep income under one of those thresholds, and gains deferred by harvesting may never be taxed if the shares are held until death and get a stepped-up basis. It is worth little in a year when your taxable income is low enough that long-term gains are taxed at 0%.

What is the 0% capital gains bracket for 2026?

Long-term gains and qualified dividends are taxed at 0% to the extent they fall within taxable income up to $98,900 for married couples filing jointly and $49,450 for single filers, per Rev. Proc. 2025-32. The 15% rate applies above that, up to $613,700 joint and $545,500 single, and 20% beyond. Taxable income is after deductions, so a retired couple 65 or older can have AGI well above $98,900 and still pay 0% on some gains.

Does buying the same fund in my IRA cause a wash sale?

Yes. Rev. Rul. 2008-5 holds that if you sell at a loss in a taxable account and your IRA or Roth IRA buys substantially identical securities within 30 days before or after, the loss is disallowed. Worse than an ordinary wash sale, the disallowed loss is not added to the IRA's basis, so it is lost for good. Check automatic investments, dividend reinvestment and target-date or rebalancing trades in every account, including your spouse's.

What happens to capital loss carryforwards when you die?

They can be used only on the decedent's final income tax return and cannot pass to the estate or heirs, according to IRS Publication 559. If you carry a large loss forward, use it while you are alive by realizing gains you would otherwise pay tax on, for example to diversify a concentrated position or to raise cash for gifts or spending.

How much of a capital loss can offset ordinary income?

After losses offset all capital gains, up to $3,000 a year ($1,500 if married filing separately) can offset other income such as IRA withdrawals, pensions and interest. Anything left is carried forward to later years with no expiration during your lifetime (IRS Topic 409). At the 24% bracket, $3,000 saves $720 a year.

Should I sell a losing stock before I die or give it away?

Sell it. At death, the basis of an asset resets to its market value, which for a losing position means the loss disappears. When you give a losing position to a person, their basis for figuring a loss is limited to the lower market value on the date of the gift, so the loss is lost there too. Selling realizes the loss for you; then give cash, or give appreciated shares to charity.

The Bottom Line

In retirement, harvesting is a dial, not a December chore. Turn it toward gains in the quiet years between work and RMDs, toward losses in the years when conversions, distributions or a large sale push income up, and keep an eye on the Medicare tiers two years out. Sell losers before death and hold winners through it. Guard the IRA side of every harvest, because a wash sale through an IRA is the one mistake that cannot be undone.

See Which Bracket This Year's Gains Land In

Enter your income and deductions to see your 2026 bracket, then plan the gains or losses to realize before December 31.

Related Reading