Capital Gains and Medicare IRMAA: How Investment Sales Affect Your Premiums
Selling appreciated stock or real estate can trigger Medicare surcharges — not this year, but two years later, when IRMAA hits based on what you earned in the year of the sale. Long-term capital gains taxed at 0% still count fully toward IRMAA MAGI. A retiree with $90,000 in base income who realizes $60,000 in gains can go from paying nothing extra to $2,884/year in additional Medicare premiums.
How capital gains enter IRMAA MAGI
IRMAA MAGI = your AGI (Form 1040, Line 11) plus tax-exempt interest (Form 1040, Line 2a). Capital gains appear in AGI in full — both net short-term gains (Schedule D, line 7) and net long-term gains (Schedule D, line 15) flow through to Form 1040 Line 7. There is no adjustment for the preferential 0% or 15% tax rate. A $40,000 long-term gain is $40,000 of MAGI regardless of what tax rate it's taxed at.2
| Capital gain type | Counts toward IRMAA MAGI? | Notes |
|---|---|---|
| Long-term capital gain — stocks, ETFs, mutual funds held >1 year | Yes — 100% of net gain | Even at the 0% federal rate |
| Short-term capital gain — assets held ≤1 year | Yes — 100% of net gain | Taxed at ordinary income rates; also fully counted for IRMAA |
| Qualified dividends | Yes — 100% | Taxed at preferential rates but flow into AGI like ordinary dividends |
| Mutual fund year-end capital gain distributions | Yes — 100% | Distributed even if you didn't sell; you receive a 1099-DIV in box 2a |
| Home sale gain above IRC § 121 exclusion ($250K/$500K) | Yes — taxable portion only | Excluded portion doesn't appear on return at all |
| § 1250 depreciation recapture on rental sale (max 25% rate) | Yes | Ordinary income component of rental sale gain; see rental income IRMAA |
| Capital losses (net loss after gains) | Reduces MAGI | Up to $3,000 net loss can offset ordinary income; unlimited loss to offset gains |
| Return of investment principal (cost basis) | Does NOT count | Only the gain counts, not the principal you recover on sale |
The stacking problem: gains plus other retirement income
Capital gains rarely arrive in isolation. Retirees typically already have pension income, Social Security, and RMDs. Each additional dollar of capital gain stacks on top — and can push you over an IRMAA cliff that jumps your surcharge by $1,736/year per person.
Example — retiree at the cliff edge:
| Income source (2024) | IRMAA MAGI |
|---|---|
| Social Security benefits (85% taxable) | $25,500 |
| RMD from traditional IRA | $42,000 |
| Dividends (ordinary + qualified) | $18,000 |
| Subtotal (base income) | $85,500 |
| Long-term capital gain — sold ETF position | $30,000 |
| Total IRMAA MAGI | $115,500 |
| Result: Single filer crosses $109,000 threshold → IRMAA Tier 1 → +$1,148/year starting two years later. The $30,000 capital gain (possibly taxed at 0%) triggered the IRMAA surcharge. | |
The $30,000 gain in this example may have cost $0 in capital gains tax (below the $49,450 single 0%-rate threshold given taxable income). But it still crossed the IRMAA line — costing $1,148 in Medicare surcharges per year for at least two years.
2026 IRMAA brackets (set on 2024 MAGI)
These are the thresholds your 2024 capital gains flow into. 2026 surcharges are based on 2024 income.3
| 2024 MAGI — single | 2024 MAGI — married filing jointly | Added Part B + D per person/year |
|---|---|---|
| $109,000 or less | $218,000 or less | $0 |
| $109,001–$137,000 | $218,001–$274,000 | +$1,148/yr |
| $137,001–$171,000 | $274,001–$342,000 | +$2,884/yr |
| $171,001–$205,000 | $342,001–$410,000 | +$4,619/yr |
| $205,001–$500,000 | $410,001–$750,000 | +$6,354/yr |
| Above $500,000 | Above $750,000 | +$6,936/yr |
For married couples, both spouses pay their own surcharge based on the household's combined MAGI. A $60,000 capital gain that pushes a couple from $270,000 to $330,000 MAGI moves them from Tier 1 to Tier 2 — costing each spouse an additional $1,736/year, or $3,472/year combined, for two years.
Calculate your capital gain IRMAA impact
Enter your base income (before any capital gain) and the gain you're considering. The calculator shows your IRMAA tier before and after, and the annual surcharge difference.
The mutual fund distribution trap
Unlike individual stocks — where you control when you sell — actively managed mutual funds distribute capital gains to all shareholders each year in December, whether or not you sold any shares yourself. If you hold a fund in a taxable account that had strong performance, you may receive a 1099-DIV reporting thousands of dollars in long-term capital gain distributions (box 2a) that you didn't choose to trigger.
These distributions count toward IRMAA MAGI exactly as if you had sold and repurchased yourself. A high-turnover fund that distributes $20,000 in gains to you in December 2024 raises your 2026 IRMAA MAGI by $20,000 — with no action on your part.
What you can do:
- Hold actively managed funds in tax-deferred accounts (IRA, 401k) where distributions don't affect MAGI until withdrawn.
- Use index funds or ETFs in taxable accounts — these rarely distribute capital gains because they don't trade frequently.
- Review your fund manager's projected year-end distribution estimates in October/November and consider selling before record date if the distribution would push you over a bracket.
- Tax-loss harvest in other positions to offset unavoidable distributions.
Home sales above the IRC § 121 exclusion
The primary residence capital gain exclusion allows you to exclude up to $250,000 of gain ($500,000 for married couples) from a home sale — but only if you've owned and used the home as your primary residence for at least 2 of the last 5 years.4 The excluded gain doesn't appear on your tax return at all, and has no IRMAA impact.
Any gain above the exclusion, however, is a long-term capital gain that flows into AGI and IRMAA MAGI. For retirees who have lived in a home for 20–30 years in an appreciating market, the taxable portion can be substantial:
| Scenario (single filer) | Gain | After exclusion | IRMAA MAGI impact |
|---|---|---|---|
| Modest appreciation, primary home | $200,000 | $0 (under $250K limit) | $0 |
| High-appreciation market (single) | $400,000 | $150,000 taxable | +$150,000 MAGI |
| Married couple, major metro | $900,000 | $400,000 taxable | +$400,000 MAGI |
A couple with base income of $220,000 who sells a home with $400,000 in taxable gain would have total MAGI of $620,000 in that year — in the top IRMAA tier ($750,000 threshold for MFJ; this is Tier 4 at +$6,354/person). Both spouses pay the surcharge two years later. SSA-44 does not apply to an intentional sale of a home. The SSA-44 life-changing event appeal is only available for qualifying events (retirement, divorce, death of spouse, cessation of income-producing property, reduction of income from income-producing property) — not voluntary investment decisions.5
Five strategies to reduce capital gain IRMAA exposure
1. Spread large gains across multiple tax years
If you have a large appreciated position (concentrated stock, real estate, business interest), realizing the full gain in one year may push you through multiple IRMAA tiers. Spreading realizations over 2–3 years lets you control how much MAGI falls in any single look-back year. One caveat: realizing gains in the same year as a large Roth conversion, a first-year RMD, or a final working-year bonus stacks income and should generally be avoided.
2. Tax-loss harvesting to offset gains
Capital losses in a taxable account directly reduce net capital gains dollar-for-dollar before reaching MAGI. After offsetting gains, losses up to $3,000 can offset ordinary income; excess losses carry forward indefinitely. A $25,000 capital gain offset by $20,000 in harvested losses costs $5,000 of MAGI — not $25,000. Year-end portfolio reviews specifically targeting IRMAA bracket management are an underused planning lever.
3. Do NOT realize capital gains in the same year as other large income events
The year you take your first large RMD, convert a large Roth amount, or receive a final-year working bonus is not the year to also realize large gains. Each dollar of capital gain stacks on top of income that's already elevated. A gain that would be harmless in an otherwise quiet year can push you two tiers higher in a loaded year — costing $2,884–$6,354/year additional surcharges for two years.
4. Use QCDs to offset RMD income stacking
Qualified Charitable Distributions (up to $111,000/person in 2026 if you're age 70½+) remove IRA distributions from AGI entirely — they never appear on your return.6 If your base income without capital gains already pushes you near a tier cliff, QCDs can reduce that base, creating headroom for capital gains to land below the next threshold. This requires coordination: model your total MAGI before deciding how much to realize in gains versus how much IRA income to redirect via QCD.
5. Locate tax-inefficient assets in IRAs, not taxable accounts
Bonds, REITs, and dividend-paying funds generate ordinary income (and sometimes dividends) continuously in a taxable account — all of which count toward IRMAA MAGI every year. Holding these in tax-deferred accounts (IRA/401k) means distributions are deferred until withdrawal and bunched as RMDs. Growth-oriented assets like total market ETFs or index funds held in taxable accounts tend to generate minimal annual MAGI because index funds rarely distribute capital gains and dividends can be qualified. The IRMAA-conscious version of asset location is to minimize annual taxable-account MAGI from routine income, not just realized gains.
When to consider the gain anyway
Not every capital gain is avoidable — or worth avoiding. Some situations where realizing the gain makes sense even with IRMAA consequences:
- Stepping up basis on death isn't available to you; but if you're terminally ill or very elderly, heirs receive a stepped-up cost basis at death (under current law) — meaning the gain disappears. Realizing a large gain while alive may cost more in IRMAA than waiting.
- Sequence-of-returns risk sometimes makes selling appreciated assets now better than a large sequence hit later. Running the actual numbers — IRMAA surcharge plus capital gains tax vs. potential market loss — is worth doing.
- Concentrations in a single stock carry risk that may justify the IRMAA cost of diversification. Two years of surcharges is real money, but so is a 40% drawdown on 80% of your portfolio.
- Roth conversion window: if you're in a low-income year between retirement and RMDs, realizing capital gains in the same year as a Roth conversion is efficient — you're already accepting IRMAA exposure and can batch both decisions into one year rather than two.
Related guides
- What counts as IRMAA MAGI — complete breakdown of every income source
- Rental income and IRMAA — Schedule E income, depreciation recapture on sale, 1031 exchanges
- RMDs and Medicare premiums — how growing RMDs interact with capital gains in the same year
- 7 strategies to reduce IRMAA surcharges — QCDs, Roth timing, loss harvesting
- How to appeal IRMAA (SSA-44) — qualifying life events that let you use current-year income
- Roth conversions and IRMAA — how to convert without crossing a bracket cliff
Model your gain timing with a specialist
Deciding when to realize a large capital gain isn't just a tax question — it's a multi-year income modeling question that includes IRMAA brackets, RMD trajectories, Roth conversion windows, and the two-year look-back calendar. A fee-only advisor who specializes in Medicare-aware retirement income planning can run the actual scenario analysis for your numbers — not a generic bracket table.
Sources
- IRS Rev. Proc. 2025-32 — 2026 inflation-adjusted amounts. Long-term capital gains 0% rate applies to taxable income up to $49,450 (single) / $98,900 (MFJ). Gains at 0% rate still enter AGI in full; IRS has no provision reducing MAGI for preferentially-taxed gains. Verified May 2026.
- IRS Topic No. 409, Capital Gains and Losses. Capital gains reported on Schedule D flow to Form 1040 Line 7; ordinary income result included in AGI (Line 11). No MAGI adjustment for preferential rates under IRC § 1(h).
- CMS: 2026 Medicare Parts A & B Premiums and Deductibles (November 2025). IRMAA single thresholds: $109K / $137K / $171K / $205K / $500K. MFJ: $218K / $274K / $342K / $410K / $750K. Part B surcharges: $81.20 / $202.90 / $324.64 / $446.38 / $487.00 per month. Part D surcharges: $14.50 / $37.40 / $60.30 / $83.10 / $91.00 per month. Verified May 2026.
- IRC § 121 — Exclusion of gain from sale of principal residence. $250,000 exclusion for single filers, $500,000 for married filing jointly meeting 2-of-5-year ownership and use requirements. Gain above exclusion is long-term capital gain reported on Schedule D.
- SSA Form SSA-44 and Instructions. Seven qualifying life-changing events: marriage, divorce/annulment, death of spouse, work stoppage, work reduction, loss of income-producing property (not voluntary sale), reduction of income-producing property income. A voluntary home or investment sale is not a qualifying event.
- IRS Notice 2025-67: 2026 Retirement Plan Amounts — QCD limit: $111,000 per person per year (indexed per SECURE 2.0 § 307). QCDs must go directly from IRA custodian to qualified charity; they satisfy RMD but never enter AGI.
Capital gains tax rates and IRMAA brackets reflect 2026 rules per IRS Rev. Proc. 2025-32 and CMS November 2025 announcement. The IRMAA two-year look-back means 2026 premiums are based on 2024 MAGI. Consult a licensed advisor for guidance specific to your situation.
MedicareAdvisorMatch is a referral service, not a licensed advisory firm. We may receive compensation from professionals in our network.
Content is for informational purposes only and does not constitute financial, tax, legal, or investment advice.