MAGI Calculator (Modified Adjusted Gross Income)

Modified Adjusted Gross Income for Roth IRA eligibility, Social Security taxability, ACA Premium Tax Credit, and other IRS thresholds.

Money Roth + SS + ACA 2024-2025
Rate this calculator · 5.0 (1)

AGI + add-backs → MAGI

3 MAGI versions · 2024 & 2025 limits · Roth eligibility flag

Instructions — MAGI Calculator (Modified Adjusted Gross Income)

1

Enter your AGI

Adjusted Gross Income is line 11 of Form 1040. It is your total income minus above-the-line deductions (IRA contributions, student loan interest, HSA contributions, half of self-employment tax).

2

Add back the relevant items

Each MAGI calculation uses a different set of add-backs. For Roth IRA: traditional IRA deduction, student loan interest, foreign income exclusion. For Social Security taxability: half your benefits and tax-exempt interest. For ACA: all of the above.

3

Select filing status and year

The Roth IRA phase-out thresholds depend on filing status. Single filers phase out at $146,000-$161,000 in 2024 ($150,000-$165,000 in 2025). MFJ phase-out is $230,000-$240,000 in 2024.

4

Read the three MAGI versions

The calculator outputs MAGI for Roth, MAGI for Social Security taxability, and MAGI for ACA Premium Tax Credit. They can differ by tens of thousands of dollars for the same return.

There is no single MAGI: IRS uses different MAGI definitions for different rules. Roth IRA, ACA, Net Investment Income Tax, and Medicare IRMAA each have their own formula.
Backdoor Roth: If MAGI exceeds the Roth limit, you can still contribute to a traditional IRA and convert to Roth. This is fully legal under IRC Section 408A and confirmed in the Tax Cuts and Jobs Act conference report.

Formulas

The IRS uses multiple MAGI definitions. Each starts with AGI and adds back specific items.

MAGI for Roth IRA (Pub 590-A)
$$ MAGI = AGI + Trad\;IRA + SLI + FEI + FHE $$
Add back the traditional IRA deduction, student loan interest deduction, foreign earned income exclusion, and foreign housing exclusion. Used to determine Roth IRA contribution eligibility.
MAGI for Social Security (Pub 915)
$$ MAGI_{SS} = AGI + 0.5 \times SS + Tax\;Exempt\;Int $$
For determining how much of your Social Security benefits are taxable. If MAGI_SS exceeds $25,000 (single) or $32,000 (MFJ), up to 50% of benefits are taxable. Above $34,000/$44,000, up to 85%.
MAGI for ACA Premium Tax Credit
$$ MAGI_{ACA} = AGI + Tax\;Exempt\;Int + SS_{non-taxable} + FEI $$
Used to determine Premium Tax Credit eligibility on the Health Insurance Marketplace. Includes all Social Security benefits, not just half. The eligibility window runs to 400% of the federal poverty level (or higher through 2025 under the Inflation Reduction Act).
MAGI for Net Investment Income Tax
$$ MAGI_{NIIT} = AGI + FEI + FHE $$
The 3.8% NIIT applies if MAGI exceeds $200,000 (single) or $250,000 (MFJ). Only the foreign earned income and housing exclusions are added back, not student loan interest or IRA deductions.
MAGI for Medicare IRMAA
$$ MAGI_{IRMAA} = AGI + Tax\;Exempt\;Int $$
Determines whether you pay a Medicare Part B and Part D Income-Related Monthly Adjustment Amount surcharge. Uses your tax return from 2 years prior. 2024 IRMAA tiers start at $103,000 (single) and $206,000 (MFJ).
Add-Backs Summary
$$ Add\;Backs = Trad\;IRA + SLI + FEI + FHE + Other $$
Different MAGI versions use different subsets. None of these add-backs are taxed; they just count toward eligibility thresholds for specific tax benefits.

Reference

Roth IRA contribution phase-outs (IRS)
Filing status2024 phase-out2025 phase-out
Single / Head of household$146,000 - $161,000$150,000 - $165,000
Married filing jointly$230,000 - $240,000$236,000 - $246,000
Married filing separately$0 - $10,000$0 - $10,000

Other 2024 MAGI thresholds

When MAGI matters and at what level.

Income-tied benefits
BenefitMAGI threshold
Student loan interest deduction$85K-$100K single
American Opportunity Credit$80K-$90K single
Lifetime Learning Credit$80K-$90K single
Saver's Credit$38,250 single
Child Tax Credit phase-out$200K single / $400K MFJ
EITC phase-outvaries by family size
Healthcare / Medicare
ItemMAGI threshold
Net Investment Income Tax$200K single / $250K MFJ
Additional Medicare Tax$200K single / $250K MFJ
Medicare IRMAA tier 1$103K single
Medicare IRMAA tier 2$129K single
SS taxability (50%)$25K single / $32K MFJ
SS taxability (85%)$34K single / $44K MFJ

