W2CodeLookup
Tax Year 2026 Reference Requires Form 8889

W-2 Box 12 Code W (2026): Employer HSA Contributions

Box 12 Code W combines your employer HSA deposits and your pre-tax Section 125 payroll HSA deductions—already excluded from Box 1 and reported on Form 8889.

W-2 Code W
Form Location Box 12 (12a–12d)
Federal Tax Status Excluded from Federal Box 1 (Check CA/NJ State Rules)
Key Cap / Form Line Form 8889, Line 9 (Employer Contributions)

Primary IRS Source: 2026 IRS General Instructions for Forms W-2 and W-3 & Form 8889

What W-2 Box 12 Code W Means in 2026

Box 12 Code W reports employer contributions to your Health Savings Account (HSA)—and critically, under the 2026 IRS General Instructions for Forms W-2 and W-3, that single number combines both:

  1. Direct contributions your employer deposited into your HSA, and
  2. Your own pre-tax payroll contributions elected through a Section 125 (cafeteria) plan.

Many taxpayers see Code W and assume their employer made a mistake because the figure is higher than the company's HSA match. Under IRS payroll tax law, employee Section 125 salary reductions are legally treated as employer contributions for W-2 reporting, so both amounts are intentionally bundled into Box 12 Code W.

How Box 12 Code W Affects Your 2026 Tax Return

  1. Already excluded from Box 1, 3, and 5: Because Section 125 HSA payroll contributions and employer HSA deposits are excluded from federal income tax and FICA wages before your W-2 is printed, do not deduct Code W a second time as a personal HSA contribution on Form 8889 Line 2.
  2. Form 8889 is mandatory: Whenever Box 12 Code W appears on your W-2, the IRS requires you to file Form 8889 (Health Savings Accounts) with your Form 1040—even if you did not take a single distribution or make any direct bank deposits outside payroll. Code W is entered on Form 8889, Line 9 (Employer contributions made to your HSAs).
  3. Check annual HSA limits across all jobs: Your combined Box 12 Code W amount plus any direct after-tax deposits you made personally (reported on Form 5498-SA) cannot exceed your annual IRS HSA limit for self-only or family HDHP coverage (plus the $1,000 catch-up contribution if age 55 or older). Excess HSA contributions face a 6% annual excise tax unless timely withdrawn before the tax filing deadline.

Code W vs. Personal Out-of-Pocket HSA Contributions

Contribution Source Reported on W-2 Box 12 Code W? Form 8889 Line Already Excluded from Box 1?
Employer HSA seed / match Yes Line 9 Yes
Employee pre-tax payroll HSA (Sec. 125) Yes Line 9 Yes
Direct bank transfer to HSA outside payroll No (shown on Form 5498-SA) Line 2 No (deducted via Schedule 1)

Special Situations to Watch Before Filing

  • State income tax add-backs (California and New Jersey): While Code W is excluded from federal income tax, California and New Jersey do not conform to federal HSA tax exclusions. Taxpayers in those states generally must add Box 12 Code W back into state taxable income.
  • Changed employers mid-year: If you had two W-2s with Code W, add both figures together on Form 8889 Line 9 to make sure your total did not cross the annual HSA cap.
  • Partial-year HDHP coverage: If you were only enrolled in an HSA-eligible High-Deductible Health Plan for part of 2026, your contribution limit is generally prorated by eligible months (unless you satisfy the IRS last-month testing period rule).

Need to decode another Box 12 letter or check the new 2026 codes (TT, TP, TA)? Browse the complete 2026 Box 12 Codes List or use the instant W-2 Code Decoder.

Frequently Asked Questions

Why does Box 12 Code W include my own payroll HSA contributions?

Yes. IRS Form W-2 instructions explicitly bundle both direct employer HSA deposits and your own pre-tax Section 125 payroll HSA deductions into Box 12 Code W. Do not deduct that same amount again on Form 8889 Line 2.

Do I have to file Form 8889 if I have Box 12 Code W?

Yes. You must file Form 8889 whenever Box 12 Code W has a dollar amount, even if you never spent money from your HSA or made personal contributions outside payroll.

Is W-2 Box 12 Code W taxable?

For federal taxes, no—Code W is already excluded from Box 1 wages (provided you stay within annual IRS HSA limits). However, California and New Jersey do not follow federal HSA exclusions and generally tax Code W at the state level.

How is Box 12 Code W different from Code DD?

Employer contributions to a Health Savings Account use Code W, whereas Code DD reports the informational cost of employer-sponsored major medical insurance coverage. They do not overlap.

Related 2026 W-2 Guides & Tools