Fill out your information, and we'll do the calculations for you
W-2 Boxes Explained: Complete Guide to Every Box & Box 12 Code (2026)

W-2 Boxes Explained: Complete Guide to Every Box & Box 12 Code (2026)

ePaystubs Editorial Team · Tax year 2026 · Updated September 22, 2026 · Source-checked against IRS instructions

Quick answer

Form W-2 reports annual employee wages, withholding and certain benefits. Box 1 is federal taxable wages, Box 2 is federal income tax withheld, and Boxes 3–6 cover Social Security and Medicare wages and taxes. Box 12 reports special items by capital-letter code. If your form says 12c W 1,500, “12c” means the third reporting position, “W” is the IRS code for reportable HSA contributions, and $1,500 is the reported amount. Do not confuse the lowercase position with Code C or treat every Box 12 amount as extra taxable income.

Check the year: this guide covers wages paid in tax year 2026, normally reported on a W-2 provided in early 2027. A W-2 received in early 2026 generally reports tax year 2025.

Most important distinction: A Box 12 entry is not automatically extra income, a deduction you can claim again, or a tax you owe. Its treatment depends on the specific capital-letter code and how the related amount is reflected elsewhere on the form. Use the finder below and verify against the IRS 2026 W-2 instructions.

W-2 Box 12 Codes: Search the Complete Reference

Enter the capital-letter code or copy the entire Box 12 entry, such as 12c W 1500, 12b Code D 3200 or DD. The finder separates the lowercase position from the uppercase IRS code and explains the entry without asking for your name, SSN or employer details. All 33 code definitions remain readable below even if JavaScript is unavailable.

Enter only the code and optional amount. Do not enter an SSN, employee ID or identifying details. This tool runs locally in your browser.

Choose a code above. You can also browse all 33 code entries below.

Showing all 33 code entries.

CodeIRS meaningHow to interpret it
AUncollected Social Security or RRTA tax on tipsMay require additional tax reporting; confirm your return instructions.
BUncollected Medicare tax on tipsNot the same as regular Medicare withholding in Box 6.
CTaxable cost of group-term life insurance over $50,000Generally already included in applicable wage boxes; do not add it again.
DEmployee elective deferrals to a 401(k), including SIMPLE 401(k)Traditional pre-tax deferrals generally reduce Box 1, not Social Security or Medicare wages.
EEmployee elective deferrals under a 403(b) salary reduction agreementTraditional pre-tax deferrals generally reduce Box 1, not Social Security or Medicare wages.
FEmployee elective deferrals under a section 408(k)(6) SARSEPCheck the plan type and the employer’s retirement records.
GDeferrals under a section 457(b) planIncome-tax treatment varies by plan and deferral type; not always comparable to a 401(k).
HElective deferrals to a section 501(c)(18)(D) planDo not assume this is the same federal tax treatment as a traditional 401(k).
JNontaxable sick payThis portion is not included in taxable wages.
K20% excise tax on excess golden parachute paymentsA tax amount, not a retirement contribution.
LSubstantiated employee business expense reimbursementsGenerally reimbursement reporting rather than new taxable pay.
MUncollected Social Security or RRTA tax on taxable group-term life insurance for former employeesDistinct from Code C, which reports taxable insurance cost.
NUncollected Medicare tax on taxable group-term life insurance for former employeesDistinct from Code C, which reports taxable insurance cost.
PExcludable moving expense reimbursements for eligible Armed Forces or intelligence community membersSpecial eligibility rules apply.
QNontaxable combat payMay be relevant to certain tax credit elections; check filing instructions.
REmployer contributions to an Archer MSANot an HSA contribution; compare with your applicable account records.
SEmployee elective deferrals under a section 408(p) SIMPLE IRA planDo not confuse with Code D for a SIMPLE 401(k).
TEmployer-provided adoption benefitsTax exclusion depends on eligibility and applicable limits.
VIncome from exercising nonstatutory stock optionsUsually included in wage boxes; do not add it to Box 1 again.
WEmployer HSA contributions, including employee salary reductions through a cafeteria planReport appropriately on Form 8889; do not treat payroll Code W as a second personal contribution.
YDeferrals under a section 409A nonqualified deferred compensation planThis code is not required for all 409A deferrals; check the plan and IRS instructions.
ZIncome under a 409A plan that fails applicable requirementsMay already be in Box 1 and can trigger additional tax; seek qualified advice.
AADesignated Roth contributions under a 401(k) planAfter-tax contribution: does not lower Box 1 wages.
BBDesignated Roth contributions under a 403(b) planAfter-tax contribution: does not lower Box 1 wages.
DDCost of employer-sponsored health coverageGenerally informational; the reported coverage cost is not itself extra taxable income.
EEDesignated Roth contributions under a governmental 457(b) planAfter-tax contribution: does not lower Box 1 wages.
FFPermitted benefits under a qualified small employer HRA (QSEHRA)Reports permitted benefit, not automatically an employee-paid deduction.
GGIncome from qualified equity grants under section 83(i)Taxable amount is generally already reflected in applicable wage reporting.
HHAggregate deferrals under section 83(i) electionsDo not assume the entire balance is newly taxable in the current year.
IIMedicaid waiver payments excluded from gross income under applicable IRS rulesNot a general-purpose Medicaid benefit code.
TAEmployer contributions under a section 128 Trump account contribution programNew 2026 code; applies to eligible employer contributions under the program.
TPTotal cash tips reported to the employerNew 2026 code; not every reported tip automatically meets deduction eligibility.
TTTotal qualified overtime compensationNew 2026 code; generally the required FLSA premium above regular pay, not all overtime wages.

