HR Cloud
HR Glossary | 3 minute read

W-2 Box 12 Codes

W-2 Box 12 codes are letters that label special items on an employee's Form W-2, such as retirement deferrals, employer health coverage cost and taxable life insurance. Each entry pairs one code with one amount, as the IRS instructions show.

A code does not tell you by itself whether an amount is taxable. Some codes report taxable items, such as code C, while others, such as code DD, are informational. Check each definition.

How Does Box 12 Work?

Box 12 has four lines, 12a through 12d. Each line holds one code, entered as a capital letter, and one amount, entered with decimal points but no dollar signs or commas, per the IRS General Instructions for Forms W-2 and W-3.

An employer cannot enter more than four items in Box 12 on Copy A. If an employee has more, the employer issues a separate Form W-2 for the additional items.

This page uses the 2026 instructions, which cover forms due February 1, 2027. Codes change, so confirm each one in the instructions for the tax year printed on your W-2.

Which Box 12 Codes Matter Most?

The IRS list has more than 30 codes. This table covers the ones HR and payroll teams hear about most, using the 2026 descriptions.

CodeWhat it reports
CTaxable cost of group-term life insurance over $50,000
DElective deferrals to a 401(k) plan
EElective deferrals to a 403(b) plan
AADesignated Roth contributions to a 401(k) plan
WEmployer contributions to a health savings account, including amounts elected through a cafeteria plan
DDCost of employer-sponsored health coverage, informational and not taxable
YDeferrals under a section 409A nonqualified deferred compensation plan
TPTotal cash tips reported to the employer (new for 2026)
TTTotal qualified overtime compensation, only the half portion of time-and-a-half (new for 2026)

Code C is a form of imputed income. Codes D and E come from pre-tax deductions, while Roth code AA is post-tax, as this guide to pre-tax and post-tax pay explains.

What Is Reported Outside Box 12?

Employer matching contributions are not elective deferrals. The IRS says they may appear in box 14a but not in box 12, where only elective deferrals and designated Roth contributions belong for coded plans.

Dependent care benefits are reported in Box 10. Nonqualified plan amounts are reported in Box 11, while code Y covers only deferrals under a 409A plan.

How Can Employers Keep Box 12 Accurate?

IRS reviews found real mistakes: code D used for 403(b), 457 or nonqualified amounts, and code E used with no 403(b) plan.

Before furnishing W-2s, match each code to the plan type and each amount to payroll and plan records. If an employee's code looks wrong, ask payroll to review it before the employee files a return.

How Does HR Cloud Help With W-2 Reporting?

Whoever runs your payroll prepares the W-2. HR Cloud's payroll integration page describes two-way integrations with payroll systems such as ADP, UKG, Paycor and Paylocity, not W-2 preparation.

Accurate codes start with accurate benefit and deduction data. A two-way connection means changes made in one system can reach the other. To see how it works, request a demo.

HR Cloud

Discover how our HR solutions streamline onboarding, boost employee engagement, and simplify HR management

Request a Demo

Frequently Asked Questions

Q: Does every employer have to report code DD?

A: No. Under IRS guidance, employers that filed fewer than 250 Forms W-2 for the previous year are not required to report it, though voluntary reporting is allowed.

Q: Does code DD show only what my employer pays?

A: No. The same IRS guidance says the amount generally includes both the employer's and the employee's share of the premium, but not salary reduction contributions to a health FSA.

Q: Why can code D be higher than the 401(k) limit?

A: Code D reports total elective deferrals. In the IRS's 2026 example, an employee deferred $26,500 against a $24,500 limit, and the full amount appears as D 26500.00.

Q: Do codes TP and TT make tips and overtime tax-free?

A: No. The codes only report amounts. Employees claim any deduction on their return, up to $25,000 of qualified tips or $12,500 of qualified overtime ($25,000 if married filing jointly), for tax years 2025 through 2028.

Q: Does the line a code sits on matter?

A: No. The IRS notes that codes do not relate to where they are entered in boxes 12a through 12d, so read the letter, not the line.

Q: Do Box 12 totals go on Form W-3?

A: Some do. Per the IRS instructions, totals for codes D through H, S, Y, AA, BB and EE go on Form W-3. Totals for codes such as A through C, W and DD do not.

Share:

Ready to streamline your onboarding process?

Book a demo today and see how HR Cloud can help you create an exceptional experience for your new employees.

Book Your Free Demo