Skip to main content
$
← All Articles
Net Investment Income Tax IRMAA Stacking True Marginal Cost Retirees

Net Investment Income Tax IRMAA Stacking True Marginal Cost Retirees

irmaa niit stacking effect retirees3.8 percent medicare surtax thresholdinvestment income true marginal costhow niit increases irmaa premiumsreduce irmaa niit investment income
13 min readJuwon Lee
Share:
Disclosure: This article may contain affiliate links. We may earn a commission at no extra cost to you. Learn more.
Key Takeaway
Retirees withdrawing from taxable accounts face a hidden tax stack where the net investment income tax irmaa surcharge and NIIT combine to push true marginal rates above 50%. Understanding this stacking effect is critical for distribution planning to avoid unexpected Medicare penalties and tax bills. Updated for 2026.

How NIIT and IRMAA Stack on the Same Income Dollar

The Net Investment Income Tax (NIIT) and Income-Related Monthly Adjustment Amount (IRMAA) are two separate levies that both use Modified Adjusted Gross Income (MAGI) as their trigger, creating a stacking effect where the same investment income dollar can be taxed twice — once by the IRS at 3.8 percent and again through higher Medicare Part B and Part D premiums. For retirees with taxable investment accounts, understanding how net investment income tax irmaa stacking works is essential to avoid marginal rates above 10 percent on what should be low-taxed capital gains and dividends.

The 3.8 percent Net Investment Income Tax applies when a taxpayer's MAGI exceeds $200,000 for single filers or $250,000 for married filing jointly, using the lesser of net investment income or the amount by which MAGI exceeds the threshold. The NIIT is 3.8% of that lesser amount.1 IRMAA uses the same MAGI figure from two years prior to set Medicare Part B and Part D premiums, with 2025 brackets starting at $206,000 for single filers and surcharges ranging from $74.00 to $443.90 per month.2

Consider a retiree with $180,000 in Social Security benefits, pension income, and required minimum distributions, plus $50,000 in capital gains from a taxable brokerage account. That $50,000 in investment income pushes MAGI from $180,000 to $230,000.1 The NIIT applies 3.8 percent to the full $30,000 above the $200,000 single threshold — a $1,140 tax. Simultaneously, that same $50,000 pushes MAGI into the first IRMAA bracket, adding $74.00 per month ($888 per year) to Part B premiums.2 The combined marginal cost on that $50,000 is $2,028, or 4.06 percent — before any federal income tax on the gains themselves. Note: The NIIT applies to the lesser of net investment income ($50,000) or the MAGI excess over the threshold ($30,000), so the NIIT is 3.8% × $30,000 = $1,140.

How IRMAA and Net Investment Income Tax Stack for Retirees

The stacking effect compounds when retirees have multiple income streams that all flow into MAGI. Social Security benefits become taxable at the 50 percent level when MAGI exceeds $25,000 for single filers or $32,000 for married filing jointly, and at the 85 percent level at higher thresholds.3 This means a dollar of investment income can trigger three separate tax events: federal income tax on the gain, NIIT on the gain, and increased taxation of Social Security benefits — all while simultaneously pushing the taxpayer into a higher IRMAA bracket.

For a married couple filing jointly with $160,000 in combined Social Security and pension income, a $100,000 IRA withdrawal creates a MAGI of approximately $245,000 (after the Social Security taxation formula). The NIIT threshold for married filing jointly is $250,000, so the couple stays just under the 3.8 percent surtax. But suppose they take an additional distribution to cover a home repair, pushing MAGI to roughly $265,000. The NIIT applies 3.8 percent to the amount above $250,000 — a $570 tax.4 The combined marginal cost of that withdrawal is roughly $4,134, or about 20.7 percent.

Calculating Your True Marginal Tax Rate Above $200,000 AGI

The true marginal rate on investment income above the NIIT and IRMAA thresholds combines federal income tax brackets, the 3.8 percent NIIT, the IRMAA surcharge, and the increased taxation of Social Security benefits. For a single filer in the 24 percent federal bracket, the calculation looks like this:

Component Rate or Cost
Federal income tax (24% bracket) 24.0%
Net Investment Income Tax 3.8%
IRMAA surcharge (first bracket) $888/year
Social Security benefit taxation increase 0-85% of benefits become taxable

The IRMAA surcharge is a fixed dollar amount per bracket, not a percentage, so its effective rate depends on how much income triggered it. For a single filer whose MAGI exceeds the first IRMAA threshold by, for example, $10,000, the $888 annual surcharge represents an additional 8.9 percent on that income. Combined with the 24 percent federal rate and 3.8 percent NIIT, the marginal rate on that $10,000 is 36.7 percent.

For a single filer in the 32 percent federal bracket whose MAGI exceeds the second IRMAA threshold by, for example, $15,000, the $2,000 annual surcharge adds 13.3 percent. The combined rate becomes 32 percent plus 3.8 percent plus 13.3 percent, or 49.1 percent — nearly half of every dollar withdrawn above that threshold goes to taxes and premium surcharges.

