Employer HSA Reporting: W-2 Box 12 Code W, Explained

Hammock Team · 6 min read · June 25, 2026

How employers report HSA contributions on the W-2: what goes in Box 12 code W, what stays out of Boxes 1, 3, and 5, and the mistakes that trigger corrections.

HSAComplianceEmployer benefitsFICA

HSA reporting on the W-2 comes down to one rule: Box 12, code W, must show the combined total of your employer contributions and every dollar employees contributed pre-tax through payroll — and that same total must be excluded from taxable wages in Boxes 1, 3, and 5. Get that right and the rest is bookkeeping. Get it wrong and you're issuing W-2c corrections while employees try to file.

What Goes in Box 12, Code W

Code W reports all HSA contributions made through the employer during the calendar year:

  • Employer contributions — seed money, matches, wellness incentives deposited to employee HSAs
  • Employee pre-tax payroll contributions — salary reductions elected through your Section 125 cafeteria plan

These are combined into a single code W figure. There's no separate code distinguishing employer dollars from employee payroll dollars — the IRS treats both as "employer contributions" because both flow through the cafeteria plan and both get the same tax treatment.

What does not go in code W: contributions an employee makes directly to their HSA outside payroll — writing a check to their custodian, or transferring from their bank account. Those are after-tax contributions the employee deducts themselves on their return. Putting them in code W is one of the most common errors, and it causes the employee's Form 8889 to double-count.

What Stays Out of Boxes 1, 3, and 5

Every dollar in code W is excluded from:

BoxWhat it reportsHSA treatment
Box 1Federal taxable wagesExcluded — no federal income tax
Box 3Social Security wagesExcluded — no 6.2% Social Security tax (up to the $184,500 wage base)
Box 5Medicare wagesExcluded — no 1.45% Medicare tax

This exclusion is where the money is. Because HSA payroll contributions escape FICA entirely, you save 7.65% as the employer on every dollar in code W, and employees save the same on their side — on top of income tax. It's the mechanical reason HSA contributions beat equivalent raises or taxable stipends dollar for dollar, and why higher HSA participation directly reduces your payroll tax bill.

One state-level wrinkle: California and New Jersey don't recognize HSA tax benefits, so state wage boxes for employees in those states typically still include HSA contributions. Your payroll system should handle this, but it's worth verifying if you have CA or NJ employees.

The Employee Side: Form 8889

Your code W figure doesn't exist in a vacuum — employees carry it onto Form 8889, filed with their federal return. The form reconciles everything: employer-facilitated contributions (from code W), any direct contributions they made themselves, and distributions reported on the 1099-SA from their custodian. It's also where the annual limit is enforced — $4,400 individual / $8,750 family for 2026, plus a $1,000 catch-up at 55+ (see the full 2026 limits).

This is why accuracy matters beyond your own filings. If your code W is wrong, every affected employee's Form 8889 is wrong, and they either overpay tax or trip an excess-contribution calculation they don't actually owe.

Handling Excess Contributions

Contributions above the annual limit happen — usually from a mid-year coverage change, dual employer contributions after a job change, or an employee who also contributed directly without telling payroll. The employee resolves a true excess by withdrawing it (plus earnings) from the HSA before their tax filing deadline; left in the account, it's subject to a 6% excise tax each year it remains.

Your reporting obligation depends on who caused it and when it's caught:

  • Employer over-contribution caught in-year: in limited cases you can recover the mistaken amount from the custodian; otherwise the excess is treated as taxable wages — included in Boxes 1, 3, and 5 and subject to withholding and FICA.
  • Caught after W-2s are issued: you file a W-2c correcting the wage boxes and code W.
  • Employee-driven excess (they elected too much, or contributed directly on top of payroll): your W-2 is generally correct as issued — the employee sorts it out on Form 8889 with their custodian.

Correction mechanics get fact-specific quickly; loop in your payroll provider or benefits counsel before moving money.

Common Reporting Mistakes

  1. Reporting only the employer portion in code W. Employee pre-tax payroll contributions belong there too. Combined, always.
  2. Including employee direct contributions in code W. After-tax contributions made outside payroll never touch the W-2.
  3. Excluding from Box 1 but not Boxes 3 and 5. The FICA exclusion is the piece payroll systems misconfigure most — and it silently costs both sides 7.65%.
  4. Reporting on a plan-year basis. W-2 reporting follows the calendar year of the contribution, regardless of your plan year.
  5. Missing terminated employees. Anyone who received or made payroll HSA contributions during the year gets a code W amount, employed on December 31 or not.
  6. Trusting the administrator's feed blindly. Bad data upstream becomes bad W-2s downstream — and administrators do get contribution data wrong, sometimes for a full year before anyone notices. Reconcile administrator records against payroll totals before year-end, not after.

How Hammock Helps

Hammock is a full HSA administrator with payroll integration at the core: contribution files reconcile against payroll each cycle, employer and employee amounts are tracked separately but reported correctly as one code W figure, and year-end totals arrive clean instead of needing a January forensic exercise. Tax documents — including the 5498-SA and 1099-SA on the account side — are handled for you.

And because a dedicated account manager reviews contribution data with you during the year, discrepancies get caught when they're a payroll adjustment, not a W-2c. (Not tax advice — your payroll provider and tax counsel own the filings — but we make sure the data feeding them is right.)

FAQ

Does Box 12 code W include employee contributions?

Yes — if they were made pre-tax through payroll. Code W is the combined total of employer contributions and employee salary-reduction contributions through your cafeteria plan. Only direct, outside-of-payroll employee contributions are excluded.

Are HSA contributions subject to FICA?

Not when made through the employer: both employer contributions and employee payroll contributions are exempt from Social Security and Medicare taxes, which is why they're excluded from Boxes 3 and 5. Direct employee contributions get the income tax deduction but no FICA exemption.

What if we discover a code W error after issuing W-2s?

File a W-2c for each affected employee. If wage boxes were also wrong, correct those too, and reconcile any FICA over- or under-payment on your employment tax filings. Catching errors before the January issue date is far cheaper.

Do employees still file anything if all contributions went through payroll?

Yes — Form 8889 is required for anyone with HSA activity, even if the W-2 tells the whole story. It's how they confirm they stayed within the limit and report any distributions.

Do CA and NJ employees get the same tax treatment?

Not at the state level. California and New Jersey don't recognize HSA tax benefits, so contributions are generally still taxable state income there. Federal treatment — and the FICA exemption — is unchanged.

The Bottom Line

W-2 HSA reporting is one number in one box, done consistently: employer plus employee payroll contributions in code W, the same total excluded from Boxes 1, 3, and 5, calendar-year basis, terminated employees included. Nearly every failure traces to bad data from the administrator or a payroll configuration nobody verified. Reconcile quarterly, and year-end becomes a non-event.

Want an administrator whose contribution data you don't have to audit? Talk to our team.