MAGI explained: What modified adjusted gross income means and how to calculate it

MAGI explained: What modified adjusted gross income means and how to calculate it

Modified adjusted gross income, or MAGI, can decide whether a US taxpayer qualifies for a Roth IRA contribution, a Traditional IRA deduction, Premium Tax Credit, Medicare premium tier, or the 3.8% Net Investment Income Tax. For the 2025 tax year filed in 2026, expats should pay special attention to foreign income exclusions because the Foreign Earned Income Exclusion (FEIE) is commonly added back for key benefits.

The following 4 key takeaways explain why MAGI should be calculated before making IRA contributions or claiming income-based benefits:

  • MAGI is AGI with specific add-backs, such as the Foreign Earned Income Exclusion (FEIE), tax-exempt interest, or student loan interest, depending on the tax rule.
  • There is no universal MAGI; the formula changes depending on whether you are testing a Roth IRA, Medicare IRMAA, ACA subsidy, or another benefit.
  • For expats, excluded foreign income under the FEIE is often added back, even when Form 2555 lowers taxable income.
  • MAGI determines eligibility for Roth IRAs, ACA subsidies, Medicare premiums, and several 2025–2028 deductions. Accurate calculation is vital because excess IRA contributions can trigger a 6% annual excise tax while the excess remains in the account.

For 2026 planning, Roth IRA phase-out limits increased to $153,000–$168,000 for single filers and heads of household, while the Traditional IRA deduction phase-out for a single filer covered by a workplace plan increased to $81,000–$91,000. See our IRA contribution limits for expats for related retirement contribution rules.

TFX helps Americans abroad understand how US tax rules apply when foreign wages, retirement accounts, and cross-border benefits overlap.

What is Modified Adjusted Gross Income (MAGI)?

So what is MAGI? Modified Adjusted Gross Income (MAGI) is your adjusted gross income (AGI) after adding back or adjusting certain items required for a specific tax benefit, deduction, surcharge, or account contribution. The exact formula depends on what you are calculating, so MAGI for a Roth IRA, Premium Tax Credit, or Medicare surcharge is not always the same. Start with AGI from Form 1040, line 11, then apply the worksheet or rules for the specific provision you need.

MAGI vs AGI: the difference

AGI is calculated before the standard deduction or itemized deductions, while MAGI is AGI adjusted again for a particular tax rule. On a 2025 Form 1040 filed in 2026, AGI appears on Line 11; MAGI must be calculated separately using the relevant IRS worksheet.

AGI begins with total income and subtracts above-the-line adjustments from Schedule 1. Common AGI deductions include HSA contributions, educator expenses, deductible student loan interest, and the deductible half of self-employment tax. IRS guidance lists these adjustments as items that can reduce AGI before MAGI is tested.

For self-employed expats, half of the self-employment tax deduction may reduce AGI, but it does not remove the need to calculate MAGI correctly. Businesses must handle self-employment tax carefully.

AGI also differs from taxable income. Taxable income is calculated after AGI, and after the standard deduction or itemized deductions, so a larger standard deduction may lower tax owed without lowering MAGI.

 

Pro tip
Start with Form 1040, Line 11, not taxable income. Using taxable income instead of AGI can understate MAGI by the full standard deduction, which for 2025 can be thousands of dollars.

How to calculate MAGI: step-by-step formula and examples

MAGI is calculated by starting with AGI from Form 1040, Line 11, then adding back the modifications required for the specific tax provision. The same 2025 return can produce different MAGI numbers for Roth IRA eligibility, Medicare IRMAA, ACA subsidies, and student loan interest.

Modified adjusted gross income formula: MAGI = AGI + modifications required for the specific tax rule

The following 3 steps show how to calculate MAGI from AGI using Form 1040 as the starting point:

  1. Start with total income. On Form 1040, total income is reported before AGI is calculated.
  2. Find AGI. Use Line 11 Form 1040 as the baseline for MAGI.
  3. Add back modifications. Apply only the add-backs required for the benefit, deduction, or surcharge you are testing.

The table below shows why 1 taxpayer can have several MAGI calculations from the same Form 1040, depending on the rule being tested.

Tax provision or goal Common items added back to AGI Why it matters
Roth IRA eligibility FEIE, Foreign Housing Exclusion or Deduction, student loan interest, IRA deductions, adoption assistance Determines whether you can contribute directly to a Roth IRA.
Traditional IRA deduction FEIE, Foreign Housing Exclusion or Deduction, student loan interest Determines whether you can deduct contributions if you or your spouse has a workplace retirement plan.
Medicare premiums (IRMAA) Tax-exempt interest, such as municipal bond interest Determines whether you pay a surcharge on Medicare Part B and Part D premiums.
ACA subsidies (Premium Tax Credit) Tax-exempt interest, nontaxable Social Security benefits, untaxed foreign income Determines household income for Marketplace premium assistance.
Student loan interest deduction Excluded foreign income, Foreign Housing Exclusion, Foreign Housing Deduction, adoption assistance Determines whether you can claim up to the $2,500 student loan interest deduction.

 