The Two-Year Lookback Trap: When Capital Gains Trigger IRMAA

IRMAA uses MAGI from two tax years prior to determine current Medicare premiums. A retiree who sells a business, realizes a large capital gain, or executes a Roth conversion in 2024 will see that income reflected in their 2026 Part B and Part D premiums. This two-year lag creates a trap: the retiree may have spent or reinvested the proceeds by the time the IRMAA surcharge arrives.

Suppose a retiree sells a rental property in 2024, realizing a $150,000 capital gain that pushes MAGI to $350,000 for that year. In 2026, Medicare premiums will be based on that $350,000 MAGI, placing the retiree in the highest IRMAA bracket — $443.90 per month for Part B plus $86.80 per month for Part D, totaling $530.70 per month or $6,368.40 per year.2 The NIIT also applies: 3.8 percent on the $150,000 above the $200,000 threshold, or $5,700. The combined NIIT and IRMAA cost of that one-time gain is $12,068.40. Note: The NIIT is 3.8% × $150,000 = $5,700. The IRMAA surcharge is $530.70 per month × 12 = $6,368.40. Total = $12,068.40.3

The two-year lookback also means that a retiree who retires mid-year and has a partial year of high earned income will face IRMAA surcharges for two years after retirement. An appeal using IRS Form SSA-44 can reduce the surcharge if the retiree experienced a life-changing event such as retirement, divorce, or death of a spouse, but the appeal must be filed within 60 days of receiving the IRMAA determination notice.4

Strategies to Manage MAGI Before the IRMAA Cliff

Managing MAGI requires a multi-year approach that accounts for the two-year lookback and the interaction between NIIT and IRMAA thresholds. The first strategy is to project MAGI for the current year and the next two years, using the prior year's tax return as a baseline. Retirees should calculate the distance between their projected MAGI and the nearest IRMAA bracket threshold, then plan withdrawals to stay below that threshold or to cross it deliberately with full awareness of the cost.

A second strategy is to use tax-loss harvesting in taxable brokerage accounts to offset capital gains. If a retiree has unrealized losses in their portfolio, selling those positions before realizing gains can reduce net investment income and keep MAGI below the NIIT and IRMAA thresholds. The IRS allows capital losses to offset capital gains plus up to $3,000 of ordinary income per year1, with unused losses carried forward indefinitely.

A third strategy is to time large withdrawals across multiple tax years rather than concentrating them in a single year. For example, a retiree who needs $100,000 for a home renovation could take $50,000 in December and $50,000 in January, splitting the income across two tax years. This keeps each year's MAGI lower and may avoid crossing an IRMAA bracket threshold in either year.

Coordinating Roth Conversions with NIIT and IRMAA Brackets

Roth conversions increase MAGI in the year of conversion, which can trigger both NIIT and IRMAA surcharges. However, a Roth conversion done in a year when MAGI is otherwise low — for example, between retirement and the start of RMDs at age 73 — can fill the lower tax brackets without crossing the NIIT or IRMAA thresholds.

The optimal Roth conversion strategy involves converting enough to use the lower federal tax brackets but stopping before MAGI reaches the NIIT threshold of $200,000 for single filers or $250,000 for married filing jointly. For example, a single retiree with Social Security and pension income of $60,000 who converts $130,000 from a traditional IRA would bring MAGI to $190,000 — below the NIIT threshold and below the first IRMAA bracket of $206,0001. The conversion is taxed at the 22 percent and 24 percent federal rates, but no NIIT or IRMAA applies.

Retirees should also consider the two-year lookback when planning Roth conversions. A conversion done in 2025 will affect 2027 Medicare premiums. If the retiree plans to start Medicare in 2027, the conversion year's MAGI will set their initial premium tier. Converting in a year when MAGI is otherwise low can lock in a lower premium tier for the first two years of Medicare coverage.

How Social Security Timing Affects Your IRMAA Surcharges

Delaying Social Security benefits increases the monthly benefit amount by approximately 8 percent per year between full retirement age and age 70, but it also means the retiree has fewer years of lower MAGI before RMDs begin at age 73. A retiree who delays Social Security to age 70 and has a traditional IRA will face a period from age 70 to 73 when both Social Security income and the ability to do low-tax Roth conversions are available.

The taxation of Social Security benefits adds another layer to the MAGI calculation. For a single filer, up to 50 percent of benefits become taxable when MAGI exceeds $25,000, and up to 85 percent when MAGI exceeds $34,000.3 For married filing jointly, the thresholds are $32,000 and $44,000. These thresholds are not indexed for inflation, so more retirees become subject to Social Security benefit taxation each year.

