Skip to main content

KMK Ventures

W-2 Box 12 Codes Explained: What Each Code Means

W-2 Box 12

Latest Update: October 2026

The IRS’s 2026 instructions introduce codes TA, TP, and TT for qualifying employer contributions to Trump accounts, cash tips reported to employers, and qualified overtime compensation. These codes apply to 2026 wage reporting, with the relevant employee W-2 statements generally issued in early 2027.

Answer Snippet

W-2 Box 12 reports specific types of compensation, retirement contributions, employee benefits, and other payroll-related amounts using IRS-designated letter codes. Common examples include code D for traditional 401(k) deferrals, code W for health savings account contributions, and code DD for employer-sponsored health coverage costs. Each code identifies a different item and may have different tax implications.

Key Facts at a Glance

  • Box 12 uses letter codes to identify specific compensation and benefit items.
  • Codes D, W, and DD commonly relate to retirement savings, health savings accounts, and health coverage.
  • Boxes 12a–12d are reporting positions, not separate tax categories.
  • Some entries affect taxable wages, while others are informational.
  • Codes TA, TP, and TT introduce additional reporting requirements for 2026.

Quick Read

Employees reviewing their annual W-2 statements and employers managing payroll both need to understand Box 12. This guide explains common codes, how the four reporting positions work, and why amounts may differ from wages reported elsewhere on Form W-2. It also covers 2026 reporting changes and practical checks that can help prevent payroll errors.

Introduction

If you have received a Form W-2 and wondered what the letters and amounts in Box 12 mean, the answer depends on the code beside each amount. W-2 Box 12 identifies specific retirement contributions, employee benefits, compensation items, and other tax-related information that supplements the wages and withholding figures reported elsewhere on the form.

Some entries, such as traditional 401(k) contributions, receive particular tax treatment. Others, such as employer-sponsored health coverage costs, are generally informational. A code alone does not establish whether an amount is taxable or whether you qualify for a deduction.

Understanding these entries helps employees review payroll records and prepare tax returns. For employers and payroll teams, it highlights the importance of correct classification, reconciliation, and year-end reporting. This guide explains the principal codes, the meaning of boxes 12a through 12d, and the checks worth completing before filing.

What Is Box 12 on a W-2 Form?

Box 12 is the section of Form W-2 that reports designated compensation, benefits, and other tax-related amounts using IRS-prescribed codes. Each entry consists of a letter code followed by a dollar amount.

For example, an employee who contributes to a traditional 401(k) may see code D. An employee whose employer reports health savings account contributions may see code W, while code DD identifies the cost of employer-sponsored health coverage.

These entries provide information beyond the wages and withholding figures reported in other boxes. They help employees understand how certain compensation and benefits have been reported and help tax preparers identify items that may require additional review.

Why does Box 12 matter?

The information can help explain differences between gross compensation, taxable wages, retirement contributions, and employer-provided benefits. For payroll teams, accurate coding supports consistent reporting and reduces the risk of issuing incorrect employee statements.

The phrase Box 12 on Form W-2 refers to the reporting section itself. The letter beside an amount determines the type of item being reported.

What Do the Most Common W-2 Box 12 Codes Mean?

The following table summarizes commonly encountered codes and selected additional codes. It is a practical reference, not a substitute for the complete IRS General Instructions for Forms W-2 and W-3.

