Capital Gains and IRMAA: How a Sale Raises Medicare Premiums
Yes, capital gains affect IRMAA. Medicare's income-related monthly adjustment amount is based on your modified adjusted gross income (MAGI), which is your AGI plus tax-exempt interest, and a taxable capital gain is part of AGI. A single big sale can push a retired couple into the top surcharge for a year, and because Medicare looks back two years, the bill arrives two years after the sale.
This page covers how the lookback works, the 2026 brackets, why a sale does not qualify for an appeal, and how spreading the gain with an installment sale can keep premiums down.
How IRMAA is calculated
IRMAA is an extra amount added to Medicare Part B and Part D premiums for higher-income beneficiaries. The rules:
- The income measure is MAGI: AGI plus tax-exempt interest (42 U.S.C. §1395r(i)(4)(A)). This is not the same MAGI used for the 3.8% NIIT or for passive loss limits; each rule defines its own.
- Two-year lookback. Your premium for a year is based on your tax return for the year two years earlier (§1395r(i)(4)(B)(i); 20 CFR §418.1135(a)). A gain on your 2026 return sets your 2028 IRMAA.
- It is a cliff, not a slope. Going $1 over a threshold puts you in the higher bracket for the whole year.
- Each spouse pays. On a joint return both spouses on Medicare pay the surcharge.
2026 IRMAA brackets
From CMS's 2026 Part B and Part D fact sheet. Standard Part B premium: $202.90 a month.
| MAGI, joint return | MAGI, single | Part B total per month | Part D add-on per month |
|---|---|---|---|
| $218,000 or less | $109,000 or less | $202.90 | $0 |
| Over $218,000 to $274,000 | Over $109,000 to $137,000 | $284.10 | $14.50 |
| Over $274,000 to $342,000 | Over $137,000 to $171,000 | $405.80 | $37.50 |
| Over $342,000 to $410,000 | Over $171,000 to $205,000 | $527.50 | $60.40 |
| Over $410,000, under $750,000 | Over $205,000, under $500,000 | $649.20 | $83.30 |
| $750,000 or more | $500,000 or more | $689.90 | $91.00 |
The brackets are adjusted each year, so the numbers for the year your surcharge applies may be different.
Does selling a house affect IRMAA?
It depends on what kind of house and how much gain.
| Sale | Counts toward IRMAA? |
|---|---|
| Main home, gain within the §121 exclusion ($250,000 single, $500,000 joint) | No. Excluded gain is not in AGI |
| Main home, gain above the exclusion | Yes, the excess |
| Rental property or second home | Yes, all taxable gain, including depreciation recapture |
| Business or business assets | Yes |
| Stock, including stock in your own company | Yes |
A sale is not an IRMAA life-changing event
Social Security lets you ask for a lower IRMAA on Form SSA-44 after a "major life-changing event." The regulation lists seven: death of a spouse, marriage, divorce or annulment, you or your spouse stopping or cutting back work, loss of income-producing property, loss of an employer pension, and an employer settlement (20 CFR §418.1205).
The property loss item is narrow. It counts only if the loss "is not at the direction of you or your spouse (e.g., due to the sale or transfer of the property)" and is not an ordinary investment loss. The examples are disasters, arson, crop loss and fraud. Social Security will not consider events other than those listed (§418.1210).
So a voluntary sale of a rental, a business or land does not get you relief. Stopping work does qualify as an event, which matters if you retired and sold a business in the same year, but an appeal asks Social Security to use a more recent year's income, and if that year includes the gain it will not help. Plan the sale around IRMAA instead of hoping to appeal it.
Simple example: lump sum vs installment sale
Simple example. A married couple, both on Medicare, files jointly. Before the sale their MAGI is $120,000 and their taxable income is $90,000 every year. They sell a rental with a $600,000 long-term gain, all taxed at capital gain rates (no recapture, to keep it simple). We use the 2026 IRMAA table and 2026 tax brackets for every year and ignore interest on the note and state tax. Federal tax was computed with the IRC §1(h)(1) Schedule D worksheet ordering.
| Lump sum | 5-year note | 10-year note | |
|---|---|---|---|
| Gain per year | $600,000 | $120,000 | $60,000 |
| MAGI per year | $720,000 | $240,000 | $180,000 |
| IRMAA bracket | 5th | 1st | None |
| IRMAA surcharge per year, both spouses (Part B + D above standard) | $12,710 | $2,297 | $0 |
| Total IRMAA surcharge | $12,710 | $11,484 | $0 |
| Federal income tax on the gain, all years | $92,480 | $83,325 | $76,650 |
| NIIT, all years | $17,860 | $0 | $0 |
Three points stand out:
- The 5-year note barely helps IRMAA. $240,000 of MAGI is still over the $218,000 line, so the couple pays the first-tier surcharge five times, which adds up to almost the same as one top-tier year. The cliff structure punishes "slightly over" every year.
- The 10-year note clears the line. At $180,000 of MAGI they pay no IRMAA at all, and they also avoid all NIIT.
- The IRMAA saving is real but smaller than the income tax and NIIT saving. Together the 10-year schedule saves about $46,000 compared with the lump sum in this example.
The lesson: when you size a note, check where each year's MAGI lands against the IRMAA thresholds, not just the tax brackets. A term that keeps you $10,000 under a line is worth more than one that leaves you $10,000 over it.
Does capital gains affect Social Security?
Capital gains do not reduce your Social Security benefit. They can make more of it taxable. Under §86, "provisional income" (AGI before benefits, plus tax-exempt interest, plus half of benefits) above $32,000 on a joint return makes up to 50% of benefits taxable, and above $44,000 up to 85%. The single-filer thresholds are $25,000 and $34,000, and none of them are indexed for inflation. A large gain usually pushes a retiree to the 85% maximum for that year. If you are already at 85% every year, the gain does not add more.
If you are under full retirement age and still working, the earnings test counts wages and self-employment income, not investment gains, so a property sale does not reduce benefits under the earnings test.
Other ways to keep MAGI down in a sale year
- Time the closing. A sale in January instead of December moves the gain, and the IRMAA hit, a year later. It can also let you pair it with a lower-income year.
- Use losses. Released suspended passive losses and capital loss carryovers reduce AGI, and therefore IRMAA income.
- Watch Roth conversions and IRA withdrawals. Stacking a conversion onto a sale year compounds the problem.
- Know that §121 and 1031 gain do not count. Excluded or deferred gain is not in AGI.
For the income tax side of the same decision see installment sale vs lump sum and how to spread capital gains over several years. If a business sale is driving the gain, selling a business: tax implications covers the allocation issues that decide how much is ordinary income.
Where a structured installment sale fits
Some sellers want the spread without holding a buyer's note. In a structured installment sale the buyer pays in full at closing and the payment obligation is assigned to a third-party assignment company, usually funded by a fixed annuity that company owns (some programs use a funding agreement). It lets you pick a schedule designed around thresholds like IRMAA. You become an unsecured creditor of the assignment company, the schedule cannot be changed later, a commission is built into the pricing, and no IRS ruling specifically approves the structure. See structured installment sale and the installment sale guide.
Model your own schedule with the installment sale calculator, and see The Waterfall Strategy for how IRMAA fits into a full rental exit plan.
Bottom line
A capital gain raises IRMAA exactly like any other income, two years later, and selling property does not qualify as a life-changing event for an appeal. Because IRMAA is a cliff, the best defense is to plan each year's MAGI against the thresholds. Spreading the gain with an installment sale can drop a couple from the top bracket to no surcharge at all, but only if each year's slice actually lands under the line.
Questions to ask your CPA
- What will our MAGI be in the sale year and each year of the note, and which IRMAA bracket does each fall in?
- How much gain is excluded under §121, and how much is taxable?
- Do we have suspended passive losses or capital loss carryovers that reduce AGI in the sale year?
- Would a longer note or a smaller down payment keep us under the next threshold?
- Should we pause Roth conversions in the years the installment gain is reported?
Run your own numbers. Compare a cash sale, seller financing and a structured installment sale side by side, free.
Educational only, not tax, legal or investment advice. Examples are illustrative. Have your CPA or tax attorney review your facts before you act. Hans Goldstein is a licensed insurance agent (CA Insurance License #4273294) and is not a CPA or attorney. He is paid a commission only if a structured installment sale is funded; seller financing pays him nothing. Disclosures.