How Capital Gains Affect Medicare Premiums (IRMAA)
Realized capital gains affect Medicare premiums through a mechanism called IRMAA (Income-Related Monthly Adjustment Amount). When a retiree sells an investment at a gain, it increases her Modified Adjusted Gross Income (MAGI), which triggers Medicare surcharges on Part B and Part D premiums two years later.
How IRMAA Works
Medicare Part B (doctor visits, outpatient services) and Part D (prescription drugs) have standard premiums available to all beneficiaries. Those premiums are the same for everyone earning up to a threshold income. But if your income exceeds the threshold, Medicare adds surcharges—IRMAA—on top.
The surcharges are income-tiered. Higher income means higher surcharge. The income measure used is not your current-year income; it’s your Modified Adjusted Gross Income (MAGI) from two years prior. This two-year lookback is crucial and often surprising to retirees.
For 2024, the standard Part B premium is around $175 per month. But if your 2022 MAGI exceeded the 2024 thresholds, you’ll pay that $175 plus an IRMAA surcharge in 2024. For a single filer, the Part B threshold begins at $103,000 MAGI. The surcharge tiers climb steeply:
| 2022 MAGI (Single) | 2024 Part B Surcharge |
|---|---|
| $103,001–$129,000 | +$70 |
| $129,001–$161,000 | +$175 |
| $161,001–$194,000 | +$350 |
| $194,001–$206,000 | +$490 |
| Above $206,000 | +$560 |
Part D (prescription drug) surcharges follow a similar structure. A retiree with very high income could face combined Part B and Part D surcharges exceeding $800 per month.
Capital Gains and MAGI: The Two-Year Hit
Here’s the shock: when you sell a stock and recognize a $100,000 capital gain, the entire $100,000 counts toward MAGI. Qualified long-term capital gains are taxed at preferential rates (15% or 20% for high earners), but they’re not excluded from the MAGI calculation for IRMAA. They’re included in full.
Suppose a retiree has $80,000 in ordinary income (Social Security, pensions, interest) and sells appreciated stock for a $50,000 long-term gain in 2022. Her 2022 MAGI is $130,000. In 2024, when Medicare calculates her IRMAA surcharges using that 2022 MAGI, she crosses into the second Part B surcharge tier ($129,001–$161,000), paying an extra $175 per month.
If she had no capital gain that year, her MAGI would have been $80,000—well below the threshold—and she’d pay no surcharge.
The two-year lag means the surcharge hits two years after the gain is realized and taxed. A retiree might sell an appreciated asset in 2022, pay capital gains tax that same year, and then be surprised in 2024 when her Medicare premiums jump. She can’t undo it.
Timing and One-Time Gains
The two-year lag creates a perverse incentive structure. If you realize a one-time, large capital gain in a single year, you pay IRMAA surcharges for two full years, not one. That’s because the surcharge applies to the full 12 months of Medicare coverage in the year you file (2024) and the next year (2025), even though the elevated MAGI was only in one year (2022).
For example:
- 2022: Sell appreciated real estate for $200,000 gain; MAGI spikes to $280,000. Regular year otherwise.
- 2023: No new income; MAGI returns to $80,000. No surcharge (using 2021 MAGI, which is low).
- 2024: No new income; MAGI is $80,000. But Medicare calculates surcharges using 2022 MAGI ($280,000). Full-year surcharge applies.
- 2025: No new income; MAGI is $80,000. Using 2023 MAGI ($80,000)—back to normal.
The retiree paid surcharges in 2024 only, for one year. But if she had spread the $200,000 gain over two years (say, by timing the sale differently), she’d have paid surcharges for two years. The mechanics are counterintuitive: bunching gains into a single year can actually minimize the total surcharge duration, though it maximizes income in that year.
The “Life Expectancy” Trade-off
For some retirees, the IRMAA surcharge is economically manageable. A 67-year-old selling appreciated stock to rebalance into bonds might accept a two-year, $2,100 surcharge ($175 × 12 months × 2 years) as a modest cost. The capital gain itself generates wealth (say, $100,000 net proceeds), so surcharges are just a small drag.
But for others, IRMAA is a powerful tax on selling. A 72-year-old with $500,000 in appreciated single stocks might want to diversify into lower-cost, diversified index funds. Selling even $100,000 of stock triggers a $350/month surcharge for two years—$8,400 in extra Medicare costs. That’s real friction. Some retirees delay selling appreciated assets to avoid triggering IRMAA.
This distortion is hardest on those who need liquidity most: a widow liquidating her late husband’s estate, or someone who must tap investments unexpectedly for medical expenses. The IRMAA surcharge adds insult to the capital gains tax liability already owed.
Roth IRA Conversions and IRMAA
One reason retirees convert traditional IRA assets to Roth IRAs is to build tax-free growth. But a Roth conversion counts as ordinary income in the year it occurs and raises MAGI. If a retiree converts $100,000 from a traditional IRA to a Roth, that $100,000 is ordinary income in the conversion year and inflates MAGI exactly as a capital gain would.
For this reason, some financial planners advise converting Roth IRA assets before reaching Medicare age (65) if possible, to avoid a future IRMAA surcharge. Conversely, those already on Medicare might avoid large Roth conversions in years when a large capital gain is expected, since both events raise MAGI.
Appealing IRMAA: The Initial Enrollment Year Exception
Medicare allows beneficiaries to contest IRMAA surcharges if a retiree’s income has changed materially since the lookback year (e.g., retirement, major loss, significant expense). A retiree can file a form (SSA-44) with Social Security to request IRMAA recalculation using current-year or prior-year income instead of the standard lookback.
However, approval is not automatic. Social Security must determine the income change is “substantial and ongoing”—not temporary. A one-time capital gain usually doesn’t qualify. A job loss or full retirement does.
Additionally, this relief applies only in the year you first enroll in Medicare Part B or the immediately following year. If you enrolled at 65 and are already on Medicare at 70, a life-change event in year 70 might be too late to retroactively adjust premiums.
Strategic Planning Around Gains
Sophisticated retirees and their advisors sometimes time capital gains sales around Medicare enrollment and IRMAA thresholds:
- Harvest losses early. Realize capital losses in years before Medicare eligibility (or before crossing IRMAA thresholds) to offset future gains.
- Spread sales. Instead of selling $200,000 of stock in one year, sell $100,000 in year 1 and $100,000 in year 2 or 3. This avoids a single spike in MAGI that triggers surcharges.
- Front-load charitable giving. Donating appreciated securities directly to charity (via qualified charitable distributions from IRAs or outright donations) is tax-free and doesn’t inflate IRMAA. It reduces portfolio value without triggering capital gains taxes or MAGI surcharges.
- Defer discretionary sales. If market gains are large but unnecessary to spend, delay selling appreciated assets until after Medicare enrollment or until a year when other income is lower.
These strategies work best when planned in advance, ideally before age 62–64 when Medicare approaches.
See also
Closely related
- Capital Gains Tax (Investor) — preferential tax rates on investment sales
- Adjusted Gross Income — income components that shape tax liability
- Medicare and Social Security Coordination — how earnings affect benefit timing
- Tax Loss Harvesting — offsetting gains with losses
- Roth IRA — tax-free growth but conversion implications for MAGI
- Traditional IRA — qualified withdrawals and distributions
Wider context
- Estate Planning — managing appreciated assets within an estate
- Charitable Giving and Tax Deductions — reducing tax burden via donations
- Retirement Income Strategies — sequencing withdrawals to minimize taxes
- Medicare Basics — part B, part D, and enrollment periods