Modified adjusted gross income (MAGI) is your adjusted gross income (AGI), with changes required by a particular tax or benefit rule. There is no single MAGI formula.
- The number used for Roth IRA eligibility can differ from the one used for Medicare premiums or health-insurance assistance.
- To find yours, first identify which rule you are testing.
What is MAGI?
AGI is the income subtotal on your federal return after certain adjustments, such as an eligible HSA deduction. It comes before the standard or itemized deduction.
MAGI takes that subtotal and changes it for a specific purpose:
- Some rules add back income that is ordinarily tax-exempt.
- Others restore a deduction or remove income from a Roth conversion.
Your tax return provides the starting point; the relevant worksheet supplies the adjustments.
Why do Roth, NIIT, IRMAA, and ACA MAGI disagree?
Each program measures income for a different purpose, so each defines its own adjustments:
| Program | How MAGI differs from AGI |
|---|---|
| Direct Roth IRA contributions | Minus conversions, plus some deductions and exclusions |
| Net investment income tax | Often equals AGI, foreign income may adjust |
| Medicare IRMAA | Adds tax-exempt interest |
| ACA Marketplace help | Adds tax-exempt interest, excluded foreign income, nontaxable Social Security |
What does Roth IRA MAGI add back?
IRS Publication 590-A, Worksheet 2-1, starts with AGI and subtracts taxable Roth conversions and qualified-plan-to-Roth rollovers. It then adds specified items, including:
- deductible traditional IRA contributions
- student-loan interest deductions
- certain foreign-income exclusions
- excluded savings-bond interest
- excluded employer adoption benefits
For 2026, the direct Roth contribution allowance phases out at:
- $153,000 to $168,000 for single or head-of-household filers
- $242,000 to $252,000 for joint filers
- married filing separately generally uses $0 to $10,000 if you lived with your spouse during the year
The IRS 2026 retirement-limit announcement sets those ranges; compensation and annual contribution limits still apply.
A conversion can therefore increase your taxable income without using up your direct Roth contribution eligibility. It still has other tax effects. The Roth conversion income guide explains which calculations include it.
What does NIIT MAGI add back?
For many households, MAGI for the 3.8% net investment income tax equals AGI. Foreign earned-income exclusions and certain foreign investments can require adjustments; use the Form 8960 instructions if those apply.
The tax applies to the smaller of net investment income or the amount by which MAGI exceeds the threshold:
- $200,000 for single or head-of-household filers
- $250,000 for joint filers
- $125,000 for married filing separately
A Roth conversion is generally not net investment income itself. It can still raise MAGI enough to expose other investment income to NIIT. You need both numbers to calculate the tax.
What does IRMAA MAGI add back?
For Medicare premium surcharges, MAGI is AGI plus tax-exempt interest. Social Security generally uses a tax return from two years earlier: 2026 premiums usually depend on 2024 income. SSA’s MAGI policy explains the definition and lookback.
For 2026 premiums, the first surcharge generally begins above $218,000 for joint filers and $109,000 for individual filers. Married-filing-separately rules can differ.
What does ACA MAGI add back?
For Marketplace premium assistance, MAGI generally adds tax-exempt interest, excluded foreign income, and nontaxable Social Security to AGI. Household income can also include the MAGI of dependents required to file a return. The Form 8962 instructions explain the calculation.
The coverage year matters. Estimate income for the year you receive coverage, and check that year’s eligibility and repayment rules. An earlier year’s worksheet can still explain the income definition, but some of its benefit rules may no longer apply.
Why do people plan with the wrong MAGI?
The common mistake is reusing one income number for several decisions. These two examples show why the adjustments and years matter.
A conversion and Roth eligibility: A couple’s 2026 AGI is $248,000, including a $30,000 taxable Roth conversion. Assume no other MAGI adjustments.
- Roth contribution MAGI is $218,000, below the 2026 joint phaseout.
- NIIT MAGI remains $248,000, and Medicare MAGI also remains $248,000 if there is no tax-exempt interest. Any Medicare effect generally belongs to a later premium year.
In each case, the same tax return produces different answers because the questions are different.
Which MAGI worksheet should you open?
- Roth contributions: Publication 590-A
- NIIT: Form 8960
- Medicare: SSA’s AGI-plus-interest calculation
- Marketplace assistance: Form 8962
Label each result with its purpose and income year. If you are close to a threshold, rerun that calculation before making a contribution, conversion, or sale.