Does Capital Gains Affect Medicare Part B? (w/Examples) + FAQs

Yes, capital gains directly affect your Medicare Part B premiums. When you sell stocks, real estate, or other assets at a profit, that gain gets added to your Modified Adjusted Gross Income (MAGI). If your MAGI crosses certain thresholds, the Social Security Administration (SSA) hits you with a surcharge called the Income-Related Monthly Adjustment Amount (IRMAA).

Under 42 U.S.C. § 1395r(i), the SSA uses your tax return from two years ago to determine your current-year Medicare Part B premium. A single capital gains event — like selling a home or cashing out a stock portfolio — can push your MAGI into a higher IRMAA bracket and cost you thousands in extra premiums. Roughly 7% of all Medicare beneficiaries pay IRMAA surcharges each year, and many of them get caught off guard by a one-time capital gains spike.

  • 💰 How capital gains flow into your MAGI and trigger higher Medicare Part B premiums
  • 🏠 Why selling your home could spike your premiums — and how the Section 121 exclusion protects you
  • 📊 The exact 2026 IRMAA brackets and how much extra you could pay at each income level
  • 📝 How to use Form SSA-44 to appeal an IRMAA surcharge after a life-changing event
  • 🛡️ Proven strategies like tax-loss harvesting, Roth conversions, and QCDs to keep your MAGI below IRMAA thresholds

How Capital Gains Feed Into Your MAGI

Your MAGI for IRMAA purposes is calculated using a simple formula: Adjusted Gross Income (AGI) + tax-exempt interest income. Your AGI already includes all capital gains — short-term and long-term — from selling stocks, bonds, mutual funds, real estate, and business assets. This means every dollar of capital gains is counted toward the income thresholds that trigger IRMAA.

Tax-exempt interest from municipal bonds also gets added back in. Many retirees hold municipal bonds thinking the income is “invisible,” but the SSA adds it back when calculating your MAGI. This is a common trap that catches people off guard.

The SSA pulls your income data directly from the IRS. They use your Form 1040, Line 11 (AGI) and Line 2a (tax-exempt interest) to calculate your MAGI. You don’t self-report this to Medicare — it happens automatically.

The Two-Year Look-Back Rule

The SSA doesn’t use your current income to set your premiums. Instead, they look at your tax return from two years prior. Your 2024 income determines your 2026 IRMAA level. Your 2025 income will determine your 2027 premiums.

This lag creates a planning window. If you know a big capital gains event is coming — like selling a rental property — you can plan around it before it shows up in your IRMAA calculation two years later. It also means a one-time spike in capital gains can raise your premiums for only one year, not permanently.

The IRMAA “Cliff” Effect

IRMAA uses hard income cutoffs, not gradual phase-ins. Going even $1 over a threshold pushes you into the next bracket and triggers the full surcharge for that tier. This is why the system is called a cliff surcharge. There is no partial adjustment.

A single filer who earns $109,000 pays the standard Part B premium. A single filer who earns $109,001 pays an extra $81.20 per month. That one extra dollar costs $974.40 more per year in Part B premiums alone.

2026 IRMAA Brackets and Surcharges

The standard Medicare Part B premium for 2026 is $202.90 per month. The Part B deductible is $283. IRMAA surcharges are layered on top of the standard premium based on your 2024 MAGI.

Single Filers

2024 MAGI (Single)Total Monthly Part B Premium
$109,000 or less$202.90 (no surcharge)
$109,001 – $137,000$284.10 ($81.20 surcharge)
$137,001 – $171,000$405.80 ($202.90 surcharge)
$171,001 – $205,000$527.50 ($324.60 surcharge)
$205,001 – $499,999$649.20 ($446.30 surcharge)
$500,000 or more$689.90 ($487.00 surcharge)

Married Filing Jointly