NOTE! For US Americans living abroad, the most significant modification is often the Foreign Earned Income Exclusion (FEIE). Even if your AGI is $0 because of the FEIE, the exclusion is added back for several MAGI tests. This frequently disqualifies expats from making direct Roth IRA contributions, even when they owe no US tax.

Where is MAGI on 1040? MAGI is not printed as a separate line on Form 1040. The MAGI line on 1040 does not exist; you begin with AGI on Line 11 Form 1040, then use the worksheet for the specific benefit.

Examples of calculating Modified Adjusted Gross Income

MAGI examples work best when the tax goal is named first, because each goal uses a different add-back list. The following 4 TFX client scenarios use 2026 planning limits where requested and show why the same AGI can produce different eligibility outcomes.

Example 1: MAGI for Roth IRA

MAGI for Roth IRA eligibility determines whether a taxpayer can make a direct Roth IRA contribution for the year. For 2026, the Roth IRA phase-out range is $153,000–$168,000 for single filers and heads of household, and $242,000–$252,000 for married filing jointly.

How to calculate MAGI for Roth IRA: start with AGI, then add back items such as FEIE, Foreign Housing Exclusion or Deduction, IRA deductions, and student loan interest.

Based on our client scenario at TFX, Adriana is a single US citizen working in Germany. Her AGI after exclusions is $151,000, and she excluded $9,000 of foreign earned income. Her Roth IRA MAGI is $160,000, which puts her inside the 2026 single phase-out range, so she qualifies only for a reduced contribution.

A crucial expat warning applies to married taxpayers filing separately. If you are married filing separately, and lived with your spouse at any time during the year, the Roth IRA contribution limit phases out between $0 and $10,000 of MAGI.

Example 2: MAGI for Traditional IRA deduction

MAGI for Traditional IRA deduction purposes decides how much of a Traditional IRA contribution is deductible when the taxpayer or spouse is covered by a workplace retirement plan. For 2026, a single filer covered by a workplace plan begins phasing out at $81,000 and loses the deduction at $91,000.

Based on our client scenario at TFX: Rami is single, works for a US employer while living in Spain, and is covered by a 401(k). His AGI is $80,000, and a $5,000 add-back brings his MAGI to $85,000. Because $85,000 falls inside the 2026 $81,000–$91,000 range, he can take only a partial Traditional IRA deduction.

This is why a 401(k) and IRA decision should be reviewed before year-end. For 2026, the employee contribution limit for 401(k), 403(b), most 457 plans, and the Thrift Savings Plan is $24,500, with higher catch-up limits for eligible older workers.

Example 3: MAGI for Medicare IRMAA

MAGI for Medicare IRMAA uses AGI plus tax-exempt interest to decide whether a retiree pays higher Part B and Part D premiums. For 2026 Medicare premiums, Social Security generally uses MAGI from the 2024 tax return filed in 2025.

Based on our client scenario at TFX: Genevieve retired in Portugal and had a 2024 AGI of $104,000 plus $8,000 of tax-exempt municipal bond interest. Her Medicare MAGI is $112,000, which exceeds the 2026 individual IRMAA threshold of $109,000. That can move her into a higher monthly premium tier.

A retiree who had a life-changing event, such as retirement, divorce, or loss of income-producing property, may ask Social Security to review IRMAA using Form SSA-44.

Example 4: Premium Tax Credit (PTC)

Premium Tax Credit MAGI is household income for Marketplace subsidy purposes, and it adds back nontaxable Social Security benefits, tax-exempt interest, and excluded foreign income. For 2025 Marketplace coverage reconciled on a 2025 return filed in 2026, taxpayers generally use Form 8962 to calculate the final credit.

Based on our client scenario at TFX: Maya moved back to the US in 2025 after working in Mexico. Her AGI is $48,000, and she also has $4,000 of tax-exempt interest and $3,000 of nontaxable Social Security benefits. Her PTC household income is $55,000, not $48,000.

ACA rules can be especially important for early retirees and returning expats. Check the IRS guidance on eligibility for the Premium Tax Credit before estimating Marketplace subsidies.

Why these examples matter

These 4 examples show that MAGI is purpose-specific, not a fixed number. A taxpayer can qualify for one deduction while being phased out of another because Roth IRA, Traditional IRA, Medicare, and ACA rules each add back different items.

