Home › Tax Guides › MAGI (Modified Adjusted Gross Income)
What is MAGI (Modified Adjusted Gross Income)?
Income & Eligibility
Written by the TaxPlain Editorial Team · Reviewed for accuracy · Last updated August 2026
⚠️ Educational only. TaxPlain does not provide tax, legal, or financial advice. Always consult a qualified tax professional about your specific situation.
What this is
MAGI (Modified Adjusted Gross Income) is your AGI with certain deductions and exclusions added back. It isn't a number you see printed on your Form 1040 — you have to calculate it yourself, starting from your AGI on line 11 and adding specific items back on top.
The reason MAGI exists is eligibility testing. The IRS uses it as the gatekeeper number for things like Roth IRA contribution limits, traditional IRA deduction phase-outs, the Premium Tax Credit for marketplace health insurance, and Medicare's IRMAA surcharge for high earners. AGI tells you your taxable income; MAGI tells you whether you qualify for something.
For a lot of taxpayers with straightforward returns, MAGI and AGI come out to the exact same number — if you don't have any of the specific add-back items, there's nothing to modify. The gap only opens up once deductions like student loan interest or IRA contributions enter the picture.
Who it affects
✓ Applies to
Anyone contributing to a Roth IRA, claiming the Premium Tax Credit, or deducting traditional IRA contributions.
↑ Also applies to
Medicare beneficiaries checking IRMAA brackets, and anyone claiming education credits or the student loan interest deduction.
📅 CHECK MAGI BEFORE YOU CONTRIBUTE
Unlike AGI, which you calculate once your return is done, MAGI is worth estimating before year-end — especially for Roth IRA contributions. Contributing when your MAGI ends up over the limit creates an excess contribution you'll need to correct.
The core confusion
MAGI vs. AGI — what actually changes
These two numbers get used interchangeably in casual conversation, but they're not the same calculation, and mixing them up is the single most common mistake people make when checking eligibility for something. Here's the plain breakdown:
AGI — your gross income minus above-the-line deductions (retirement contributions, HSA contributions, student loan interest, etc.). It's printed directly on Form 1040, line 11.
MAGI — AGI with certain of those same deductions added back. You calculate it yourself; it never appears on the form.
Common add-backs — student loan interest deduction, traditional IRA deduction, foreign earned income exclusion, and tax-exempt interest income.
Not one formula — the IRS defines MAGI slightly differently depending on which benefit you're testing. Roth IRA MAGI isn't calculated identically to Premium Tax Credit MAGI or IRMAA MAGI.
Usually close, not always equal — if you don't claim any of the common add-back deductions, your MAGI and AGI will match exactly.
Higher, never lower — because MAGI adds items back to AGI, it's always equal to or greater than your AGI, never less.
How to calculate it
Calculating your MAGI from your W-2 and 1040
Start with your AGI, which you'll find on Form 1040, line 11. That figure already accounts for your wages from your W-2 plus any other income, minus above-the-line deductions.
From there, add back whichever of the following apply to your return:
Student loan interest deduction — add back the amount you deducted.
Traditional IRA deduction — add back any deductible IRA contribution.
Foreign earned income exclusion — add back excluded foreign wages, if applicable.
Tax-exempt interest — add back interest from municipal bonds, even though it's not taxed.
Excluded foreign housing costs — relevant only for taxpayers living abroad.
For most people without these specific items, the math is simple: MAGI equals AGI. It's worth running the calculation anyway before assuming you're under a threshold, since even a small add-back can push you over a limit you were close to.
Where MAGI controls eligibility
MAGI shows up as the deciding number across several unrelated parts of the tax code, which is part of why it causes so much confusion.
Roth IRA contribution limits — your MAGI determines whether you can contribute the full amount, a reduced amount, or nothing at all.
Traditional IRA deduction phase-out — if you or a spouse is covered by a workplace retirement plan, MAGI determines how much of your IRA contribution is deductible.
Medicare IRMAA brackets — a higher MAGI from two years prior can trigger an income-related surcharge on Medicare Part B and Part D premiums.
Premium Tax Credit — MAGI determines eligibility for subsidies on marketplace health insurance plans.
Common mistakes to avoid
⚠️ USING AGI WHEN MAGI IS REQUIRED
Checking a Roth IRA or IRMAA threshold against your AGI instead of your MAGI can make you think you qualify when you don't, since MAGI is always equal to or higher than AGI.
⚠️ APPLYING ONE MAGI FORMULA EVERYWHERE
Assuming the MAGI you calculated for Roth IRA purposes is the same figure used for IRMAA or the Premium Tax Credit — the add-back list isn't identical across programs.
What to do right now
Pull your AGI from Form 1040, line 11, then add back student loan interest and IRA deductions if they apply to you. Compare that MAGI figure against the specific threshold you're checking — Roth IRA limits, IRMAA brackets, or Premium Tax Credit eligibility — since each uses its own MAGI definition. If your HSA or pre-tax retirement contributions could bring your MAGI under a limit, confirm the math with a tax professional before year-end.
Questions to ask your tax professional
01What's my MAGI specifically for Roth IRA contribution purposes this year?
02Am I close enough to an IRMAA bracket that I should plan around it?
03Would increasing pre-tax retirement contributions lower my MAGI enough to matter?
04Does my foreign income or tax-exempt interest change my MAGI calculation?
05If I'm over the Roth IRA limit, does a backdoor Roth strategy make sense for me?
Frequently asked questions
What's the difference between MAGI and AGI?
AGI is your gross income minus above-the-line deductions, shown directly on your Form 1040. MAGI starts with that AGI figure and adds back certain deductions and exclusions, like student loan interest, IRA contributions, or foreign earned income. For many taxpayers with simple returns, MAGI and AGI end up being the same number — but the add-backs matter once you're near an eligibility threshold.
Why does MAGI matter more than AGI for some things?
The IRS uses MAGI, not AGI, to test eligibility for specific benefits: Roth IRA contribution limits, traditional IRA deduction limits, the Premium Tax Credit, and Medicare's IRMAA surcharge. AGI alone isn't the number that determines whether you qualify for these — MAGI is.
How do I calculate my MAGI?
Start with your AGI from Form 1040, line 11. Then add back specific items depending on which MAGI test applies — common add-backs include student loan interest deduction, traditional IRA deduction, foreign earned income exclusion, and tax-exempt interest. The exact add-back list varies slightly by which credit or limit you're calculating MAGI for.
Is MAGI the same for Roth IRA limits and IRMAA?
No. Each program defines MAGI with a slightly different set of add-backs. Roth IRA MAGI and Premium Tax Credit MAGI are calculated differently from the MAGI used for Medicare IRMAA brackets, even though they all start from the same AGI base. Always check which specific MAGI definition applies to the benefit you're checking.
Can lowering my MAGI help me qualify for a Roth IRA?
Yes, in some cases. Contributing to a traditional 401(k) or a pre-tax HSA lowers your AGI, which flows through to a lower MAGI. If you're close to the Roth IRA income phase-out range, increasing pre-tax retirement or HSA contributions can bring your MAGI back under the limit.