2024 MAGI (Joint)Total Monthly Part B Premium
$218,000 or less$202.90 (no surcharge)
$218,001 – $274,000$284.10 ($81.20 surcharge)
$274,001 – $342,000$405.80 ($202.90 surcharge)
$342,001 – $410,000$527.50 ($324.60 surcharge)
$410,001 – $749,999$649.20 ($446.30 surcharge)
$750,000 or more$689.90 ($487.00 surcharge)

The Part D IRMAA surcharges stack on top of these. They range from $14.50 to $91.00 per month and follow the same income brackets. A person in the highest IRMAA tier pays up to $689.90 for Part B plus $91.00 for Part D — that’s $780.90 per month, per person.

Married Filing Separately — A Costly Trap

Couples who file separately face much narrower brackets. There are only three tiers instead of six.

2024 MAGI (Married Filing Separately)Part B Surcharge
$109,000 or less$0 (standard premium)
$109,001 – $390,999$446.30 surcharge ($649.20 total)
$391,000 or more$487.00 surcharge ($689.90 total)

Filing separately eliminates the middle brackets entirely. A married person filing separately with a MAGI of $110,000 jumps straight to a $446.30 monthly surcharge — the same amount a joint filer wouldn’t hit until $410,001.

Three Real-World Capital Gains Scenarios

Scenario 1: Linda Sells Her Stock Portfolio

Linda is a 67-year-old single retiree. Her regular MAGI from Social Security and pension income is $95,000 per year — safely below the $109,000 IRMAA threshold. In 2024, she sells stocks and realizes a $20,000 long-term capital gain. Her total 2024 MAGI jumps to $115,000.

Income SourceAmount
Social Security + pension$95,000
Capital gain from stock sale$20,000
Total 2024 MAGI$115,000

Because $115,000 falls in the $109,001–$137,000 bracket, Linda’s 2026 Part B premium rises from $202.90 to $284.10 per month. That’s an extra $974.40 per year — almost half the capital gain eaten up by higher Medicare premiums alone. Had she sold just $14,000 of stock instead and kept her MAGI at $109,000, she would have paid zero surcharge.

Scenario 2: Bill and Susan Sell Their Home (Within the Exclusion)

Bill and Susan, both 70, sell their primary residence for $700,000. They bought it for $250,000, giving them a $450,000 gain. As a married couple, Section 121 of the Internal Revenue Code lets them exclude up to $500,000 in capital gains from a primary home sale, as long as they lived in the home for at least two of the last five years.

Home Sale DetailAmount
Sale price$700,000
Purchase price$250,000
Capital gain$450,000
Section 121 exclusion$500,000
Taxable gain$0

Their $450,000 gain is fully excluded. It never appears on their tax return as income, so it does not increase their MAGI. Their Medicare premiums stay unchanged. This is the best-case scenario for retirees downsizing.

Scenario 3: Tom and Janet Sell Their Home (Exceeding the Exclusion)

Tom and Janet, both 68, sell their home for $900,000. They bought it for $300,000, creating a $600,000 gain. Their Section 121 exclusion covers $500,000, leaving $100,000 in taxable capital gains. Their other income is $200,000.

Home Sale DetailAmount
Sale price$900,000
Purchase price$300,000
Capital gain$600,000
Section 121 exclusion$500,000
Taxable gain added to MAGI$100,000
Other income$200,000
Total 2024 MAGI$300,000

A MAGI of $300,000 lands in the $274,001–$342,000 bracket for joint filers. Each of them pays $405.80 per month for Part B instead of $202.90. That’s an extra $202.90 per person per month, or $4,869.60 per year for the couple. This surcharge lasts for the full year their 2024 income is used as the look-back — meaning it affects their 2026 premiums.

How a Home Sale Impacts Medicare Part B

The Section 121 exclusion is the single most important tax break for retirees selling a home. It shelters up to $250,000 in gain for single filers and $500,000 for married couples from both income tax and MAGI calculations. The excluded portion never touches your tax return, so it cannot trigger IRMAA.

The gain that exceeds the exclusion is fully taxable and fully counted in your MAGI. For a single filer who sells a home with a $400,000 gain, only $250,000 is excluded. The remaining $150,000 hits their MAGI and could push them several IRMAA brackets higher.

