Yes, capital gains do count as income for Medicare. Both short-term and long-term capital gains are included in your Modified Adjusted Gross Income (MAGI), which is the number Medicare uses to decide if you owe higher premiums. A single capital gains event — like selling a home or cashing out stocks — can trigger premium surcharges that last for an entire year.
Roughly 7% of all Medicare beneficiaries pay these surcharges, according to the Centers for Medicare & Medicaid Services. The surcharge is called the Income-Related Monthly Adjustment Amount (IRMAA), and it can increase your monthly Medicare costs by up to $578 per person when Part B and Part D are combined.
Here’s what you’ll learn in this article:
- 💰 How capital gains push you into higher Medicare premium brackets — and exactly how much more you’ll pay
- 🏠 Why selling your home, stocks, or rental property can spike your Medicare costs two years later
- 📋 The step-by-step process for appealing an IRMAA surcharge using Form SSA-44
- 🛡️ Proven strategies like tax-loss harvesting, Roth conversions, and Qualified Charitable Distributions that lower your MAGI
- ⚠️ Common mistakes retirees make that cost them thousands in avoidable Medicare premiums
How Medicare Defines “Income” for Premium Calculations
Medicare does not use your taxable income or your gross income to determine premiums. It uses a specific formula called Modified Adjusted Gross Income (MAGI). Under 26 U.S.C. § 1839(i), the Social Security Administration (SSA) calculates your MAGI by taking your Adjusted Gross Income (AGI) from IRS Form 1040, Line 11, and adding back tax-exempt interest from Form 1040, Line 2a.
This means income sources that don’t normally show up as “taxable” — like municipal bond interest — still get counted. The result is a broader income number than most retirees expect. When your MAGI crosses specific thresholds, you pay more for both Medicare Part B and Part D.
What Counts Toward Your MAGI
The types of income folded into your MAGI include wages, Social Security benefits, pension income, rental income, traditional IRA and 401(k) distributions, Roth conversion amounts, dividends, interest, and — the focus of this article — capital gains. Because the definition is so broad, a single year with a large capital gain can create a Medicare cost increase that blindsides retirees.
What many people miss is that tax-exempt interest from municipal bonds gets added back into the calculation. You cannot shelter income from Medicare the same way you shelter it from the IRS. This catch-all approach is why IRMAA surprises are so common.
Why Capital Gains Specifically Matter for Medicare
Capital gains land in your MAGI the same way wages or pension payments do. Whether you sell stocks, mutual funds, real estate, cryptocurrency, or collectibles, the profit counts toward IRMAA. It doesn’t matter whether the gain is short-term or long-term — both types increase your MAGI.
The reason this catches so many retirees off guard is the two-year lookback rule. Medicare bases your 2026 premiums on your 2024 MAGI. If you sold a rental property in 2024 and triggered a large capital gain, you won’t feel the Medicare premium increase until 2026. By then, it’s too late to do anything about that year’s surcharge.
Short-Term vs. Long-Term Capital Gains and IRMAA
For federal income tax purposes, short-term and long-term capital gains are taxed at different rates. Short-term gains (assets held less than one year) are taxed as ordinary income, while long-term gains get preferential tax rates. For Medicare IRMAA purposes, this distinction does not matter. Both types increase your MAGI by the same dollar amount and push you toward the same IRMAA thresholds.
| Type of Capital Gain | Taxed Differently for Income Tax? | Treated Differently for IRMAA? |
|---|---|---|
| Short-term (held < 1 year) | Yes — taxed at ordinary income rates | No — adds to MAGI equally |
| Long-term (held > 1 year) | Yes — taxed at preferential rates | No — adds to MAGI equally |
The 2026 IRMAA Brackets: Where Capital Gains Push You
The SSA sets IRMAA brackets annually, and the 2026 brackets are based on your 2024 tax return. The standard 2026 Part B monthly premium is $202.90. If your MAGI stays under $109,000 (single) or $218,000 (married filing jointly), you pay only that standard amount. Every dollar above those thresholds can bump you into a higher tier.
Here are the 2026 IRMAA surcharge amounts:
| Single Filer MAGI | Part B Monthly Surcharge |
|---|---|
| ≤ $109,000 | $0 (standard $202.90 only) |
| $109,001 – $137,000 | $81.20 ($284.10 total) |
| $137,001 – $171,000 | $202.90 ($405.80 total) |
| $171,001 – $205,000 | $324.60 ($527.50 total) |
| $205,001 – $499,999 | $446.30 ($649.20 total) |
| ≥ $500,000 | $487.00 ($689.90 total) |
For married couples filing jointly, the thresholds are exactly double the single filer amounts — $218,000, $274,000, $342,000, $410,000, and $750,000. Part D surcharges range from $14.50 to $91.00 per month on top of your plan premium.
The IRMAA “Cliff” Effect
IRMAA works as a cliff, not a gradual slope. If your MAGI is $109,000 as a single filer, you pay $0 in surcharges. If it’s $109,001 — just one dollar more — you owe an extra $81.20 per month for Part B alone. That single dollar costs you $974.40 per year in Part B surcharges, plus an additional $174 in Part D surcharges. This cliff structure makes capital gains planning critical for anyone near a threshold.
Three Real-World Scenarios: Capital Gains and Medicare Costs
Scenario 1: Selling a Primary Home
Linda is 68, single, and sells her home in 2024 for a $400,000 profit. Under IRS Section 121, she can exclude $250,000 of that gain from taxable income. The remaining $150,000 gets added to her MAGI. Her pension and Social Security already put her at $95,000 in MAGI.
| Income Source | Amount Added to MAGI |
|---|---|
| Pension + Social Security | $95,000 |
| Taxable home sale gain ($400K − $250K exclusion) | $150,000 |
| Total MAGI | $245,000 |
Without the home sale, Linda’s MAGI of $95,000 keeps her below the first IRMAA threshold. With it, she lands in the $205,001–$499,999 bracket. Her Part B premium jumps from $202.90 to $649.20 per month — an increase of $446.30 monthly or $5,355.60 per year. Her Part D surcharge adds another $83.30 per month ($999.60 per year). Total IRMAA damage: $6,355.20 in extra Medicare costs for the year.
Scenario 2: Selling a Stock Portfolio
Tom and Susan are married, both 72. In 2024, they sell long-held stocks with a $120,000 capital gain. Their other income (pensions, RMDs, Social Security) totals $200,000 in MAGI.
| Income Source | Amount Added to MAGI |
|---|---|
| Pensions + RMDs + Social Security | $200,000 |
| Stock sale capital gain | $120,000 |
| Total MAGI | $320,000 |
At $200,000, they sit comfortably below the $218,000 joint threshold. The stock sale pushes them to $320,000, landing in the $274,001–$342,000 bracket. Each spouse now owes $202.90 in Part B surcharges per month, plus $37.50 each in Part D surcharges. For the couple, that totals $5,764.80 per year in combined IRMAA costs — all triggered by one stock sale.
Scenario 3: Selling a Rental Property
James is 66, single, and sells a rental property in 2024 with a $300,000 capital gain (after depreciation recapture). His other income is $80,000. There is no Section 121 exclusion for rental property — the full gain counts toward MAGI.
| Income Source | Amount Added to MAGI |
|---|---|
| Other income | $80,000 |
| Rental property capital gain (no exclusion) | $300,000 |
| Total MAGI | $380,000 |
James rockets into the $205,001–$499,999 bracket. His Part B premium becomes $649.20/month and his Part D surcharge hits $83.30/month. That’s $6,355.20 in IRMAA costs for the year. Had he spread the sale across multiple years using an installment sale, he could have kept his MAGI below the first threshold each year.
The Two-Year Lookback Rule: Why Timing Is Everything
The SSA does not use your current income to determine IRMAA. It uses your MAGI from two years prior. Your 2026 IRMAA is based on your 2024 tax return. Your 2027 IRMAA will be based on your 2025 tax return. This delay means a big capital gains event today won’t hit your Medicare bill until two years from now.
This creates a planning window. If you know you’ll have a large capital gain in a given year, you can anticipate the IRMAA impact and budget for higher premiums two years later. It also means you have two years before Medicare to execute large sales — for instance, selling your home at age 63 before you enroll in Medicare at 65.
The Primary Home Sale Exclusion
When you sell your primary home, IRC Section 121 lets you exclude up to $250,000 in capital gains (single filers) or $500,000 (married filing jointly) from your taxable income. This exclusion also reduces your MAGI for IRMAA purposes. You must have owned and lived in the home for at least two of the last five years to qualify.
Any profit above the exclusion amount gets added to your MAGI. For a single filer with a $300,000 home sale profit, $250,000 is excluded and only $50,000 hits MAGI. For married couples, a $600,000 gain means only $100,000 is added. Rental properties and investment properties receive no exclusion — the entire gain counts.
Strategies to Reduce Capital Gains Impact on Medicare Premiums
Tax-Loss Harvesting
Selling investments at a loss to offset capital gains is one of the most direct ways to control MAGI. If you realize a $100,000 gain and also sell losing positions worth $60,000, your net capital gain drops to $40,000. That $60,000 reduction could be the difference between paying zero IRMAA and paying thousands. The key is to perform IRMAA projections in November of each year, before the tax year closes.
Be aware of the wash-sale rule: you cannot repurchase a “substantially identical” security within 30 days of selling it at a loss, or the IRS disallows the loss. Plan harvesting moves early enough to stay compliant.
Roth Conversions Before Medicare Age
Converting traditional IRA money to a Roth IRA increases your MAGI in the year of conversion. But once funds are in a Roth, all future withdrawals are tax-free and do not count toward MAGI. The ideal time for Roth conversions is during the “gap years” between retirement and when Social Security and RMDs begin — typically ages 62 to 72.
By shrinking your traditional IRA now, you prevent massive Required Minimum Distributions later that would lock you into the highest IRMAA tiers for the rest of your life. The short-term IRMAA hit is worth the long-term savings.
Qualified Charitable Distributions (QCDs)
If you’re 70½ or older, you can direct up to $111,000 (the 2026 inflation-adjusted limit) from your IRA straight to a qualified charity. Unlike a normal charitable deduction, a QCD is excluded from MAGI entirely. It never touches your tax return. This makes QCDs one of the most powerful tools for keeping MAGI below an IRMAA cliff.
Installment Sales
Instead of selling a property or business in one year for a large lump sum, you can spread the gain over multiple years using an installment sale. This keeps each year’s capital gains smaller and may keep your MAGI under the first IRMAA threshold. James from Scenario 3 could have spread his $300,000 gain over five years ($60,000/year), potentially avoiding all IRMAA surcharges.
Income Timing and Bunching
Because IRMAA uses a cliff structure, sometimes it makes sense to “bunch” income into one year and keep the other years clean. If you know you’ll exceed the first IRMAA threshold in 2024 because of a home sale, you might also do your Roth conversion that same year — taking one large IRMAA hit instead of spreading surcharges across two years.
How to Appeal an IRMAA Surcharge Using Form SSA-44
If a capital gains event was a one-time occurrence linked to a life-changing event, you may be able to get your IRMAA reduced or eliminated. The SSA recognizes these qualifying events:
- Marriage or divorce
- Death of a spouse
- Work stoppage (retirement or job loss)
- Work reduction
- Loss of income-producing property (due to disaster or other event beyond your control)
- Loss of pension income
- Employer settlement payment
Step-by-Step Appeal Process
Step 1: Gather documentation of your life-changing event — such as a retirement letter, death certificate, or divorce decree. You’ll also need proof your income has dropped.
Step 2: Complete Form SSA-44, officially called “Medicare Income-Related Monthly Adjustment Amount – Life-Changing Event.” Indicate the qualifying event and provide your current-year income estimate.
Step 3: Submit Form SSA-44 along with supporting documents to your local Social Security office, or upload it through ssa.gov. You can also call SSA at (800) 772-1213.
Step 4: If approved, the adjustment typically takes effect within one to two billing cycles. You may receive a refund if you’ve already overpaid. If denied, you have 60 days to request a formal appeal.
A Capital Gains Sale Alone Is Not a Life-Changing Event
Selling stocks for a profit does not qualify as a life-changing event. The SSA will not reduce your IRMAA simply because a large capital gain was unusual or unexpected. The appeal process only works if you can tie the income spike to one of the recognized qualifying events listed above. A retiree who sold a home because of a divorce, for example, could use the divorce — not the sale itself — as the qualifying event.
Mistakes to Avoid When Managing Capital Gains and Medicare
Mistake 1: Ignoring the two-year lookback. Many retirees sell assets without realizing the IRMAA impact won’t surface for two years. By then, there’s nothing to fix. Plan capital gains events at least two years in advance of when you’d like lower premiums.
Mistake 2: Forgetting that municipal bond interest counts. Retirees often load up on tax-free municipal bonds, assuming that income won’t affect Medicare. It will. Tax-exempt interest is added back to your AGI for IRMAA purposes.
Mistake 3: Doing large Roth conversions without calculating IRMAA. Converting $200,000 in one year can push a single filer into a high IRMAA tier. Spreading conversions over several years prevents a single spike.
Mistake 4: Not harvesting tax losses before year-end. If you’re hovering near an IRMAA cliff in November, selling a losing investment to offset gains can save thousands in premiums.
Mistake 5: Assuming IRMAA is permanent. IRMAA is recalculated every year based on the prior two-year lookback. One bad year does not lock you in forever. Plan to manage your MAGI in the following year to drop back down.
Do’s and Don’ts for Capital Gains and Medicare
| Do ✅ | Don’t ❌ |
|---|---|
| Do run IRMAA projections every November before year-end | Don’t sell large assets without calculating the two-year IRMAA effect |
| Do use tax-loss harvesting to offset gains | Don’t assume tax-free bond income is invisible to Medicare |
| Do time home sales before age 63 when possible | Don’t do a massive Roth conversion in a single year near an IRMAA cliff |
| Do use installment sales to spread gains across years | Don’t ignore the Section 121 home sale exclusion — it reduces MAGI |
| Do consider QCDs after age 70½ to reduce MAGI | Don’t file Form SSA-44 for a capital gains event alone — it won’t qualify |
| Do appeal with Form SSA-44 if a life-changing event caused the spike | Don’t assume IRMAA surcharges are permanent — they reset each year |
Pros and Cons of Realizing Capital Gains in Retirement
| Pros ✅ | Cons ❌ |
|---|---|
| Generates cash for living expenses, healthcare, or reinvestment | Increases MAGI and can trigger IRMAA surcharges two years later |
| Long-term gains receive preferential federal tax rates (0%, 15%, or 20%) | Even a $1 overshoot of an IRMAA cliff triggers the full surcharge for the year |
| Home sale exclusion ($250K/$500K) shields a large portion of profit | Rental properties and investment assets receive no exclusion |
| Losses can offset gains, creating tax-planning flexibility | Wash-sale rule limits how quickly you can repurchase sold securities |
| One-time events drop off IRMAA after the two-year window passes | The two-year lag means you can’t fix IRMAA once the lookback year is locked in |
How Capital Gains Affect Medicare Part D Costs
IRMAA surcharges are not limited to Part B. Part D prescription drug coverage carries its own set of IRMAA surcharges using the same income brackets and the same two-year lookback rule. The Part D IRMAA must be paid directly to Medicare, not to your drug plan or employer.
In 2026, Part D surcharges range from $14.50 to $91.00 per month per person. For a married couple both on Medicare at the highest bracket, that’s an extra $2,184 per year in Part D costs alone. These surcharges apply whether you have a standalone Part D plan or a Medicare Advantage plan that includes drug coverage.
Medicare Advantage Plans Are Not Exempt
Some retirees believe switching to a Medicare Advantage plan shields them from IRMAA. It does not. The IRMAA surcharge applies to all Medicare beneficiaries whose income exceeds the thresholds, regardless of whether they have Original Medicare or a Medicare Advantage plan. The surcharge is added on top of whatever your plan charges.
How IRMAA Payments Actually Work
Your Part B IRMAA surcharge is deducted automatically from your Social Security check each month. If you haven’t started Social Security yet — or your check isn’t large enough — you’ll receive a bill from the Centers for Medicare & Medicaid Services (CMS).
Part D IRMAA is handled separately. Medicare sends you a monthly bill, and you can pay through your MyMedicare account online, through your bank’s bill pay, through Medicare Easy Pay, or by mailing payment to the Medicare Premium Collection Center. Failing to pay can result in penalties, interest charges, and potential disruption of coverage.
Key Entities and How They Interact
Social Security Administration (SSA): Determines your IRMAA bracket each year using IRS data from two years prior. Processes Form SSA-44 appeals.
Internal Revenue Service (IRS): Provides your tax return data to the SSA. Your MAGI comes from Form 1040, Lines 11 and 2a.
Centers for Medicare & Medicaid Services (CMS): Administers Medicare benefits and bills you for unpaid IRMAA amounts not covered by Social Security deductions.
These three agencies work in a chain: the IRS shares your income data → the SSA calculates your IRMAA → CMS applies the surcharge to your Medicare premiums. Understanding this chain helps you plan strategically, because the only variable you control is your MAGI on your IRS return.
FAQs
Do capital gains count as income for Medicare premiums?
Yes. Both short-term and long-term capital gains are included in your MAGI, which Medicare uses to calculate IRMAA surcharges on Part B and Part D premiums.
Does the home sale exclusion protect me from IRMAA?
Yes, partially. The first $250,000 (single) or $500,000 (joint) in profit is excluded from MAGI. Any gain above those amounts counts toward IRMAA.
Can I appeal IRMAA caused by a one-time capital gain?
No. A capital gains event alone does not qualify. You must tie the income change to a recognized life-changing event like retirement, divorce, or death of a spouse using Form SSA-44.
Does selling crypto count toward IRMAA?
Yes. Cryptocurrency gains are treated as capital gains by the IRS and are included in your AGI, which feeds into the MAGI calculation for IRMAA.
Are Roth IRA withdrawals included in MAGI for IRMAA?
No. Qualified Roth IRA withdrawals are not included in MAGI, making Roth accounts one of the best tools for avoiding IRMAA surcharges in retirement.
Does IRMAA affect both spouses on Medicare?
Yes. Each spouse pays their own IRMAA surcharge based on the couple’s joint MAGI. A married couple can pay double the surcharge amounts shown in the bracket tables.
Can tax-loss harvesting reduce my IRMAA?
Yes. Realized investment losses offset capital gains, lowering your net MAGI. This can keep you below an IRMAA threshold or move you to a lower bracket.
Is IRMAA a one-time charge or recurring?
No, it is not one-time. IRMAA is recalculated annually based on your MAGI from two years prior. If your income drops, the surcharge can decrease or disappear the following year.
Do Required Minimum Distributions count toward IRMAA?
Yes. RMDs from traditional IRAs and 401(k)s are taxable income included in MAGI. Large RMDs combined with capital gains can push retirees into high IRMAA brackets.
Can I deduct IRMAA surcharges on my taxes?
No. IRMAA surcharges are considered Medicare premiums and are not directly deductible. However, total medical expenses exceeding 7.5% of AGI may be deductible if you itemize.
Related reading
- Do Capital Gains Affect Medicare Costs? (w/Examples) + FAQs
- Do High Earners Pay More for Medicare? (w/Examples) + FAQs
- Does Capital Gains Affect Medicare Part B? (w/Examples) + FAQs
- Does IRMAA Apply to Medicare Part D? (w/Examples) + FAQs
- Does Selling Your Home Trigger the 3.8% NIIT? (w/Examples) + FAQs
- Does the 3.8% NIIT Stack on Top of Capital Gains Rates? (w/Examples) + FAQs
- Is Nationwide Long-Term Care Insurance Worth It? (w/Examples) + FAQs