ToolsBlog Download

MAGI Calculator

Calculate your 2026 Modified Adjusted Gross Income from your AGI and add-backs, with the right formula applied for Roth IRA, IRA deduction, ACA premium tax credit, IRMAA, or net investment income tax.

MAGI Calculator

What Is This MAGI For?

MAGI is calculated differently for each benefit. Pick one and the form below adjusts to ask only for the add-backs that apply.

Filing Status

Adjusted Gross Income (AGI)

Line 11 of your Form 1040.

$
$0 $500,000
Get the full deductible IRA amount → Estimate the tax cost of a Roth conversion →
Your MAGI
$0
for a Roth IRA contribution
Eligible Result

MAGI is an estimate. Confirm with the worksheet in the IRS form or publication for your specific benefit. There is no single MAGI: the add-backs depend on the benefit you selected.

Want the Full Tax Picture?

Tax47 builds a full return from your W-2, 1099, and Schedule C data, applying every credit, deduction, and the 2026 changes for you. Download Tax47 for a complete estimate.

What Is Modified Adjusted Gross Income (MAGI)?

Modified Adjusted Gross Income is your adjusted gross income (AGI) with a specific list of deductions and exclusions added back in. AGI is the number on Form 1040, line 11: total income minus above-the-line adjustments. MAGI takes that figure and restores certain items the tax law tells you to ignore for a particular benefit.

MAGI matters because it gates eligibility. The IRS and the Social Security Administration use it to decide whether you can contribute to a Roth IRA, deduct a traditional IRA contribution, claim an ACA premium tax credit, owe a Medicare IRMAA surcharge, or pay the net investment income tax. If your income sits anywhere near a threshold, the MAGI number, not your raw AGI, is the one that counts.

For a filer with no exclusions, MAGI often equals AGI. The two only diverge when you have add-backs such as the student loan interest deduction or a foreign earned income exclusion.

Why MAGI Is Calculated Differently for Each Benefit

Here is the part most calculators miss: there is no single MAGI. Each section of the tax code defines its own add-backs, so the MAGI used to test a Roth IRA contribution is not the same number used for IRMAA or the ACA premium tax credit. Apply one generic figure across the board and you get the wrong answer for most people.

PurposeAdd-backs applied to AGI
Roth IRA contributionStudent loan interest, traditional IRA deduction, foreign earned income exclusion, excluded savings bond interest, excluded adoption benefits (taxable Roth conversion income is subtracted out)
Traditional IRA deductionStudent loan interest, foreign earned income exclusion, excluded savings bond interest, excluded adoption benefits (the IRA deduction itself is not added back)
ACA premium tax creditForeign earned income exclusion, tax-exempt interest, nontaxable Social Security benefits
Medicare IRMAA surchargeTax-exempt interest only
Net investment income taxForeign earned income exclusion (for most filers MAGI equals AGI)

The calculator above uses the purpose selector to switch which fields appear and which formula runs, so you never add back an item that does not belong in your number.

2026 MAGI Thresholds You Need to Know

The thresholds that matter most for 2026:

Benefit2026 threshold or range
Roth IRA, Single / Head of HouseholdPhase-out $153,000 to $168,000
Roth IRA, Married Filing JointlyPhase-out $242,000 to $252,000
Roth IRA, Married Filing Separately (lived with spouse)Phase-out $0 to $10,000
Traditional IRA deduction, Single / HoH (covered by a plan)Phase-out $81,000 to $91,000
Traditional IRA deduction, MFJ (filer covered)Phase-out $129,000 to $149,000
Net investment income tax, Single / HoH$200,000
Net investment income tax, Married Filing Jointly$250,000
Net investment income tax, Married Filing Separately$125,000

The NIIT thresholds are fixed by statute and never adjust for inflation. Medicare IRMAA brackets do shift each year, and they use a two-year lookback: your 2026 Part B and Part D premiums are set from the MAGI on your 2024 tax return. That timing gap is why a one-time income event, like a Roth conversion or a large capital gain, can push up your Medicare premiums two years later.