To qualify for the exclusion, you must have owned and used the home as your primary residence for at least two of the five years before the sale. Failing to meet this test means the entire gain is taxable and flows into your MAGI. Retirees who split time between two homes should track their days of residence carefully.

Timing Your Home Sale Around Medicare

If you’re approaching age 63, you have a powerful planning opportunity. Selling your home before you turn 63 means the capital gain hits your tax return before the two-year look-back period that affects your Medicare premiums. By the time you enroll in Medicare at 65, that gain is no longer in the look-back window.

If you’re already on Medicare and planning to sell, consider whether you can spread the transaction across tax years, use an installment sale, or offset the gain with capital losses from other investments. Every dollar of net capital loss reduces your MAGI and could keep you in a lower IRMAA bracket.

Roth Conversions, RMDs, and the Capital Gains Connection

Roth Conversions Create a Temporary MAGI Spike

Converting money from a Traditional IRA to a Roth IRA is treated as taxable income in the year of conversion. If you convert $80,000 in one year, your MAGI jumps by $80,000. Combine that with realized capital gains in the same year, and you could leap multiple IRMAA brackets.

The smarter play is to do systematic Roth conversions spread over several years, keeping each year’s total MAGI just below the next IRMAA threshold. This approach shrinks your Traditional IRA balance and reduces future RMDs, which lowers your MAGI for the rest of your life.

Required Minimum Distributions Add Fuel to the Fire

Once you turn 73, you must take Required Minimum Distributions (RMDs) from Traditional IRAs and 401(k)s. These distributions are fully taxable and counted in MAGI. If you also sell investments with capital gains in the same year, the combination can push you into the highest IRMAA brackets.

The worst-case scenario is delaying your first RMD to April 1 of the year after you turn 73, then taking a second RMD in December of that same year. Two RMDs plus capital gains in one year can create a massive MAGI spike that triggers IRMAA surcharges two years later.

Six Strategies to Reduce Capital Gains Impact on Medicare

1. Tax-Loss Harvesting

Sell investments that have lost value to generate capital losses. These losses offset your capital gains dollar for dollar, reducing your net capital gains and your MAGI. If your losses exceed your gains, you can deduct up to $3,000 in net capital losses against ordinary income per year.

The key is to run IRMAA projections in November each year. If you’re hovering near a threshold — say $217,500 for a joint filer — harvesting $2,000 in losses could keep you under $218,000 and save you $974.40 in annual Part B surcharges.

2. Qualified Charitable Distributions (QCDs)

If you’re age 70½ or older, you can direct up to $111,000 per year (the 2026 inflation-adjusted limit) from your IRA straight to a qualified charity. A QCD satisfies your RMD but is completely excluded from MAGI. This is the most powerful tool for charitably inclined retirees to avoid IRMAA.

Unlike a standard charitable deduction, a QCD never appears as income on your tax return. It bypasses AGI entirely, which means it can keep you below an IRMAA cliff that a regular deduction cannot.

3. Strategic Roth Conversions Before Age 63

The period between retirement and age 63 is the golden window for Roth conversions. Converting during low-income years means the MAGI spike falls outside the two-year look-back period that affects Medicare premiums. By the time you’re on Medicare, your Traditional IRA is smaller and your future RMDs are lower.

4. Asset Location

Place investments that generate high taxable income — like actively managed mutual funds, corporate bonds, and high-dividend stocks — inside tax-deferred accounts (401(k), Traditional IRA). This shields their income from your MAGI calculation. Hold tax-efficient investments like index funds and growth stocks in taxable brokerage accounts where they generate fewer capital gains distributions.

5. Installment Sales

Instead of selling a large asset in one year and recognizing the entire gain, structure the sale as an installment sale that spreads the gain over multiple tax years. This keeps each year’s MAGI lower and may prevent you from crossing an IRMAA threshold in any single year.

6. Borrowing Against Appreciated Assets

