Skip to content
Independent money guidance
Clear Money Guide
Start here
Menu

W-2 Box 12 Code W: Employer HSA Contributions

Updated September 29, 2026. Quick answer: code W in Box 12 is the total your employer put into your health savings account, including money you chose to contribute through a cafeteria plan. It is normally not taxed as wages, but it does count against your HSA limit.

Related reading on this site: W-2 filing deadline.

The employee copy of Form W-2, read box by box: W-2 boxes 1, 3 and 5.

The IRS form or worksheet behind this, read line by line: Form 8889 instructions.

What the IRS tells the employer

The instructions define code W as “Employer contributions to a health savings account (HSA).” and say: “Show any employer contributions (including amounts the employee elected to contribute using a section 125 (cafeteria) plan) to an HSA.”

Why it is usually not in your wages

The HSA section says: “You must report all employer contributions (including an employee’s contributions through a cafeteria plan) to an HSA in box 12 of Form W-2 with code W.” It also says such contributions are not subject to income tax withholding or social security and Medicare taxes “if it is reasonable to believe at the time of the payment that the contribution will be excludable from the employee’s income.”

When it is also in Boxes 1, 3 and 5

“Employer contributions to an HSA that are not excludable from the income of the employee must also be reported in boxes 1, 3, and 5.” Contributions you made yourself outside a cafeteria plan are different: “An employee’s contributions to an HSA (unless made through a cafeteria plan) are includible in income as wages”, deductible on your own return. Current-year limits are on the HSA limits page.

Common mistakes

  • Forgetting that code W already includes what you elected through the cafeteria plan, then adding it to your own contributions a second time.
  • Treating code W as taxable wages. It is excluded from Boxes 1, 3 and 5 unless it was not excludable.

Related: code DD, code D, and the HSA contribution limits.

Every code in one place: the Box 12 codes table. If a withdrawal from one of these accounts is your question, see the Form 1099-R Box 7 codes.

Figures verified against the IRS 2026 General Instructions for Forms W-2 and W-3 (Box 12 and special reporting sections) on September 30, 2026, except that the HSA contribution limit statement was not re-checked.

Sources

Kapitalwise

Find an advisor to compare

Request an advisor introduction to discuss your planning needs. Free to request, with no obligation to hire.

The questionnaire opens here only when you press the button. It asks for contact details and phone verification by text. Expect advisor calls and texts if you submit it.

Clear Money Guide may earn a referral payment for a qualifying submitted form. A match is not guaranteed.

How our partner relationships work

Code meanings are read from the IRS 2026 General Instructions for Forms W-2 and W-3 (Box 12) at irs.gov on September 29, 2026. General information, not tax advice. Your own facts decide the outcome, and a payroll professional, a preparer or the IRS is the right place to confirm anything consequential.