Planning

Capital gains and IRMAA

Capital gains count toward MAGI in full, even when they are taxed at a 0% long-term rate, so a large sale can push you into an IRMAA tier two years later. Gains you realize on purpose can be sized to your headroom, losses can offset them, and year-end fund distributions need to be in your estimate before you act.

Why a 0% tax gain can still cost you

Long-term capital gains have their own tax brackets, and for retirees with modest taxable income part or all of a gain may be taxed at 0%. That can make selling appreciated investments look free. For IRMAA it is not. MAGI starts from adjusted gross income, and adjusted gross income includes every dollar of capital gain, whatever rate it is taxed at. A gain taxed at 0% can still be the dollar that crosses a cliff.

The reverse is also true. Qualified dividends and long-term gains are taxed gently, but they sit in MAGI right next to wages and IRA withdrawals. When you plan a sale, look at two numbers: your tax bracket and your IRMAA headroom.

How much gain fits under the next cliff

Gain harvesting means selling winners on purpose to reset their cost basis, often in a low-income year. The useful limit for a Medicare enrollee is the headroom to the top of the current tier. The table uses the 2026 brackets.

Capital gain you can realize without changing IRMAA tier (2026 brackets)
Filing statusMAGI before the saleCurrent tierGain that fitsCost of crossing
Individual$90,000Standard$19,000$1,148 / yr
Individual$125,000Tier 1$12,000$1,736 / yr
Individual$160,000Tier 2$11,000$1,735 / yr
Joint$180,000Standard$38,000$2,297 / yr
Joint$250,000Tier 1$24,000$3,473 / yr
Joint$320,000Tier 2$22,000$3,470 / yr

The joint costs assume both spouses are on Medicare. "Gain that fits" is the total of all extra income for the year, so if you also plan a Roth conversion, the two share the same room. The Roth headroom finder takes capital gains into account.

A worked example

Frank and Diane file jointly, are both on Medicare, and expect $180,000 of MAGI in 2026. They hold a stock fund with $60,000 of unrealized gain that they want to sell to diversify. Selling all of it would bring MAGI to $240,000, into joint tier one, raising their 2028 premiums by $2,296.80. Selling $38,000 of gain in December 2026 and the remaining $22,000 in January 2027 keeps 2026 at the edge of the standard tier and leaves plenty of room in 2027. The sale is the same; only the timing changed.

Watch out for fund distributions

Mutual funds must pass realized gains to shareholders, usually in November or December. A large distribution counts as a capital gain for you even if you reinvest it and never sold a share. It is the most common cause of a retiree missing an IRMAA limit by a few hundred dollars. Before you do any year-end conversion or sale:

Using losses

Capital losses offset capital gains dollar for dollar, and up to $3,000 of net loss a year can offset other income. Unused losses carry forward indefinitely. Selling a losing position in the same year as a large gain lowers MAGI as well as tax. Be aware of the wash-sale rule: buying the same or a substantially identical investment within 30 days before or after the sale disallows the loss.

Charitable giving can help too. Donating appreciated shares directly to a charity, instead of selling them, keeps the gain out of your income entirely. It does not create a deduction that lowers MAGI, but it avoids adding the gain in the first place.

Inherited and gifted assets

Assets you inherit usually receive a step-up in basis to their value at the date of death, which erases the gain that built up during the original owner's life. Selling an inherited stock soon after inheriting it often creates little or no gain and little IRMAA effect. Gifts during life work differently: the recipient takes over the giver's basis, so the full gain shows up when they sell.

Add a planned sale to your income and see how much room is left.

Open the headroom finder

Frequently asked questions

Do long-term capital gains count for IRMAA?
Yes. They are part of adjusted gross income and therefore of MAGI, even when the tax rate on them is 0%.
Do reinvested fund distributions count?
Yes. Capital gain distributions are income in the year paid, whether you take them in cash or reinvest them.
Can capital losses lower my IRMAA?
Yes. Losses offset gains in full and up to $3,000 of other income each year, which lowers MAGI.
Is a big gain a reason to file Form SSA-44?
No. Gains you chose to realize are not a life-changing event, so the higher premium stands for that year.

Sources

Related guides