Sources: IRS Publication 590-A (Roth IRA); IRS Publication 915 (Social Security); IRS Notice 2023-75 (2024 limits); IRS Notice 2024-80 (2025 limits).

Article — MAGI Calculator (Modified Adjusted Gross Income)

MAGI calculator: turn AGI into Modified Adjusted Gross Income

Modified Adjusted Gross Income (MAGI) is your AGI with certain deductions added back. The IRS uses MAGI to determine eligibility for Roth IRA contributions, ACA Premium Tax Credit, Net Investment Income Tax, and Medicare IRMAA surcharges. There is no single MAGI: each tax rule has its own add-back list.

AGI sits on line 11 of Form 1040. MAGI never appears on the return. It is computed separately for each rule, using the AGI as the starting point and adding back specific items defined in IRS publications. The Tax Code refers to MAGI more than 30 times, each instance with a slightly different definition.

What is MAGI?

MAGI is Adjusted Gross Income with selected deductions added back. The purpose is to count certain tax benefits as income when testing eligibility for other tax benefits. The Roth IRA rule, for example, adds back the traditional IRA deduction, so taxpayers cannot deduct one type of contribution and then claim eligibility for another based on the lower number.

IRS Publication 590-A defines MAGI for IRA purposes. Publication 915 defines it for Social Security. The Affordable Care Act regulations define MAGI for Premium Tax Credit. Each definition starts from AGI and adds back a different subset of items.

Did you know

The term "Modified Adjusted Gross Income" first appeared in tax law in 1986, with the Tax Reform Act's IRA deduction phase-out rules. The Affordable Care Act (2010) added the most-cited MAGI definition, used for tens of millions of Premium Tax Credit determinations each year.

MAGI vs. AGI

AGI is gross income minus above-the-line deductions: traditional IRA contributions, student loan interest, HSA contributions, half of self-employment tax, educator expenses, and a handful of others. MAGI is AGI plus some of those deductions added back, depending on which rule is being applied.

MAGI math at a glance
AGI = Form 1040 line 11
MAGI (Roth) = AGI + Trad IRA + SLI + FEI + FHE
MAGI (SS) = AGI + 0.5 × SS + tax-exempt interest
MAGI (ACA) = AGI + tax-exempt interest + non-taxable SS + FEI

For most middle-income taxpayers with no IRA deduction, no student loan interest, and no foreign income, MAGI equals AGI. The two diverge once add-backs apply.

MAGI for Roth IRA eligibility

The Roth IRA contribution limit phases out between $146,000 and $161,000 of MAGI for single filers in 2024, and between $230,000 and $240,000 for married filing jointly. IRS Notice 2024-80 raised those thresholds to $150,000-$165,000 and $236,000-$246,000 for 2025.

  • Single / Head of household 2024 — full $7,000 below $146,000, zero above $161,000.
  • Married filing jointly 2024 — full $7,000 below $230,000, zero above $240,000.
  • Married filing separately — phase-out from $0 to $10,000.
  • Age 50+ catch-up — extra $1,000 ($8,000 total) at full eligibility.
  • Backdoor Roth — non-deductible Traditional IRA contribution plus conversion, legal per IRC 408A.

Within the phase-out range, the allowed contribution drops proportionally. At MAGI of $153,500 in 2024 (single), the formula is: $7,000 × (161,000 − 153,500) ÷ (161,000 − 146,000) = $3,500.

MAGI for Social Security taxability

Social Security benefits are partly taxable above certain MAGI thresholds. The formula for SS MAGI is AGI plus half of benefits plus tax-exempt interest. Above $25,000 (single) or $32,000 (MFJ), up to 50% of benefits become taxable. Above $34,000 / $44,000, up to 85%.

The 85% taxability cliff is unindexed

The Social Security MAGI thresholds were set in 1983 and 1993 and have never been adjusted for inflation. As a result, more retirees cross them every year. The Social Security Administration estimates that 56% of beneficiaries paid federal income tax on benefits in 2023, up from 10% in 1984.

MAGI for ACA Premium Tax Credit

The Premium Tax Credit eligibility uses a broader MAGI definition: AGI plus all non-taxable Social Security, tax-exempt interest, and foreign earned income excluded under FEIE. The Inflation Reduction Act of 2022 extended the enhanced subsidies through 2025, eliminating the 400%-of-federal-poverty-level cliff during that period.

HealthCare.gov uses ACA MAGI for both Premium Tax Credit eligibility and the application of cost-sharing reductions. CMS estimates 21 million enrollees received subsidies during 2024 open enrollment, the highest count in marketplace history.

MAGI for Medicare IRMAA

