The Tax Brief real effective rates for 111+ countries — bi-weekly, free.
TAX GUIDE

Form W-2 Guide 2026: What Every Box and Code Means

KEY INSIGHT
Form W-2 shows your yearly wages and the taxes your employer withheld. Box 1 is the wages line for your tax return, box 2 the federal income tax withheld, box 3 and 4 Social Security wages and tax, box 5 and 6 Medicare wages and tax, and box 12 holds coded items such as 401(k) deferrals (code D). For 2026 elective deferrals are generally limited to a total of $24,500 across plans (IRS Form W-2 instructions for employees). If a name, Social Security number or address is wrong, ask your employer for a corrected Form W-2c.
At a glance

Key Facts

Box 1
Wages for your return
Box 2
Federal tax withheld
Box 12 code D
401(k) deferrals
2026 deferral limit
$24,500
Introduction

Form W-2 is the year-end statement from your employer that your tax return is built on. It tells you your taxable wages, what was withheld and, in box 12, retirement contributions and other coded items.

This guide explains the main boxes, the box 12 codes, the 2026 deferral limits it quotes, what to do about errors and when you can claim a credit for excess Social Security tax, using the 2026 IRS Form W-2 and its instructions for employees.

Section 01

Boxes You Use Most

BoxWhat it showsWhat to do with it
1Wages, tips, other compensationEnter on the wages line of your tax return unless the instructions say otherwise
2Federal income tax withheldEnter on the federal income tax withheld line
3 and 4Social Security wages and tax withheldBox 3 is capped at the Social Security wage base; see the excess credit rule below
5 and 6Medicare wages and tips and Medicare tax withheldBox 6 includes 1.45% on all box 5 wages plus 0.9% Additional Medicare Tax above $200,000; box 5 may be needed for Form 8959
7 and 8Social Security tips and allocated tipsAllocated tips are not in boxes 1, 3, 5 or 7; report them with Form 4137
10Dependent care benefitsIncludes cafeteria plan amounts; any amount over the plan limit is also in box 1; see Form 2441
11Nonqualified plansDistributions from a nonqualified deferred compensation or nongovernmental section 457(b) plan (also in box 1), or a prior-year deferral that became taxable for Social Security and Medicare (also in box 3 and/or 5)
12Coded itemsSee the codes below
15 to 20State and local wages and taxUsed for state and local returns

A worked example (our calculation from the IRS description): an employee with $250,000 of Medicare wages would have a box 6 amount of $3,625 (1.45%) plus $450 (0.9% of the $50,000 above $200,000), or $4,075.

Section 02

Box 12 Codes

CodeMeaning
AUncollected Social Security or RRTA tax on tips
CTaxable cost of group-term life insurance over $50,000
DElective deferrals to a section 401(k) plan
EElective deferrals under a section 403(b) salary reduction agreement
GElective deferrals and employer contributions to a section 457(b) plan
JNontaxable sick pay (information only)
DDCost of employer-sponsored health coverage (information only, not taxable)

The IRS lists more codes, including AA and BB for designated Roth contributions, S for SIMPLE deferrals and EE for governmental 457(b) Roth contributions. Elective deferrals and designated Roth contributions under all plans are generally limited to a total of $24,500 in 2026 ($17,000 for SIMPLE plans; $27,500 for 403(b) plans if you qualify for the 15-year rule), and if you were at least age 50 in 2026 your employer may have allowed an additional catch-up contribution. See our 401(k) contribution limits guide.

Section 03

More Than One Employer

If you had more than one employer in 2026 and more than $11,439.00 in Social Security (or Tier 1 railroad retirement) tax was withheld, you may be able to claim a credit for the excess against your federal income tax. That figure is 6.2% of the 2026 wage base of $184,500; see our Schedule SE guide for the wage base.

Next-year note: the Social Security Administration has announced a 2027 wage base of $192,300 (Federal Register, 26 October 2026), so 6.2% of it would be $11,922.60 (our calculation). That is not an IRS-published 2027 Form W-2 figure; the $11,439.00 above applies to 2026 wages. We did not find an IRS notice of 2027 401(k) deferral limits as of 26 October 2026.

Section 04

Do You Need to File?

The IRS says to see the Form 1040 instructions to decide whether you must file a return. Even if you do not have to file, you may be eligible for a refund if box 2 shows an amount or if you qualify for a credit. You may be able to take the earned income tax credit for 2026 if your AGI is below a certain amount; you and any qualifying children must have valid Social Security numbers.

Section 05

Fixing Errors

If your name, Social Security number or address is wrong, correct Copies B, C and 2 and ask your employer to correct your employment record. Ask the employer to file Form W-2c, Corrected Wage and Tax Statement, with the Social Security Administration for any name, SSN or money amount error. If your name and Social Security number are correct but differ from your Social Security card, the IRS says to ask for a new card at any SSA office or at 800-772-1213. For W-2 versus contractor 1099 treatment see our 1099 vs W-2 guide.

Section 06

Official Sources

IRS: Form W-2, Wage and Tax Statement (2026), IRS: General Instructions for Forms W-2 and W-3.

FAQ

Frequently Asked Questions

What is Form W-2?

The wage and tax statement your employer gives you showing your yearly pay and the federal, Social Security, Medicare, state and local taxes withheld.

What is box 1 on a W-2?

Wages, tips and other compensation; enter it on the wages line of your tax return.

What does box 12 code D mean?

Elective deferrals to a section 401(k) plan.

What does box 12 code DD mean?

The cost of employer-sponsored health coverage, reported for your information only and not taxable.

Why is box 3 different from box 1?

Box 3 shows Social Security wages and box 1 wages for income tax. Pre-tax elective deferrals (box 12 codes D, E, F, G and S) are not in box 1 but are reported in box 3, and the total of boxes 3 and 7 cannot exceed the 2026 Social Security wage base of $184,500. The taxable cost of group-term life insurance over $50,000 (code C) is included in boxes 1, 3 (up to the wage base) and 5.

What do I do if my W-2 is wrong?

Ask your employer to correct it and file Form W-2c with the Social Security Administration.

Do I need a W-2 to file my taxes?

You need the information on it; the IRS says that even if you do not have to file you may get a refund if box 2 shows tax withheld.

What if I had two jobs and too much Social Security tax was withheld?

You may be able to claim a credit for the excess against your federal income tax if more than $11,439.00 was withheld in 2026.

What is box 6 on a W-2?

Medicare tax withheld, including 1.45% on all Medicare wages and the 0.9% Additional Medicare Tax above $200,000.
Disclaimer:This guide gives general tax information for educational purposes and is not tax, legal or financial advice. Rules, forms and deadlines are set by the authorities named here and can change; check the official sources linked in this guide and talk to a qualified tax professional about your own situation.
Keep reading

Related Guides