Schema Tax

What Is D and DD in Box 12? Two Codes, Two Meanings

By Schema TaxPublished Updated

In Box 12 of a W-2, code D is the amount an employee deferred from pay into a traditional 401(k) plan, and code DD is the total cost of the employee's employer-sponsored health coverage. D is already left out of Box 1 wages. DD is information only, is not taxable, and changes no other box on the form.

Code D and code DD side by side

Code D and code DD are two separate entries in the Box 12 list, and they describe unrelated things. Code D reports traditional 401(k) elective deferrals. Code DD reports the cost of employer-sponsored health coverage. The shared letter is a coincidence of the IRS naming scheme, not a sign that the two amounts are linked.

The IRS General Instructions for Forms W-2 and W-3 (2026) title the two codes this way: code D is "Elective deferrals under a section 401(k) cash or deferred arrangement (plan)," and code DD is "Cost of employer-sponsored health coverage." The table compares them on the points a reader or a preparer usually needs. Example amounts are fictional.

Point of comparisonCode DCode DD
Plan typeTraditional 401(k), including a SIMPLE that is part of a 401(k) arrangementEmployer-sponsored group health coverage, such as major medical
Whose moneyThe employee's own deferred pay only; the match is excludedBoth the employer's share and the employee's share of the cost
Effect on Box 1Already subtracted; Box 1 is lower by this amountNone; the IRS says reporting it does not change any other box
Effect on Boxes 3 and 5Still included in Social Security and Medicare wagesNone
Taxable now?Not for income tax in the year deferred; still subject to Social Security and Medicare taxNo; the form says the amount "is not taxable"
Where it goes on a returnNowhere separately in the usual case; Box 1 already reflects itNowhere; it is for the employee's information
Example entryD 4080.00DD 13520.00

The comparison gives a quick test. If a Box 12 amount is close to what your pay stubs show going to a 401(k), it belongs under D. If it is far larger than anything withheld from your pay and you have employer health insurance, it is almost certainly DD.

Why does one extra D change the code's meaning?

One extra D changes the meaning because Box 12 codes are labels, not abbreviations. Each code is a fixed tag the IRS assigns to one type of payment or benefit. The list uses single letters first and then doubled letters, so D and DD sit far apart in the list and describe unrelated items.

The code list in the IRS instructions runs through single letters from A to Z, skipping a few letters, and then continues with AA, BB, DD, EE, FF, GG, HH and II, followed by the newer TA, TP and TT. The instructions also say "the codes do not relate to where they should be entered in boxes 12a through 12d." Code D can appear in 12a just as easily as in 12d, so the slot letter adds no meaning either.

Code DD is tied to one statute. It exists because section 6051(a)(14) of the tax code "generally requires the aggregate cost of applicable employer-sponsored coverage to be reported on Form W-2," as IRS Notice 2012-9 puts it. The IRS page on Form W-2 reporting of employer-sponsored health-coverage ties that reporting to the 2012 Forms W-2. Code D, by contrast, covers 401(k) deferrals, which are a retirement plan item.

Neighboring doubled codes follow the same pattern of meaning nothing as letter pairs. AA is Roth 401(k) contributions, BB is Roth 403(b) contributions, and EE is Roth governmental 457(b) contributions. None of them is "more" of the single-letter code it resembles.

Which of D and DD affects your taxable wages?

Of D and DD, only code D is connected to your taxable wages, and even then the effect is already built into Box 1. The code D amount was subtracted before the employer filled in Box 1. The code DD amount never touches Box 1, Box 3 or Box 5. Neither code asks you to add or subtract anything yourself.

For code D, the IRS instructions tell employers not to include elective deferrals in Box 1, and to include them in Box 3 Social Security wages "even though the deferrals are not includible in box 1." Box 3 minus Box 1 is often close to the code D figure for that reason.

For code DD, Notice 2012-9 states the reporting "is informational only" and "will not affect the amount includable in income or the amount reported in any other box on Form W-2." The Form W-2 (2026) repeats the point to employees: the DD figure is "for your information only" and "is not taxable."

One code D situation does change taxable income. The Form W-2 notice says amounts above the overall elective deferral limit, generally $24,500 for 2026, "must be included in income." The guide to Box 12 code D covers that case and the catch-up rule for employees 50 and older. Code DD has no limit of this kind, and the guide to Box 12 DD explains what its amount includes.

Mixing up D and DD when entering a W2

Mixing up D and DD when entering a W2 into tax software or a spreadsheet moves a health coverage cost into the retirement deferral column. Because D amounts count toward the yearly elective deferral limit, a large DD figure typed as D can look like an excess deferral, which the Form W-2 notice says must be included in income.

Take a fictional employee whose W2 shows "D 4080.00" and "DD 13520.00." If the DD line is keyed as a second code D, the record now shows $17,600 of deferrals. That is still under the 2026 limit, so nothing obvious breaks, but any later check against plan statements will show $13,520 that no plan received. With a larger DD amount, or a higher real deferral, the combined figure can cross $24,500 and trigger an excess-deferral question that does not exist.

The opposite error hides a real deferral. A code D amount entered as DD drops out of the retirement fields entirely, so a reviewer comparing W2s with 401(k) statements sees a contribution with no matching W2 entry.

Preparers who key many W2s can catch this with two checks. First, compare each D amount with the client's year-end pay stub 401(k) line; the two should match. Second, treat any D amount larger than the client's annual 401(k) election as a flag, since DD is usually the larger figure. The tax preparers category gathers more W2 review guides. Employers that wonder whether they must report DD at all will find the 250-form rule and the plan list in the post on Box 12 DD reporting requirements.

Typing the codes is where this mistake starts, so reading them directly removes the step. Schema Tax keeps each Box 12 code and its amount as a pair of fields, so D and DD stay in their own columns in the export. The five-step process on the homepage shows how the form is read, checked and flagged for review.

All posts in W-2 Box 12 and Box 14 Codes