W-2 box 12 codes, explained
Box 12 of the W-2 reports pay and benefits as a code and an amount: a 401(k) deferral, the cost of health coverage, tips, overtime. The 2026 instructions list 33 codes, and three are new for 2026: TA, TP and TT.
Updated , from the IRS pages listed at the end.
- Codes
- 33
- in the 2026 instructions
- Per W-2
- 4
- entries; more go on another W-2
- New for 2026
- TA, TP, TT
- Trump account, tips, overtime
How box 12 is filled in
Box 12 has four lines, 12a to 12d. Each takes one code and its amount, such as “D 3000.00” for $3,000.00 of 401(k) deferrals. The instructions set the format:
“Enter the code using a capital letter(s). Use decimal points but not dollar signs or commas.”
“If more than four items need to be reported in box 12, use a separate Form W-2 to report the additional items.”
Every box 12 code for 2026
| Code | What it reports |
|---|---|
| A | Uncollected Social Security or RRTA tax on tips |
| B | Uncollected Medicare tax on tips |
| C | Taxable cost of group-term life insurance over $50,000 |
| D | Elective deferrals to a section 401(k) plan |
| E | Elective deferrals under a section 403(b) salary reduction agreement |
| F | Elective deferrals under a section 408(k)(6) salary reduction SEP |
| G | Elective and employer deferrals to a section 457(b) plan |
| H | Elective deferrals under a section 501(c)(18)(D) tax-exempt organization plan |
| J | Nontaxable sick pay |
| K | 20% excise tax on excess golden parachute payments |
| L | Substantiated employee business expense reimbursements |
| M | Uncollected Social Security or RRTA tax on group-term life insurance over $50,000 |
| N | Uncollected Medicare tax on group-term life insurance over $50,000 |
| P | Excludable moving expense reimbursements paid to a member of the Armed Forces |
| Q | Nontaxable combat pay |
| R | Employer contributions to an Archer MSA |
| S | Employee salary reduction contributions under a section 408(p) SIMPLE plan |
| T | Adoption benefits |
| V | Income from the exercise of nonstatutory stock options |
| W | Employer contributions to a health savings account (HSA) |
| Y | Deferrals under a section 409A nonqualified deferred compensation plan |
| Z | Income under a nonqualified deferred compensation plan that fails section 409A |
| AA | Designated Roth contributions under a section 401(k) plan |
| BB | Designated Roth contributions under a section 403(b) plan |
| DD | Cost of employer-sponsored health coverage (not taxable) |
| EE | Designated Roth contributions under a governmental section 457(b) plan |
| FF | Permitted benefits under a qualified small employer HRA |
| GG | Income from qualified equity grants under section 83(i) |
| HH | Aggregate deferrals under section 83(i) elections |
| II | Medicaid waiver payments excluded from gross income |
| TA | Employer contributions to a Trump account (new for 2026) |
| TP | Total cash tips reported to the employer (new for 2026) |
| TT | Total qualified overtime compensation (new for 2026) |
The codes by what they report
- Retirement plans: D, E, F, G, H, S, Y, AA, BB, EE
- Deferrals and Roth contributions to the employee's plan. A pre-tax 401(k) deferral (code D) stays out of box 1 (the instructions: “do not include elective deferrals (such as employee contributions to a section 401(k) or 403(b) plan)”) but is still Social Security and Medicare wages in boxes 3 and 5.
- Health coverage and accounts: DD, W, R, FF
- DD shows what employer-sponsored health coverage cost, for information: it isn't taxable. W and R are employer contributions to an HSA or Archer MSA, FF a small employer HRA.
- Tips and overtime: A, B, TP, TT
- A and B are Social Security and Medicare tax on tips the employer couldn't collect. TP and TT, new for 2026, report the year's cash tips and qualified overtime.
- Group-term life insurance: C, M, N
- C is the taxable cost of coverage over $50,000; M and N the Social Security and Medicare tax on it that wasn't collected.
- Other pay and benefits: J, K, L, P, Q, T, V, Z, GG, HH, II, TA
- Sick pay, golden parachutes, reimbursements, combat pay, adoption benefits, stock options, deferred compensation, Medicaid waiver payments and, new, Trump account contributions.
New for 2026: TA, TP and TT
The 2026 instructions add three codes. Their headings, word for word:
| Code | The instructions' heading |
|---|---|
| TA | Employer contributions under a section 128 Trump account contribution program paid to a Trump account of an employee or a dependent of an employee |
| TP | Total amount of cash tips reported to the employer |
| TT | Total amount of qualified overtime compensation |
Box 12 on a W-2 made here
The W-2 generator takes up to 4 box 12 codes, each picked from the list above with its amount, and prints them in 12a to 12d in the order you enter them (the instructions set no order). With a 401(k), 403(b), SEP or SIMPLE code it suggests the box 13 Retirement plan check, and it notes when boxes 3 and 5 look short of box 1 plus the deferrals. The box-by-box guide covers the rest of the form.
Fill in the figures once and check the live preview before you pay. You pay per form, with no subscription.
More guides
W-2 vs 1099: employee or contractor?
Who counts as an employee, who withholds what, and which form each worker gets.When are 1099s due? The 2027 dates for tax year 2026
Every 2027 date for the 1099-NEC and 1099-MISC, and why each falls where it does.The 1099 threshold for 2026: $2,000
$2,000 for contractors paid in 2026, the 1099-MISC amounts, and what you never report.1099-NEC vs 1099-MISC: which form do you need?
What each form reports, side by side, and where attorney payments go.How to fill out a W-2, box by box
Each box, how to work it out at the 2026 rates, and a worked example.
Sources, checked Nov 30, 2026