Home/Guides/Understanding Your W-2
📄 Tax Filing

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.

✍️ Written by DigitalWealthSource
🔍 Reviewed by Derek Giordano · Sources verified
📅 April 2026
⏱️ 10 min read
✅ Fact-checked
📑 On This Page
What Is a W-2 and When Do You Get It? The Key Boxes That Matter Most Box 12: The Codes That Confuse Everyone How Pre-Tax Deductions Affect Your Boxes How to Spot W-2 Errors Multiple W-2s and Other Situations Frequently Asked Questions

📄 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:

BoxLabelWhat It MeansWhy It Matters
Box 1Wages, tips, other compensationYour 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 2Federal income tax withheldTotal federal tax your employer sent to the IRS on your behalfCompared to what you actually owe to determine your refund or amount due.
Box 3Social Security wagesIncome 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 4Social Security tax withheld6.2% of Box 3Should equal Box 3 x 0.062. If it does not, there may be an error.
Box 5Medicare wages and tipsIncome subject to Medicare tax (no cap)Usually equals or exceeds Box 3. No earnings limit.
Box 6Medicare tax withheld1.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 12Various codesPre-tax deductions and employer contributions (see next section)Critical for verifying 401(k) contributions, HSA, and other benefits.
💡 Why Box 1 Is Usually Less Than Your Salary

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:

CodeDescriptionWhat to Know
D401(k) elective deferralsYour pre-tax 401(k) contributions. Verify this matches your records. 2026 limit: $24,500.
AARoth 401(k) contributionsYour Roth (after-tax) 401(k) contributions. Already included in Box 1 (you paid tax on these).
WHSA employer + employee contributionsTotal HSA contributions (yours + employer). 2026 limit: $4,400 individual / $8,750 family.
DDCost of employer health coverageInformational only — the total value of your health plan. Not taxable and does not affect your return.
E403(b) elective deferralsSame as code D but for 403(b) plans (education and nonprofit employers).
CTaxable cost of group-term life insurance over $50KIf your employer provides life insurance over $50,000, the cost of the excess is taxable (included in Box 1).
PExcludable moving expense reimbursementsOnly 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 TypeReduces Box 1 (Income Tax)?Reduces Box 3/5 (SS/Medicare)?
401(k) / 403(b) pre-tax (Code D/E)YesNo — still subject to FICA
Health insurance premiumsYesYes (Section 125 plan)
HSA contributions via payroll (Code W)YesYes — avoids both income tax AND FICA
FSA contributions (healthcare/dependent care)YesYes
Roth 401(k) (Code AA)No — included in Box 1No — 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.

🧮 File With Confidence
Now that you understand your W-2, our step-by-step tax filing guide walks you through the rest of the process — from choosing software to maximizing deductions.
📝 How to Do Your Taxes →

❓ Frequently Asked Questions

Why is Box 1 different from my salary?
+
Box 1 is your taxable wages — your gross salary minus all pre-tax deductions (401k contributions, health insurance premiums, HSA contributions, FSA contributions). If your salary is $90,000 and you contribute $10,000 to a 401(k) and $5,000 to health insurance, Box 1 shows approximately $75,000. This is by design — pre-tax deductions reduce your taxable income.
What is Box 12 Code DD?
+
Code DD shows the total cost of your employer-sponsored health insurance coverage (both the employer and employee portions). It is informational only — you do not owe any tax on this amount. It was added by the Affordable Care Act for transparency purposes. You can safely ignore it when filing your return.
I did not receive my W-2. What do I do?
+
Contact your employer payroll department first. If you still cannot get it by mid-February, call the IRS at 1-800-829-1040. They can contact your employer on your behalf. As a last resort, you can file using Form 4852 (Substitute for Form W-2) with your best estimates from your final pay stub — but this should be a last resort as it may trigger additional IRS scrutiny.
Can I file my taxes without a W-2?
+
You should wait for your W-2 if at all possible. Filing without it (using Form 4852) is allowed but may delay your refund and increase audit risk. If you have access to your final pay stub of the year, you can use those numbers as estimates. Once you receive the actual W-2, compare it and file an amended return (Form 1040-X) if the numbers differ.
Do I need to attach my W-2 to my tax return?
+
If you file electronically (which most people do), the W-2 data is transmitted electronically — you do not need to mail anything. If you file a paper return by mail, attach Copy B of each W-2 to the front of your Form 1040. Keep Copy C for your personal records for at least 3-7 years.
What if I worked in a different state than where I live?
+
You may need to file tax returns in both states. Your W-2 Boxes 15-17 will show each state where wages were earned. Most states have reciprocity agreements that prevent double taxation, but you may need to claim a credit in your home state for taxes paid to the work state. Check your specific state rules or consult a tax professional.