CodeWhat it meansPractical significance
AUncollected Social Security or railroad retirement tax on tipsIdentifies tax that could not be collected from the employee’s pay.
BUncollected Medicare tax on tipsReports uncollected Medicare tax on tips, excluding Additional Medicare Tax.
CTaxable cost of group-term life insurance over $50,000Generally represents a taxable fringe benefit.
DTraditional 401(k) elective deferralsReports qualifying employee salary deferrals.
E403(b) elective deferralsApplies to eligible tax-sheltered retirement arrangements.
FElective deferrals under a salary reduction SEP (SARSEP)Identifies qualifying retirement contributions.
GDeferrals under a section 457(b) planReports qualifying deferred compensation.
HElective deferrals under a section 501(c)(18)(D) planApplies to eligible tax-exempt organization plans.
JNontaxable sick payReports qualifying sick pay excluded from income.
KExcise tax on excess golden parachute paymentsIdentifies a specified tax liability.
LSubstantiated employee business expense reimbursementsReports qualifying reimbursements.
M and NUncollected Social Security or Medicare tax on taxable group-term life insurance for former employeesIdentifies specified uncollected employment taxes.
PQualifying moving expense reimbursements paid directly to eligible members of the U.S. Armed Forces or intelligence communityReports qualifying reimbursements.
QNontaxable combat payIdentifies qualifying combat pay.
REmployer contributions to an Archer MSAReports qualifying medical savings account contributions.
SEmployee salary reduction contributions to a SIMPLE IRAIdentifies qualifying SIMPLE plan contributions.
TAdoption benefitsReports adoption assistance benefits, including amounts exceeding the applicable exclusion.
VIncome from exercising nonstatutory stock optionsReports compensation associated with specified stock option exercises.
WEmployer and qualifying cafeteria-plan employee contributions to an HSAReports qualifying health savings account funding.
YDeferrals under a section 409A nonqualified deferred compensation planIdentifies certain deferred compensation.
ZIncome under a nonqualified deferred compensation plan that fails section 409A requirementsMay involve additional tax consequences.
AA and BBDesignated Roth contributions to 401(k) and 403(b) plansIdentify qualifying Roth retirement contributions.
DDCost of employer-sponsored health coverageGenerally informational and not taxable income by itself.
EEDesignated Roth contributions to a governmental 457(b) planReports qualifying Roth contributions.
FFPermitted benefits under a qualified small employer health reimbursement arrangementReports qualifying QSEHRA benefits.
GG and HHSpecified section 83(i) equity-related income and deferralsIdentify qualifying deferred equity compensation.
IIQualifying Medicaid waiver payments excluded from gross incomeIdentifies payments covered by applicable IRS guidance.
TAEmployer contributions under a qualifying Trump account contribution programNew for 2026 reporting.
TPTotal cash tips reported to the employerNew for 2026 reporting.
TTTotal qualified overtime compensationNew for 2026 reporting.

Source: IRS General Instructions for Forms W-2 and W-3, 2026. See the official instructions for full definitions and reporting requirements.

What does code D mean on a W-2?

Code D generally reports employee elective deferrals to a traditional 401(k) plan. These contributions commonly reduce federal income-tax wages but remain subject to Social Security and Medicare taxes. Employees can compare the reported amount with their retirement plan statements and payroll records if the figures appear inconsistent.

What does code W mean on a W-2?

Code W reports employer contributions and qualifying employee contributions made through a cafeteria plan to a health savings account. Employees should review the entry alongside their personal HSA contributions and Form 8889 when preparing a tax return. Contributions made outside payroll may require separate consideration.

What does code DD mean on a W-2?

Code DD reports the cost of employer-sponsored health coverage. The amount is generally informational and does not become taxable income merely because it appears in Box 12. Employees should not confuse the total reported coverage cost with their personal premium payments or taxable wages.

How Do You Read Boxes 12a, 12b, 12c, and 12d?

The labels 12a, 12b, 12c, and 12d identify positions where Box 12 entries appear. They do not represent four different types of compensation or tax treatment.

For example, an employee might see the following entries:

PositionCodeIllustrative amountMeaning
12aD$5,000Traditional 401(k) deferrals
12bW$1,200Reportable HSA contributions
12cDD$8,400Employer-sponsored health coverage cost
12dAA$900Designated Roth 401(k) contributions

These figures are illustrative only. The same code has the same basic meaning regardless of which position contains it.

Consequently, What Is Box 12a on a W-2, Box 12b on a W-2, Box 12c on a W-2, and What Is Box 12d on a W-2 all refer to the placement of an entry. The code itself explains the item being reported.

The IRS also distinguishes between paper and electronic filing requirements. Copy A generally accommodates four Box 12 entries; if additional entries are required, employers may need another Form W-2. Other copies may accommodate more entries when using an approved substitute form, subject to the applicable instructions.

Which W-2 Box 12 Codes Affect Your Taxes?

The tax consequences depend on the code, the underlying transaction, and the applicable tax rules. Not every amount in Box 12 is taxable, and not every amount represents a deductible contribution.

Traditional retirement deferrals, for example, generally receive different federal income-tax treatment from designated Roth contributions. Code DD is generally informational, while code C identifies a potentially taxable fringe benefit. Code Z can indicate income subject to additional tax because of a nonqualified deferred compensation plan’s failure to meet section 409A requirements.