Coverage: These are the Box 12 codes listed in the IRS 2026 W-2 instructions. The IRS may use separate reporting rules for territorial, railroad or other special forms; always match the code to the form and tax year you actually received.

What Do 12a, 12b, 12c and 12d Mean on a W-2?

Answer for “what is Box 12c?” A blank “12c” has no tax meaning on its own. Read the capital-letter code beside the amount: 12c W is HSA reporting, while 12c D is a 401(k) deferral. Never choose Code C merely because the entry appears in slot 12c.
12a D 3,200

The first slot holds Code D: a $3,200 traditional 401(k) elective deferral, generally already excluded from federal Box 1 wages.

12b DD 7,500

The second slot holds Code DD: $7,500 of reported employer-sponsored health coverage cost. The reported amount itself does not create additional taxable wages.

12c W 1,500

The third slot holds Code W: $1,500 of HSA contributions reported through employer/payroll arrangements. Coordinate this amount with Form 8889 rather than claiming it again as a separate personal HSA contribution.

12d AA 2,000

The fourth slot holds Code AA: $2,000 in designated Roth 401(k) contributions. This is an after-tax employee contribution and does not reduce Box 1 wages.

The lowercase a–d after “12” mark four positions on the standard printed W-2. They are not tax codes. The uppercase code in each position determines the reported item. A line marked “12b D 3200.00” reports a Code D retirement deferral; the letter b does not change its tax treatment.

The IRS Copy A has four standard Box 12 entry slots. An employer reporting more than four items on Copy A uses additional forms following the IRS multiple-form rules without duplicating federal wage and withholding totals. Approved substitute employee copies may show more than four Box 12 entries. Ask payroll before assuming two statements from the same employer represent duplicate wages. IRS: Multiple forms and Box 12 codes.

What Does Every W-2 Box Mean?

Start with your identifying information, then compare annual wage figures with the final pay stub. Not every employer uses every box.

