Tax-Free Me
← All articles How to Avoid IRMAA With Capital Gains how-to

How to Avoid IRMAA With Capital Gains

Table of Contents

Last Updated: August 30, 2026

What Is IRMAA and How Capital Gains Trigger It

IRMAA stands for Income-Related Monthly Adjustment Amount. It's the surcharge Medicare adds to your Part B and Part D premiums when your income exceeds certain thresholds. For 2026, those thresholds start at $97,000 for single filers and $194,000 for married couples filing jointly (ssa.gov).

When you sell appreciated assets, those gains count toward your Modified Adjusted Gross Income (MAGI), which determines your IRMAA bracket. A single large sale can trigger surcharges that persist for years. Capital gains create a unique problem because they're often lumpy: you might have modest ordinary income for years, then liquidate a stock position and suddenly your MAGI spikes. Unlike wages, which you can control year to year, a single transaction can reshape your entire tax profile.

The surcharge tiers climb steeply: cross one threshold and you might pay an extra $70 monthly per person. Cross the highest threshold and that number jumps to over $300 monthly. A couple in their mid-60s with $800,000 in appreciated assets faces a genuine dilemma: they need that money for retirement, but accessing it triggers surcharges that stick for two years after the income spike, potentially costing $20,000 or more over a 24-month period.

Understanding MAGI Calculation for Medicare

Your MAGI for Medicare purposes isn't the same as your tax return's Adjusted Gross Income. Medicare takes your AGI and adds back certain deductions, including tax-exempt interest, foreign earned income, and excluded Puerto Rico income. For most retirees, MAGI and AGI are nearly identical.

Financial advisor and client reviewing retirement income documents and tax statements at a desk with a calculator, notepad, and multi-year income projection charts under warm office lighting
Financial advisor and client reviewing retirement income documents and tax statements at a desk with a calculator, notepad, and multi-year income projection charts under warm office lighting

The critical difference is that capital gains, both long-term and short-term, flow directly into this calculation at their full realized amount. You start with your AGI from Form 1040, add back the specific items Medicare cares about, and the result is your MAGI, which Social Security Administration compares against the annual thresholds.

The thresholds don't change for inflation; they're fixed by statute. This creates a planning opportunity: if you know you're going to have a high-income year, you can structure other decisions around it.

Long-term capital gains and qualified dividends are taxed at preferential rates for income tax purposes, but they count in full toward MAGI for Medicare. Many retirees assume that because their tax bill on capital gains is lower, their Medicare impact will be lower too. It's not. The surcharge is based on the full gain, regardless of the tax rate applied to it. Short-term capital gains are even worse: they're taxed as ordinary income and count fully toward MAGI with no tax advantage.

The Two-Year Look-Back Period and Capital Gains

Medicare uses a two-year look-back to determine your surcharge. The income you earned in 2024 determines your 2026 IRMAA. The income from 2025 determines your 2027 IRMAA. This lag creates both a trap and an opportunity.

The trap is that you can't react to a surcharge quickly. If you realize in 2026 that your 2024 capital gains pushed you into a surcharge, you're locked in for that year and the next. The opportunity is that you can see the surcharge coming if you plan ahead.

If you're considering selling appreciated assets, look back two years at your actual reported income. If you had high income in either of those years, you're already in a surcharge bracket for the next two years. That's when you might hold off on additional sales or time them strategically. A $200,000 capital gain realized in 2024 doesn't just hit your 2024 taxes; it shapes your Medicare premiums through 2026.

Many retirees don't realize this. They see their surcharge notice and assume it's temporary, then the next year it's still there. The two-year lag explains why: the surcharge is based on old income, not current income.

Tax-Loss Harvesting for Retirement Income Management

Tax-loss harvesting is the practice of selling losing positions to realize capital losses, which offset capital gains. For retirees managing IRMAA, it's a powerful tool.

If you have a stock position down $15,000 and another up $15,000, you can sell the loser to realize a $15,000 loss. That loss offsets the $15,000 gain, reducing your net capital gain to zero. Zero gain means zero impact on MAGI and no IRMAA surcharge from that transaction.

The limitation is the wash-sale rule. If you sell a security at a loss, you can't buy the same security (or a substantially identical one) within 30 days before or after the sale. For retirees, this is usually manageable: you sell the losing position, wait 31 days, then reinvest in something similar but not identical.

Tax-loss harvesting works best when you have a mix of winners and losers. If your entire portfolio is underwater, you have nothing to harvest against. If your entire portfolio is profitable, you can harvest losses but you'll need to realize some gains eventually.

One mistake retirees make is harvesting losses too late. Better practice is continuous monitoring: as positions move, identify losses and harvest them before year-end, so you know your net gain position well in advance.

Strategic Timing of Asset Sales to Reduce IRMAA Impact

