What Is Gross Income on a W-2? Box 1 vs. Box 3

Your gross income doesn’t appear in a single box on your W-2. The number most people are looking for, your total federal taxable wages, is in Box 1. But if you want your true gross pay before any pre-tax deductions, you’ll need to do a little math. Here’s how each box works and how to find the number you actually need.

Box 1: The Number You’ll Use Most

Box 1, labeled “Wages, tips, other compensation,” shows your total taxable income for federal income tax purposes. This is the figure you report on your tax return, and it’s what most people mean when they ask about gross income on a W-2.

Box 1 includes your regular pay, overtime, bonuses, shift differentials, and other taxable earnings. But it does not include money you contributed to pre-tax accounts like a 401(k), 403(b), health insurance premiums, a health savings account (HSA), or a flexible spending account (FSA). Those amounts were pulled from your paycheck before federal income tax was calculated, so they never show up in Box 1.

If you’re filing your taxes or applying for a mortgage, Box 1 is almost always the number the form or lender is asking for.

Box 3 and Box 5: Why They’re Higher

You might notice that Box 3 (Social Security wages) and Box 5 (Medicare wages and tips) show a larger number than Box 1. That’s not an error. Social Security and Medicare taxes apply to a broader slice of your pay.

The key difference is retirement contributions. If you put $10,000 into a traditional 401(k), that $10,000 is subtracted from Box 1 but still included in Boxes 3 and 5. Your retirement deferrals reduce your federal taxable income, but they’re still subject to Social Security and Medicare taxes.

Box 3 has one additional wrinkle: it’s capped at the Social Security wage base. If your earnings exceed that threshold, Box 3 will max out at the cap, while Box 5 will keep climbing because Medicare tax has no wage limit. For most earners, though, Box 3 and Box 5 will be the same number.

How to Calculate Your True Gross Pay

Your true gross pay is everything your employer paid you before any deductions at all, including pre-tax ones. No single W-2 box shows this number, but you can reconstruct it.

Start with Box 5 (Medicare wages), since it includes retirement contributions and has no wage cap. Then add back any other pre-tax deductions that were excluded from all boxes. Common items to add back include:

  • Health insurance premiums paid through your employer’s plan
  • HSA contributions made through payroll
  • FSA contributions for medical or dependent care expenses
  • Transit or parking benefits deducted pre-tax

You can usually find these amounts on your final pay stub of the year, listed as year-to-date pre-tax deductions. Your employer may also provide a year-end earnings statement that shows total gross pay alongside total deductions.

So the formula looks like this: Box 5 + pre-tax insurance premiums + HSA contributions + FSA contributions + any other pre-tax payroll deductions = your total gross pay.

Box 12: Where the Details Hide

Box 12 uses letter codes to break out specific types of compensation and deductions. A few of the most common ones help explain why the boxes differ:

  • Code D: Your traditional 401(k) contributions. This amount is included in Box 3 and Box 5 but excluded from Box 1.
  • Code E: Your 403(b) contributions, treated the same way as Code D.
  • Code W: Employer and employee HSA contributions made through payroll.
  • Code DD: The total cost of your employer-sponsored health coverage. This is informational only and doesn’t affect any of the wage boxes or your tax liability.

If you’re trying to reconcile Box 1 with Box 5, Box 12 is where you’ll find the specific dollar amounts that explain the gap. Adding your Code D or Code E amount back to Box 1 should get you close to Box 5, with any remaining difference usually explained by other pre-tax benefits.

Which Number to Use for What

The right box depends on what you’re trying to do. For your federal tax return, use Box 1. Lenders asking for W-2 income on a mortgage or loan application typically want Box 1 as well, though some may ask for total gross pay and request pay stubs to verify it.

If you’re comparing your W-2 to your salary offer letter or trying to confirm your employer paid you correctly, you need your true gross pay, which means starting from Box 5 and adding back pre-tax deductions as described above. Your final pay stub of the year is the easiest cross-reference, since it typically lists gross year-to-date earnings in one line.

State wages appear in Box 16. In most cases, Box 16 matches Box 1, but some states treat certain income differently, which can create a small gap.