MAGI Calculator: Modified Adjusted Gross Income 2026

Calculate your 2026 Modified Adjusted Gross Income (MAGI) instantly. Check Roth IRA eligibility, IRA deductibility, student loan phase-outs, and NIIT thresholds.

Updated: • Free Tool

MAGI Calculator

Inputs

What Is a MAGI Calculator?

Modified Adjusted Gross Income — MAGI — is one of the most consequential numbers in the US tax code, yet most taxpayers have never heard of it. While your Adjusted Gross Income (AGI) determines your starting tax liability, the IRS uses MAGI as the gating number for some of the most valuable tax benefits available: Roth IRA contributions, Traditional IRA deductibility, student loan interest deductions, the Net Investment Income Tax, ACA premium tax credits, and Medicare IRMAA surcharges. Our MAGI Calculator takes your 2026 AGI along with specific add-back items and instantly tells you where you stand for each of these critical thresholds.

The add-back concept is simpler than it sounds. When you claim deductions like student loan interest or a Traditional IRA contribution, those deductions reduce your AGI. If the IRS simply used your reduced AGI to determine Roth IRA eligibility, a high earner could game the system by taking large above-the-line deductions first. MAGI prevents this by adding those deductions back before running the eligibility tests. For most W-2 employees with no foreign income, MAGI is identical to AGI — the add-backs are zero. But as soon as you claim a student loan deduction, fund a Traditional IRA, or earn income abroad, the difference becomes meaningful.

This calculator helps you:

  • Check Roth IRA eligibility: Know your exact 2026 phase-out status and maximum contribution allowed
  • Verify IRA deductibility: Determine whether your Traditional IRA contribution is fully, partially, or not deductible
  • Assess student loan deduction: See if the $2,500 deduction is available at your income level
  • Flag NIIT exposure: Know whether the 3.8% surtax on investment income applies to your situation
  • Estimate ACA MAGI: Calculate the MAGI used for premium tax credit and Medicare IRMAA determinations

For a deeper foundation, start with our AGI Calculator to confirm your base AGI before entering it here.

How to Use the MAGI Calculator

The MAGI Calculator requires your pre-calculated AGI plus any deductions you took that need to be added back. You do not need to re-enter all of your income and deductions — only the items that differ between AGI and MAGI.

Step-by-Step Instructions

Step 1: Select Your Filing Status

Choose the filing status you expect to use on your 2026 federal tax return. This matters because every MAGI threshold — Roth IRA eligibility, student loan deductibility, NIIT — is defined separately by filing status. Married filing separately filers face particularly tight restrictions on Roth IRA contributions and are completely ineligible for the student loan interest deduction.

Step 2: Enter Your Adjusted Gross Income

Your AGI is found on Line 11 of Form 1040. If you are estimating before year-end, you can calculate a projected AGI by subtracting your expected above-the-line deductions (retirement contributions, health insurance for self-employed, educator expenses, student loan interest, etc.) from your total expected gross income. Knowing your MAGI also directly affects other benefits like the child tax credit — the Child Tax Credit Calculator uses MAGI to determine credit eligibility at higher income levels.

Step 3: Enter Your Add-Back Items

Fill in any of the following that apply to your situation:

  • Student Loan Interest Deducted: The amount you claimed on Schedule 1, Line 21. The maximum is $2,500 per year. If you did not deduct student loan interest (either because you had none or because your AGI was already too high to claim it), enter $0.
  • Traditional IRA Deduction Taken: The deductible contribution you made to a Traditional IRA, reported on Schedule 1, Line 20. The 2026 maximum contribution is $7,000 ($8,000 if age 50 or older), but only the deductible portion should be entered here.
  • Foreign Earned Income Exclusion: The amount excluded using Form 2555 if you live and work abroad. Most domestic taxpayers will enter $0 here.
  • Tax-Exempt Interest Income: The amount reported on Form 1040, Line 2a. This is only relevant for ACA and Medicare IRMAA MAGI calculations and does not affect your Roth IRA MAGI.

Step 4: Review Your Results

The calculator outputs seven values. The top two — MAGI and MAGI for ACA — are the base numbers. The remaining five show your eligibility status for each major MAGI-tested benefit. Use these results to inform year-end tax planning decisions while you still have time to make adjustments.