For expats, the FEIE is the add-back most likely to change the outcome. A return can show low taxable income and still show high MAGI for retirement contribution or health coverage purposes.

The cost of excess contributions

Excess IRA contributions can trigger a 6% excise tax for each year the excess remains in the IRA. For 2025 and 2026 planning, this makes MAGI calculation important before funding a Roth IRA or nondeductible Traditional IRA.

An excess contribution can happen when a taxpayer contributes more than the annual limit, contributes with too little taxable compensation, or contributes directly to a Roth IRA after exceeding the income limit. The IRS says the 6% tax can be avoided by withdrawing the excess contribution and related earnings by the individual return due date, including extensions.

 

Pro tip
Recheck MAGI before the IRA contribution deadline. A $1,000 excess Roth IRA contribution can create a $60 tax each year until corrected.

Strategies to minimize your MAGI

MAGI can sometimes be reduced before year-end by lowering AGI, but not every deduction helps every MAGI formula. The following 4 strategies are most useful when a taxpayer is near a Roth IRA, Traditional IRA, ACA, Medicare, or NIIT threshold.

  • Maximize 401(k), 403(b), or similar salary deferrals. For 2026, the employee limit is $24,500 for 401(k), 403(b), most 457 plans, and the Thrift Savings Plan.
  • Use eligible HSA contributions. HSA deductions reduce AGI when the taxpayer qualifies under high-deductible health plan rules.
  • Harvest capital losses carefully. Capital losses can offset capital gains, and excess net capital loss can generally reduce other income by up to $3,000 per year.
  • Use charitable giving as part of a broader plan. Charitable contributions usually do not reduce MAGI directly because they are generally below-the-line deductions, but they may still reduce taxable income.

 

Pro tip
When MAGI is close to a $153,000 Roth IRA phase-out threshold or a $200,000 NIIT threshold, run the numbers before December 31, not after Forms 1099 arrive.

Why does MAGI matter?

MAGI matters because it acts as the gatekeeper for income-limited tax benefits, deductions, retirement contributions, ACA subsidies, Medicare premiums, and the 3.8% Net Investment Income Tax. For expats filing a 2025 return in 2026, foreign exclusions can affect these rules even when taxable income looks low.

The following 5 tax outcomes often depend on MAGI or a MAGI-style income test:

  • Roth IRA contributions. MAGI decides whether a taxpayer can contribute directly, contribute a reduced amount, or cannot contribute directly at all.
  • Traditional IRA deductions. MAGI can reduce or eliminate the deduction when the taxpayer or spouse has workplace retirement coverage.
  • ACA, Medicaid, and state-based health coverage. Marketplace, Medicaid, and CHIP eligibility use a MAGI-based income measure that adds back nontaxable Social Security benefits, tax-exempt interest, and untaxed foreign income.
  • Medicare IRMAA. Medicare uses MAGI from 2 years earlier to decide whether higher-income retirees pay Part B and Part D surcharges.
  • Net Investment Income Tax (NIIT). NIIT applies a 3.8% tax to certain investment income when MAGI exceeds $200,000 for single filers, $250,000 for married filing jointly, or $125,000 for married filing separately.

MAGI also affects newer deductions created for 2025–2028. The enhanced senior deduction is up to $6,000 per eligible person, or $12,000 for a qualifying married couple, and phases out once MAGI exceeds $75,000 for single filers or $150,000 for joint filers.

Some credits use related income rules rather than one universal MAGI calculation. The Earned Income Tax Credit, for example, depends on AGI, earned income, filing status, investment income limits, and other rules; use IRS Publication 596 when checking EITC eligibility.

Older divorce agreements can also affect AGI before MAGI is calculated. For divorces or separation instruments executed before 2019, review our guide on how alimony affects your taxes before finalizing the AGI starting point.

Conclusion

MAGI is one of the most important numbers a US taxpayer never sees printed on a single tax return line. For 2025 returns filed in 2026, the safest approach is to start with AGI on Line 11 Form 1040, identify the exact benefit or tax rule, and add back only the modifications required for that rule.

Expats should be especially careful with the Foreign Earned Income Exclusion (FEIE), Foreign Housing Exclusion, tax-exempt interest, and nontaxable Social Security benefits. These items can change Roth IRA eligibility, ACA subsidy amounts, Medicare premiums, NIIT exposure, and student loan interest deductions.

TFX works with Americans abroad who need their US tax return reviewed in the context of foreign income, retirement accounts, and cross-border benefits. Visit Taxes for Expats or review our recent US expat tax articles for current filing updates.

