Do Capital Gains Affect Your Medicare Premiums? IRMAA and Timing

Yes. Capital gains do affect Medicare premiums, because realized gains flow into the income figure Social Security uses to set your Part B and Part D surcharges. In 2026, crossing the wrong threshold can add up to $487 per month to your Part B premium alone, and because Medicare looks back two years, a sale you make today can raise your premium long after the cash is spent.

Why Capital Gains Count

Medicare Part B and Part D premiums are not flat. Federal law requires Social Security to raise them for higher-income beneficiaries using Modified Adjusted Gross Income, or MAGI.1Social Security Administration. Premiums: Rules for Higher-Income Beneficiaries MAGI equals the adjusted gross income on line 11 of your Form 1040 plus any tax-exempt interest on line 2a.2Social Security Administration. POMS: HI 01101.010 – Modified Adjusted Gross Income (MAGI)

Capital gains sit inside AGI alongside wages, dividends, business income, and retirement distributions.3Internal Revenue Service. Definition of Adjusted Gross Income So they land inside MAGI too. Short-term or long-term makes no difference here. Income tax rates treat those two categories very differently, but the surcharge — called IRMAA, the Income-Related Monthly Adjustment Amount — only sees the total dollar figure on the return. A $150,000 gain from a stock held three months hits your premium exactly the same way a $150,000 gain from a stock held ten years does.

The Two-Year Lag

Social Security does not use your current income to set your premium. It uses the most recent return the IRS can hand over, which in practice means the tax year two years earlier.2Social Security Administration. POMS: HI 01101.010 – Modified Adjusted Gross Income (MAGI) Your 2026 premiums reflect what you reported for 2024. Your 2027 premiums will reflect 2025.

That lag catches people off guard. Sell a rental property in 2024, pay the capital gains tax, spend or reinvest the proceeds, and two years later a higher Medicare bill arrives. It also runs the other way: if your income drops sharply, you can still be paying surcharges based on a peak year that no longer describes your finances.

The lag matters most right before you enroll. If you are 63 and planning to sell appreciated stock, the gain does not touch your premium until you turn 65 — the year you are likely to start Medicare. New enrollees hit by that timing are among the most common IRMAA complaints.

2026 IRMAA Brackets and the Cliff Problem

The standard 2026 Part B premium is $202.90 per month. You pay that if your MAGI stays at or below $109,000 filing single or $218,000 filing jointly.4Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles Above those lines, the surcharges climb through five tiers:

  • $109,001–$137,000 single / $218,001–$274,000 joint: $284.10 per month
  • $137,001–$171,000 single / $274,001–$342,000 joint: $405.80 per month
  • $171,001–$205,000 single / $342,001–$410,000 joint: $527.50 per month
  • $205,001–$499,999 single / $410,001–$749,999 joint: $649.20 per month
  • $500,000+ single / $750,000+ joint: $689.90 per month

These brackets are cliffs, not graduated rates. One dollar over a threshold triggers the full surcharge for that tier. A single filer at $109,000 pays $202.90. At $109,001, the premium jumps to $284.10 — an extra $974 across the year for one dollar of additional income.4Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles A mutual fund distribution or a routine stock sale can drop you just over the edge.

Part D drug coverage follows the same income brackets and adds its own surcharge on top of your plan’s base premium, running from $14.50 at the lowest tier to $91.00 at the highest for 2026.4Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles A beneficiary in the top bracket pays close to $781 per month in Medicare premiums alone.

Married Filing Separately

The bracket structure for married-filing-separately beneficiaries is far harsher. You pay the standard $202.90 only if your individual MAGI is $109,000 or less. Above that, you jump straight to $649.20 per month, skipping every intermediate tier. Above $391,000 you pay the maximum $689.90.4Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles Any meaningful gain will trigger the top-tier surcharge for a separate filer. If you are in this situation, run the numbers on filing jointly before you sell.

Selling a Home