Tips for Accurate Results

  • Use actual tax documents: Where possible, use your W-2, Schedule 1, and 1099 forms for the most accurate inputs rather than estimates.
  • Distinguish deductible from non-deductible IRA contributions: Only enter IRA amounts you actually deducted. Non-deductible IRA contributions do not reduce AGI and therefore are not added back for MAGI.
  • Check both MAGI values: Retirement account eligibility (Roth IRA, Traditional IRA deductibility) uses the first MAGI figure. ACA premium tax credits and Medicare Part B/D surcharges use the ACA MAGI figure, which omits the IRA deduction add-back but includes tax-exempt interest.
  • Plan by November: The most powerful MAGI-reduction strategies (maxing your 401(k), funding your HSA) must be executed before year-end to affect the current year’s MAGI.

Understanding Modified Adjusted Gross Income

The IRS introduced MAGI as a fairness mechanism. Without it, a wealthy executive could take large deductions to artificially lower their AGI and then qualify for income-based benefits designed for middle-income earners. By adding those deductions back, the IRS creates a more accurate measure of economic capacity before testing eligibility.

Why the IRS Uses MAGI Instead of AGI

Consider a simplified example. A single taxpayer earns $160,000 in wages and contributes $7,000 to a Traditional IRA plus $2,500 in student loan interest. Their AGI is $150,500 ($160,000 − $7,000 − $2,500). If Roth IRA eligibility used AGI, this person would be at exactly the lower threshold of $150,000 and fully eligible. But their true earnings are $160,000. MAGI corrects for this: $150,500 + $7,000 + $2,500 = $160,000 MAGI, which puts them well inside the phase-out range and limits their Roth contribution to approximately $3,500.

MAGI Definitions Vary by Program

One of the most confusing aspects of MAGI is that it is not a single, universal calculation. The IRS defines it differently depending on which benefit is being tested:

  • Roth IRA MAGI: AGI + student loan interest + IRA deduction + foreign income + tuition/fees deduction (if applicable)
  • ACA Premium Tax Credit MAGI: AGI + foreign income + tax-exempt interest (non-taxable Social Security also included for Medicaid)
  • IRMAA MAGI (Medicare surcharges): AGI + foreign income + tax-exempt interest + tax-exempt Social Security

As IRS Publication 590-A notes, each add-back prevents the specific deduction from creating a double advantage in that particular program. Because the add-backs differ, our calculator computes two separate MAGI figures to cover the most common scenarios, similar to how the FICA Tax Calculator applies different rules for employees versus self-employed workers.

2026 Key MAGI Thresholds (IRS Rev. Proc. 2025-28)

BenefitSingle / HOHMarried Filing JointlyMarried Filing Separately
Roth IRA phase-out$150,000 – $165,000$236,000 – $246,000$0 – $10,000
Traditional IRA deductibility (covered)$79,000 – $89,000$126,000 – $146,000$0 – $10,000
Student loan interest deduction$80,000 – $95,000$165,000 – $195,000Not eligible
NIIT applies above$200,000$250,000$125,000

All figures sourced from IRS Rev. Proc. 2025-28, the official pronouncement for 2026 tax year figures.

How the Formula Works

Understanding the MAGI formula demystifies what the calculator is doing under the hood.

The Core MAGI Formula

For Roth IRA and Traditional IRA deductibility purposes:

MAGI = AGI
     + Student Loan Interest Deducted (Schedule 1, Line 21)
     + Traditional IRA Deduction (Schedule 1, Line 20)
     + Foreign Earned Income Exclusion (Form 2555)

For ACA premium tax credits and Medicare IRMAA:

MAGI (ACA) = AGI
           + Foreign Earned Income Exclusion
           + Tax-Exempt Interest Income (Form 1040, Line 2a)

Where:

  • AGI = Adjusted Gross Income (Form 1040, Line 11) — your income after above-the-line deductions
  • Student Loan Interest Deducted = Amount you actually claimed as a deduction; the add-back removes its effect on AGI
  • IRA Deduction = Deductible Traditional IRA contribution; added back so high earners cannot use an IRA deduction to lower their Roth IRA MAGI
  • Foreign Earned Income Exclusion = Income earned abroad that was excluded under IRC Section 911; added back because it represents real economic capacity
  • Tax-Exempt Interest = Municipal bond interest and similar; included in ACA MAGI per 26 U.S.C. § 36B

This formula is codified in IRS Publication 590-A for retirement account purposes and in 26 U.S.C. § 36B for ACA purposes.

Roth IRA Phase-Out Calculation

Once MAGI is determined, the allowable Roth IRA contribution is computed as follows for 2026:

