Do Capital Gains Count Toward IRMAA?

Counts

Yes. Your net capital gain for the year is part of your adjusted gross income, so it raises the MAGI Medicare uses for IRMAA, even when the gain is taxed at the 0% or 15% rate.

On your return: Form 1040, line 7a on the 2025 form (line 7 on 2024 and earlier returns), net of losses

Are capital gains included in MAGI?

Yes. When you sell stock, a fund or other investment for more than your basis (generally what you paid, adjusted for things like reinvested dividends), the gain is reported on Form 8949 and Schedule D, and the net result goes on Form 1040, line 7a (line 7 on 2024 and earlier returns). That line is part of total income, so it flows straight into adjusted gross income, and MAGI for IRMAA starts from AGI.

The low tax rate on long-term gains does not change this. A gain taxed at 0% still sits on line 7a and still counts in full. Mutual fund capital gain distributions count too, even when you reinvest them, because they are reported on line 7a (or on Schedule D) like any other gain.

Only the net gain counts, and losses help

Medicare sees your net figure, not each sale. Losses you realize in the same year offset gains dollar for dollar. If losses are larger than gains, up to $3,000 of the net loss ($1,500 if married filing separately) can reduce your other income, and the rest carries over to later years, where it offsets future gains first.

Losses on a wash sale do not count that year. A wash sale is selling at a loss and buying back the same or a nearly identical investment within 30 days: if you buy substantially identical stock or securities within 30 days before or after selling at a loss, the loss is disallowed for that year, so it will not lower your MAGI. The disallowed loss is added to the cost basis of the new shares, so it is postponed rather than lost.

A big one-time gain is not a life-changing event

Social Security's rules list capital gains from the sale of property as a non-qualifying event: an event SSA does not accept as a reason to use a newer tax year. You cannot ask SSA to ignore the year of a large sale on the grounds that it was a one-off. The surcharge simply applies for the premium year that uses that tax return, and it drops off when a lower-income year replaces it.

Example

Using the 2027 brackets, which are set from 2025 tax returns, the first IRMAA threshold for a single filer is $112,000. Say your other 2025 income comes to $92,000 and you sell stock with a $36,000 gain. MAGI becomes $128,000, which means IRMAA tier 1 of 5, about $1,189.20 a year in Part B and Part D surcharges per person on Medicare in 2027. If you also sell $17,000 of losing positions that year, the net gain drops to $19,000 and MAGI to $111,000: $1,000 under the line and no IRMAA at all (the standard premium).

What you can do

Worksheet IC-1 · Before and after

IRMAA income comparison

Compare one person's selected Part B and Part D IRMAA surcharges before and after an estimated change in annual MAGI.

1 · Choose the years

Medicare usually uses income from two years earlier. For current planning, a 2026 income event would ordinarily affect 2028 premiums.

2028 figures are projected estimates. Official amounts have not been released.

2 · Filing status
3 · Enter the scenario

Exclude the proposed addition from this amount. Use your estimated annual IRMAA MAGI, in whole dollars.

Enter $0 or more in whole dollars. This is the estimated change in MAGI, not necessarily the gross transaction amount.

Gross Roth conversions, withdrawals, and sale proceeds can differ from added MAGI because of basis and other tax rules. Your entry must already include your estimate of taxable Social Security and any other tax-return effects. This worksheet does not calculate those effects.
4 · Select coverage for one person

Full Part B means standard Medicare Part B coverage. The immunosuppressive-drug-only benefit uses a different table and is outside this comparison.

If you collect Social Security, this income can also make more of your benefit taxable, which raises your MAGI further. See how Social Security counts.

Your before-and-after comparison will appear hereEnter both MAGI amounts, then choose Compare income scenario.

Did a life event lower your income?

You may be able to reduce your surcharge by appealing with Form SSA-44.

See if you can appeal

Common questions

Does tax-loss harvesting lower IRMAA?

It can. Realized losses offset your realized gains dollar for dollar, which lowers line 7a and your MAGI. Beyond your gains, only $3,000 of net loss a year ($1,500 married filing separately) offsets other income; the rest carries forward. A loss is disallowed if you buy substantially identical securities within 30 days before or after the sale.

Do installment sale payments count toward IRMAA?

Yes, a portion of each one. With an installment sale you report part of the gain in each year you receive a payment, plus any interest on the note, so that year's gain and interest both count toward MAGI. Spreading payments can keep each year lower than one lump sum. You cannot use the installment method for stock or securities traded on an established market: that gain is all reported in the year of sale.

Does a capital loss carryover reduce my MAGI?

Yes. A carryover is treated as if you had the loss in the new year. It offsets that year's gains first, then up to $3,000 of other income ($1,500 married filing separately).

Do capital gains inside an IRA or 401(k) count?

No. Gains inside a retirement account are not reported on your return when they happen. What counts is the taxable amount you later withdraw, which shows up on line 4b or 5b instead of line 7a.

Related

Sources