
W-2 box 12, code W reports employer HSA contributions, including amounts an employee elected to contribute through a section 125 cafeteria plan. It is not necessarily just the employer’s extra money, and it is not a statement of the HSA’s ending balance.
To check the number, identify how each contribution was made and which year it belongs to. Keep employer-funded amounts, employee cafeteria-plan salary reductions, and direct personal contributions in separate categories before comparing totals.
What code W includes
The 2026 IRS W-2 and W-3 instructions expressly include employee-elected section 125 contributions in code W. That explains why the amount may be larger than the employer-funded HSA benefit shown in an enrollment summary.
IRS Publication 969, in its 2025 edition, explains the contribution categories: an employer’s contribution using an employee’s salary reduction through a cafeteria plan is treated as an employer contribution for this reporting purpose. Do not count that same salary reduction again as a separate personal contribution when reviewing the tax reporting.
| Contribution route | Code W comparison | Supporting record |
|---|---|---|
| Employer-funded HSA contribution | Included as employer contribution | Employer benefit and payroll records |
| Employee salary reduction through a section 125 cafeteria plan | Included in the employer-contribution reporting category | Election and payroll contribution history |
| Direct personal contribution outside the employer route | Not added to employer code W merely because it reached the same HSA | Personal contribution confirmation and HSA records |
A short HSA label does not establish which route applied. Ask payroll whether a deduction was made through the cafeteria plan or handled another way. Do not assume every payment described as an employee HSA contribution receives identical reporting treatment.
Reconcile a fictional annual total
Assume a fictional employee has an HSA and contributions that are all permitted under the applicable rules. For one completed illustrative year, payroll confirms $600 in employer-funded contributions and twelve $100 employee salary reductions through the employer’s section 125 plan. The employee also makes a separate $300 personal contribution directly to the HSA outside payroll.
Assume every amount belongs to the illustrated year, there are no excess contributions or corrections, and no other contributions apply. These assumptions isolate the reporting categories; the example does not establish a reader’s eligibility or contribution limit.
| Category | Calculation | Amount |
|---|---|---|
| Employer-funded HSA contributions | Confirmed annual amount | $600 |
| Employee cafeteria-plan salary reductions | 12 × $100 | $1,200 |
| Illustrated code W amount | $600 + $1,200 | $1,800 |
| Separate direct personal contribution | Confirmed outside-payroll amount | $300 |
| All new contributions in this simplified example | $1,800 + $300 | $2,100 |
Code W is $1,800 under these assumptions, not $600 and not $2,100. The $300 belongs in the separate personal-contribution records rather than being added to the employer’s W-2 figure. The $1,200 salary reduction is already inside the $1,800 and should not be added a second time.
Nor is $2,100 necessarily the account balance. Earlier funds, distributions, earnings, fees, and other account activity can make the balance different. Use the contribution history to reconcile contributions rather than comparing code W directly with the balance.
Check current and YTD payroll fields
When reviewing a payday, use the current employee salary-reduction amount. When reviewing an annual employer report, collect the matching annual categories, including any employer-funded amounts that do not reduce the employee’s paycheck.
The YTD guide explains why a running total should not have the current payment added again if it already includes that payment. Confirm whether an HSA total covers employee reductions only or both employee and employer sources.
For the fictional $100 payroll salary reduction, the deduction affects the employee’s payroll calculation. The separate employer-funded contribution is not another employee deduction merely because both amounts can appear in the HSA contribution record. Ask payroll to explain any ambiguous section or code before rebuilding net pay.
Keep year designations and special entries visible
Record the contribution date and any tax-year designation. A calendar-year account statement, a payroll YTD field, a W-2, and a custodian’s annual information form need not answer identical questions. Prior-year designations, corrections, or other special entries require their own review rather than being forced into a simple total.
Publication 969 describes HSA contribution reporting and Form 5498-SA information from the trustee. It also explains that Form 8889 brings together HSA reporting categories. Keep those records with the W-2 and payroll history so that an annual reconciliation can follow the actual sources.
If you had more than one employer or HSA, collect the relevant records rather than treating one employer’s code W as a complete personal contribution history. Confirm how each source was reported and which year applies.
A reporting code does not determine eligibility
Code W does not establish that all contributions were allowed or that a direct personal amount is automatically deductible. Eligibility, coverage changes, age, other contributions, and the applicable year’s rules can affect the result.
The Form 8889 instructions describe reporting contributions and distributions, figuring the HSA deduction, and addressing specified income and additional-tax situations. Use the instructions for the year being reported. The 2025 edition of Publication 969 and the currently available 2025 Form 8889 instructions should not be used as a reason to carry a 2025 dollar limit into a different year.
This article explains record categories and a fictional reconciliation. It does not choose health coverage, calculate an individual contribution limit, recommend an HSA contribution, or determine a medical expense’s treatment.
Request a category-based explanation
- Identify the employer, payroll year, and exact HSA field or W-2 code.
- Separate employer-funded amounts from employee cafeteria-plan salary reductions.
- List direct personal contributions outside that employer route separately.
- Check dates, year designations, corrections, and any other relevant sources.
- Ask the employer or HSA custodian to explain the specific mismatch within its records.
If a W-2 is missing, use the W-2 retrieval guide. If payroll or the annual form is wrong, request the issuer’s correction process and keep the original and corrected records. Editing the PDF does not correct the issuer’s reporting.
For a separate authorized earnings-statement task, compare the pay stub generator formats and confirm that the selected fields can represent the resolved payroll categories accurately. A prepared pay stub does not replace Form W-2 or Form 8889, determine HSA eligibility, transmit contributions, or file a tax return.