Single/HOH (phase-out range: $150,000 – $165,000, range = $15,000):

Contribution = $7,000 × (1 − (MAGI − $150,000) / $15,000)
Rounded down to the nearest $10; minimum $0

Married Filing Jointly (phase-out range: $236,000 – $246,000, range = $10,000):

Contribution = $7,000 × (1 − (MAGI − $236,000) / $10,000)
Rounded down to the nearest $10; minimum $0

Worked Example

Single filer, age 38. Wages: $155,000. Student loan interest deducted: $2,000. IRA deduction: $7,000.

  1. AGI: $155,000 − $2,000 − $7,000 = $146,000
  2. MAGI: $146,000 + $2,000 + $7,000 = $155,000
  3. Roth IRA check: Phase-out range is $150,000 – $165,000. MAGI of $155,000 is $5,000 into the $15,000 range.
    • Reduction factor: $5,000 / $15,000 = 33.3%
    • Contribution: $7,000 × (1 − 0.333) = $4,669 → rounded to $4,660
  4. Student loan check: MAGI for student loan = $146,000 + $2,000 = $148,000. Phase-out starts at $80,000. The deduction is fully phased out above $95,000. Student loan status: Not Eligible.

Notice how even though the taxpayer’s AGI was only $146,000, the MAGI of $155,000 triggers a partial Roth IRA phase-out. This is exactly why understanding the MAGI concept is essential for effective tax planning. To explore how these deductions flow through your complete paycheck picture, our Gross-to-Net Calculator can model the full impact.

MAGI Calculator Examples

The following examples illustrate how MAGI affects real-world tax planning decisions.

Example 1: The Teacher With Student Loans

Scenario: Maria is a single high school teacher earning $65,000 in wages. She has no other income. She made $1,800 in student loan payments of which $1,400 was deductible interest. She also contributed $5,000 to a Traditional IRA.

AGI: $65,000 − $1,400 − $5,000 = $58,600

Add-backs: $1,400 (student loan) + $5,000 (IRA) = $6,400

MAGI: $58,600 + $6,400 = $65,000

Results:

  • Roth IRA: Fully eligible. She can contribute the full $7,000.
  • Traditional IRA: Fully deductible. Her MAGI for IRA purposes (AGI + student loan only = $60,000) is below $79,000.
  • Student loan: Fully eligible. MAGI for student loan check ($58,600 + $1,400 = $60,000) is below $80,000.
  • NIIT: Does not apply.

Takeaway: Maria has maximum flexibility. She could even redirect her Traditional IRA contribution to a Roth IRA if she prefers tax-free growth.


Example 2: The Mid-Career Professional Near the Roth Phase-Out

Scenario: James is a single software engineer earning $158,000 in total compensation. He contributes $23,500 to his employer 401(k) (already excluded from Box 1 of his W-2) and also took a $7,000 Traditional IRA deduction. No student loans, no foreign income.

AGI: $158,000 − $7,000 = $151,000

MAGI: $151,000 + $7,000 = $158,000

Results:

  • Roth IRA: MAGI of $158,000 is $8,000 into the $15,000 phase-out range. Reduction: 53%. Contribution: $7,000 × 0.47 = $3,290 → $3,290 allowed.
  • NIIT: Does not apply (below $200,000 threshold).

Key Insight: James tried to lower his MAGI by taking the IRA deduction. But the MAGI formula added it back. His 401(k) contribution does reduce MAGI effectively because it is excluded from W-2 Box 1 wages and is not an add-back item for Roth IRA purposes. Maximizing his 401(k) is the right lever to increase his Roth contribution room.


Example 3: Married Couple With Investment Income

Scenario: David and Lisa file jointly. Combined wages: $245,000. They hold a bond portfolio generating $8,000 in municipal bond interest and $12,000 in taxable dividends. No IRA deductions. No student loans.

AGI: $245,000 (wages + dividends; municipal interest is excluded from gross income)

MAGI: $245,000 + $0 (no add-backs for retirement MAGI) = $245,000

ACA MAGI: $245,000 + $8,000 (municipal interest add-back) = $253,000

Results:

  • Roth IRA: MAGI of $245,000 is $9,000 into the $10,000 MFJ phase-out range. Contribution: $7,000 × 0.10 = $700 → $700 allowed (barely anything).
  • NIIT: MAGI of $245,000 does not exceed the $250,000 MFJ threshold. NIIT does not apply.
  • Medicare IRMAA: ACA MAGI of $253,000 exceeds the MFJ IRMAA threshold of $212,000, triggering a Medicare Part B surcharge.