Some retirees borrow against appreciated assets — such as taking a securities-based line of credit — instead of selling them. Loan proceeds are not taxable income and do not increase MAGI. This strategy works best when interest rates are reasonable and the asset is expected to continue appreciating.

Mistakes to Avoid

  • Ignoring the two-year lag. You sell investments in 2024 and forget that the capital gain won’t hit your Medicare premium until 2026. By then, it’s too late to undo the damage. Always plan two years ahead.
  • Selling everything in one year. Dumping an entire portfolio or selling a home and a stock portfolio in the same year can stack gains and push you into the highest IRMAA tier. Spread large transactions across tax years when possible.
  • Forgetting municipal bond interest. Muni bond interest is tax-free for income tax purposes, but it gets added back to your AGI to calculate MAGI for IRMAA. Retirees with large muni holdings are often surprised.
  • Filing taxes separately without checking IRMAA. Married couples who file separately lose the middle IRMAA brackets and jump straight to the second-highest surcharge at just $109,001. Run the numbers both ways before filing.
  • Not appealing when you qualify. If your income dropped because of a life-changing event, you can file Form SSA-44 and get your IRMAA reduced or eliminated — but only if you actually submit the form.

How to Appeal IRMAA With Form SSA-44

Form SSA-44 is not a traditional appeal — it’s a request for the SSA to reconsider your IRMAA based on new facts. If a qualifying life-changing event caused your income to drop, the SSA can use your current year’s income instead of the two-year-old tax return.

Qualifying Life-Changing Events

The SSA recognizes seven specific events:

  • Death of a spouse
  • Marriage
  • Divorce or annulment
  • Work stoppage (retirement)
  • Work reduction
  • Loss of income-producing property
  • Loss or reduction of pension income

A one-time capital gain from selling stock does not qualify as a life-changing event. The SSA considers that a voluntary financial decision, not an involuntary change in circumstances.

Filling Out the Form Step by Step

Step 1 asks you to identify which life-changing event occurred and the date it happened. You can only select one event.

Step 2 asks for the first tax year your income was reduced. If you retired on December 31, 2024, you would enter 2025 as the reduction year.

Step 3 asks for your estimated Modified Adjusted Gross Income for the year after the event. The SSA uses this to recalculate your IRMAA at the lower income level.

Step 4 requires documentation. For work stoppage, this could be a letter from your employer on company letterhead confirming your retirement date. Provide accurate and complete information — missing details can delay your request or result in a denial.

You can submit the form by mail, in person at your local SSA office, or through the SSA’s online portal.

Pros and Cons of Proactive IRMAA Planning

ProsCons
Keeps Medicare Part B premiums at the standard $202.90/monthRequires ongoing income monitoring and tax projections every year
Tax-loss harvesting reduces both capital gains taxes and MAGIHarvesting losses may force you to sell investments you’d rather keep
QCDs eliminate RMD income from MAGI entirelyOnly available to those 70½+ who are charitably inclined
Roth conversions lower future RMDs and long-term IRMAA riskConversions create a taxable event that temporarily raises MAGI
Installment sales spread gains across years to stay below thresholdsAdds complexity and may involve interest or credit risk from the buyer
Borrowing against assets avoids triggering capital gainsInterest costs can erode the savings, and market declines can trigger margin calls

Do’s and Don’ts

Do:

  • Run IRMAA projections every November. Check where your MAGI stands relative to the nearest IRMAA cliff and harvest losses or defer income before December 31.
  • Coordinate capital gains with your tax advisor. Your advisor can model how a proposed stock sale or home sale will affect your MAGI two years out.
  • Use Roth accounts for tax-free income in retirement. Roth withdrawals don’t count toward MAGI, making them the cleanest source of retirement income for IRMAA purposes.
  • File Form SSA-44 promptly after a qualifying event. The sooner you submit, the sooner the SSA can adjust your premiums.
  • Track your cost basis on all investments. Accurate basis records prevent you from overstating gains and inflating your MAGI.

