Overview
What Is Box 12 on Form W-2?
Box 12 is the reporting slot on Form W-2 for items that need their own line and a specific IRS letter code. Instead of one lump sum, Box 12 breaks compensation, elective deferrals, benefit costs, and a few uncollected taxes into individual entries. Each entry has two parts: an alphabetic code (A, B, C, D, and so on up through II, plus TA, TP, and TT for 2026) and the matching dollar amount.
The IRS assigns a fixed meaning to every letter. Code D always means an elective deferral into a section 401(k) plan. Code DD always means the cost of employer sponsored health coverage. Employers cannot invent their own Box 12 codes. If a value does not have an IRS assigned letter, it belongs in Box 14a instead.
Your Form W-2 shows Box 12 with four small sub boxes labeled 12a, 12b, 12c, and 12d. The label positions on the form do not have to match the code letter. An employer that only reports code D can enter it in slot 12a even though D is not the first code alphabetically.
Reading the form
How Do You Read a Box 12 Code and Amount?
Every Box 12 entry follows the same layout: the code letter to the left of the vertical line and the dollar amount to the right. If the employer is reporting a prior year make up contribution under USERRA, the year appears between the code and the amount. For example, D 24 2250.00 means a $2,250 elective deferral into a 401(k) plan for tax year 2024. A current year 2026 entry has no year: just D 7000.00.
The order of the codes does not matter. What matters is that the letter and amount are paired correctly. If you see a code that is not on the current IRS list, ask your payroll department, because the SSA will reject a form with an unrecognized code.
Full code list
What Are the Complete Box 12 Codes for 2026?
Here is every Box 12 code in the 2026 IRS instructions, in the same order the IRS prints them. Amounts are always in whole dollars and cents.
| Code | What it reports |
|---|---|
| A | Uncollected social security or RRTA tax on tips |
| B | Uncollected Medicare tax on tips |
| C | Taxable cost of group term life insurance over $50,000 |
| D | Elective deferrals to a section 401(k) plan |
| E | Elective deferrals to a section 403(b) plan |
| F | Elective deferrals to a section 408(k)(6) SEP |
| G | Elective deferrals and employer contributions to a section 457(b) plan |
| H | Elective deferrals to a section 501(c)(18)(D) plan |
| J | Nontaxable sick pay |
| K | 20 percent excise tax on excess golden parachute payments |
| L | Substantiated employee business expense reimbursements |
| M | Uncollected social security or RRTA tax on group term life over $50,000 for former employees |
| N | Uncollected Medicare tax on group term life over $50,000 for former employees |
| P | Excludable moving expense reimbursements for U.S. Armed Forces and intelligence community |
| Q | Nontaxable combat pay |
| R | Employer contributions to an Archer MSA |
| S | Salary reduction contributions to a section 408(p) SIMPLE plan |
| T | Adoption benefits |
| V | Income from the exercise of nonstatutory stock options |
| W | Employer and employee HSA contributions through a cafeteria plan |
| Y | Deferrals under a section 409A nonqualified plan |
| Z | Income under a 409A plan that fails to satisfy section 409A |
| AA | Designated Roth contributions under a section 401(k) plan |
| BB | Designated Roth contributions under a section 403(b) plan |
| DD | Cost of employer sponsored health coverage (not taxable) |
| EE | Designated Roth contributions under a governmental section 457(b) plan |
| FF | Permitted benefits under a QSEHRA |
| GG | Income from qualified equity grants under section 83(i) |
| HH | Aggregate deferrals under section 83(i) elections |
| II | Medicaid waiver payments excluded from gross income under Notice 2014-7 |
| TA | Employer contributions under a section 128 Trump account program (new for 2026) |
| TP | Total cash tips reported to the employer (new for 2026) |
| TT | Total qualified overtime compensation (new for 2026) |
This is general information, not tax advice. For the definitive text of any code, open the current IRS instructions and use the calculator above to see how a deferral changes your take home pay.
2026 additions
Which Box 12 Codes Are New for 2026?
Public Law 119-21, enacted July 4, 2025, added three Box 12 codes that first appear on W-2s issued in January 2027 for the 2026 tax year.
- Code TA: Employer contributions to a Trump account under a section 128 program. Beginning July 4, 2026, employers may contribute up to $2,500 a year toward the $5,000 total annual contribution limit. The employer amount is excluded from the employee gross income when paid under a qualifying program.
- Code TP: Total cash tips reported by the employee to the employer. Cash tips are voluntary or charged customer tips, plus tips received through tip sharing. Mandatory service charges are not cash tips. The code TP amount is what the employee has reported to the employer; it is not the deduction figure on the return.
- Code TT: Total qualified overtime compensation. Only the extra portion above the regular rate goes into code TT. In a time and a half rate, that is the half portion. The related deduction on the individual return is limited to $12,500 (or $25,000 for married filing jointly) for tax years 2025 through 2028.
Codes TP and TT tie back to another 2026 change: a new Box 14b that carries the Treasury Tipped Occupation Codes for the tipped worker. See our page on W-2 Box 14a and Box 14b for how those two boxes work together.
Multiple W-2 rule
How Do Employers Report More Than Four Box 12 Codes?
Copy A of Form W-2 (the copy that goes to the Social Security Administration) has only four Box 12 slots. If an employee has more than four coded items, the employer issues a second Form W-2 with the extra codes. The additional W-2 is not marked Corrected because it is not a correction; it is a continuation. On employee copies produced with approved substitute forms, more than four items can be listed on the same page.
A common example: an employee has code D for 401(k) deferrals, code AA for Roth 401(k), code DD for employer health coverage, code W for HSA contributions, and code C for group term life over $50,000. That is five entries. The employer must produce two separate Copy A forms, four codes on the first and one on the second.
How a $95,000 Salary Fills Box 12 (2026)
| Line item | Amount |
|---|---|
| Gross wages | $95,000.00 |
| Code D: 401(k) elective deferral (10 percent) | $9,500.00 |
| Code AA: Designated Roth 401(k) | $1,000.00 |
| Code W: Employer plus employee HSA via cafeteria plan | $2,000.00 |
| Code DD: Employer sponsored health coverage (informational) | $9,600.00 |
| Box 1 wages after code D and W reductions | $83,500.00 |
| Box 3 and Box 5 wages (Roth and HSA differ from Box 1) | $93,000.00 |
A 45 year old employee earning $95,000 with a 10 percent 401(k) deferral, $1,000 in Roth 401(k), $2,000 in HSA contributions through payroll, and $9,600 in employer paid health coverage. All figures round to the nearest cent.
Impact on wages
Does the Box 12 Amount Change Your Take Home Pay?
Some Box 12 amounts already reduce Box 1 wages, so they do not owe tax again. Others are informational only. A few tell the IRS about tax that could not be collected.
- Reduces Box 1 wages: Codes D, E, F, G, H, S, AA, BB, EE (elective deferrals and designated Roth reductions where applicable), plus Code W for HSA contributions and Code P for qualified moving reimbursements paid to Armed Forces members.
- Not taxable, informational: Code DD (health coverage cost) is not taxable. Code J (nontaxable sick pay), Code Q (nontaxable combat pay), and Code II (Notice 2014-7 Medicaid waiver payments) are not in Box 1.
- Adds to income: Code C (group term life over $50,000) is included in Boxes 1, 3, and 5. Code V (nonstatutory stock option spread) is included in Box 1. Code Z is included in Box 1 and triggers an additional tax.
- Uncollected tax: Codes A, B, M, and N tell the IRS that the employer could not collect certain social security or Medicare tax; the employee owes it on Form 1040.
Fixes
What Should You Do If a Box 12 Code Looks Wrong?
Check the pay stub for the same tax year. Most Box 12 entries can be traced to a pay stub line: 401(k) deferrals map to code D, HSA contributions to code W, employer health coverage to code DD, and Roth 401(k) to code AA. If the sum on your last pay stub does not match Box 12, ask payroll before you file.
If the employer agrees there is an error, they must issue Form W-2c (Corrected Wage and Tax Statement) and file it with the SSA. Do not silently change the amounts on your Form 1040. If the employer refuses to fix it, you can contact the IRS at 800-829-1040 after February 14 and file Form 4852 as a substitute W-2.
For Code DD, remember it is not taxable. Some filers see a large employer health coverage number and worry they owe tax on it; they do not. Code DD is only reported so that you and the IRS can see the total cost of your employer sponsored health plan.
Official source
Where Is the Official Box 12 Code List Published?
The IRS publishes the current Box 12 code list each year inside the General Instructions for Forms W-2 and W-3. The 2026 edition, catalog number 25979S, is posted as iw2w3.pdf on IRS.gov. Pages 20 to 24 walk through every code with the IRS definition, and the Form W-2 Reference Guide for Box 12 Codes on page 32 gives a quick lookup chart.
Bookmark that PDF or the parent page at IRS.gov/FormW2. The IRS updates it in January to reflect legislative changes such as P.L. 119-21, which added codes TA, TP, and TT for 2026 and made the Box 14 split described in our companion guide.
Questions
W-2 Box 12 Codes for 2026: What Each Letter on Your Form Means FAQ
What is the difference between Box 12 code D and code AA?
Code D is a pretax elective deferral to a section 401(k) plan; the amount is subtracted from Box 1 wages, so you do not pay federal income tax on it now. Code AA is a designated Roth contribution to the same 401(k) plan; the amount is included in Box 1 wages and taxed now, but qualified withdrawals in retirement come out tax free. Both share the same combined annual limit set by the IRS.
Is the amount in Box 12 code DD taxable?
No. Code DD reports the total cost of employer sponsored health coverage, and the IRS states directly that the amount reported with code DD is not taxable. It is disclosed on the W-2 so you and the IRS can see the total value of your health benefit, including both the employer share and any employee premium contributions. Do not add it to your wages when filing.
Why does my W-2 have two forms with different Box 12 codes?
Copy A of Form W-2 has room for only four Box 12 codes. When an employee has more than four coded items, the IRS instructs the employer to use a separate Form W-2 for the additional items and not to check the Corrected box on the second form. Both W-2s belong to the same tax year and same employer. Combine the amounts on your return.
What are the new Box 12 codes TA, TP, and TT for?
Public Law 119-21 added three codes for 2026 W-2s. Code TA reports employer contributions to a section 128 Trump account (up to $2,500 per year toward the $5,000 total limit beginning July 4, 2026). Code TP reports the total cash tips an employee reported to the employer. Code TT reports the total qualified overtime compensation (the extra portion above the regular rate).
Does an amount in Box 12 code W lower my taxes?
Yes indirectly. Code W includes both employer HSA contributions and any employee contributions made through a section 125 cafeteria plan. Cafeteria plan HSA contributions are already excluded from Box 1, Box 3, and Box 5 wages. You cannot deduct them again on Form 8889. Only HSA contributions made outside payroll are deductible on your 1040.
What if my Box 12 codes have unfamiliar letters like GG, HH, or II?
Those are less common but real IRS codes. GG reports income from qualified equity grants under section 83(i). HH reports the total deferred under section 83(i) elections at year end. II reports Medicaid waiver payments excluded from gross income under Notice 2014-7. If you see any of these, keep the W-2 and ask your tax preparer, because each affects a different line of your 1040.
Do I need to enter Box 12 amounts on my tax return?
Some, but not all. Tax software prompts for every Box 12 code because a few (like V, Z, T, or Q) drive follow up questions or forms. Code DD is disclosure only, so entering it does not change your return. Codes A, B, M, and N transfer uncollected tax to your return, so they must be entered. When in doubt, enter every Box 12 code exactly as it appears on the W-2 and let the software handle the flow.
- Sources: IRS: 2026 General Instructions for Forms W-2 and W-3 · IRS: About Form W-2, Wage and Tax Statement · IRS: About Publication 15-B, Employer's Tax Guide to Fringe Benefits · IRS: About Form W-2c, Corrected Wage and Tax Statement · IRS: Affordable Care Act Employer Reporting of Health Coverage
- Last updated September 22, 2026
← Back to the full salary calculator · Related: Paycheck deductions explained · Fica tax explained · Pay stub explained
