# W2 Box 12 Codes Explained: Every Code From A to TT

- Canonical: https://schematax.com/blog/w2-box-12-codes
- Author: Schema Tax (https://schematax.com)
- Published: 2026-09-04T03:52:18.000Z
- Updated: 2026-09-04T03:52:18.000Z

W2 Box 12 codes are one- or two-letter labels that tell you what each Box 12 amount is. Code D is a 401(k) deferral, code DD is the cost of employer health coverage, code W is an employer HSA contribution. The IRS list runs from A to HH, then II, and the 2026 form adds TA, TP and TT.

## The full Box 12 code table from A to TT

The Box 12 code table below lists every code in the 2026 edition of the IRS General Instructions for Forms W-2 and W-3. Each row gives what the code reports, whether the amount is part of Box 1 wages, and the entry in the instructions that defines it. Amounts are in dollars; the code letter carries the meaning.

The source is the "Box 12, Codes" section of the [IRS General Instructions for Forms W-2 and W-3 (2026)](https://www.irs.gov/instructions/iw2w3), plus its "Form W-2 Reference Guide for Box 12 Codes" chart. Older editions ended at HH. The current list goes further: it ends with code II and adds three codes tied to Public Law 119-21, enacted July 4, 2025: TA, TP and TT.

"In Box 1?" means what the instructions say about Box 1 wages for that code. "Tax amount" means the code reports a tax, not pay, so the Box 1 question does not apply.

| Code | What it reports | In Box 1? | IRS source line |
| --- | --- | --- | --- |
| A | Uncollected social security or RRTA tax on tips | Tax amount | Code A entry |
| B | Uncollected Medicare tax on tips | Tax amount | Code B entry |
| C | Taxable cost of group-term life insurance over $50,000 | Yes, also in Boxes 3 and 5 | Code C entry |
| D | Elective deferrals to a 401(k) plan, including a SIMPLE 401(k) | No | Codes D through H entry; Code D entry |
| E | Elective deferrals to a 403(b) plan | No | Code E entry |
| F | Elective deferrals to a 408(k)(6) salary reduction SEP | No | Code F entry |
| G | Elective and employer deferrals to a 457(b) plan | No | Code G entry |
| H | Elective deferrals to a 501(c)(18)(D) plan | Yes | Code H entry |
| J | Nontaxable sick pay from a third party | No, and not in Boxes 3 or 5 | Code J entry |
| K | 20% excise tax on excess golden parachute payments | Tax amount | Code K entry |
| L | Substantiated part of business expense reimbursements | No, only the excess is | Code L entry |
| M | Uncollected social security or RRTA tax on group-term life over $50,000, former employees | Tax amount | Code M entry |
| N | Uncollected Medicare tax on group-term life over $50,000, former employees | Tax amount | Code N entry |
| P | Excludable moving expense reimbursements for the Armed Forces or intelligence community | No | Code P entry |
| Q | Nontaxable combat pay | No | Code Q entry |
| R | Employer contributions to an Archer MSA | Only the part not excludable | Code R entry; Archer MSA section |
| S | Salary reduction contributions to a 408(p) SIMPLE plan | No | Code S entry |
| T | Adoption benefits | No, but in Boxes 3 and 5 | Code T entry; Adoption benefits section |
| V | Income from exercising nonstatutory stock options | Yes, also in Boxes 3 and 5 | Code V entry |
| W | Employer contributions to an HSA, including cafeteria plan amounts | Only the part not excludable | Code W entry; HSA section |
| Y | Deferrals under a 409A nonqualified plan (optional to report) | No | Code Y entry |
| Z | Income from a nonqualified plan that fails section 409A | Yes | Code Z entry |
| AA | Designated Roth contributions to a 401(k) | Yes | Code AA entry; Box 1 list |
| BB | Designated Roth contributions to a 403(b) | Yes | Code BB entry; Box 1 list |
| DD | Cost of employer-sponsored health coverage | No, not taxable | Code DD entry |
| EE | Designated Roth contributions to a governmental 457(b) | Yes | Code EE entry; Box 1 list |
| FF | Permitted benefits under a QSEHRA | No, except taxable reimbursements | Code FF entry |
| GG | Income from qualified equity grants under section 83(i) | Yes | Code GG entry; section 83(i) section |
| HH | Aggregate deferrals under section 83(i) elections at year end | No | Code HH entry |
| II | Medicaid waiver payments excluded from income | No | Code II entry |
| TA | Employer contributions to a Trump account | No, excluded from income | Code TA entry |
| TP | Total cash tips reported to the employer | Yes, tips are in Box 1 | Code TP entry; Box 1 list |
| TT | Total qualified overtime compensation | Yes, part of wages | Code TT entry |

The list skips some letters. There is no code I, O, U or X, and no CC between BB and DD. A W-2 that shows one of those letters in Box 12 does not match any code in the current instructions, which is worth raising with the employer.

## Which Box 12 codes show up on most W2s?

The Box 12 codes most W2s carry are the ones tied to benefits that many employers offer: code D for a 401(k) deferral, code DD for employer health coverage, code W for an HSA, code E for a 403(b), and code AA for a Roth 401(k). That is a reading of the benefits, not a count of forms.

Code DD is the one that surprises people most. The instructions say the employer "must report the cost of employer-sponsored health coverage in box 12 using code DD", with transitional relief for certain employers and plans. So a worker with ordinary employer health insurance can find a large DD figure on a W-2 without having paid anything extra. The instructions state plainly that the amount reported with code DD is not taxable.

Code D appears whenever an employee defers part of their pay into a 401(k). The amount is what the employee chose to defer, including any catch-up contributions for workers aged 50 or older, which the instructions say go in as one sum with the regular deferral. Employer matching contributions are not part of it; the instructions list them among items that may go in Box 14a but not Box 12.

Code W shows up for workers in a high-deductible health plan with an HSA. It includes the employer's own contribution and anything the employee put in through a cafeteria plan, meaning pre-tax payroll deductions. Code C shows up for workers whose employer provides group-term life coverage above $50,000.

For tax year 2026, codes TP and TT will appear on many forms for the first time. TP is cash tips reported to the employer, and TT is qualified overtime pay. A server or bartender is likely to see TP, and an hourly worker paid overtime is likely to see TT. The [W-2 forms category](/blog/category/w-2-forms) covers the rest of the form around Box 12.

## Box 12 codes grouped by retirement, health and other benefits

Box 12 codes sort into three families: retirement plan contributions, health and medical benefits, and a mixed group of taxes, income items and other benefits. The family narrows the search for an unfamiliar letter. The code letters themselves do not follow the families; so D and AA are related while D and DD are not.

### Retirement plan codes

Retirement codes report money the employee put into a workplace plan. Pre-tax deferrals use D (401(k)), E (403(b)), F (salary reduction SEP), G (457(b)), H (501(c)(18)(D)) and S (SIMPLE IRA). Roth contributions use AA (401(k)), BB (403(b)) and EE (governmental 457(b)). Codes Y and Z cover nonqualified deferred compensation, and TA covers employer contributions to a Trump account, a new account type for children that the 2026 instructions describe.

The instructions group D through H, S, Y, AA, BB and EE under one heading for elective deferrals and designated Roth contributions. That grouping is a good test: if the code is in it, the amount came out of the employee's own pay.

### Health and medical codes

Health codes report coverage or account contributions. DD is the cost of employer health coverage. W is employer money to an HSA. R is employer money to an Archer MSA, an older medical savings account. FF is the permitted benefit under a qualified small employer health reimbursement arrangement (QSEHRA), which the instructions describe as the amount the employee is entitled to, not the amount actually reimbursed. J is nontaxable sick pay paid by a third party, and II is excluded Medicaid waiver payments.

### Other codes: taxes, income and benefits

The last family is mixed. A, B, M and N report taxes the employer could not collect. K reports an excise tax on golden parachute payments. C, V, GG and HH report income items: life insurance cost, stock option spread and section 83(i) equity grants. L, P, Q and T report reimbursements or benefits: business expenses, military moving costs, combat pay and adoption benefits. TP and TT report tips and overtime.

## Which Box 12 codes change the wages in Box 1?

No Box 12 code changes Box 1 after the fact. Each code reports an amount the employer already handled when it computed Box 1. Some codes describe money left out of Box 1, such as a 401(k) deferral under code D, and others describe money already inside Box 1, such as code V stock option income.

The [IRS General Instructions for Forms W-2 and W-3](https://www.irs.gov/instructions/iw2w3) state this in the Box 1 section: the employer reports total taxable wages "However, do not include elective deferrals (such as employee contributions to a section 401(k) or 403(b) plan) except section 501(c)(18) contributions." That one sentence explains why codes D, E, F, G and S sit outside Box 1, while code H, the 501(c)(18) exception, sits inside it.

The same Box 1 list names the items that stay in. Designated Roth contributions are included, so AA, BB and EE amounts are part of Box 1. The taxable cost of group-term life insurance over $50,000 is included, which matches code C. Tips reported by the employee are included, which matches code TP. The code V and code Z entries each say the amount is also reported in Box 1, and the section 83(i) entry says the code GG amount is wages for Box 1.

Several codes describe amounts that are mostly or wholly outside Box 1. The instructions say adoption benefits under code T are not reportable in Box 1 but do go in Boxes 3 and 5. Code DD is not taxable at all. Codes R and W are outside Box 1 unless the contribution is not excludable, in which case the employer also reports it in Boxes 1, 3 and 5.

The Box 3 rules differ, which is why the three wage boxes rarely match. The instructions tell employers to report in Box 3 the deferrals under codes D, E, F, G and S "even though the deferrals are not includible in box 1." A 401(k) deferral therefore lowers Box 1 but not Box 3 or Box 5. The [post on what Box 12 is for](/blog/what-is-box-12-on-w2) walks through that arithmetic on a sample form, and the background on [why the IRS uses letter codes](/blog/what-is-box-12-on-w2#why-the-irs-gives-box-12-letter-codes) lives there too.

## Retired and rarely seen Box 12 codes

Retired and rarely seen Box 12 codes are the letters most workers never meet. Codes K, P, Q and HH are not retired: all four remain in the 2026 IRS reference chart. They are rare because each one covers a narrow group, such as executives with golden parachutes, military members or employees with special equity grants.

Code K is the 20% excise tax on excess golden parachute payments. The instructions describe these as payments to certain key corporate employees, so a typical employee will never see it. When the excess payments count as wages, the instructions say the withheld excise tax also goes in Box 2.

Code P covers moving expense reimbursements, but only excludable ones paid directly to a member of the U.S. Armed Forces on active duty who moves under a military order, or to an employee or new appointee of the intelligence community. The Box 1 list in the same instructions puts nonqualified moving expenses and reimbursements in Box 1, with no code.

Code Q is nontaxable combat pay, which only military employers report. Code HH is the running total of income deferred under section 83(i) elections at year end, an election that lets an employee put off income from certain stock grants. Its partner, code GG, reports the amount that became income in the year.

Code Y is rare for a different reason. The instructions say it is not necessary to show section 409A deferrals in Box 12 with code Y, so many employers leave it off even when the plan exists. Code M and code N apply only to former employees with group-term life coverage, and code FF only to small employers with a QSEHRA.

Some letters appear nowhere in the current chart. There is no I, O, U or X, and no CC. If an older W-2 or a payroll printout shows one of these, compare it against the edition of the instructions for that tax year, because this table follows the 2026 edition only.

## Misreading a Box 12 code letter: lookalike pairs such as D and DD

Misreading a Box 12 code letter swaps one benefit for another. D is a 401(k) deferral that lowers Box 1, while DD is health coverage cost that has no effect on income. Other lookalike pairs are E and EE, B and BB, G and GG, and T and TT. Each pair reports unrelated things.

The doubled letters were not designed as variants of the single ones. E is a 403(b) deferral and EE is a Roth contribution to a governmental 457(b). G is a 457(b) deferral and GG is income from a section 83(i) equity grant. T is adoption benefits and TT is qualified overtime. A reader who drops a letter, or a scan that loses one, ends up with an amount filed under the wrong benefit.

The effect of a misread depends on where the amount is used. Treating a DD figure as a D deferral makes it look as though thousands of dollars were deferred into a retirement plan, which can make the deferral appear to exceed the yearly limit. Treating a D figure as DD hides the deferral. Treating TT as T turns an overtime amount into adoption benefits. The [comparison of codes D and DD](/blog/what-is-d-and-dd-in-box-12) shows both entries side by side.

Spacing on the printed form adds to the risk. Box 12 has a narrow code column to the left of a vertical line and the amount to the right, and the instructions require capital letters. A faint second D, or a letter that sits close to the line, is easy to miss on a phone photo. The [guide to the 12a, 12b, 12c and 12d slots](/blog/12a-on-w2) explains how each slot pairs a code with an amount.

Where each code goes on a return is a separate question from what it means. The [list of Box 12 codes that need a separate tax form](/blog/what-do-i-put-for-box-12-on-my-taxes#box-12-codes-that-need-a-separate-tax-form) covers that, code by code.

When the same letters arrive on dozens of forms, keeping code and amount together matters more than reading speed. Schema Tax reads each Box 12 slot on a W-2 as a code and an amount in typed fields, and flags a letter it is unsure of for review instead of guessing, which you can see on a sample form in the [interactive demo](/#demo).