Key Insight: Municipal bond interest is irrelevant for Roth IRA MAGI but is added back for IRMAA purposes. The couple’s Roth IRA access is nearly eliminated, but their investment income keeps them just below the NIIT threshold.


Example 4: High Earner Using Backdoor Roth Strategy

Scenario: Sandra is single with $250,000 in income. She knows she cannot contribute to a Roth IRA directly. She made a $7,000 non-deductible Traditional IRA contribution (not deductible because her income is too high).

AGI: $250,000 (no Traditional IRA deduction because it was non-deductible at her income level)

MAGI: $250,000 + $0 (no add-backs; the IRA was non-deductible) = $250,000

Results:

  • Roth IRA (direct): Not eligible — MAGI is $85,000 above the $165,000 ceiling.
  • NIIT: Applies — MAGI exceeds $200,000 threshold.

Key Insight: Sandra can execute a backdoor Roth conversion. Because she made a non-deductible IRA contribution (no IRA deduction means no add-back), her MAGI is $250,000 regardless. She can convert the $7,000 non-deductible IRA balance to a Roth IRA with no income-based restriction on conversions. This is why understanding MAGI matters even when you know you are ineligible for direct contributions.


Example 5: Expat With Foreign Income

Scenario: Robert lives in Germany and earns $115,000. He excluded $120,000 (the 2026 foreign earned income exclusion limit is approximately $130,000) of that income using Form 2555. His US-source investment income is $30,000. Total gross income: $145,000. Foreign exclusion: $115,000. AGI: $30,000.

MAGI: $30,000 + $115,000 (foreign income add-back) = $145,000

Results:

  • Roth IRA: MAGI of $145,000 is below the $150,000 single phase-out floor. Fully eligible for the $7,000 contribution.
  • NIIT: MAGI of $145,000 does not exceed $200,000. Does not apply.

Key Insight: Without the MAGI add-back, Robert’s AGI of $30,000 would make him seem like a low earner. The MAGI correctly captures his full earning capacity. His Roth IRA eligibility is based on $145,000 of economic activity, not just his $30,000 US-source AGI.

Common MAGI Mistakes and How to Avoid Them

Understanding MAGI conceptually is one thing; applying it correctly at tax time is another. These are the most frequent errors taxpayers make.

Assuming MAGI Always Equals AGI

For taxpayers with straightforward W-2 income, no IRA deductions, no student loan interest, and no foreign income, MAGI and AGI are identical. But as soon as any of those items appears, the values diverge. The mistake is entering AGI wherever MAGI is required — for example, on a Roth IRA contribution form or an ACA application — without checking for add-backs first. Always verify by working through the MAGI calculation before reporting an income figure to a financial institution or government agency.

Confusing the Different MAGI Definitions

The IRS uses at least five different MAGI definitions across various programs. The most consequential distinction is between Roth IRA MAGI (which adds back the IRA deduction) and ACA MAGI (which does not add back the IRA deduction but does add back tax-exempt interest). A taxpayer who used ACA MAGI to estimate Roth IRA eligibility could either over- or under-estimate their contribution limit. Our calculator outputs both figures to prevent this specific confusion. The AOTC Calculator uses yet another MAGI variant — AGI + student loan interest + foreign income — for the American Opportunity Tax Credit phase-out.

Forgetting the 401(k) Advantage

One of the most powerful MAGI-reduction tools is often overlooked: pre-tax 401(k) contributions. Because these contributions reduce your Box 1 W-2 wages before you even compute gross income, they lower your AGI without becoming an add-back for MAGI purposes. In contrast, a Traditional IRA deduction reduces AGI but is added back to compute Roth IRA MAGI. The practical implication is that maxing your 401(k) or 403(b) is a more effective strategy for lowering Roth IRA MAGI than taking a Traditional IRA deduction. For 2026, the 401(k) contribution limit is $23,500 ($31,000 if age 50 or older under current catch-up provisions).

Ignoring Phase-Out Rounding Rules

The IRS mandates specific rounding for Roth IRA phase-out calculations: the allowable contribution must be rounded down to the nearest $10 and cannot be less than $200 if any contribution is allowed at all. If the mathematical result of the phase-out formula produces a contribution between $1 and $200, the IRS floors it at $200 per IRS Publication 590-A. Our calculator applies the rounding rule but does not enforce the $200 floor because the floor only applies when the calculated amount is above zero — verifying the exact dollar amount with your tax advisor before contributing is always recommended for borderline cases.

