Capital Gains and IRMAA

Quick answer: Taxable capital gains can increase Medicare MAGI because realized gains are generally included in AGI.

Selling appreciated stock, mutual funds, real estate, or a business interest can create a one-year income spike that later shows up in Medicare premiums.

Estimate capital gains IRMAA impact
Planning documents for a taxable capital gain and Medicare premium estimate

What counts for IRMAA?

For IRMAA, the important number is the taxable gain that flows into AGI, not the total sale price. A $200,000 stock sale with a $40,000 taxable gain is very different from a $200,000 gain.

Long-term capital gains may receive favorable income tax rates, but taxable gains can still increase Medicare MAGI.

Common surprise: A gain can be taxable at a lower federal rate and still push Medicare premiums into a higher IRMAA bracket.

Planning checklist before realizing gains

  • Estimate baseline Medicare MAGI before the sale.
  • Separate sale proceeds from taxable gain.
  • Check whether loss harvesting or installment timing changes the MAGI result.
  • Review the two-year lookback before assuming the premium impact is immediate.

Home sales, mutual funds, and year-end surprises

A home sale can be different from a stock sale because some gain may be excluded when the sale meets the federal home-sale rules. But the excluded amount is not the same as unlimited protection. If a sale creates taxable gain after basis, improvements, selling costs, and any available exclusion, that taxable gain can still raise AGI and therefore Medicare MAGI.

Mutual fund capital gain distributions can surprise retirees because the fund can distribute taxable gains even if the investor did not sell shares. If the distribution appears on the tax return, it may be part of the AGI that Medicare later reviews. This is why year-end brokerage and mutual fund estimates can matter for people near an IRMAA threshold.

What to compare before selling

Start with the taxable gain estimate, not the account value or gross sale price. Then add other income events planned for the same tax year: Roth conversions, IRA withdrawals, RMDs, taxable Social Security, pension income, and tax-exempt interest. IRMAA is based on the combined Medicare MAGI picture, so one gain can be harmless in isolation but expensive when stacked on other income.

If the sale is optional, compare a single-year sale with a staged sale. Realizing the full gain in one year may simplify the transaction, but it can also fill several IRMAA brackets at once. A smaller sale over more than one tax year may keep Medicare MAGI below a threshold, depending on market risk, taxes, and the reason you need the cash.

Run the capital gains calculator

Advertisement

Education sponsor placement for portfolio planning, tax-loss harvesting, or retirement income education.

Sponsor this placement

Capital gains IRMAA FAQ

Do capital gains count toward IRMAA?
Yes. Taxable capital gains can increase Medicare MAGI because realized gains are generally included in AGI.
Does the whole sale price count for IRMAA?
Usually no. The important IRMAA number is the taxable gain that flows into AGI, not the total sale proceeds.
Can a home sale affect IRMAA?
Yes, if the sale creates taxable gain after any available home-sale exclusion or basis adjustment.

Official sources

For capital gain basics, review IRS Topic No. 409, Capital Gains and Losses. For home-sale questions, review the IRS capital gains, losses, and sale of home FAQ. For the IRMAA MAGI formula, review SSA POMS HI 01101.010.

Get the capital gains checklist