How to Calculate Your MAGI Step by Step

Start with AGI on Form 1040, line 11. Then figure out which add-backs apply to the benefit you care about, since that list changes by purpose. Tax-exempt interest is on line 2a, the student loan interest and IRA deductions are on Schedule 1, foreign income exclusions come from Form 2555, savings bond interest from Form 8815, and adoption benefits from Form 8839.

Add the applicable items to AGI to get your MAGI, then compare it against the relevant threshold above. If you are near a Roth or IRA limit, the Traditional IRA Deduction Calculator works out the exact deductible amount, and the Roth IRA Conversion Tax Calculator shows what a conversion would cost. If investment income is your concern, the Capital Gains Tax Calculator and the Tax Bracket Calculator fill in the rest of the picture.

Frequently Asked Questions

Common questions about magi calculator

What is Modified Adjusted Gross Income (MAGI)?

MAGI is your adjusted gross income (Form 1040, line 11) with a specific set of deductions and exclusions added back in. The IRS uses MAGI to decide eligibility for things like Roth IRA contributions, the traditional IRA deduction, ACA premium tax credits, Medicare IRMAA surcharges, and the net investment income tax. See the IRS overview at irs.gov/credits-deductions/modified-adjusted-gross-income.

How is MAGI different from AGI?

AGI is a single number on your tax return: total income minus above-the-line adjustments. MAGI starts from that AGI and adds back certain items the law tells you to ignore for a given benefit. For many filers with no exclusions, MAGI equals AGI. The two only differ when you have add-backs such as the student loan interest deduction or a foreign earned income exclusion.

Why does MAGI have different formulas for different tax benefits?

There is no single MAGI. Each part of the tax code defines its own add-backs, so the MAGI used for a Roth IRA is not the same as the MAGI used for IRMAA or the ACA premium tax credit. A calculator that spits out one generic number is wrong for most users, which is why this tool asks what the MAGI is for and switches the formula to match.

What is added back to AGI to get MAGI?

It depends on the benefit. Common add-backs include the student loan interest deduction, the traditional IRA deduction, the foreign earned income and housing exclusion, excluded U.S. savings bond interest, excluded employer adoption benefits, tax-exempt interest, and nontaxable Social Security benefits. The Roth IRA formula uses one set, while ACA and IRMAA use another. Pick a purpose above to see exactly which ones apply.

Does a Roth IRA contribution or conversion affect my MAGI?

A Roth contribution does not change your MAGI. A Roth conversion does add taxable income to your AGI, and that income stays in MAGI for IRMAA, ACA, and the net investment income tax. For the Roth IRA contribution limit test only, conversion income is subtracted back out, so a large conversion will not block your ability to make a regular Roth contribution. See the Roth IRA Conversion Tax Calculator at /tools/roth-ira-conversion-calculator/.

What is the MAGI limit for a Roth IRA in 2026?

For 2026, the Roth IRA contribution phase-out runs from $153,000 to $168,000 for single and head of household filers, and from $242,000 to $252,000 for married filing jointly. Married filing separately filers who lived with their spouse phase out between $0 and $10,000. Below the floor you can contribute the full amount, inside the range the limit is reduced, and at or above the ceiling no Roth contribution is allowed.

How does MAGI affect my Medicare IRMAA surcharge?

IRMAA is an income-related surcharge added to Medicare Part B and Part D premiums. Medicare uses a MAGI of AGI plus tax-exempt interest, and it looks back two years: your 2026 premiums are based on the MAGI from your 2024 tax return. Crossing an IRMAA bracket by even one dollar moves you to the next surcharge tier for the whole year.

Where do I find the numbers to calculate my MAGI on Form 1040?

Start with AGI on Form 1040, line 11. Tax-exempt interest is on line 2a. The student loan interest deduction, IRA deduction, and other adjustments appear on Schedule 1. Foreign earned income and housing exclusions come from Form 2555, excluded savings bond interest from Form 8815, and excluded adoption benefits from Form 8839. To check your bracket as well, use the Tax Bracket Calculator at /tools/tax-bracket-calculator/.