Medicare's Income-Related Monthly Adjustment Amount surcharges use MAGI from two years prior. For 2024 Medicare, the IRS shares the 2022 tax return. The first IRMAA tier starts at $103,000 single and $206,000 MFJ. The top tier (MAGI over $500,000 single) adds $419.30 per month to the standard Part B premium of $174.70, plus a Part D surcharge.

$103K
Tier 1 single
+$69.90/mo
Part B surcharge
$500K
Top tier single
+$419.30/mo
Part B surcharge

Strategies to reduce MAGI

Because MAGI determines so many thresholds, even small reductions can produce outsized tax savings. The simplest lever is increasing pre-tax 401(k) and HSA contributions, both of which reduce AGI directly.

Tip

Qualified Charitable Distributions (QCDs) from an IRA at age 70.5+ count toward your required minimum distribution but do not appear in AGI. The IRS lets you transfer up to $105,000 per year (2024) directly to charity, sidestepping MAGI entirely.

Other levers: harvesting capital losses up to $3,000 per year to offset gains; converting traditional IRA to Roth in lower-income years; deferring a year-end bonus to January; bunching itemized deductions across two years to keep MAGI under a threshold every other year.

For taxpayers near a MAGI cliff, the marginal impact of a single deduction can be very high. Crossing the 400% federal poverty line MAGI threshold for ACA before 2021 cost a typical household tens of thousands of dollars in lost Premium Tax Credit. The Inflation Reduction Act of 2022 smoothed that cliff through 2025, but other thresholds (IRMAA tiers, NIIT, Roth phase-out) still produce sharp marginal effects. The Tax Policy Center estimates that effective marginal tax rates near MAGI cliffs can exceed 50% for some middle-income households once benefit phase-outs are included.

Common MAGI mistakes

The most common error is treating MAGI as a single number. There are at least five distinct MAGI definitions used by the IRS, and applying the wrong one can disqualify you from a credit you actually qualify for.

  • One-MAGI assumption — the IRS uses different formulas for Roth, ACA, NIIT, and IRMAA.
  • Missing tax-exempt interest — muni-bond interest is added back for SS, ACA, and IRMAA.
  • Ignoring 2-year lookback for IRMAA — the 2022 return drives 2024 Medicare premiums.
  • Confusing Roth and traditional IRA phase-outs — the limits differ; the formula does not.
  • Missing the backdoor Roth — above the limit, non-deductible plus conversion remains legal.

FAQ

MAGI is your AGI plus specific deductions added back. The IRS uses different MAGI formulas for different tax rules: Roth IRA eligibility, Social Security taxability, ACA Premium Tax Credit, Net Investment Income Tax, and Medicare IRMAA. AGI is line 11 of Form 1040; MAGI does not appear on the return itself.
AGI is income minus above-the-line deductions (IRA, student loan interest, HSA). MAGI starts with AGI and adds some of those deductions back, depending on the rule being applied. MAGI is always greater than or equal to AGI.
For 2024, Roth IRA contributions phase out between $146,000 and $161,000 for single filers, and between $230,000 and $240,000 for married filing jointly (IRS Notice 2023-75). For 2025, the limits rise to $150,000-$165,000 single and $236,000-$246,000 MFJ.
For Roth IRA MAGI: traditional IRA deduction, student loan interest, foreign earned income exclusion, foreign housing exclusion. For Social Security MAGI: 50% of SS benefits and tax-exempt interest. Each rule has its own add-back list per IRS publication.
MAGI for SS = AGI + 50% of Social Security benefits + tax-exempt interest. If this exceeds $25,000 (single) or $32,000 (MFJ), up to 50% of benefits are taxable. Above $34,000/$44,000, up to 85% are taxable (IRS Pub 915).
Not directly. But you can use the backdoor Roth strategy: contribute to a non-deductible traditional IRA, then convert to Roth. The IRS confirmed this is legal in the 2017 TCJA conference report. The pro-rata rule complicates conversions if you have other pre-tax IRA balances.
Yes, indirectly. AGI already includes capital gains, dividends, and interest. MAGI is AGI plus specified add-backs, so capital gains flow through. The Net Investment Income Tax (3.8%) applies to investment income when MAGI exceeds $200,000 single / $250,000 MFJ.
Medicare uses MAGI from 2 years prior to determine IRMAA surcharges on Part B and Part D. In 2024, single filers with MAGI over $103,000 pay more. The highest tier (MAGI over $500,000 single) adds $419.30 per month to the standard Part B premium.
It depends on the calculation. Tax-exempt interest (municipal bond interest) is added back for Social Security taxability, ACA, and Medicare IRMAA, but not for Roth IRA. Always check the specific MAGI definition for the rule you are applying.
Yes. Contribute to a traditional 401(k), HSA, FSA, or use other above-the-line deductions to lower AGI. Increase pre-tax retirement contributions. Defer taxable income (bonus, capital gains). Realize capital losses up to $3,000 per year. Charitable QCDs from IRA at age 70.5+ reduce AGI without an itemized deduction.