Waiting Until Tax Season to Plan

MAGI-related decisions must be made before December 31 for most strategies. Pre-tax 401(k) contributions, HSA funding, tax-loss harvesting, and timing of capital gain realizations all require action before year-end. Roth IRA contributions can technically be made until the tax filing deadline (April 15, 2027, for tax year 2026), which does allow some post-year flexibility for the IRA itself. However, strategies that reduce AGI — and therefore MAGI — generally cannot be applied retroactively after December 31. Use this calculator in October or November to identify whether you are near a critical threshold and still have time to act.

Frequently Asked Questions

Modified Adjusted Gross Income (MAGI) is your Adjusted Gross Income (AGI) with certain deductions added back. The IRS uses MAGI—rather than AGI—to determine eligibility for Roth IRA contributions, Traditional IRA deductibility, student loan interest deductions, ACA premium tax credits, and more. For most taxpayers, MAGI is only slightly higher than AGI because the add-backs are small.

AGI (Line 11 of Form 1040) is calculated by subtracting above-the-line deductions from gross income. MAGI adds specific deductions back to AGI to prevent taxpayers from using those same deductions to game income-based eligibility tests. Common add-backs include student loan interest, the Traditional IRA deduction, and the foreign earned income exclusion. For most W-2 workers with no foreign income, MAGI equals AGI.

The most common add-backs are: (1) student loan interest deduction taken on Schedule 1, (2) Traditional IRA deduction taken on Schedule 1, (3) foreign earned income and foreign housing exclusions from Form 2555, and (4) for ACA purposes only, tax-exempt interest income from Form 1040 Line 2a. Different programs define MAGI slightly differently, but these four items cover the vast majority of taxpayers.

For 2026, Roth IRA contributions phase out for single filers and heads of household with MAGI between $150,000 and $165,000. For married filing jointly, the phase-out range is $236,000 to $246,000. Married filing separately filers face a very narrow phase-out from $0 to $10,000, effectively eliminating the Roth IRA option for most MFS filers who live together. These figures are from IRS Rev. Proc. 2025-28.

Yes, through a strategy called the 'backdoor Roth IRA.' If your MAGI exceeds the Roth IRA phase-out limits, you can make a non-deductible contribution to a Traditional IRA and then convert it to a Roth IRA. There is no MAGI limit on Roth conversions. However, this strategy has complexity if you have pre-tax IRA assets (the pro-rata rule), so consulting a tax professional is advisable.

For 2026, single filers and heads of household with MAGI below $80,000 can deduct up to $2,500 in student loan interest. The deduction phases out between $80,000 and $95,000 and is eliminated above $95,000. Married filing jointly filers lose the deduction at $195,000, with the phase-out starting at $165,000. Married filing separately filers cannot claim this deduction at all.

The Affordable Care Act uses a specific MAGI definition to determine eligibility for premium tax credits and Medicaid. ACA MAGI = AGI + foreign earned income exclusion + tax-exempt interest income. Non-taxable Social Security benefits are also added back for Medicaid determinations. ACA subsidies are available to households with MAGI between 100% and 400% of the federal poverty level. Our calculator shows your ACA MAGI in the results.

Yes. The 3.8% Net Investment Income Tax (NIIT) applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. For 2026, thresholds are $200,000 for single filers and heads of household, $250,000 for married filing jointly, and $125,000 for married filing separately. Investment income subject to NIIT includes dividends, capital gains, rental income, and interest.

No. The IRS defines MAGI differently depending on which tax benefit is being tested. Roth IRA MAGI adds back student loan interest, the IRA deduction, and foreign income. ACA MAGI adds back foreign income and tax-exempt interest. IRMAA (Medicare surcharge) MAGI adds back foreign income and tax-exempt interest. Our calculator computes two MAGI values — one for retirement accounts and one for ACA/IRMAA — to cover both scenarios.

The most effective strategies to reduce MAGI include: maximizing pre-tax 401(k) and 403(b) contributions (these reduce AGI directly), contributing to a Health Savings Account (HSA), timing capital gains realizations strategically, harvesting capital losses, and using Qualified Charitable Distributions (QCDs) from IRAs if you are 70½ or older. Each of these reduces AGI and therefore MAGI before add-backs are applied.

Found this helpful? Share it with others.