Timing is everything when you're managing IRMAA. A $100,000 capital gain realized in a year when your other income is low might not trigger a surcharge. The same gain realized in a year when you're taking Social Security and Required Minimum Distributions could push you $50,000 over the threshold.

Professional reviewing a multi-year financial timeline on a computer screen, with a calendar and spreadsheet showing planned asset sales across 2026-2028, natural window lighting illuminating the desk
Professional reviewing a multi-year financial timeline on a computer screen, with a calendar and spreadsheet showing planned asset sales across 2026-2028, natural window lighting illuminating the desk

The first step is mapping your income for the next several years. Calculate when you'll take Social Security, your RMDs, and any deferred compensation or pension income. This gives you a baseline income for each year. Then overlay your planned asset sales against that baseline.

Some years will have more capacity than others. A year when you're not yet taking Social Security, before RMDs start, might have significant room for capital gains. A year when you're taking maximum RMDs plus Social Security might have very little room. Spreading sales across multiple years is often better than bunching them. Instead of selling $300,000 of appreciated stock in one year, sell $100,000 in each of three years to keep your MAGI more stable.

The two-year look-back complicates this. You need to think not just about the year of the sale, but about what income you reported two years prior. If 2024 was a high-income year, you're already in a surcharge bracket for 2026. That might be the year to hold off on additional sales. Delaying sales has a cost, but sometimes that cost is worth avoiding a $5,000 or $10,000 surcharge.

Using Roth Conversions to Manage IRMAA Exposure

A Roth conversion is the process of moving money from a traditional IRA or 401(k) into a Roth IRA. The conversion itself is a taxable event: you owe income tax on the amount converted. But once the money is in the Roth, all future growth is tax-free and you never have to take Required Minimum Distributions.

Get Started Today →

When you convert, you increase your taxable income in the conversion year, which increases your MAGI and might trigger a surcharge. But you can control when you convert and how much you convert in each year. Many retirees convert in lower-income years, before they claim Social Security and before RMDs start. If you're 62 and retired but not yet taking Social Security, you might have room to convert $50,000 or $100,000 without triggering a surcharge.

The two-year look-back creates a planning window. If you convert in 2026, the conversion income affects your 2028 IRMAA. You have time to plan for it and structure other income accordingly. The tax you pay on a conversion is a one-time cost. The surcharge you avoid is an ongoing cost that persists for two years. Often, the surcharge savings exceed the conversion tax cost.

The key is doing the conversion in the right year. Converting in a year when you already have high income from capital gains or RMDs is usually a mistake. Converting in a year when your income is low is usually smart.

Filing an IRMAA Appeal Process for Life-Changing Events

If you experience a major life change, loss of income, divorce, death of a spouse, you can appeal your IRMAA determination through a Life-Changing Event (LCE) form.

The Social Security Administration recognizes specific events as qualifying for an appeal: loss of income, loss of a spouse, divorce, death of a dependent, and certain other circumstances. If you qualify, you can request that SSA use your current-year income instead of the two-year-old income that normally determines your surcharge.

The appeal process starts with Form SSA-44, which you submit to Social Security. You'll need documentation of the life-changing event: a notice of job loss, a divorce decree, a death certificate. File as soon as possible after the qualifying event. There's no strict deadline, but the sooner you file, the sooner you might get relief.

Selling appreciated assets isn't a qualifying life-changing event. You can't appeal based on a bad investment decision. The LCE process is specifically for major life disruptions. However, a spouse's death qualifies as an LCE. The surviving spouse can appeal and potentially get a surcharge reduction based on the new, lower income.

The appeal doesn't erase the surcharge retroactively for the entire two-year period. It adjusts your surcharge going forward, starting from the month SSA approves the appeal. But even partial relief can save hundreds of dollars.

Conclusion

Avoiding IRMAA with capital gains comes down to visibility and timing. You need to see your income picture two years out, understand how capital gains flow into MAGI, and make deliberate choices about when to sell and how much to convert.

At Tax-Free Me, we help clients model these decisions in advance. With 25 years of retirement tax planning experience, R. Neal Angel and his team guide clients through complex scenarios involving large capital gains, multiple income sources, and significant IRMAA exposure. The strategies in this guide, tax-loss harvesting, timing asset sales, strategic Roth conversions, and understanding the two-year look-back, are proven tools that reduce surcharges and preserve retirement income.

The best time to plan is before you realize the capital gain. Once the gain is realized, your MAGI is locked in and your options narrow. If you're holding appreciated assets and approaching Medicare age, a conversation with a retirement tax specialist can clarify your options and help you avoid costly surprises. Social Security Administration's IRMAA information provides official guidance, and IRS guidance on capital gains and Medicare premiums details the tax mechanics. For personalized planning tailored to your specific situation, Tax-Free Me is equipped to help you navigate the intersection of capital gains, MAGI, and Medicare costs.

== FAQ ANSWERS (audit these too, same rules) ==

