Quick answer: To calculate MAGI (Modified Adjusted Gross Income) for Roth IRA purposes, start with your Adjusted Gross Income (AGI) from your tax return, then add back deductions for student loan interest, foreign earned income exclusion, foreign housing exclusion/deduction, and excluded income from Puerto Rico or American Samoa. If your MAGI is under the IRS limit ($150,000 single / $236,000 married filing jointly for 2026), you can contribute the full amount.
Roth IRA eligibility hinges on one number: your MAGI. Earn too much and your allowed contribution shrinks or disappears entirely. The calculation sounds intimidating, but for most people it is just AGI plus a few add-backs. This guide walks through it step by step with examples.
What Is MAGI?
MAGI is your Adjusted Gross Income with certain deductions added back. The IRS uses it as the gatekeeper for many tax benefits: Roth IRA eligibility, Traditional IRA deduction limits, Medicare premiums, and ACA subsidies all depend on some version of MAGI. Note that the add-backs differ by program; this article covers the Roth IRA version specifically.
Step-by-Step: Calculating Roth IRA MAGI
Step 1: Find your AGI
Your AGI is on Line 11 of Form 1040. It is your total income (wages, business income, capital gains, etc.) minus “above-the-line” adjustments like educator expenses, HSA contributions, and half of self-employment tax.
Step 2: Add back these items
For Roth IRA purposes, add back to AGI:
- Student loan interest deduction (up to $2,500)
- Foreign earned income exclusion (Form 2555)
- Foreign housing exclusion or deduction
- Exclusion of income from Puerto Rico (Section 933)
- Exclusion of income from American Samoa (Section 931)
That is it. Unlike some other MAGI definitions, the Roth IRA version does not add back IRA deductions or Social Security exclusions.
Step 3: Compare to the IRS limits
For 2026 (check IRS Roth IRA limits for the current figures):
| Filing Status | Full Contribution | Phase-Out Range | No Contribution |
|---|---|---|---|
| Single / Head of Household | MAGI under $150,000 | $150,000-$165,000 | $165,000+ |
| Married Filing Jointly | MAGI under $236,000 | $236,000-$246,000 | $246,000+ |
| Married Filing Separately | MAGI under $10,000 | $0-$10,000 | $10,000+ |
Note: limits adjust annually for inflation; always verify the current year’s numbers with the IRS.
Worked Examples
Example 1: Simple W-2 employee
Sarah earns $120,000 in wages, contributes $8,000 to her 401(k), and deducts $2,000 in student loan interest.
- AGI = $120,000 – $8,000 (401(k)) – $2,000 (student loan interest) = $110,000
- Add back student loan interest: $110,000 + $2,000 = $112,000 MAGI
- $112,000 < $150,000 limit: full Roth IRA contribution allowed
Example 2: Near the phase-out
James and Priya file jointly. Combined AGI is $240,000 after 401(k) contributions. No add-backs apply.
- MAGI = $240,000
- This falls inside the $236,000-$246,000 phase-out range: partial contribution allowed
- The IRS provides a worksheet to calculate the reduced amount; roughly, they are 40% through the $10,000 phase-out band, so their limit is reduced by about 40%.
How to Lower Your MAGI (Legally)
If you are near the limit, these reduce AGI and therefore MAGI:
- Max out pre-tax 401(k)/403(b) contributions ($23,500 for 2026, plus $7,500 catch-up if 50+)
- HSA contributions through payroll ($4,300 individual / $8,550 family for 2026)
- Traditional IRA deductions (if eligible)
- Self-employed health insurance and retirement contributions (SEP-IRA, Solo 401(k))
Timing matters too: realizing capital losses or deferring a bonus to January can keep you under the threshold. If you are also investing, see how can i invest in share market“>how to invest in the share market for where Roth dollars work hardest.
What If You Already Contributed but Are Over the Limit?
Do not panic. You have until the tax filing deadline (plus extensions) to fix an excess contribution:
- Recharacterize or remove: Ask your IRA custodian to remove the excess plus earnings before the deadline.
- Recharacterize to Traditional: Move the contribution to a Traditional IRA (then optionally do a backdoor Roth conversion).
- The backdoor Roth: High earners routinely contribute to a Traditional IRA (nondeductible) and immediately convert to Roth. It is legal and explicitly blessed by Congress, but mind the pro-rata rule if you hold other pre-tax IRA balances.
Excess contributions left in place incur a 6% penalty tax every year until removed, so act promptly.
Common MAGI Mistakes
- Using gross income instead of AGI: Your salary is not your MAGI. Pre-tax 401(k), HSA, and other adjustments come off first.
- Forgetting the add-backs: The student loan interest deduction is the most commonly missed add-back.
- Using last year’s limits: Phase-out ranges change annually with inflation.
- Ignoring a spouse’s income: For joint filers, MAGI is combined. One high earner can phase out both spouses.
- Confusing Roth 401(k) with Roth IRA: Roth 401(k) contributions have no income limits. If your employer offers one, it is an easy workaround.
FAQs
Is MAGI the same as gross income?
No. Gross income is everything you earn. AGI subtracts adjustments like 401(k) contributions. MAGI then adds back a few specific deductions to AGI. MAGI is almost always lower than gross income but slightly higher than AGI.
Where do I find my MAGI?
It is not printed on your tax return; you calculate it. Start with Form 1040 Line 11 (AGI), then add back the Roth IRA items listed above. Tax software like TurboTax computes it automatically.
Does the backdoor Roth still work in 2026?
Yes. Despite periodic legislative threats, the backdoor Roth (nondeductible Traditional IRA contribution followed by conversion) remains legal. Just beware the pro-rata rule if you have existing pre-tax IRA money.
Can I contribute to a Roth IRA with no earned income?
No. You need earned income (wages, salaries, self-employment income) at least equal to your contribution. A nonworking spouse can contribute via a spousal IRA based on the working spouse’s income.
What counts as a contribution for the $7,000 limit?
The $7,000 annual limit (2026) applies to your combined Traditional + Roth IRA contributions. 401(k) contributions are separate and do not count toward it.
Should I do Roth or Traditional if I am near the limit?
If you are in the phase-out range, consider whether a Traditional IRA deduction (if eligible) or Roth 401(k) serves you better. Generally, Roth wins if you expect higher taxes in retirement; Traditional wins if you expect lower. When in doubt, tax diversification, some of each, is a reasonable default.






