Schema Tax

What Do I Put for Box 12 on My Taxes? Code by Code

By Schema TaxPublished Updated

What you put for Box 12 on your taxes depends on the code. Each Box 12 code and amount is copied exactly as printed on the W-2. The IRS instructions then send a few codes to another form or a return line, such as code W to Form 8889, and name no line for others, such as code DD.

Which Box 12 codes do you only keep on file?

Several Box 12 codes need no entry beyond the W-2 itself, because the IRS instructions name no return line for them. Code DD, the cost of employer health coverage, is the clearest example. The 2026 W-2 instructions say the amount "is not taxable," and the 2025 Form 1040 instructions do not route it to any line.

"Keep on file" in this post means the 2025 Instructions for Form 1040, the edition for returns filed in 2026, do not mention the code with a line or form. It does not mean the code is useless. Tax software may still ask you to enter it so the program has a full copy of the W-2.

Codes whose amounts are already inside Box 1 fall into this group too. The IRS General Instructions for Forms W-2 and W-3 (2026) say Roth contributions under codes AA, BB and EE are included in Box 1, and that the amounts under codes C and V are also reported in Box 1. The 1040 instructions say to enter the total from Box 1 of your W-2s on line 1a. Those amounts reach the return through Box 1, not through a separate Box 12 entry.

The code-by-code routing table

The table lists common codes and the place the IRS instructions point each one to. It reports what the instructions say and nothing more. Sources: the 2025 Form 1040 instructions, the Instructions for Form 8889, the Instructions for Form 8839, the Instructions for Form 8853 and the 2026 W-2 instructions.

CodeWhat it isWhere the instructions point it
A and BUncollected social security and Medicare tax on tipsSchedule 2, line 13
CTaxable group-term life insurance over $50,000Keep on file; already in Box 1
D, E, F, G, SPre-tax elective deferralsKeep on file unless over the limit; excess goes on Form 1040, line 1h
HDeferrals to a 501(c)(18)(D) planSchedule 1, line 24f
K20% excise tax on golden parachute paymentsSchedule 2, line 17k
M and NUncollected tax on group-term life, former employeesSchedule 2, line 13
QNontaxable combat payForm 1040, line 1i, only if you elect to include it for the EIC
REmployer Archer MSA contributionsForm 8853, line 1
TAdoption benefitsForm 8839, then Form 1040, line 1f
VNonstatutory stock option incomeKeep on file; already in Box 1
WEmployer HSA contributionsForm 8889, line 9
ZIncome from a plan failing section 409AAlready in Box 1; additional tax on Schedule 2, line 17h
AA, BB, EERoth contributionsKeep on file; already in Box 1
DDCost of employer health coverageKeep on file; not taxable
IIExcluded Medicaid waiver paymentsSchedule 1, line 8s, and the line 1a or 1d choices in the 1040 instructions

The 2026 codes TP and TT, for cash tips and overtime, are discussed in the Form 1040 section below.

Box 12 codes that need a separate tax form

Box 12 codes that need a separate tax form are the ones another form's instructions name. Code W feeds Form 8889 for health savings accounts, code T feeds Form 8839 for adoption benefits, and code R feeds Form 8853 for Archer MSAs. Each form's instructions point to the Box 12 code by letter.

Code W and Form 8889

The Instructions for Form 8889 say, under line 9, Employer Contributions, that employer contributions to an HSA, including employee payroll contributions through a cafeteria plan, "should be shown on Form W-2, box 12, code W." They include a worksheet for timing cases, such as employer contributions for the prior year that appear on this year's W-2. The walkthrough of carrying the code W amount to Form 8889 covers that worksheet.

Code T and Form 8839

The Instructions for Form 8839 say employer-provided adoption benefits "should be shown in box 12 of your Form(s) W-2 with code T." The Form 1040 instructions for line 1f then say to enter employer-provided adoption benefits from Form 8839, line 31, after completing that form to see whether part or all of the benefits can be excluded.

Code R and Form 8853

The Instructions for Form 8853 say, under line 1, that employer contributions to an Archer MSA "should be shown in box 12 of Form W-2 with code R." The same instructions say that if the employer made excess contributions, you may have to report the excess as income.

The plan forms used for deferral codes work differently. A code D amount does not go on a separate form unless something unusual happens, such as an excess deferral, covered in its own section below. The guide to Box 12 code D explains that code on its own.

Box 12 codes that touch your Form 1040 lines

Box 12 codes that touch Form 1040 lines are a small set. Codes A, B, M and N go to Schedule 2, line 13, as uncollected tax. Code K goes to Schedule 2, line 17k. Code Z's additional tax goes on Schedule 2, line 17h. Code Q can go on line 1i, and code H on Schedule 1, line 24f.

Uncollected and excise taxes

The 2025 Instructions for Form 1040 describe Schedule 2, line 13, as uncollected social security and Medicare or RRTA tax on tips or group-term life insurance, and say "This tax should be shown in box 12 of Form W-2 with codes A and B or M and N." For line 17k they say the 20% tax on an excess parachute payment "should be shown in box 12 of Form W-2 with code K." For line 17h they say income from a nonqualified plan that fails section 409A should be shown with code Z, and that the tax is 20% of the amount plus interest.

