Tax-Loss Harvesting and IRMAA: How It Can Lower Medicare Costs

How to use the "$3,000 Loophole" to dodge the Medicare Cliff and save thousands in surcharges.

You’ve spent decades saving, only to find out that Medicare has a “success penalty.” It’s called IRMAA (Income-Related Monthly Adjustment Amount), and it is a cliff. Go one dollar over, and you pay the full surcharge.

But there is a defensive move most retirees miss. Tax loss harvesting to avoid IRMAA surcharge.

Here is the bottom line: You can intentionally realize capital losses to offset capital gains and, in some cases, reduce MAGI. Because Medicare generally uses MAGI from two years earlier, harvesting losses in the income year can offset gains that would otherwise create a one-time IRMAA income spike, potentially reducing Medicare surcharges two years later.

To check whether a gain or loss changes the Medicare calculation, first confirm which income counts toward IRMAA before estimating a surcharge.

An IRMAA tier change can create meaningful savings, but it is not a guaranteed return on a losing investment. A sale matters for Medicare only if the allowed loss changes MAGI on the tax return used to determine a later premium.

IRMAA limit cliff edge metaphor illustrating retirement income threshold and tax-loss harvesting concept with senior couple walking on large financial documents in scenic outdoor setting.
Tax loss harvesting IRMAA reduction

Key Takeaways: Tax Losses and Medicare IRMAA

  • The $3,000 rule: Losses can offset capital gains without a $3,000 limit on that offset. If a net capital loss remains, generally up to $3,000 ($1,500 married filing separately) may offset other income; eligible unused losses may carry forward.
  • The two-year lookback: 2024 income generally determines 2026 Medicare premiums; 2025 affects 2027; 2026 generally affects 2028. A 2026 loss cannot retroactively alter 2027 premiums.
  • No promise of IRMAA savings: The loss must actually change the MAGI tier for the relevant premium year. Future thresholds, including 2028, are not published yet.
  • The wash-sale trap: Substantially identical purchases in the 30 days before or after a loss sale, including certain spouse and IRA purchases, may disallow a loss.

The Strategy: Why Tax Losses Are an Asset in Retirement

Most investors treat capital gains tax strategies as a way to keep more investment profit. That’s fine for accumulation. But in the distribution phase, the game changes.

Medicare IRMAA uses the tax return generally filed two years before the premium year. Thresholds differ by premium year and filing status. A $1 excess can push a beneficiary into the next premium tier, but it is not a marginal income-tax rate. For 2026, the approved standard monthly Part B premium is $202.90. See the dated comparison below or our IRMAA calculator for the appropriate year.

Use the IRMAA calculator to check whether the change in MAGI actually crosses a published surcharge tier; future-year thresholds may not yet be official.

A taxable brokerage-account loss can offset realized capital gains. If a net capital loss remains after netting gains and losses, generally only up to $3,000 of it can offset other income in one year ($1,500 married filing separately), with the balance potentially carried forward. That is different from a $3,000 cap on capital gains that losses can offset. See my capital gains guide for the netting rules.

An allowable capital loss may reduce AGI and therefore the MAGI Medicare uses (AGI plus tax-exempt interest). But it might leave you in the same Medicare tier. Capital losses do not directly offset tax-exempt municipal bond interest.

A $2,000 loss that could change a Medicare tier

Both cases use the SAME income tax year.

Without the loss

MAGI is $1,500 above the first IRMAA threshold for the future premium year.

The first-tier surcharge may apply.

With an eligible net $2,000 loss

MAGI becomes $500 below that same threshold, assuming the entire loss reduces AGI.

The first-tier surcharge may be avoided.

Timing matters: A loss on a 2026 return generally affects 2028 premiums, not 2027. The 2028 thresholds have not yet been published. This is a conditional example, not a guaranteed tax saving, premium saving, or investment return.

Keep the years straight: Medicare generally uses 2024 income for 2026 premiums, 2025 income for 2027, and 2026 income for 2028. The published table below is specifically for 2027 premiums, determined using 2025 MAGI. It is NOT a forecast of the 2028 brackets for 2026 income decisions.

Official 2027 Medicare first IRMAA tier (based on 2025 MAGI)
Filing statusNo-IRMAA ceilingStandard Part B / monthNext-tier Part B surcharge / monthNext-tier Part D surcharge / month
Individual$112,000$209.40$83.70$15.40
Married filing jointly$224,000$209.40$83.70$15.40

These 2027 values use the approved MRM annual-number shortcodes. The Part D surcharge is added to the drug plan’s own premium. Higher tiers and married-filing-separately rules differ. Do not infer future-year premiums from this 2027 reference. Check the IRMAA calculator for other approved premium-year brackets.

Sources: CMS 2027 premium and IRMAA figures, CMS 2026 historical figures, and SSA IRMAA income and lookback rules.

The “One-Dollar Mistake” Calculation

