Schema Tax

12a on W2: What Slots 12a, 12b, 12c and 12d Hold

By Schema TaxPublished Updated

12a on a W2 is the first of four slots in Box 12, labeled 12a, 12b, 12c and 12d. It is a position, not a code. Each slot holds one letter code on the left and one dollar amount on the right, so 12a might read "D 5300.00" for a 401(k) deferral or "DD 8100.00" for health coverage.

What is 12a on a W2?

Slot 12a on a W2 is simply the first place an employer can print a Box 12 entry. It has no meaning of its own. What 12a reports depends entirely on the letter code printed inside it, which might be D for a 401(k) deferral, W for an HSA contribution or any other code on the IRS list.

The IRS General Instructions for Forms W-2 and W-3 (2026) say this directly: the codes "do not relate to where they should be entered in boxes 12a through 12d." Their example is an employer that only has to report code D, which "can enter code D and the amount in box 12a."

People often search "what is box 12a" because tax software asks for 12a by name. The software is asking for whatever is printed in that slot, both the code and the amount. Two coworkers can have completely different items in 12a: one has a 403(b) deferral under code E, the other has a Roth 401(k) contribution under code AA.

The same holds for 12b, 12c and 12d. They are the second, third and fourth positions. A question like "what is 12b on a W2" always has the same answer: look at the letter in that slot and find it in the full Box 12 code table from A to TT.

The four-slot limit applies to Copy A, the copy filed with the Social Security Administration. The instructions say that on other copies, such as Copies B and C, an employer using an approved substitute Form W-2 may enter more than four items in Box 12. An employee copy can therefore show slots beyond 12d.

Does the order of 12a, 12b, 12c and 12d matter?

The order of 12a, 12b, 12c and 12d does not matter for meaning. A code in 12a is not more important, more taxable or more urgent than a code in 12d. The IRS instructions tie each meaning to the letter code, not to the slot, so an employer can place entries in whatever order its payroll system produces.

The instructions make the point with their own example. A $5,300 deferral under a 401(k) plan is entered as "D 5300.00 (not A 5300.00 even though it is the first or only entry in this box)." The slot is first; the code is still D.

A payroll system may print entries in the same order every year, which can make an employee expect 401(k) money in 12a. If a new payroll provider moves it to 12c, nothing has changed except the position.

Order does matter in one narrow way: when copying a W-2 into tax software or a spreadsheet, keeping each code with its own amount. Software that asks for "12a code" and "12a amount" expects the pair from the same slot. Swapping the amounts between 12a and 12b while keeping the codes in place produces two wrong entries, even though the totals look the same.

Another case where position carries information is a form that reaches the fourth slot. The instructions allow no more than four items in Box 12 on Copy A, the copy filed with the Social Security Administration. A full 12d can be a sign that a second W-2 exists with more codes. What an employer does with more than four codes is set out in the guide to the IRS Box 12 instructions.

Reading the code column and amount column in each 12a to 12d slot

Each 12a to 12d slot has two columns. The code column sits to the left of a vertical line and holds one or two capital letters. The amount column sits to the right and holds a dollar figure with a decimal point. Read the letter first, then the number, and keep them together as one entry.

The IRS instructions set the format: "Report the IRS code to the left of the vertical line in boxes 12a through 12d and the money amount to the right of the vertical line." They also say to use a capital letter, decimal points, and no dollar signs or commas. A printed "W 1500.00" is therefore code W with an amount of $1,500.00.

An annotated set of four slots

The table below shows Box 12 on a fictional W-2 for an employee named Sam Example, SSN XXX-XX-1234, at a fictional employer with EIN XX-XXXXXXX. Every value is an example.

SlotCode columnAmount columnWhat this line means
12aD9200.00$9,200 of salary deferred into a 401(k); left out of Box 1, kept in Boxes 3 and 5
12bW1500.00$1,500 of employer HSA contributions, including any cafeteria plan payroll amounts
12cDD11250.00$11,250 total cost of employer health coverage; the instructions say it is not taxable
12dC186.00$186 taxable cost of group-term life insurance over $50,000; included in Boxes 1, 3 and 5

