W-2 Box 12 Codes Explained
Every letter code decoded in plain English.
By Reba Donaldson ยท Last reviewed: April 2026
What is Box 12?
Box 12 on your W-2 reports specific items that don't fit in the other boxes โ retirement contributions, health insurance costs, HSA contributions, and other employee benefits. Each item has a letter or two-letter code that identifies what it is.
You may see anywhere from zero to four Box 12 entries (labeled 12a, 12b, 12c, 12d on the form). Each one has its own code and dollar amount.
The four codes most people will see
If you have any Box 12 entries at all, they're most likely one of these:
401(k) contribution (traditional, pre-tax)
Roth 401(k) contribution (after-tax)
Cost of employer-sponsored health coverage (informational only โ not taxable)
HSA contributions (employer + employee pre-tax through payroll)
All Box 12 codes
The complete list of codes that may appear in Box 12:
| Code | What it means |
|---|---|
| A | Uncollected Social Security tax on tips |
| B | Uncollected Medicare tax on tips |
| C | Group-term life insurance over $50,000 |
| D | 401(k) contribution (traditional, pre-tax) |
| E | 403(b) contribution (typically nonprofits, schools) |
| F | 408(k)(6) contribution |
| G | 457(b) contribution (typically government employees) |
| H | 501(c)(18)(D) contribution |
| AA | Roth 401(k) contribution (after-tax) |
| BB | Roth 403(b) contribution (after-tax) |
| DD | Cost of employer-sponsored health coverage (informational only โ not taxable) |
| EE | Roth 457(b) contribution |
| W | HSA contributions (employer + employee pre-tax through payroll) |
| FF | QSEHRA permitted benefit |
| GG | Income from qualified equity grants under Section 83(i) |
The most important code: DD
Code DD reports the cost of your employer-sponsored health coverage โ both your portion and the employer's portion. This is informational only. It is NOT taxable income, and you do not owe any tax on this amount. Some people see a large number here and panic. Don't. It's just disclosure required by the Affordable Care Act.
Box 12 and your tax return
Most Box 12 codes don't require any action when filing โ they're already factored into Box 1 (your taxable wages). However, certain codes may unlock tax benefits or trigger reporting requirements:
- Code W โ HSA contributions through payroll. May allow additional HSA deduction beyond what's already excluded.
- Code D, AA โ Retirement contributions. May affect your Saver's Credit eligibility.
- Code DD โ Informational only, no tax impact.