calculateCalculopedia
search

How to Calculate MAGI (Modified Adjusted Gross Income)

calendar_monthPublished 2026-08-16verified_userReviewed by Calculopedia editorial

Almost no tax-benefit calculation uses your ordinary income directly. For a surprising list of benefits — Roth IRA contributions, health insurance premium subsidies, the Saver's Credit, even some Medicare surcharges — the government doesn't ask "What did you earn?" It asks "What is your Modified Adjusted Gross Income (MAGI)?" That number gates eligibility, and getting it wrong can cost you an entire year of a benefit. Here's how to compute it, what gets added back, and where it trips people up.

The formula

MAGI = AGI + add-backs

Your Adjusted Gross Income (AGI) starts with your gross income (wages, self-employment, investment income) and subtracts certain "above-the-line" deductions. For most purposes, AGI is what appears on the second-to-last line of your tax form's first page.

For MAGI, you then add back specific deductions you may have taken — because the benefits that use MAGI are themselves meant to be based on income before those deductions. The logic is consistent: MAGI rebuilds portions of income that were deliberately excluded, so a benefit's threshold can be compared fairly across people who deducted different things.

The most common add-backs you'll encounter:

  • Traditional IRA contributions (the deduction goes straight back in)
  • Student loan interest deductions
  • Tax-exempt interest on certain bonds, which normally never touches your taxable income
  • Non-taxable Social Security benefits in some programs
  • Roth IRA conversions (amounts moved from a traditional IRA into a Roth)
  • Tax-exempt foreign earned income and related housing exclusions
  • Certain education-related deductions

Exactly which add-backs apply depends on the specific benefit, because different programs define MAGI slightly differently. There isn't one single MAGI — there's a family of them, each tuned to a program's purpose. This matters, because it means you can't assume the number you used for one benefit works for another.

Worked examples

Suppose your AGI is $82,000, including a $6,500 deduction for a traditional IRA contribution:

MAGI = 82,000 + 6,500 = $88,500

That $6,500 came off your taxable income — and it counts right back for MAGI purposes. This one detail regularly surprises people who thought their modified income simply matched their adjusted income.

Let's layer in a second, less-obvious item. Say you also hold municipal bonds earning $3,000 of fully tax-exempt interest. For several programs that interest is not part of your AGI (which is why you never paid tax on it), yet it still gets added back:

AGI = 82,000
+ traditional IRA           6,500
+ tax-exempt interest       3,000
MAGI =                     91,500

See the pattern: MAGI keeps pulling back in income the tax system let you shelter. That's exactly why it so often lands above your AGI — and above what most people think they "made."

Why MAGI matters

Depending on the program, MAGI determines:

  • Roth IRA contribution eligibility (income phase-outs start well within most people's reach)
  • Health insurance premium tax credits and subsidies under the Affordable Care Act
  • Saver's Credit and some education credits
  • Medicare Part B and Part D premium surcharges

Because each program keeps its own add-back list, the same person can be comfortably under one threshold and over another. A retired couple living largely on Social Security, for instance, might have a modest AGI but a higher MAGI once non-taxable benefits are added back for a particular program. One person, several different MAGIs — another reason to check the specific rule you're testing.

Being even a few dollars over a MAGI threshold can switch you from eligible to ineligible — or push you into a higher premium band — for an entire year. That's why the estimate is worth doing before you rely on a benefit.

How the benefit can change at the boundary

Consider someone whose MAGI lands right around a phase-out. Benefits rarely vanish at a single sharp line; many phase out gradually as MAGI climbs. The practical effect is the same, though: every dollar of added-back income can shave real money off the benefit you receive. This is when the add-back detail pays off — trimming a deduction one year, or shifting Roth conversion timing, can be the difference between full benefit and none.

Common mistakes

  1. Using gross income instead of AGI as the starting point — AGI already nets out some deductions; starting from gross overstates MAGI.
  2. Forgetting the add-backs — the most common is the traditional IRA. If you contributed, the deduction must go right back in.
  3. Mixing up programs — Roth IRA MAGI, ACA MAGI, and Medicare MAGI add back slightly different items. Always check the specific rule you're testing.
  4. Assuming your AGI line is your MAGI — they're only equal when you took no add-back deductions at all and none of the non-taxable items apply to you.

Key takeaways

  • MAGI = AGI + program-specific add-backs.
  • The most common add-backs: traditional IRA contributions, student loan interest, foreign earned income.
  • There's more than one MAGI — each benefit has its own definition.
  • Getting over a MAGI threshold can cost an entire benefit for the year.
  • Estimate MAGI before relying on a benefit or a phase-out.

You can't enter the full tax maze in one page, and tax rules change over time — always confirm the current figures for the specific program before planning around a number. The MAGI Calculator walks you through the common add-backs accurately. For your overall obligation, pair it with an Income Tax Calculator estimate.

FAQ

What's the difference between AGI and MAGI?

AGI is your Adjusted Gross Income from your tax form. MAGI takes AGI and adds back certain deductions you took (like traditional IRA contributions or student loan interest). Different benefits use slightly different add-back lists, but the logic is constant.

Do I always need to add my IRA contribution back?

For most MAGI purposes, yes — the traditional IRA deduction is among the most common add-backs. But confirm for the specific benefit: each program lists its own items.

Can MAGI help me even if I'm over the limit for one benefit?

Yes — some benefits have different (and sometimes more generous) MAGI definitions than others. Being over for one doesn't mean you're over for all. Compute MAGI separately for each benefit you're relying on.

Why do tax-exempt items get added back if I never paid tax on them?

Because MAGI is designed to measure your economic income before certain tax breaks, not your taxable income. Adding back tax-exempt interest and similar items puts everyone on a level footing when a benefit's threshold is applied.