Combat pay, Medicaid waiver payments and 501(c)(18)(D) plans

Code Q is nontaxable combat pay. The instructions say you can elect to include it in earned income for the earned income credit, and if you do, the amount goes on line 1i. Code II covers excluded Medicaid waiver payments, which the instructions handle on Schedule 1, line 8s, with choices about line 1a or 1d. For code H, the W-2 instructions say the employee deducts the amount on Form 1040, and Schedule 1, line 24f, is for contributions to section 501(c)(18)(D) pension plans.

Codes TP and TT on 2026 forms

Codes TP and TT are new on the 2026 W-2, as the Box 12 code table explains. The 2025 1040 instructions describe Schedule 1-A for the deductions for qualified tips and qualified overtime, and say that 2025 W-2s were not updated to show these amounts separately. They also say that for 2026, Form W-2 will be updated to show cash tips separately. The 2025 instructions do not route a TP or TT amount to any line, because those codes did not exist on 2025 forms.

What do I do with Box 12 when tax software asks for it?

When tax software asks for Box 12, enter each slot exactly as printed on your W-2: the letter code in the code field and the amount in the amount field, slot by slot from 12a to 12d. Leave empty slots blank. The software then applies the IRS routing for each code, so the job is accurate copying.

Copying errors are mostly predictable. Typing D for DD, or E for EE, turns one benefit into another. Moving an amount to the wrong slot pairs it with the wrong code. Dropping the decimal point turns 1500.00 into 150000. Adding a USERRA year marker to the amount, such as "24 2250.00", produces a nonsense figure; the instructions put the year in the code column, as in "D 24 2250.00".

A short routine helps. Read the code and amount aloud from the paper form, type them, then compare the screen with the paper before moving to the next slot. Check that the number of filled slots matches. If you have two W-2s from the same employer because Box 12 ran past four codes, enter both.

Copying from a scan or a PDF has the same risks. The amount field on a W-2 has no dollar sign or commas, per the IRS General Instructions for Forms W-2 and W-3, so a stray mark from a scan can look like a digit. Schema Tax reads each Box 12 slot into a code field and an amount field, masks the SSN to its last four digits before storage as its security section states, and exports the result, which you can compare against your form before typing anything into tax software.

An empty Box 12 needs nothing entered. The post on a blank Box 12 covers what a blank box means.

Box 12 amounts over a limit: the excess deferral edge case

A Box 12 amount over the yearly limit is an excess deferral. The 2025 Form 1040 instructions say that if the total deferred under all plans exceeded $23,500, excluding catch-up contributions, the excess goes on Form 1040, line 1h. Employers still report the full amount under code D, E or G.

The 2025 Instructions for Form 1040 give more detail under line 1h, Other Earned Income. The $23,500 limit is generally $16,500 with only SIMPLE plans and $26,500 for 403(b) plans under the 15-year rule. Filers aged 50 or older at the end of 2025 may have had catch-up room of up to $7,500, and those aged 60 to 63 up to $11,250. Roth contributions count toward the limit, but the excess from them is not entered on line 1h, because "They are already included as income in box 1 of your Form W-2."

On the employer side, the 2026 W-2 instructions report the full deferral under code D even above the limit, and a return of the excess is reported on Form 1099-R; the employer step list for Box 12 shows their example.

A fictional excess case

Suppose a fictional filer, Avery Example, SSN XXX-XX-1234, aged 41, had two jobs in 2025. Job one shows D 15000.00 and job two shows D 10000.00. Neither employer did anything wrong, but the total is $25,000, which is $1,500 above the $23,500 limit in the 2025 instructions. This is the case the line 1h instruction describes. How the excess and any corrective distribution are handled is a question for the instructions and a professional.

The limit is shared across plans, which is why two correct W-2s can produce an excess together. The explanation of the shared deferral limit across code D and code E plans covers how a 401(k) and a 403(b) count toward one total.

Where Box 12 help ends and a tax preparer begins

Box 12 help ends where reading the instructions turns into choosing among options. Copying codes, matching each code to a form and spotting a missing code are reading tasks. Deciding how to handle an excess deferral, a USERRA make-up year, a code Z amount or an election such as combat pay in earned income can call for a preparer.

The IRS instructions themselves signal where choices begin. The line 1i instruction offers an election. The code II instruction offers choices about which line to use. The excess deferral instruction mentions corrective distributions reported on Form 1099-R. Each of those points involves a decision, not a lookup, and this post does not make it for you.

Some codes also tie to rules outside Box 12. Code Z points to section 409A and an additional tax with interest. Codes GG and HH point to section 83(i) equity grants. Code W ties to HSA contribution limits on Form 8889. A preparer can see the whole return at once.

A preparer will want the W-2 exactly as issued, including every Box 12 slot and any second W-2 or W-2c. Preparers handling many clients can read more about that workflow in the tax preparers category. If the W-2 itself is wrong, the W-2 instructions say the employer corrects it on Form W-2c.

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