Advertisement

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:

Advertisement
Code DCOMMON

401(k) contribution (traditional, pre-tax)

Code AACOMMON

Roth 401(k) contribution (after-tax)

Code DDCOMMON

Cost of employer-sponsored health coverage (informational only โ€” not taxable)

Code WCOMMON

HSA contributions (employer + employee pre-tax through payroll)

All Box 12 codes

The complete list of codes that may appear in Box 12:

CodeWhat it means
AUncollected Social Security tax on tips
BUncollected Medicare tax on tips
CGroup-term life insurance over $50,000
D401(k) contribution (traditional, pre-tax)
E403(b) contribution (typically nonprofits, schools)
F408(k)(6) contribution
G457(b) contribution (typically government employees)
H501(c)(18)(D) contribution
AARoth 401(k) contribution (after-tax)
BBRoth 403(b) contribution (after-tax)
DDCost of employer-sponsored health coverage (informational only โ€” not taxable)
EERoth 457(b) contribution
WHSA contributions (employer + employee pre-tax through payroll)
FFQSEHRA permitted benefit
GGIncome 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.
Advertisement