FREE
Taxes are complicated. Get peace of mind with TFX
Book a call to learn how we make tax filing simple and stress-free for expats.
Schedule my free call
Discover how we can simplify your US tax filing in the UK

FAQ

1. Where can I find my MAGI, and is it on my W-2?

MAGI is not on your W-2 and is not printed as a single line on Form 1040. Your W-2 reports wage information; MAGI starts with AGI on Line 11 Form 1040 and then adds back items required by the specific rule.

How to find MAGI on tax return records: locate AGI on Form 1040, Line 11, then complete the IRS worksheet for the credit, deduction, or contribution limit. There is no universal MAGI line on 1040.

2. Is MAGI calculated after taking the standard deduction?

No. MAGI is calculated before the standard deduction or itemized deductions because it is a modification of AGI. AGI is calculated before the standard deduction, and IRS AGI guidance confirms AGI is gross income minus Schedule 1 adjustments.

This matters for seniors and expats because a larger standard deduction may reduce taxable income without reducing MAGI. A taxpayer can have low taxable income and still exceed a Roth IRA, Medicare, or NIIT threshold.

3. Is Social Security income included in my MAGI in 2026?

It depends on the tax purpose. For Medicare IRMAA, MAGI is AGI plus tax-exempt interest, so only the taxable portion of Social Security included in AGI is counted. For ACA Premium Tax Credit purposes, nontaxable Social Security benefits are added back to household income.

4. How does MAGI affect the new 2026 senior tax deductions?

For 2025–2028, eligible taxpayers age 65 or older may claim an enhanced senior deduction of up to $6,000 per person, or $12,000 for a qualifying married couple. The deduction phases out when MAGI exceeds $75,000 for single filers or $150,000 for joint filers.

A low taxable income after deductions does not guarantee eligibility. MAGI remains the gatekeeper for the phase-out calculation.

5. What income is not included in MAGI?

Income that is excluded from AGI and not specifically added back for the rule usually stays out of MAGI. Common examples include life insurance proceeds paid because of death, most inheritances, qualified Roth IRA distributions, and certain gifts.

The exact answer still depends on the tax provision. For ACA subsidies, nontaxable Social Security is added back; for Medicare IRMAA, tax-exempt interest is added back; for Roth IRA purposes, FEIE can be added back.

6. Is MAGI always higher than AGI?

MAGI is often equal to or higher than AGI, but the difference depends on the rule being tested. If none of the required add-backs apply, MAGI may be the same as AGI.

For expats using Form 2555, MAGI is commonly higher than AGI because excluded foreign earned income may be added back. That is why a taxpayer can have low AGI and still exceed a Roth IRA or ACA threshold.

7. Is MAGI the same for Roth IRA and Medicare?

No. Roth IRA MAGI and Medicare MAGI use different add-backs. Roth IRA calculations may add back FEIE and housing exclusions, while Medicare IRMAA generally uses AGI plus tax-exempt interest from the tax return 2 years earlier.

Related articles

Foreign tax credit explained for US expats: Rules, limits, and how to claim it
Mel Whitney • May 01, 2026
Foreign tax credit explained for US expats: Rules, limits, and how to claim it

Learn what the foreign tax credit is, who qualifies, how to claim it, how Form 1116 works, and how to avoid double taxation as a US expat.

Read more
Andrew Coleman • Nov 14, 2024
Roth IRA vs. traditional IRA: Which retirement account is right for you?

Learn the key differences between Roth and Traditional IRAs, including tax advantages, eligibility, and withdrawal rules, to choose the best retirement account for your needs.

Read more
15 best tax-friendly countries to retire abroad for US citizens
Reid Kopald • Mar 18, 2026
15 best tax-friendly countries to retire abroad for US citizens

Discover 15 tax-friendly retirement countries with zero to low taxes for US citizens. Compare visa requirements, living costs, and updated 2026 tax changes.

Read more
Foreign Earned Income Exclusion vs Foreign Tax Credit: Which one should you use?
Mel Whitney • Jan 27, 2026
Foreign Earned Income Exclusion vs Foreign Tax Credit: Which one should you use?

Compare FEIE, FTC, housing, and treaty options. Get an easy “what do I file?” table and a checklist to pick the right path.

Read more
Ines Zemelman
Ines Zemelman
founder and President at TFX
Ines Zemelman, EA, is the founder and president of TFX, specializing in US corporate, international, and expatriate taxation. With over 30 years of experience, she holds a degree in accounting and an MBA in taxation.
This article is for informational purposes only and should not be considered as professional tax advice – always consult a tax professional.
Need tax help?👋

Ask a pro – get an answer within a few business days

Leave your question