[1] Q: Do capital gains count toward the income threshold for IRMAA? A: Yes. Capital gains are included in your Modified Adjusted Gross Income (MAGI), which determines your IRMAA surcharges for Medicare Part B and Part D premiums. Long-term capital gains from selling appreciated assets directly increase your MAGI and may push you into a higher income bracket, triggering or increasing your surcharges. The Social Security Administration uses a two-year look-back period, meaning gains realized in the current year affect your premiums two years later. This is why timing asset sales strategically matters, avoiding large gains in a single year can help keep your MAGI below the thresholds that trigger surcharges.

[2] Q: Can tax-loss harvesting help reduce IRMAA surcharges? A: Tax-loss harvesting can help by offsetting capital gains and reducing your overall taxable income. When you sell investments at a loss, those losses can offset gains from other sales, lowering your net capital gains for the year. This reduction flows through to your MAGI calculation, potentially keeping you below IRMAA thresholds or reducing the size of your surcharge. However, tax-loss harvesting works best as part of a broader tax planning strategy that coordinates with your Roth conversions, Social Security timing, and required minimum distributions. A financial advisor can help you identify which positions to harvest and when to execute them without disrupting your overall portfolio.

[3] Q: What income sources are excluded from IRMAA? A: Certain types of income do not count toward your MAGI for IRMAA purposes. Tax-exempt interest (such as from municipal bonds) is excluded, as are distributions from Roth IRAs. Additionally, if you file a Life-Changing Event form because of a significant income reduction, you may be able to exclude that event year and use an earlier year's income instead. However, most retirement income, including taxable distributions from traditional IRAs and 401(k)s, Social Security benefits, dividends, and capital gains, does count. The best strategy is to work with a tax professional to understand which income sources apply to your specific situation and to plan withdrawals accordingly.

[4] Q: How can I use Roth conversions to manage future IRMAA exposure? A: Roth conversions move money from tax-deferred accounts (traditional IRAs or 401(k)s) into tax-free Roth accounts. While the conversion itself increases your taxable income in that year, it reduces the amount of money remaining in tax-deferred accounts. This lowers your future required minimum distributions, which in turn lowers your MAGI in later years when you're enrolled in Medicare. The key is to convert strategically in years when your income is lower (before you claim Social Security or take large capital gains), so you pay less tax on the conversion. Over time, this approach can reduce your lifetime IRMAA surcharges by keeping your Medicare-era income lower.

Frequently Asked Questions

Do capital gains count toward the income threshold for IRMAA?

Yes. Capital gains are included in your Modified Adjusted Gross Income (MAGI), which determines your IRMAA surcharges for Medicare Part B and Part D premiums. Long-term capital gains from selling appreciated assets directly increase your MAGI and may push you into a higher income bracket, triggering or increasing your surcharges. The Social Security Administration uses a two-year look-back period, meaning gains realized in the current year affect your premiums two years later. This is why timing asset sales strategically matters, avoiding large gains in a single year can help keep your MAGI below the thresholds that trigger surcharges.

Can tax-loss harvesting help reduce IRMAA surcharges?

Tax-loss harvesting can help by offsetting capital gains and reducing your overall taxable income. When you sell investments at a loss, those losses can offset gains from other sales, lowering your net capital gains for the year. This reduction flows through to your MAGI calculation, potentially keeping you below IRMAA thresholds or reducing the size of your surcharge. However, tax-loss harvesting works best as part of a broader tax planning strategy that coordinates with your Roth conversions, Social Security timing, and required minimum distributions. A financial advisor can help you identify which positions to harvest and when to execute them without disrupting your overall portfolio.

What income sources are excluded from IRMAA?

Certain types of income do not count toward your MAGI for IRMAA purposes. Tax-exempt interest (such as from municipal bonds) is excluded, as are distributions from Roth IRAs. Additionally, if you file a Life-Changing Event form because of a significant income reduction, you may be able to exclude that event year and use an earlier year's income instead. However, most retirement income, including taxable distributions from traditional IRAs and 401(k)s, Social Security benefits, dividends, and capital gains, does count. The best strategy is to work with a tax professional to understand which income sources apply to your specific situation and to plan withdrawals accordingly.

How can I use Roth conversions to manage future IRMAA exposure?

Roth conversions move money from tax-deferred accounts (traditional IRAs or 401(k)s) into tax-free Roth accounts. While the conversion itself increases your taxable income in that year, it reduces the amount of money remaining in tax-deferred accounts. This lowers your future required minimum distributions, which in turn lowers your MAGI in later years when you're enrolled in Medicare. The key is to convert strategically in years when your income is lower (before you claim Social Security or take large capital gains), so you pay less tax on the conversion. Over time, this approach can reduce your lifetime IRMAA surcharges by keeping your Medicare-era income lower.

This article was written using GrandRanker