BoxWhat it reportsWhat to check
aEmployee Social Security numberConfirm it belongs to you; some employee copies may truncate it.
bEmployer identification number (EIN)Check the issuer if you worked for more than one employer.
cEmployer name and addressUse the correct employer record for your tax return.
dEmployer control number, if usedAn internal identifier; may be blank.
e / fEmployee name and addressCheck spelling and personal information.
1Federal taxable wages, tips and other compensationMay differ from gross earnings due to qualifying pre-tax benefits and taxable additions.
2Federal income tax withheldCompare with your year-end federal withholding total.
3Social Security wagesFor 2026, regular covered wages are subject to the $184,500 wage base per employer.
4Employee Social Security tax withheldTypically 6.2% of Box 3, up to $11,439 in 2026 for one employer (special cases differ).
5Medicare wages and tipsNo annual Medicare wage cap; can exceed Box 3.
6Medicare tax withheldUsually 1.45%, plus employer withholding of 0.9% Additional Medicare Tax after $200,000 of wages from that employer.
7Social Security tips reported to the employerSee whether your reported tips were included correctly in wage reporting.
8Allocated tipsGenerally not included by the employer in Boxes 1, 3, 5 or 7; tax reporting may require further action.
9Unused / generally blankDo not enter a wage or tax amount here.
10Dependent care benefits provided through the employerFor 2026, the general exclusion limit increased to $7,500 ($3,750 if married filing separately), subject to applicable eligibility and expense limits. The box reports the total benefit.
11Certain nonqualified deferred compensation amountsFollow the specific instructions; not a general retirement-plan balance.
12Letter-coded compensation and benefit itemsUse the capital-letter code lookup above; do not add all amounts to Box 1.
13Statutory employee, retirement-plan participant and third-party sick-pay checkboxesRetirement-plan status can affect eligibility for some IRA deductions.
14aOther information such as union dues or state insurance deductionsEmployer-defined descriptions need their own documentation; not all are deductible.
14bTreasury Tipped Occupation Code(s), when Code TP cash tips are reportedNew 2026 reporting field; check the occupation code with the employer if needed.
15State and employer’s state identification numberConfirm applicable work and tax jurisdictions.
16 / 17State wages and state income tax withheldState wage treatment can differ from federal Box 1.
18 / 19 / 20Local wages, local income tax and locality nameRelevant only where local reporting applies.
2026 Box 10 correction: Some older online guides and an earlier version of the IRS general instructions still display the prior $5,000 exclusion. The IRS published a specific correction confirming the 2026 general maximum is $7,500; qualification may be limited further by individual circumstances. Read the IRS correction.

What Changed on the 2026 W-2? TA, TP, TT and Box 14b

The IRS introduced three Box 12 codes for the 2026 tax year and split the former Box 14 into Box 14a (“Other”) and Box 14b (Treasury tipped occupation codes). A W-2 for tax year 2025 is a different form; do not look for mandatory 2026 code reporting on the prior-year form.

Code TA: Employer Trump account contributions

Reports eligible employer contributions under a section 128 Trump account contribution program for an employee or dependent. A reported amount is not necessarily wages that the employee received in cash.

Code TP: Cash tips reported to employer

Reports the total cash tips reported, not a guaranteed qualified-tips deduction. Occupation, income, filing and other statutory conditions still apply. Employers use Box 14b for the associated Treasury Tipped Occupation Code(s).

Code TT: Qualified overtime compensation

Reports overtime compensation meeting the relevant federal definition, generally the premium above regular pay required by FLSA section 7. It does not mean all overtime wages or all state-law overtime is deductible.

Box 14b: Tipped occupation

When employers report cash tips with Code TP, the IRS instructions require one or more occupation codes in this new field. Code 14b is not an additional dollar amount or separate tax.

Worked overtime example

An employee’s regular hourly rate is $20 and the required time-and-a-half overtime rate is $30. For five eligible overtime hours, overtime wages total $150, but the premium portion is $50 ($10 × five hours). In this simplified example, the $50 premium, not the full $150, is the relevant Code TT amount. Other statutory requirements can change an actual deduction.

Tips and overtime remain subject to applicable payroll withholding rules. A Code TP or TT figure is an employer reporting amount, not automatic approval of a personal income-tax deduction. See the IRS 2026 reporting instructions for the detailed definitions.

2026 reporting is not the same as deduction eligibility. Code TP is the total cash tips reported to the employer. Some reported tips may not qualify for the federal tips deduction. Code TT reports qualified overtime compensation under the applicable federal definition, not necessarily all wages paid at an overtime rate. The employee’s filing status, income and other statutory conditions must also be considered. Ordinary payroll withholding still applies as required. Check the IRS instructions for TP, TT and Box 14b.

Which Box 12 Codes Affect Taxable Wages?

Instead of labeling the entire Box 12 column “taxable” or “nontaxable,” identify the specific entry:

Example codeCurrent meaningHow it relates to taxes
D / ETraditional employee 401(k) / 403(b) deferralsGenerally excluded from federal Box 1 but included in Social Security and Medicare wage bases.
AA / BB / EEDesignated Roth retirement deferralsAfter-tax contributions are already counted in federal wages; do not subtract them from Box 1 again.
DDCost of qualifying employer health coverageInformational reporting; the Code DD total is not itself additional taxable wages.
WHSA contributions through employer / eligible payroll planGenerally excluded when eligible; use the proper employer-contribution section of Form 8889, not an extra personal-contribution deduction.
C / V / ZSpecified taxable benefit or compensation itemsCan already be in applicable wage boxes; Code Z can trigger additional tax. Do not blindly add the same reported amount twice.
TP / TTCash tips reported / qualified overtime compensationReporting may support a return-level deduction if the individual satisfies its separate requirements; it does not remove ordinary payroll taxes.