Reading the table line by line

Slot 12a holds code D, a 401(k) deferral. The instructions tell employers not to include elective deferrals in Box 1, so Sam's Box 1 is $9,200 lower than it would otherwise be. Social security and Medicare wages still include it.

Slot 12b holds code W. The instructions say all employer contributions to an HSA go in Box 12 with code W, including what the employee contributed through a cafeteria plan. Only a part that is not excludable would also go in Boxes 1, 3 and 5.

Slot 12c holds code DD, which reports what the employer health plan cost in total. It is a report, not income, and it does not change any wage box.

Slot 12d holds code C. Unlike the other three, this amount is already inside Box 1. The instructions tell employers to include it in Boxes 1, 3 and 5.

The four lines show why slot labels alone say nothing. Two entries are outside Box 1, one is inside it, and one has no effect on wages at all. The code letter is what tells them apart.

Why some W2s fill only 12a and leave 12b to 12d empty

Many W2s fill only 12a because the employee has just one item the IRS requires in Box 12. An empty 12b, 12c or 12d is normal and not a problem. It means there was nothing else to report with a code, not that something was left out by mistake.

The instructions support this reading. Their example of an employer that only has to report code D places it in 12a and goes no further. There is no rule that all four slots must be used, and no placeholder code for an empty slot.

Common reasons for a single entry are easy to picture. An employee contributes to a 401(k) but has no HSA and works for an employer covered by the code DD transitional relief. Or an employee has employer health coverage reported under code DD but does not contribute to a retirement plan. Each case produces exactly one entry.

A W2 with all of Box 12 empty is also possible. The post on what a blank Box 12 means covers that case separately.

There is one situation where an empty slot is worth a closer look: when an amount appears in the amount column but the code column is blank. The instructions say an employer must use the code "even if only one item is entered." A number with no letter is a formatting error, and only the employer can say what it represents.

When entering a W2 with one slot into tax software, enter only 12a and leave the other slots blank. Typing zeros or repeating the 12a entry into 12b creates a second item that does not exist on the form. The guide to what you put for Box 12 on your taxes covers what happens with each code after entry.

The same code in two Box 12 slots: an edge case on one W2

The same code can appear in two Box 12 slots on one W2. The IRS instructions describe the clearest case: make-up contributions for military service under USERRA, the Uniformed Services Employment and Reemployment Rights Act. The employer reports each prior year separately with a year marker, so code D can fill both 12a and 12b.

The instructions give an example. Elective deferrals of $2,250 for 2024 and $1,250 for 2025, made up under USERRA in a 401(k), are reported as "D 24 2250.00, D 25 1250.00." A current-year deferral of $7,000 "does not require a year designation" and is entered as "D 7000.00." The code and the year sit to the left of the vertical line.

A worked edge case

Here is a fictional W-2 for Riley Example, SSN XXX-XX-1234, who returned from military service in 2026. The values follow the pattern in the instructions and are examples only.

SlotCode columnAmount columnWhat this line means
12aD 242250.00USERRA make-up 401(k) deferral for 2024
12bD 251250.00USERRA make-up 401(k) deferral for 2025
12cD7000.00401(k) deferral for the current year, 2026
12dDD8900.00Cost of employer health coverage

Code D appears three times. The two amounts with a year marker belong to earlier years, and the one without a marker belongs to the current year. Adding all three into one "code D total" would mix years, and the instructions keep them apart for that reason.

Treating the two amounts

The safe way to record a repeated code is to record each slot exactly as printed, with its year marker if there is one. Do not merge the lines, and do not drop the year. How each line is used on a return depends on the instructions for that return; this post does not cover that.

Repeated codes can also appear across two W-2s from the same employer. The instructions say an employer that needs more than four Box 12 items uses a separate Form W-2 for the rest.

Software that reads W-2s has to handle this case, or it will overwrite one amount with the other. The post on W-2 extraction API typed fields describes how a schema can hold repeated codes as a list. Schema Tax keeps every slot as its own code and amount pair and flags entries it is unsure of for review, as the five-step process shows.

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