The home sale exclusion under Section 121 lets you exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly, provided you owned and lived in the home for at least two of the five years before the sale.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The excluded portion never touches your tax return and never touches MAGI.

Anything above the exclusion does. A couple who bought decades ago for $200,000 and sells for $900,000 has a $700,000 gain. The first $500,000 is excluded. The remaining $200,000 flows into AGI, into MAGI, and two years later into a higher Medicare bracket. Downsizing in retirement is often the right move financially, but the premium consequences deserve a look before the sign goes in the yard.

Managing the Hit

You cannot avoid IRMAA if your underlying income is genuinely high. But capital gains are one of the few income sources where you control timing and size, and that control creates real room to plan.

Spread Gains With an Installment Sale

Selling property or a business on installments lets you recognize the gain only as payments come in.6Internal Revenue Service. Topic No. 705 – Installment Sales A $400,000 gain spread across four years at $100,000 each may keep you under a cliff every year rather than blowing past one.

Harvest Losses in the Same Year

Selling investments at a loss offsets realized gains dollar for dollar. A $50,000 gain and a $50,000 loss taken in the same tax year net to zero and leave MAGI flat. Net losses above gains can offset up to $3,000 of ordinary income, with the rest carried forward. IRMAA is calculated on annual income, so the offset has to happen in the same year as the gain.

Use Qualified Charitable Distributions

If you are 70½ or older and taking required minimum distributions from a traditional IRA, a qualified charitable distribution sends money directly from the IRA to a charity, satisfies your RMD, and is excluded from AGI. A normal withdrawal followed by a cash donation still shows up as income even if you deduct the gift. The QCD limit for 2026 is $111,000 per person.7Internal Revenue Service. IRS Notice 2025-67 – 2026 Amounts Relating to Retirement Plans and IRAs A QCD does not cancel a gain, but it lowers overall MAGI, which can keep a moderate gain from tipping you over a bracket.

Target the Cliff Line

Precise targeting matters more with IRMAA than with income tax because the surcharges are step-functions. If your other income for the year is $100,000 as a single filer, you have roughly $9,000 of room before the first threshold at $109,000. Selling enough stock to realize $8,000 in gain keeps you at the standard premium. Realizing $10,000 costs an extra $974 in Part B alone. It pays to run the numbers before executing the trade.

Coordinate With Roth Conversions

Roth conversions are not capital gains, but the converted amount counts as taxable income and inflates MAGI the same way. Retirees who convert and realize gains in the same year can vault past several cliffs without noticing until the premium letter arrives. If both are on your plan, stagger them.

When You Can Appeal

If your income has fallen since the year Social Security is using, you can ask for the surcharge to be reduced now rather than waiting for the look-back to catch up. Social Security accepts requests tied to specific life-changing events: marriage, divorce, death of a spouse, work stoppage or reduction, loss of income-producing property due to disaster or fraud, loss of pension income, and employer settlement payments.8Social Security Administration. Request to Lower an Income-Related Monthly Adjustment Amount (IRMAA) The request goes on Form SSA-44, with your estimated current-year income and documentation of the event.9Social Security Administration. Medicare Income-Related Monthly Adjustment Amount – Life-Changing Event Form SSA-44

A one-time capital gain from selling stock or investment property generally does not qualify. Selling a business you actively ran may fit under the work-stoppage category, but simply cashing out a brokerage account after a strong year is not a recognized event, and the “loss of income-producing property” category explicitly excludes property you sold voluntarily.9Social Security Administration. Medicare Income-Related Monthly Adjustment Amount – Life-Changing Event Form SSA-44

If Social Security denies the request, or if you believe the underlying IRS data was wrong, you have 60 days from the determination notice to request formal reconsideration.10Social Security Administration. POMS: HI 01140.001 – Overview of the Appeals Process for IRMAA You can start one by calling SSA at 1-800-772-1213 or filing Form SSA-561-U2 at your local field office.11U.S. Department of Health and Human Services. Medicare Part B Premium Appeals Someone other than the original decision-maker reviews the file.