Do Capital Gains From a Stock Sale Count Toward IRMAA? The Gain, Not the Check
Do capital gains from a stock sale count toward IRMAA? Yes, and the part that trips people up is not whether they count. It is which number counts. A $150,000 stock sale does not add $150,000 to your MAGI. A $150,000 gain does. The difference between proceeds and gain is the difference between a scare and a surcharge, and it is the first thing to get straight before you sell.
Two retirees, one sale, two different MAGIs
Picture two retirees who each sell stock for $150,000 in the same year. The first bought decades ago for $30,000, so the gain is $120,000. The second bought recently for $140,000, so the gain is $10,000. Both received the same check. Only the gain reaches adjusted gross income, and IRMAA MAGI starts with adjusted gross income plus tax exempt interest. So the first retiree adds $120,000 to MAGI and the second adds $10,000. Same sale price, wildly different Medicare premiums two years later.
Short term or long term does not change the IRMAA answer. A gain held three months and a gain held ten years both flow into AGI, and IRMAA only cares about the total that shows up on the return. The tax rate difference between short and long term gains is real for your income tax bill, but it is invisible to IRMAA. What also surprises people: losses elsewhere on the return can offset gains, within the usual capital loss rules, so the net gain is what matters, not the winning trade in isolation. Check which IRMAA tier your MAGI lands in with the calculator before you place the trade, because the tier boundaries are cliffs, not slopes. One dollar over a threshold can cost hundreds a year in surcharges.
Why the bill arrives two years late
IRMAA uses income from two years earlier. A stock sale in 2025 sets your 2027 premiums. That lag is why the surcharge feels unfair when it arrives: the money is long spent, the gain is old news, and the premium jump lands in a year when your income may be back to normal. The surcharge lasts for that premium year, then resets based on the next lookback year. A one time gain does not permanently raise your premiums. It raises them for one year, two years after the sale.
That timing creates a planning window most people waste. If you know a large sale is coming, and you know which premium year it will hit, you can sometimes split the sale across two tax years so neither year's MAGI crosses a threshold, or time the sale for a year whose lookback lands before you enroll in Medicare. Splitting a sale is not free advice for every situation. It can change your tax rate, your exposure to market moves, and your estate picture. But doing nothing and discovering the surcharge in the mailbox is the worst version of the plan.
One more distinction worth keeping. A Roth conversion also lands in MAGI, and a qualified Roth withdrawal generally does not. A QCD from an IRA, if it qualifies, is excluded from income and does not raise MAGI. So two retirees raising the same $50,000 in cash can land in different IRMAA tiers depending on which account they pulled it from. The account matters as much as the amount.
The question with no clean answer
Here is the part I cannot resolve neatly: IRMAA has a life changing event appeal process, but a one time capital gain is not a qualifying life changing event. Retirement is. Marriage, divorce, and the death of a spouse are. Selling stock at a profit is not, even when the gain is plainly a one off and your ongoing income is far lower. So a retiree who sells a business or a long held stock position in the year before Medicare can face a full year of surcharges with no appeal that fits the facts.
That gap is worth knowing before you sell, not after. If the sale is optional, timing and splitting are your tools. If the sale is forced, by a buyout or a fund closure, budget for the surcharge year as part of the sale proceeds and do not let it surprise you twice. How MAGI itself is built is covered in calculating IRMAA MAGI from your tax return, and the Roth version of this trap is in Roth conversions and IRMAA.
Frequently Asked Questions
Do capital gains from a stock sale count toward IRMAA?
Yes. Capital gains, short term and long term, are included in adjusted gross income, and IRMAA MAGI starts with AGI plus tax exempt interest.
Does IRMAA count the full sale price or just the gain?
Just the taxable gain. If you sell stock for $150,000 with a $30,000 basis, the $120,000 gain is what reaches MAGI, not the $150,000 proceeds.
How long after a stock sale does IRMAA go up?
Two years. IRMAA uses income from two years earlier, so a 2025 sale affects 2027 premiums for one premium year.
Can you appeal IRMAA for a one time capital gain?
A one time gain alone is not a qualifying life changing event for an SSA-44 appeal. Qualifying events include retirement, marriage, divorce, and death of a spouse.
Do Roth IRA withdrawals count toward IRMAA like capital gains?
Qualified Roth IRA distributions generally do not count, because they are excluded from gross income. Roth conversions do count, because the converted amount is included in income.
Find Your 2026 IRMAA Bracket
Enter your MAGI and filing status to see which IRMAA tier your income lands in.
Check My IRMAA BracketRelated reading: Calculating IRMAA MAGI, Roth Conversions and IRMAA, Selling a Home and IRMAA