Your adjusted gross income (AGI) is your total (gross) income from all sources minus certain adjustments. Your modified adjusted gross income (MAGI) is your adjusted gross income with certain deductions added back.

On this page

When you need your AGI
How to calculate your AGI
Where to find your AGI
Modified adjusted gross income
When you need your MAGI
How to calculate your MAGI
Where to find your MAGI
MAGI definitions for specific items

When you need your AGI

You may need your AGI to:

  • Confirm your identity to e-file your return
  • Qualify for tax credits and other benefits

How to calculate your AGI

Your adjusted gross income (AGI) is your total (gross) income from all sources minus certain adjustments such as:

Find more on:

All adjustments to income, Instructions Form 1040, U.S. Individual Income Tax Return.

Other expenses to figure your AGI

What’s included in taxable income

If you use software to prepare your return, it will automatically calculate your AGI. Your AGI is entered on line 11 of Form 1040, U.S. Individual Income Tax Return.

Where to find your AGI

You can find your AGI:

Modified adjusted gross income

Your modified adjusted gross income (MAGI) is your adjusted gross income with certain deductions added back. Your MAGI is not just your compensation. It may include interest, dividends and income from IRA distributions. It also adds back income or benefits you normally could exclude from your income to figure your tax.

When you need your MAGI

You use your modified adjusted gross income to calculate:

  • Some credits, like the Child Tax Credit and Adoption Tax Credit
  • Deductions for IRA contributions
  • Exclusions for certain types of income like savings bond interest income

Based on your MAGI, you get a different amount for each credit, deduction and income you can exclude from tax.

How to calculate your MAGI

You calculate your MAGI based on the tax deduction or credit you’re taking.

General MAGI calculation

To figure your modified adjusted gross income, start with your AGI and add:

  • IRA contributions
  • Student loan interest – Form 1040, Schedule 1, line 21
  • Foreign earned income and housing exclusions - Form 2555, line 45
  • Foreign housing deduction or income exclusion - Form 2555, line 50
  • Savings bond interest excluded from your income - Form 8815, line 14
  • Adoption benefits excluded from your income - Form 8839, line 28

If you use software to prepare your return, it will automatically calculate your MAGI.

Where to find your MAGI

You can find your MAGI:

MAGI definitions for specific credits, deductions and taxes:

Take your AGI and add:

  • Excluded income from Puerto Rico and American Samoa residents
  • Foreign earned income and housing excluded from your income
  • Foreign housing deduction

Instructions for Schedule 8812 (2023)

Take your AGI and add:

  • Foreign earned income
  • Tax-exempt interest
  • Your nontaxable Social Security benefits

Instructions for Form 8839 (2023)

MAGI is calculated for these education credits and accounts the same way:

  • Education Tax Credit
  • Lifetime Learning Credit
  • American Opportunity Credit
  • Coverdell Education Savings Account

Take your AGI and add:

  • Foreign earned income and housing excluded from your income
  • Foreign housing deduction
  • Puerto Rico and American Samoa residents’ excluded income

Tax Benefits for Education, Publication 970 PDF

Education Savings Bond Program

Take your AGI and add:

  • Student loan interest deduction
  • Foreign earned income and housing excluded from your income
  • Foreign housing deduction
  • Puerto Rico and American Samoa residents’ income exclusions
  • Employer-provided adoption benefits excluded from income

Tax Benefits for Education, Publication 970 PDF

Take your AGI and add:

  • Foreign earned income
  • Tax-exempt interest
  • Your nontaxable Social Security benefits

Instructions for Form 8962, Premium Tax Credit (PTC)

MAGI for traditional IRA deductions

Take your AGI and add:

  • Student loan interest deduction
  • Excludable savings bond interest
  • Employer-provided adoption benefits excluded from income
  • Foreign earned income or housing excluded from income
  • Foreign housing deduction

For 2024, you can deduct your traditional IRA contributions subject to these MAGI income limits if you’re covered by a retirement plan at work:

  • $123,001 - $143,000 if married filing jointly or a qualifying surviving spouse
  • $77,001 - $87,000 if filing as single or head of household
  • Less than $10,000 if married filing separately

Contributions to Individual Retirement Arrangements (IRAs), Publication 590-A (2023)

MAGI for Roth IRA contributions

Take your AGI and:

  • Add traditional IRA deductions - Schedule 1 (Form 1040), line 20
  • Subtract income from converting an IRA (other than a Roth IRA) to a Roth IRA - Form 1040 or 1040-SR, line 4b
  • Subtract rollovers from a qualified retirement plan to a Roth IRA - Form 1040 or 1040-SR, line 5b)

For 2024, you can contribute to a Roth IRA if you have taxable compensation and MAGI less than the annual income amount for your filing status:

  • Married filing jointly - $240,000
  • Married filing separately - $10,000
  • All others - $161,000

If your Roth calculated MAGI is more than the annual income amount for your filing status:

You can refigure your AGI for these other income and losses that depend on your AGI for Roth IRA contributions:

See What Is Modified Adjusted Gross Income? | H&R Block (hrblock.com) for MAGI calculation for: net investment income tax, premium tax credit, child tax credit.

Use your MAGI to determine if you owe the net investment tax. Attach Form 8960 to your return if your MAGI is greater than the applicable threshold amount.

Take your AGI, then add:

  • Foreign earned income excluded from your income and adjustments for foreign investments
  • Foreign earned income deductions

Add or subtract the adjustment to gain or loss on the disposition of:

  • A controlled foreign corporation (CFC) or qualified electing fund (QEF)
  • An interest in a domestic partnership or S corporation that holds a CFC or QEF

Instructions for Form 8960, Net Investment Income Tax—Individuals, Estates, and Trusts PDF

Related

Taxable income

Definition of adjusted gross income