Code D vs. Code DD

D reports employee deferrals to a 401(k); qualifying traditional deferrals generally lower federal Box 1 wages. DD reports the cost of employer-sponsored health coverage for information only. A $12,000 Code DD entry does not mean the employee owes $12,000 or received $12,000 of extra taxable pay.

Code W and Form 8889

Code W includes eligible employer HSA contributions and employee contributions through a qualifying cafeteria plan. Those payroll amounts belong in the employer-contribution treatment on Form 8889, not as an additional out-of-pocket contribution you can deduct again. Separate eligible contributions paid directly from your after-tax funds can have different reporting. See IRS Form 8889 instructions.

Worked Example: Why Box 1 Can Differ From Box 3 and Box 5

The following fictional employee earned $60,000 during 2026, contributed $3,000 to a traditional 401(k), and paid $2,400 in qualifying pre-tax health premiums through payroll. Assume no additional taxable benefits, wage-base limitation or other special payroll adjustments.

ItemCalculationExample amount
Gross wagesAnnual earnings before listed deductions$60,000.00
Box 1 federal wages$60,000 − $3,000 401(k) − $2,400 health premium$54,600.00
Box 3 Social Security wages$60,000 − $2,400 health premium$57,600.00
Box 4 Social Security tax$57,600 × 6.2%$3,571.20
Box 5 Medicare wages$60,000 − $2,400 health premium$57,600.00
Box 6 Medicare tax$57,600 × 1.45%$835.20
Box 12 Code DEmployee traditional 401(k) deferral$3,000.00

What this demonstrates: The 401(k) deferral reduces Box 1 but not the standard Social Security or Medicare wage bases; the qualifying health premium reduces all three in this simplified example. Box 2 depends on the employee’s actual federal withholding and cannot be inferred from gross wages alone. Box 12 Code DD, if shown, reports qualifying total employer-sponsored coverage cost rather than automatically equaling the employee’s $2,400 premium.

For the full method, read how to calculate W-2 wages from a pay stub, the FICA guide, and how to read your final pay stub.

How to Check Your W-2 Against Your Final Pay Stub

  1. Confirm the tax year and employer. A 2026 W-2 reports wages paid during 2026; a late paycheck can belong to the following year.
  2. Compare annual wage totals. Work from the final year-to-date gross and taxable-wage fields, accounting for the actual treatment of benefits and taxable additions.
  3. Reconcile Boxes 2, 4 and 6. Use year-to-date withholding for federal income tax, Social Security and Medicare, allowing for corrections or multiple employers.
  4. Match each Box 12 code separately. Compare traditional retirement, Roth deferrals and HSA totals to the appropriate payroll records. Do not combine different code types.
  5. Review Boxes 10, 13 and 14. Confirm dependent care, retirement-plan status, additional employer details and any 2026 tipped-occupation code.
Important: A final pay stub can help investigate a discrepancy, but it is not the authoritative substitute for the employer-issued Form W-2. The payroll register, year-end adjustments, allocated tips, certain imputed benefits and corrections may not be obvious from one pay statement.

Quick reconciliation worksheet: which number should match?

W-2 itemCompare with your recordsDo not assume
Box 1Final YTD federal taxable wages after qualifying exclusions and taxable additionsThat it must equal gross pay or a simple gross-minus-all-deductions figure.
Box 2Federal income tax actually withheld during the tax yearThat it equals a tax-bracket percentage of Box 1.
Boxes 3 / 4Social Security taxable wages and tax withheldThat Box 3 always equals Box 5; 2026 wages are subject to a $184,500 wage base for each employer.
Boxes 5 / 6Medicare taxable wages and Medicare tax, including any Additional Medicare withholdingThat Medicare stops at the Social Security wage ceiling.
Box 12 D / AASeparate traditional and Roth retirement-plan YTD contributionsThat Roth AA should be subtracted from Box 1 like traditional D.
Box 12 WEmployer HSA amounts plus qualifying employee cafeteria-plan salary reductionsThat this entire amount is an extra deduction to enter again as a personal contribution.
Box 12 DDEmployer-sponsored health coverage cost reported for informationThat it is an employee deduction or newly taxable income.
Tax-year trap: if work performed in late December is paid in January, the payment is generally included in the following calendar year's wage reporting. Match pay dates and year-end adjustments, not merely the work-period dates. If two employers withheld Social Security, the combined amount can exceed the single-employer limit without either W-2 necessarily being wrong. See the IRS excess withholding rules before requesting a correction.