What changed for 2026 reporting?

The IRS’s 2026 instructions include three new codes:

  • TA: Employer contributions under a qualifying Trump account contribution program.
  • TP: Total cash tips reported to the employer.
  • TT: Total qualified overtime compensation.

These codes support reporting associated with federal legislation enacted in 2025. However, reporting an amount under TP or TT does not automatically establish that the full amount qualifies for a tax deduction. Eligibility rules, limitations, and supporting documentation must be reviewed separately when preparing the tax return.

For example, the qualified overtime deduction applies to eligible overtime compensation rather than necessarily to every dollar of overtime pay. Employers should maintain records that support the amount reported, and tax preparers should evaluate the applicable requirements before claiming a deduction.

Employees should compare Box 12 amounts with retirement plan statements, HSA records, benefits documentation, and payroll records. If a figure appears incorrect, they should contact their employer before changing information on a tax return.

What Mistakes Should Employers and Employees Avoid?

Common mistakes include using an incorrect code, reporting the wrong amount, overlooking an entry, and assuming every Box 12 amount is either taxable or tax-free.

Another common misunderstanding is treating the reporting position as the code. A code D entry in Box 12d still identifies traditional 401(k) elective deferrals; its position does not change the item’s meaning.

For employers, year-end review should include payroll deductions, retirement contributions, benefit records, and the data transferred into employee statements. Documented review procedures can help identify inconsistencies before forms are distributed.

Employees should avoid independently changing reported figures simply because they appear unusual. They should first ask the employer to explain the entry and correct the form if necessary. Depending on the error, the employer may need to issue Form W-2c, the corrected wage and tax statement.

How KMK Helps

KMK Ventures supports businesses and accounting teams with accounting operations, financial reporting, reconciliation, and payroll-related workflows. Reliable year-end reporting depends on accurate source records, consistent classification, and appropriate review before employee statements are finalized.

Our accounting professionals can support processes that help businesses maintain dependable records, investigate discrepancies, reconcile relevant accounts, and organize documentation for review. These activities help finance teams identify inconsistencies before they affect employee statements or downstream reporting.

For businesses managing multiple entities, growing payroll volumes, or complex accounting workflows, documented procedures and clearly assigned review responsibilities are particularly important. Technology-enabled processes can improve consistency, but they still require accurate source data and appropriate oversight.

KMK works with businesses to strengthen workflow efficiency, reporting consistency, and financial record quality in line with their operational requirements. If you need support with payroll reporting or year-end reconciliation, speak with our accounting professionals.

Conclusion

Understanding W-2 Box 12 starts with recognizing that each letter identifies a particular reporting category. Codes D, W, and DD are common, but their meanings and tax implications differ. The positions 12a through 12d simply provide space for the entries.

For 2026 reporting, employers and employees should also pay attention to the new TA, TP, and TT codes and verify the applicable tax treatment before filing. Employees should compare their statements with supporting records, while employers should maintain accurate payroll classifications and review procedures.

When discrepancies arise, resolving them with the payroll department or a qualified tax professional is safer than making assumptions based on a code alone.

Frequently Asked Questions 

 

What is Box 12 on a W-2 form used for?

Box 12 reports specified retirement contributions, employee benefits, compensation items, and other tax-related information. Each entry uses an IRS-designated letter code followed by an amount. The code identifies the reported item, while the applicable tax rules determine how it should be treated. 

What’s Next? 

Still have questions? That’s where KMK comes in. Accurate payroll records and consistent reporting procedures help businesses reduce avoidable discrepancies, support year-end reporting, and maintain reliable financial information. KMK Ventures can support your accounting and payroll-related workflows with structured processes, reconciliation support, and dependable documentation practices. Contact KMK Ventures to discuss how we can support your accounting operations and reporting requirements. 

Official reference: IRS — General Instructions for Forms W-2 and W-3 (2026) 

Disclaimer: This article is intended for general informational and educational purposes only and should not be considered tax, legal, or financial advice. Tax rules, reporting requirements, and eligibility criteria may change. Readers should consult the latest IRS guidance or a qualified tax professional to determine how W-2 Box 12 codes apply to their individual circumstances. KMK Ventures does not guarantee the accuracy or completeness of information for every specific tax situation.