Consider this hypothetical rather than an actual household outcome. In a tax year Medicare will later use, a married couple’s MAGI is $1,500 above the applicable first IRMAA threshold. An eligible $2,000 realized net capital loss in that same tax year actually reduces AGI by $2,000.

  1. Before: MAGI is $1,500 above the premium-year threshold. The higher IRMAA surcharge may apply.
  2. Action: The couple realizes an eligible $2,000 net capital loss during the tax year Medicare will later use, without a disqualifying wash sale.
  3. Math: MAGI changes from $1,500 above the threshold to $500 below, if the full loss reduces AGI after netting other gains and losses.
  4. Potential result: A first-tier surcharge could be avoided. Actual savings depend on the premium year and each spouse’s Medicare enrollment.

This is a possible future Medicare premium effect, not a guaranteed $2,297 or $1,958 return. A trade made in 2026 cannot retroactively change the 2024 or 2025 income generally used for 2026 or 2027 Medicare premiums.

Watch Out for the Wash Sale Trap

The wash-sale rule may disallow the loss if substantially identical stock or securities are purchased within 30 days before or after selling at a loss. Certain purchases by your spouse or your IRA or Roth IRA can matter. Check the actual security and the dates in every relevant account.

Dividend reinvestments are easy to overlook. For example, an automatic purchase of substantially identical shares on December 28 may affect a loss sale on December 20. A different ticker or fund provider does not necessarily avoid the rule.

What to do instead: If harvesting a loss fits your investment plan, consider maintaining exposure through investments that are not substantially identical. Do not assume that two different S&P 500 funds are necessarily safe substitutes. See our retiree asset allocation guide and evaluate the actual securities.

The wash-sale decision path

1. SELL AT A LOSS

Confirm the tax lot, the realized loss and your intended tax year.

2. CHECK BOTH SIDES

Review the 30 days before and after for substantially identical purchases, including reinvestments and spouse/IRA accounts.

3. VERIFY THE REPLACEMENT

A different ticker is not proof that a replacement is permissible.

Losses disallowed by a taxable-account wash sale are often deferred via adjusted basis; IRA purchases may cause a permanent disallowance. See IRS Publication 550.

Frequent Reader Questions About IRMAA & Losses

Related MRM guides

Compare this strategy with other retirement-income decisions:

Does a capital loss carryover from previous years reduce IRMAA?

Sometimes. A capital-loss carryover can offset capital gains, and an allowable net capital-loss deduction can reduce AGI (generally up to $3,000 a year, or $1,500 married filing separately). It affects IRMAA only if it changes MAGI enough to affect the applicable premium tier.

Which tax year’s loss can affect a Medicare IRMAA premium?

Medicare generally uses income from two years earlier. A 2024 return informs 2026 premiums, 2025 informs 2027 premiums, and 2026 generally informs 2028 premiums. A 2026 sale cannot retroactively change a 2024 or 2025 tax return. The 2028 IRMAA thresholds have not been published.

Does tax-exempt municipal bond interest count towards IRMAA?

Yes. Medicare MAGI generally equals adjusted gross income plus tax-exempt interest. Capital losses can reduce AGI through gain netting or an allowable net capital-loss deduction, but they do not directly offset tax-exempt municipal bond interest.

Conclusion: Don’t Let the Cliff Win

Tax-loss harvesting can reduce taxable capital gains and may reduce the income used for a later Medicare IRMAA determination. But it cannot rewrite earlier tax returns and does not guarantee an IRMAA saving. Start with real income and gains, then check the thresholds published for the correct future premium year.

Your Next Steps:

  1. Log into your brokerage account and identify positions with unrealized losses.
  2. Estimate your actual tax-year MAGI after gain/loss netting, including tax-exempt interest, and use the Medicare two-year lookback to identify which future premium year it may affect.
  3. Before considering a loss sale, review your investment plan, tax lots, wash-sale window and replacement holdings; do not trade simply because you are near an older Medicare threshold.
  4. If you had a qualifying life-changing event such as retirement and your income dropped, check SSA Form SSA-44. An investment loss alone is not a qualifying life-changing event.

For a broader view of your financial health, use our Liquid Net Worth Calculator to ensure you have the liquidity to cover taxes and premiums without disrupting your long-term investments.

We are audience supported - when you make a purchase through our site, we may earn an affiliate commission.

Michael Ryan
Michael Ryan, Retired Financial Planner & Founder of MichaelRyanMoney.com Michael Ryan is a retired financial planner and financial educator with nearly three decades of experience in financial planning, retirement planning, estate planning, insurance, and risk management. He is the founder of MichaelRyanMoney.com, where he explains Social Security, Medicare and IRMAA, retirement income, taxes, estate planning, insurance, investing, and personal finance in plain English. His commentary has been featured by outlets including The Wall Street Journal, U.S. News & World Report, Business Insider, Yahoo Finance, Forbes, Newsweek, and Nasdaq. Michael no longer sells financial products, manages investments, or provides individualized investment, tax, legal, or insurance advice through the site.