Schema Tax

Box 12 and 14 on W2: How the Two Boxes Differ

By Schema TaxPublished Updated

Box 12 and 14 on a W2 work in opposite ways. Box 12 accepts only IRS letter codes, such as D for 401(k) deferrals or DD for health coverage cost, and each code means the same thing on every form. Box 14 is free-form: your employer writes its own labels for anything else it wants you to know.

Box 12 and Box 14 compared in one table

Box 12 and Box 14 differ in who defines the entries, how many fit, and how often they reach a return. The IRS defines every Box 12 code; the employer writes every Box 14 label. The table below compares the two boxes on the points that matter when you read a W-2 or enter one into software.

Point of comparisonBox 12Box 14 (Box 14a on 2026 forms)
Who defines the entriesThe IRS, with a fixed list of letter codesThe employer, with its own labels
FormatA code of one or two capital letters, then an amountAny short text label, then an amount
Limit on entriesFour items on Copy A of one W-2; more items need another W-2No count stated; limited by space on the form
Required or optionalRequired for every listed item that appliesMostly optional, with a few named exceptions
Example entriesD 401(k) deferrals, W employer HSA contributions, DD health coverage costState disability insurance, union dues, uniform payments, pension contributions
Same meaning across employersYesNo
Effect on a federal returnOften feeds a specific form or worksheetUsually informational, with some itemized deduction and state uses

The IRS General Instructions for Forms W-2 and W-3 (2026) are the source for both columns. For Box 12 they say to "use the IRS code designated below for the item you are entering," and that "even if only one item is entered, you must use the IRS code designated for that item." They also cap Copy A at four Box 12 items and tell employers with more to use a separate W-2.

For the Other box, the instructions ask the employer to "label each item," and give examples rather than codes. On 2026 forms the Other entries sit in Box 14a, a change the guide to W2 Box 14 explains.

The full code list lives in the Box 12 code table from A onward. The Box 14 side has no official list, and the table of common Box 14 labels shows the abbreviations employers tend to print.

Why do Box 12 and Box 14 sometimes show the same amount?

Box 12 and Box 14 sometimes show the same amount, or two related amounts, because an employer may report a coded item in Box 12 and then describe a related payroll deduction in Box 14. The figure is not reported twice as income. Each box tells you something different about the same benefit.

Health savings accounts are the clearest case. The IRS instructions say code W shows "any employer contributions (including amounts the employee elected to contribute using a section 125 (cafeteria) plan) to an HSA." If you had $1,800 deducted from pay for your HSA through a cafeteria plan, that $1,800 is part of the code W figure. Some employers also list the same payroll deduction in Box 14 under a label such as "HSA" so it matches your pay stub. The Box 14 line explains; the Box 12 line is the one the IRS defines.

Health coverage is the second case. Code DD reports "the cost of employer-sponsored health coverage," and the instructions say "the amount reported with code DD is not taxable." Box 14 may separately show "health insurance premiums deducted," one of the IRS's own examples for that box. The two numbers measure different things, so they often differ, and neither one adds to your income.

Retirement plans produce the third case. Code D reports elective deferrals to a 401(k) plan, which the instructions define as "only the part of the employee's salary (or other compensation) that they did not receive because of the deferrals." The Box 14 instructions allow an employer to also report its matching contributions there. A W-2 can show D 6,000.00 in Box 12 and a match of 3,000.00 in Box 14. These amounts are fictional, and they are two separate contributions, not one amount shown twice.

The rule of thumb is to treat Box 12 as the defined figure and Box 14 as the employer's note. When the two look alike, compare both to your final pay stub before deciding anything is duplicated.

Which of Box 12 and Box 14 affects your return?

Box 12 amounts affect a return more often than Box 14 amounts do. Many Box 12 codes feed a specific form or worksheet, while most Box 14 entries are notes about money already counted in Boxes 1, 3 and 5. A few Box 14 items, such as mandatory state disability contributions, can matter on Schedule A or a state return.

On the Box 12 side, the code tells you where the number goes. The IRS Instructions for Form 8889 (2025) say employer HSA contributions "should be shown on Form W-2, box 12, code W," and the worksheet for line 9 starts from that code W figure. Code DD, by contrast, is reported for information, and the W-2 instructions say it is not taxable. Some codes affect the return only in rare situations. The W-2 forms category has posts on the other boxes and the forms they connect to.

