From your W-2

AGI from W-2 calculator

Your W-2 box 1 is usually lower than your salary, because pre-tax retirement deferrals and benefits never reach it. Enter your pay and deductions from your last pay stub of the year to see box 1, box 5 and the AGI that follows.

  • Box 1 is not your salary
  • 401(k) deferrals lower AGI once, through box 1
  • Box 5 keeps the 401(k) for Medicare

Figures checked November 21, 2026Rules version 2026.11.21-2

Other income and adjustments2 entered
W-2 box 1 (taxable wages)$62,000
Box 5 (Medicare wages)$67,000
Gap from salary$8,000
Adjusted gross income$62,400
Taxable income$46,300

Box 1 is salary minus pre-tax deferrals and benefits. Box 5 keeps the 401(k) deferral, because Medicare tax still applies to it.

Show my Form 1040 lines
Form 1040 lines, tax year 2026
LineWhat it isAmount
1zWages$62,000
2bTaxable interest$400
9Total income$62,400
10Adjustments (Schedule 1 line 26)$0
11aAdjusted gross income$62,400
12eStandard deduction$16,100
14Total deductions$16,100
15Taxable income$46,300
16Tax (estimate)$5,311

Tax year 2026 figures are published, but the 2026 forms are still IRS drafts. Line numbers can move when the final forms appear.

This is an estimate from what you entered. It is not a tax return.

Why box 1 is lower than your salary

Box 1, "Wages, tips, other compensation", is your taxable pay for federal income tax. Your employer starts with everything it paid you and takes out the pre-tax items: elective deferrals to a 401(k), 403(b), 457(b) or the Thrift Savings Plan; health, dental and vision premiums paid through a cafeteria plan; HSA contributions made through payroll; and health or dependent care flexible spending accounts.

Because those items never enter box 1, they have already lowered your AGI before you start your return. That is why the IRA deduction worksheet in the Form 1040 instructions warns not to deduct 401(k) deferrals again. Box 1 goes straight onto Form 1040 line 1a, and from there into line 1z and line 9.

Worked example: Maya from her pay stub

Maya, a single high school teacher, earns a salary of $70,000. She defers $5,000 into her school's 403(b), pays $1,800 of health premiums pre-tax and puts $1,200 into a health FSA. Her W-2 box 1 is $62,000, which is $8,000 below her salary and the same wage figure our home calculator starts with.

Box 5, Medicare wages, is $67,000: the deferral is still subject to Medicare and social security tax, so it stays in, while the cafeteria plan premiums and FSA come out. Her employee Medicare tax on that is $971.50.

Boxes 1, 3 and 5 compared

Box 3 is social security wages and box 5 is Medicare wages. For most employees they are the same, except that box 3 stops at the social security wage base, $184,500 for 2026 (SSA), while box 5 has no cap.

What each W-2 wage box includes
Pre-tax itemBox 1Boxes 3 and 5
401(k), 403(b), 457(b), TSP deferralsLeft outIncluded
Cafeteria plan health premiumsLeft outLeft out
HSA through payrollLeft outLeft out
Health or dependent care FSALeft outLeft out
Roth 401(k) deferralsIncludedIncluded
Group term life over the tax-free amountIncludedIncluded

When box 1 is lower than box 5, the reason is almost always pre-tax retirement deferrals. If your boxes differ in some other way, the notes on the back of your W-2 or your employer can explain the codes in box 12.

From box 1 to AGI

  1. Add box 1 from every W-2 you received, plus any tips not on a W-2 and other earned income on lines 1b to 1h.
  2. Add interest, dividends, retirement payouts, the taxable part of social security, capital gains and Schedule 1 income to reach total income on line 9.
  3. Subtract adjustments on Schedule 1, Part II: for most employees that means a traditional IRA deduction, HSA contributions made outside payroll, student loan interest and educator expenses.
  4. The result is line 11a, your AGI.

For an employee with no other income and no adjustments, AGI equals the total of box 1. In the example above, Maya's $400 of interest brings her total income to $62,400. Her HSA, educator, IRA and student loan adjustments then bring her AGI down to $54,250, as the AGI calculator on the home page shows.

If you have more than one job

Add box 1 from each W-2. Social security tax is capped at the wage base per person, not per employer, so two jobs can over-withhold it; any excess comes back as a credit on your return. That does not affect AGI.

Common questions

Is W-2 box 1 my AGI?

Only if you have no other income and no adjustments. Most people have at least a little interest, so AGI is usually a bit different.

Why does my W-2 not match my last pay stub?

Check the year-to-date pre-tax deductions on the stub. Box 1 is gross pay minus those items.

Do Roth 401(k) contributions lower AGI?

No. Roth deferrals are taxed now, so they stay in box 1.

Sources

This is an estimate from what you entered. It is not a tax return. General information only. Your own return, the Marketplace or Social Security decides the actual figures.