Modified Adjusted Gross Income: What It Is, How to Calculate It

Knowing your MAGI can help you figure out if you're eligible for certain tax deductions. Plus, learn how it differs from adjusted gross income.

Many, or all, of the products featured on this page are from our advertising partners who compensate us when you take certain actions on our website or click to take an action on their website. However, this does not influence our evaluations. Our opinions are our own. Here is a list of our partners and here's how we make money.

Updated · 3 min read
Profile photo of Alana Benson
Written by Alana Benson
Lead Writer
Profile photo of Michael Randall
Reviewed by Michael Randall
Certified Financial Planner®
Profile photo of Chris Davis
Edited by Chris Davis
Assigning Editor
Fact Checked
Profile photo of Pamela de la Fuente
Co-written by Pamela de la Fuente
Assigning Editor

What is modified adjusted gross income?

Modified adjusted gross income (MAGI) refers to your adjusted gross income (AGI) with certain deductions added back in.

Your MAGI is important because it helps determine your eligibility for certain tax benefits — such as deducting traditional IRA contributions or taking the premium tax credit — and whether you can contribute to a Roth IRA.

Although there is a general formula for calculating your modified adjusted gross income, some credits or benefits may ask you to calculate it differently.

How to calculate MAGI

1. Determine your gross income

Figuring out your MAGI begins with knowing your gross income, which includes all the money you earn, including a salary from a job, capital gains from selling a house or stocks, interest or retirement income, and even unemployment benefits.

2. Figure your adjusted gross income

Your AGI is your gross income minus certain adjustments known as above-the-line deductions. Some of the most common items that are subtracted from gross income to determine AGI include:

  • IRA and 401(k) contributions.

  • Self-employed retirement plan contributions.

  • Half of any self-employment tax paid.

  • Health savings account deductions.

  • Student loan interest.

  • Some business expenses for the performing arts, military reservists and government officials who are paid directly from the public, such as a justice of the peace.

3. Add back certain deductions

Finally, take your AGI and add certain deductions back. Although it may seem like you are subtracting certain items only to add them back again, there may be some difference between the two figures, so it’s important to go through the exercise — even if your AGI and your MAGI end up as the same number.

  • IRA contributions.

  • Half of self-employment tax paid.

  • Qualified tuition expenses.

  • Passive loss or income.

  • Non-taxable Social Security payments.

  • Exclusion for income from U.S. savings bonds.

  • Foreign earned income exclusion.

  • Foreign housing exclusion or deduction.

  • The exclusion under 137 for adoption expenses.

  • Rental losses.

  • Publicly traded partnerships losses.

  • Student loan interest deductions.

Thankfully, quality tax software can often simply and quickly help you determine your MAGI and how it relates to the tax benefits available to you. To know exactly what adjustments you can subtract from your gross income to get your AGI, you can also speak with a tax professional.

What is MAGI used for?

MAGI is used to determine eligibility for many credits and deductions. Some common credits that use MAGI income limits include the child tax credit, the American opportunity credit, the lifetime learning credit, the EV tax credit, and the premium tax credit.

Modified adjusted gross income is also the basis for whether someone can deduct traditional IRA contributions and if they can contribute to a Roth IRA. People who make above a certain MAGI may be limited to a partial deduction or contribution — or none at all. Here's a quick look at how MAGI comes into play for traditional and Roth IRAs.

Traditional IRA deductions

If you (or both you and your spouse) are not covered by a workplace retirement plan, you can take the full IRA deduction when you file your annual return. However, for those with employer-sponsored retirement plans, your MAGI determines whether you're eligible for this deduction and how much you can take.

For example, let's say you’re planning to file your taxes as a single person, you have a workplace retirement plan, and you plan to contribute $7,000, the maximum amount allowed, to a traditional IRA in 2024. If your MAGI is $77,000 or less, you can deduct that full $7,000 from your taxable income on your 2024 tax return (filed in 2025). The table below shows how deductions change based on filing status and MAGI.

Filing status

2024 traditional IRA income limit

Deduction limit

Single or head of household (and covered by retirement plan at work)

$77,000 or less.

Full deduction.

More than $77,000, but less than $87,000.

Partial deduction.

$87,000 or more.

No deduction.

Married filing jointly (and covered by retirement plan at work)

$123,000 or less.

Full deduction.

More than $123,000, but less than $143,000.

Partial deduction.

$143,000 or more.

No deduction.

Married filing jointly (spouse covered by retirement plan at work)

$230,000 or less.

Full deduction.

More than $230,000, but less than $240,000.

Partial deduction.

$240,000 or more.

No deduction.

Married filing separately (you or spouse covered by retirement plan at work)

Less than $10,000.

Partial deduction.

$10,000 or more.

No deduction.

Roth IRA contributions

A Roth IRA is an account that lets you contribute money after you've paid taxes on it, and distributions in retirement are tax-free. To contribute to a Roth IRA, you have to meet certain income limits, which are based on your MAGI. Contributions are reduced, or not allowed, at certain income levels.

The table below outlines Roth IRA contribution limits for tax year 2024 (taxes filed in 2025).

Filing status

Roth IRA income limits 2024

Roth IRA contribution limits 2024

Single, head of household, or married filing separately (if you didn't live with spouse during year)

Less than $146,000.

$7,000 ($8,000 if 50 or older).

$146,000 or more, but less than $161,000.

Contribution is reduced.

$161,000 or more.

No contribution allowed.

Married filing jointly or surviving spouse

Less than $230,000.

$7,000 ($8,000 if 50 or older).

$230,000 or more, but less than $240,000.

Contribution is reduced.

$240,000 or more.

No contribution allowed.

Married filing separately (if you lived with spouse at any time during year)

Less than $10,000.

Contribution is reduced.

$10,000 or more.

No contribution allowed.

» Learn more about the Roth IRA income limits

Examples of calculating MAGI

Some programs and deductions calculate MAGI differently. Once you arrive at your MAGI, check each deduction or credit to see if your MAGI allows you to qualify for it. Here are a couple of examples of how your MAGI could be calculated for various tax deductions and credits.

Example 1: To figure out if you can deduct your traditional IRA contribution:

  • Add your AGI and the following: student loan interest deduction, foreign earned income and housing exclusions, foreign housing deduction, excluded savings bond interest and excluded employer adoption benefits.

  • If the number you arrive at is less than the traditional IRA deduction limit, then you can deduct the full amount. Depending on your filing status, and if you have a workplace retirement plan, those deduction limits can change. Regardless of your MAGI, you can take the full deduction if neither you nor your spouse are covered by a workplace retirement program.

Example 2: To figure out if you are eligible for certain education credits:

  • Add your AGI and the following: foreign earned income and housing exclusions, foreign housing deduction, excluded bona fide resident of Puerto Rico or American Samoa income.

  • For single filers with a MAGI between $80,000 and $90,000, you’ll receive a reduced credit. After $90,000, you are not eligible for the credit.

  • For those married filing jointly, the phase-out lasts between $160,000 and $180,000, over which you are not eligible. If you file with the married filing separately status, you are not eligible for these tax credits.

MAGI vs. AGI: What's the difference?

Your AGI is your total income minus any eligible deductions

. Your MAGI is just your AGI with certain deductions added back, such as student loan interest, foreign-earned income and housing exclusions, and employer adoption benefits, among other things.

MORE LIKE THISTaxes
Get more smart money moves – straight to your inbox
Sign up and we’ll send you Nerdy articles about the money topics that matter most to you along with other ways to help you get more from your money.
Nerdwallet advisors logo

Get matched to a trusted financial advisor for free with NerdWallet Advisors Match.

Illustration
Advertisement