On the Box 14 side, the label decides whether the amount has a federal use. The IRS Instructions for Schedule A (2025) list mandatory contributions to the California, New Jersey and New York disability benefit funds, the Rhode Island temporary disability fund, and state family leave programs as state and local income taxes on line 5a. Those amounts usually appear in Box 14, and they matter only if you itemize.

Union dues are another common Box 14 entry. The same Schedule A instructions say only the expenses on a specific list can be deducted on line 16, and union dues are not on that list. The entry remains useful for state returns and records.

Most other Box 14 entries are explanations. An employer that lists a taxable vehicle benefit or a domestic partner's health coverage in Box 14 has usually already added the value to the wage boxes. Entering those lines as extra income would count them twice. When tax software asks about each Box 14 line, the question is really which category the label belongs to, and the guide to picking a Box 14 category maps the common labels to the usual choices.

None of this is advice about a particular return. It describes what the boxes hold and what the IRS instructions say about them.

Items that move between Box 12 and Box 14 across employers

Items move between Box 12 and Box 14 across employers when the same kind of benefit has a Box 12 code in one plan and none in another, or when an item is optional. One employer may use a code where another writes a Box 14 note because the underlying plan differs, not because either employer made a mistake.

Retirement plans are the main source of this. The IRS instructions say "do not report in box 12 section 414(h)(2) contributions (relating to certain state or local government plans)," and send those amounts to the Other box instead. A teacher who moves from a district with a 414(h) plan to a private school with a 403(b) plan will see the contribution move from a Box 14 line to Box 12 with code E, even if the paycheck deduction looks the same.

After-tax contributions split the same way. Designated Roth contributions to a 401(k) take Box 12 code AA. Voluntary after-tax contributions that are not designated Roth contributions can go in Box 14 under the instructions. Two employees who each put $200 a month into an after-tax account can have different boxes on their W-2s depending on which type of account it is.

Employer contributions are optional in Box 14. The instructions allow nonelective and matching contributions there but do not require them. One employer shows its match; the next shows nothing. The contribution happened in both cases.

Railroad employers follow a different pattern. The instructions tell them to use Box 14 for total railroad retirement compensation and the Tier 1, Tier 2 and Medicare taxes, and to include group-term life insurance over $50,000 in Box 14 as well as with code C. A worker who moves between a railroad and a non-railroad employer sees several items change boxes.

Health coverage can shift too. Code DD reporting has transitional relief for certain employers and plan types, according to the instructions, so one W-2 shows a DD amount and another shows none. An employer that skips DD may still list premiums deducted in Box 14.

Reading Box 14 as if it used Box 12 codes: a costly misread

Reading Box 14 as if it used Box 12 codes turns an employer's abbreviation into an IRS code it never meant. A Box 14 line reading "D 312.00" might be a disability deduction, but read as Box 12 code D it becomes a 401(k) deferral. The amount lands on the wrong part of the return, and the real item disappears.

The misread happens because the two boxes sit next to each other and both show a short label followed by an amount. Box 12 entries look like "D 6000.00". Box 14 entries can look the same when an employer abbreviates hard. New Jersey's own payroll office prints "TDI" and "FLI" for its staff, according to its notice explaining its 2025 W-2 Box 14 entries. Another employer may shorten disability insurance further, down to "DI" or "D".

A worked example shows the cost. All values are fictional. Box 14 on a W-2 for Sam Example reads:

Box 14 line as printedWhat the employer meantWhat a Box 12 reading suggests
D 312.00State disability insurance withheldCode D, 401(k) elective deferral
E 96.00Employer's label for an education benefitCode E, 403(b) elective deferral
W 480.00Employer's label for a wellness paymentCode W, employer HSA contribution

If these lines go into software as Box 12 entries, three things go wrong. A $312 disability contribution that could count as a state income tax on Schedule A is lost. Records now show $408 of retirement deferrals that never happened. A wellness payment becomes an HSA contribution, which the Form 8889 instructions route into the HSA worksheet.

Two checks catch this. First, read the box number on the form, not the shape of the entry: only lines inside Box 12 use IRS codes. Second, compare each amount to the pay stub. A 401(k) deferral of $312 for a full year would show on every stub as a retirement deduction; a disability deduction would show as a state tax line.

Extraction software meets the same trap. Schema Tax keeps the box number with every value it reads from a W-2, so an amount read from Box 14 stays a Box 14 value and is never stored as a Box 12 code. You can point at each box in the interactive form demo to see where its value lands.

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