Understanding Your W-2: Every Box Explained in Plain English
What every box on your W-2 means, explained simply. Covers wages (Box 1), Social Security and Medicare (Boxes 3-6), pre-tax deductions, retirement contributions (Box 12), and how to spot errors that could cost you money.
📑 On This Page ▾
📄 What Is a W-2 and When Do You Get It?
Form W-2, Wage and Tax Statement, is the form your employer sends you (and the IRS) showing how much you earned and how much was withheld in taxes during the calendar year. If you worked as an employee at any point during the year — even for a single day — your employer is required to issue a W-2 by January 31 of the following year. You need it to file your tax return.
The W-2 has multiple copies: Copy A goes to the Social Security Administration, Copy B is for your federal tax return, Copy C is for your records, Copy D stays with your employer, and Copy 2 goes to your state/local tax filing. Most employers now offer electronic W-2s through their payroll portal — check your account in mid-to-late January. If you have not received your W-2 by February 15, contact your employer's HR or payroll department. For a full walkthrough of the tax filing process, see our How to Do Your Taxes guide.
🔑 The Key Boxes That Matter Most
Your W-2 has over 20 boxes, but only a handful drive your tax return. Here are the ones that matter:
| Box | Label | What It Means | Why It Matters |
|---|---|---|---|
| Box 1 | Wages, tips, other compensation | Your taxable income — gross pay minus pre-tax deductions (401k, HSA, health insurance, FSA) | This is the number you enter on your tax return as income. Lower = less tax. |
| Box 2 | Federal income tax withheld | Total federal tax your employer sent to the IRS on your behalf | Compared to what you actually owe to determine your refund or amount due. |
| Box 3 | Social Security wages | Income subject to Social Security tax (up to $184,500 in 2026) | Usually higher than Box 1 because 401(k) contributions are still subject to SS tax. |
| Box 4 | Social Security tax withheld | 6.2% of Box 3 | Should equal Box 3 x 0.062. If it does not, there may be an error. |
| Box 5 | Medicare wages and tips | Income subject to Medicare tax (no cap) | Usually equals or exceeds Box 3. No earnings limit. |
| Box 6 | Medicare tax withheld | 1.45% of Box 5 (+ 0.9% additional tax if wages exceed $200K) | Should equal Box 5 x 0.0145 (plus additional tax if applicable). |
| Box 12 | Various codes | Pre-tax deductions and employer contributions (see next section) | Critical for verifying 401(k) contributions, HSA, and other benefits. |
If your salary is $80,000 but Box 1 shows $68,000, the difference ($12,000) is your pre-tax deductions: 401(k) contributions, health insurance premiums, HSA contributions, FSA contributions, and any other pre-tax benefits. These reduce your taxable income — which is exactly why they are so valuable. Every dollar of pre-tax deduction in Box 12 is a dollar that never appears in Box 1, saving you income tax at your marginal rate.
📦 Box 12: The Codes That Confuse Everyone
Box 12 uses letter codes to report various types of compensation and deductions. Here are the ones you will most commonly see:
| Code | Description | What to Know |
|---|---|---|
| D | 401(k) elective deferrals | Your pre-tax 401(k) contributions. Verify this matches your records. 2026 limit: $24,500. |
| AA | Roth 401(k) contributions | Your Roth (after-tax) 401(k) contributions. Already included in Box 1 (you paid tax on these). |
| W | HSA employer + employee contributions | Total HSA contributions (yours + employer). 2026 limit: $4,400 individual / $8,750 family. |
| DD | Cost of employer health coverage | Informational only — the total value of your health plan. Not taxable and does not affect your return. |
| E | 403(b) elective deferrals | Same as code D but for 403(b) plans (education and nonprofit employers). |
| C | Taxable cost of group-term life insurance over $50K | If your employer provides life insurance over $50,000, the cost of the excess is taxable (included in Box 1). |
| P | Excludable moving expense reimbursements | Only for active-duty military. Civilian moving reimbursements are taxable since 2018. |
The most important code to verify: Code D (or AA for Roth). Cross-reference this with your final pay stub of the year to make sure your 401(k) contributions were reported correctly. If Code D shows $20,000 but you contributed $24,500, the missing $4,500 needs to be corrected — contact your HR/payroll department. For 401(k) strategy, see our How to Max Out Your 401(k) guide.
💡 How Pre-Tax Deductions Affect Your Boxes
Understanding which deductions reduce which boxes is key to verifying your W-2:
| Deduction Type | Reduces Box 1 (Income Tax)? | Reduces Box 3/5 (SS/Medicare)? |
|---|---|---|
| 401(k) / 403(b) pre-tax (Code D/E) | Yes | No — still subject to FICA |
| Health insurance premiums | Yes | Yes (Section 125 plan) |
| HSA contributions via payroll (Code W) | Yes | Yes — avoids both income tax AND FICA |
| FSA contributions (healthcare/dependent care) | Yes | Yes |
| Roth 401(k) (Code AA) | No — included in Box 1 | No — still subject to FICA |
This is why your HSA is the single most tax-efficient account: payroll HSA contributions avoid income tax AND FICA (7.65%), making the effective tax savings higher than any other pre-tax deduction. A $4,400 HSA contribution through payroll saves you roughly $336 more per year than the same contribution made directly to your HSA outside of payroll.
🔍 How to Spot W-2 Errors
W-2 errors are more common than you think — and they can cause delayed refunds, unexpected tax bills, or IRS notices. Here is how to check:
Verify Box 1 math. Gross salary minus pre-tax deductions (401k + health insurance + HSA + FSA) should approximately equal Box 1. If the difference does not make sense, a deduction may have been miscoded.
Check Box 4 = Box 3 x 6.2%. Social Security tax should be exactly 6.2% of Social Security wages (up to $184,500). If it is off by more than a few dollars, flag it.
Verify Box 12 Code D against your records. Compare your total 401(k) contributions (from your final pay stub or 401(k) plan statement) to Code D. They should match exactly.
Check your name and SSN. A misspelled name or incorrect Social Security number can cause your tax return to be rejected or your Social Security earnings record to be wrong (affecting future benefits).
If you find an error, request a corrected W-2 (Form W-2c) from your employer. Do not file your tax return with incorrect information — it is much easier to correct the W-2 before filing than to amend your return later.
📂 Multiple W-2s and Other Situations
Multiple employers: If you worked at more than one job during the year, you will receive a separate W-2 from each employer. Report all of them on your tax return. Your total 401(k) contributions across all employers cannot exceed $24,500 (the limit is per-person, not per-employer). If you over-contributed, request a return of excess from one plan by April 15.
State boxes (13-20): If your state has income tax, Boxes 15-17 show your state wages and withholding. If you worked in multiple states, you may have multiple state entries. Each state requires its own state tax return.
1099 vs. W-2: If you received a 1099-NEC instead of a W-2, your employer classified you as an independent contractor — meaning no taxes were withheld and you owe self-employment tax (15.3% on top of income tax). If you believe you were misclassified, see our Self-Employed Tax guide and consider filing IRS Form SS-8.