Don’t:

  • Don’t ignore capital gains distributions from mutual funds. Even if you didn’t sell shares, your fund may distribute taxable capital gains that increase your MAGI.
  • Don’t assume a home sale is always tax-free. The Section 121 exclusion has limits — $250,000 for singles, $500,000 for couples — and requires meeting the ownership and use tests.
  • Don’t convert a massive IRA to Roth in one year. Spreading conversions over several years prevents a single spike that triggers the highest IRMAA surcharges.
  • Don’t file married-filing-separately without modeling the IRMAA impact. The bracket compression can cost thousands.
  • Don’t wait until you get the IRMAA notice to start planning. By then, the income event happened two years ago and cannot be changed.

Key Entities and How They Interact

The Social Security Administration (SSA) determines your IRMAA level each year based on IRS data. They send you an initial determination letter if you owe a surcharge.

The Centers for Medicare & Medicaid Services (CMS) administers Medicare Part B and sets the standard premium — $202.90 in 2026. CMS bills you for any unpaid IRMAA amounts if your Social Security check doesn’t cover them.

The IRS provides the SSA with your MAGI data from two years prior. If you filed an amended return, the IRS may share outdated data, which is one reason to file Form SSA-44 if your corrected return lowers your income.

Congress has introduced H.R. 3007, which would exclude primary residence sale gains (under Section 121) from MAGI for IRMAA purposes. As of early 2026, this bill has not been signed into law. If it passes, it would apply to tax years beginning on or after January 1, 2025, and could be used once per lifetime.

How IRMAA Gets Paid

Your Part B IRMAA surcharge is automatically deducted from your monthly Social Security check. If you’ve deferred Social Security or your check isn’t large enough, CMS sends you a separate bill.

Part D IRMAA is paid directly to Medicare, not to your drug plan or employer. You receive a monthly bill and can pay through your MyMedicare account, bank bill pay, Medicare Easy Pay, or by mailing a check to the Medicare Premium Collection Center.

IRMAA surcharges for Part B and Part D are assessed per person. A married couple where both spouses are on Medicare could pay double the surcharge shown in the brackets. At the highest tier, that’s $1,561.80 per month for Part B and Part D combined — for the couple.

FAQs

Do short-term capital gains affect Medicare Part B?

Yes. Short-term capital gains are taxed as ordinary income and fully included in your AGI, which flows into MAGI for IRMAA calculations.

Do long-term capital gains affect Medicare Part B?

Yes. Long-term capital gains are included in AGI and count toward the MAGI thresholds used to determine IRMAA surcharges.

Does selling my home affect Medicare Part B premiums?

Yes, but only if your gain exceeds the Section 121 exclusion ($250,000 single, $500,000 married). The excluded portion does not count toward MAGI.

Can I appeal an IRMAA surcharge caused by capital gains?

No. A voluntary investment sale is not a qualifying life-changing event. Form SSA-44 only covers events like retirement, divorce, or death of a spouse.

Does IRMAA affect Medicare Advantage (Part C)?

No. IRMAA applies only to Part B and Part D premiums. Medicare Advantage plans are not directly subject to IRMAA surcharges.

Do Roth IRA withdrawals count toward IRMAA?

No. Qualified Roth withdrawals are tax-free and excluded from MAGI, so they do not trigger IRMAA.

Is IRMAA permanent once triggered?

No. IRMAA is recalculated annually based on your tax return from two years prior. A one-time capital gain spike affects premiums for only one year.

Do capital losses reduce my IRMAA?

Yes. Realized capital losses offset gains and can reduce your MAGI. Net losses up to $3,000 can also offset ordinary income.

Does municipal bond interest affect IRMAA?

Yes. Tax-exempt interest is added back to AGI to calculate MAGI for IRMAA, even though it’s not subject to income tax.

Can I pay IRMAA in a lump sum?

No. IRMAA is a monthly surcharge deducted from your Social Security or billed monthly by CMS. There is no lump-sum payment option.