A retiree who starts Social Security at age 62 receives lower monthly benefits but has 11 years of lower MAGI before RMDs begin. This creates a wider window for Roth conversions at lower tax rates. The trade-off between higher lifetime benefits from delaying and lower tax costs from starting early depends on the retiree's account balances, expected longevity, and the size of their traditional IRA relative to their Social Security benefit.

Using QCDs and Donor-Advised Funds to Lower Your MAGI

Qualified Charitable Distributions allow IRA owners age 70½ or older to transfer up to $108,000 per year directly from their IRA to a qualified charity1. The QCD amount is excluded from taxable income, which means it does not count toward MAGI for NIIT or IRMAA purposes. For a retiree who must take RMDs but wants to avoid pushing MAGI above the NIIT or IRMAA thresholds, QCDs are the most effective tool available.

Suppose a retiree has a $50,000 RMD requirement and wants to donate $20,000 to charity. Taking the full $50,000 as a taxable distribution and then writing a check to the charity creates $50,000 of MAGI. Using a QCD for the $20,000 donation reduces the taxable distribution to $30,000, lowering MAGI by $20,0002. If that $20,000 would have pushed MAGI above the NIIT threshold, the QCD saves 3.8 percent on the full $20,000 plus the IRMAA surcharge on the bracket that was avoided.

Donor-Advised Funds can also be used to bunch charitable contributions into a single tax year. A retiree who contributes, for example, $50,000 to a DAF in one year receives the full charitable deduction in that year, which can offset other income and lower MAGI. The DAF then distributes the funds to charities over multiple years. This strategy works best when the retiree has a high-income year — for instance, from a large capital gain or Roth conversion — and wants to offset that income with a concentrated charitable deduction.

Your Next Step

Pull your most recent tax return and calculate your MAGI for the current year. Compare that number to the NIIT threshold of $200,000 (single) or $250,000 (married filing jointly) and the nearest IRMAA bracket. If you are within $20,000 of either threshold, map out your expected income for the next two years — including RMDs, capital gains, and Roth conversions — and identify which withdrawals or timing changes could keep you below the line. For retirees with traditional IRAs and charitable intentions, set up a QCD instruction with your IRA custodian before year-end to reduce MAGI while meeting your giving goals.

At Smart Money After 60, we build these calculations into every retirement distribution plan we review — because the gap between what you think you're paying in taxes and what you're actually paying can be enormous.

Footnotes

  1. https://www.irs.gov/businesses/small-businesses-self-employed/net-investment-income-tax 2 3 4 5 6

  2. https://www.healthline.com/health/medicare/irmaa-brackets 2 3 4 5

  3. https://www.irs.gov/newsroom/understanding-taxes-on-social-security-benefits 2 3

  4. https://www.medicare.gov/about-medicare/financial-considerations/medical-income-based-monthly-adjusted-amount-irmaa 2 3

J

Juwon Lee

Former CFO of The Princeton Review ($27M turnaround, ~$300M exit). Former investment banker at Jefferies ($4B+ deals). Kellogg MBA in Finance. Founder of Margin Kinetics, helping individuals and families make smarter financial decisions after 60.

About our editorial team →

Frequently Asked Questions

What is the NIIT threshold for 2025?
The Net Investment Income Tax applies when MAGI exceeds $200,000 for single filers and $250,000 for married filing jointly, using the lesser of net investment income or the MAGI excess over the threshold. These thresholds are not indexed for inflation, so more taxpayers become subject to the tax each year as their incomes rise with cost-of-living adjustments.
How do I appeal an IRMAA surcharge?
File IRS Form SSA-44 within 60 days of receiving the IRMAA determination notice, citing a life-changing event such as retirement, divorce, death of a spouse, or loss of income-producing property. The Social Security Administration will review the appeal and may reduce the surcharge based on the new, lower income estimate for the current year.
Can Roth conversions trigger IRMAA?
Yes, because Roth conversions increase MAGI in the year of conversion, and IRMAA uses MAGI from two years prior to set premiums. A Roth conversion that pushes MAGI above an IRMAA threshold will result in higher Part B and Part D premiums two years later. Retirees should project the IRMAA impact before executing a conversion.
What is the maximum IRMAA surcharge for 2025?
The highest IRMAA bracket for 2025 adds $443.90 per month for Part B and $86.80 per month for Part D, totaling $530.70 per month or $6,368.40 per year for a single filer with MAGI above $500,000. For married filing jointly, the highest bracket applies above $750,000.
How do QCDs affect NIIT and IRMAA?
QCDs reduce MAGI because the distribution amount is excluded from taxable income. Lower MAGI means the retiree is less likely to exceed the NIIT threshold or cross an IRMAA bracket. QCDs are available starting at age 70½, before RMDs begin at age 73, allowing early planning for charitable giving.

Related Articles

Disclaimer: This article is for educational purposes only and does not constitute financial advice. Consult a qualified professional before making financial decisions. Full disclaimer.