What to ask payroll when the figures differ

“My [tax year] W-2 shows Box [number/code] of $[amount]. My year-end payroll record shows [field] of $[amount]. Please confirm the taxable-wage adjustment, pay date, or benefit treatment that explains the difference and whether a corrected W-2 is necessary.” Preserve your original forms; do not alter an issued W-2 or invent missing entries.

What If a W-2 Box or Box 12 Code Is Missing or Incorrect?

First check your employer’s payroll or benefits statement, not just the previous year’s W-2: different tax years and benefits can change which codes appear. If a 2026 W-2 entry is genuinely incorrect, contact the issuer, explain the discrepancy, and ask whether a Form W-2c is needed.

If you cannot obtain a correct W-2, the IRS provides procedures for missing or incorrect employer forms, including when Form 4852 is appropriate. Do not invent replacement figures or present a self-created pay statement as an official W-2. Start with IRS Form W-2 guidance and, if you need another copy, see our lost-W-2 guide.

W-2 Boxes and Box 12: Frequently Asked Questions

What does “12c W” mean on a W-2?

“12c” is the third Box 12 reporting slot; “W” identifies reportable HSA contributions, including qualifying employer and payroll salary-reduction contributions. The lowercase c does not change the meaning of Code W.

Is Box 12 the amount of tax I owe?

No. Box 12 holds different codes for benefits, taxes and compensation. Some report already-taxed income, some report qualifying pre-tax contributions, and others are informational. Use the capital-letter code rather than treating the entire total as a tax bill.

Do codes AA, BB or EE reduce Box 1?

No. These identify designated Roth retirement contributions. The corresponding employee amounts are generally after-tax and already included in federal wages, unlike eligible traditional elective deferrals.

Why does Box 3 differ from Box 1?

Traditional 401(k) deferrals generally reduce federal taxable wages but remain subject to Social Security tax; qualifying cafeteria-plan health premiums may reduce both. Box 3 also has the annual Social Security wage limit.

Can I claim the full Code TP amount as a tips deduction?

Not automatically. TP reports total cash tips to the employer. Deduction eligibility also depends on the individual’s occupation, the nature of the tips, income and other federal requirements. Box 14b reports the associated occupation code(s).

Do I need a 2026 Code TT on the W-2 I received in early 2026?

Usually not: a W-2 received in early 2026 generally covers tax year 2025, when the IRS provided reporting transition relief. Code TT applies to the 2026 tax-year reporting framework.

What is the difference between Code D and Code DD in Box 12?

Code D reports eligible 401(k) employee elective deferrals; traditional pre-tax deferrals generally reduce Box 1. Code DD is the reported cost of employer-sponsored health coverage and is informational. Neither the amount under DD nor the label “12d” is itself a 401(k) deduction.

Does Code W mean I can deduct the entire amount again?

No. Code W includes employer HSA contributions and employee HSA salary reductions through a qualifying cafeteria plan. These are generally recorded in the employer-contribution section of Form 8889; separate personal contributions outside payroll are handled differently. Review your actual HSA records and current Form 8889 instructions.

What if Box 12 reports more than four codes?

The standard IRS Copy A has four slots. Employers can use additional Copy A forms to report more items without duplicating federal wage/tax totals, and approved substitute employee copies may include more than four entries. Compare each code and ask payroll about genuine duplicates.

Official sources and related guidance

IRS instructions control the formal meaning of each code. If a source or your payroll portal appears inconsistent, check which tax year it describes.

Working with real W-2 figures?

Employers and authorized payroll users can organize accurate wage and withholding details using ePaystubs. A generated worksheet or draft is not a substitute for the W-2 the employer must issue and file.

Explore the W-2 form tool

This article provides general educational information for tax year 2026. Reporting rules and personal eligibility can differ; consult the current IRS instructions or a qualified tax professional for individual tax decisions. No personal tax return or employment record is verified by this article.

ePaystubs Support Support team is online

Start a conversation

Enter your details and tell us how we can help.

Your conversation will appear here.
This conversation has been closed by the support team.
Create Pay Stub