What AGI is and where your W-2 fits in

Adjusted Gross Income (AGI) is the number the IRS uses to determine how much tax you owe and whether you can claim certain deductions. It starts with your gross income — the total you earned — and then subtracts specific deductions the IRS allows. Your W-2 provides the starting point, but calculating AGI requires a few more steps beyond what appears on that form.

The W-2 shows your wages, tips, and other compensation in Box 1. That number is your gross income from that employer. If you worked for multiple employers, you add all the Box 1 amounts together. From there, you subtract certain deductions to arrive at AGI. The result is what you report on your tax return and what determines your tax bracket.

Key Takeaways

  • Start with Box 1 of your W-2, which shows wages and tips; add all W-2s together if you had multiple employers.
  • Subtract above-the-line deductions such as student loan interest, IRA contributions, and half of self-employment tax to reach AGI.
  • AGI appears on line 11 of Form 1040 and determines your may be able to access for many tax credits and deductions.
  • If you only have W-2 income and no other sources, your AGI calculation is straightforward and takes just a few minutes.

Gathering your W-2 and identifying gross income

Pull out every W-2 you received for the tax year. Look at Box 1 on each form — this is "Wages, tips, other compensation." Write down that number for each W-2. If you worked at one job all year, you have one number. If you changed jobs or worked multiple positions, you will have multiple W-2s and multiple Box 1 amounts.

Add all the Box 1 amounts together. This total is your gross income from wages. Do not include amounts from Box 2 (federal income tax withheld) or any other boxes yet — those serve different purposes on your return. Your gross income is the foundation of the AGI calculation.

Subtracting above-the-line deductions

Above-the-line deductions are specific expenses the IRS allows you to subtract from gross income to reach AGI. These are sometimes called "adjustments to income." The most common ones are student loan interest, contributions to a traditional IRA, and educator expenses. You do not need to itemize to claim these — they reduce your income automatically.

Common above-the-line deductions include:

  • Student loan interest paid during the year (up to $2,500 per year, though this amount can change)
  • Contributions to a traditional IRA (up to annual limits set by the IRS)
  • Educator expenses if you are a K-12 teacher or school staff member
  • Self-employment tax deduction if you are self-employed (half of what you paid)
  • Health savings account (HSA) contributions
  • Alimony paid to a former spouse (rules changed in 2019 for newer divorces)

Your W-2 does not report these deductions — you track them separately. Gather receipts, statements, or records showing what you paid. Add up the amounts you are may have access to to subtract, then deduct that total from your gross income.

The basic AGI formula

The calculation is straightforward once you have the numbers in front of you:

Gross Income (Box 1 from all W-2s) − Above-the-Line Deductions = AGI

For example: if your W-2 shows $50,000 in Box 1 and you contributed $3,000 to a traditional IRA, your AGI would be $47,000. If you paid $1,500 in student loan interest, you would subtract that as well, bringing AGI to $45,500.

If you have only W-2 income and no above-the-line deductions, your AGI equals your gross income from Box 1. Many people fall into this category, which makes their calculation very straightforward.

Where AGI appears on your tax return

When you file your tax return using Form 1040, AGI appears on line 11. This is the number the IRS uses to determine your tax bracket, your standard deduction, and whether you can claim certain credits and deductions. Some tax credits phase out at higher AGI levels, meaning a lower AGI can make you may be able to access for more tax relief.

Tax software will calculate AGI for you automatically once you enter your W-2 information and any deductions. If you are filing by hand, you enter the numbers in the order the form shows, and line 11 is where your AGI lands. Keep this number handy — you may need it for other forms or to verify your return.

What AGI does not include

AGI does not include certain types of income or deductions. For example, if you received a tax refund from a previous year, that refund is not income and does not go into AGI. Gifts and inheritances are also not included. Some types of interest income, such as municipal bond interest, may be excluded as well.

On the deduction side, AGI does not account for the standard deduction or itemized deductions — those come after AGI is calculated. Medical expenses, charitable donations, and mortgage interest are handled separately on your return, after you have determined AGI. This is why AGI is sometimes called "income before deductions" — it is the middle step between gross income and taxable income.

Common mistakes when calculating AGI from a W-2

The most frequent error is forgetting to add multiple W-2s together. If you worked two jobs, you must include Box 1 from both forms. Some people also confuse Box 1 (wages) with Box 2 (federal tax withheld) — Box 2 is not income and should not be included in AGI.

Another mistake is claiming above-the-line deductions you are not may have access to to. Student loan interest, for instance, has income limits — if your AGI is too high, you cannot deduct it. IRA contributions also have limits based on income and whether you have access to a workplace retirement plan. Check the IRS rules for each deduction before subtracting it.

Finally, some people subtract the standard deduction from gross income to calculate AGI. The standard deduction comes after AGI, not before. AGI is calculated first, then the standard deduction reduces your taxable income further.

Frequently Asked Questions

Do I need to include Box 2 (federal tax withheld) in my AGI calculation?

No. Box 2 shows how much federal income tax your employer already took out of your paychecks. This is not income — it is a payment toward your tax bill. Include only Box 1 (wages and tips) in your AGI calculation.

What if I have W-2 income and also received unemployment benefits?

Unemployment benefits are taxable income, but they do not appear on your W-2. They appear on a Form 1099-G instead. Add the unemployment amount to your W-2 Box 1 total to get your full gross income, then subtract any above-the-line deductions to reach AGI.

Can I deduct my standard deduction from my W-2 income to calculate AGI?

No. The standard deduction is subtracted after AGI is calculated. AGI is the middle step: it is gross income minus above-the-line deductions only. The standard deduction reduces your taxable income, which comes after AGI.

Does my W-2 show my AGI?

No. Your W-2 shows only wages and withholdings. You calculate AGI yourself using information from your W-2 plus any above-the-line deductions you have. AGI appears on your tax return (Form 1040, line 11), not on the W-2.

What if I contributed to both a traditional IRA and a Roth IRA?

Only traditional IRA contributions reduce your AGI. Roth IRA contributions are made with after-tax dollars and do not lower your gross income. If you contributed to both, subtract only the traditional IRA amount from your gross income.