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:
- Direct contributions your employer deposited into your HSA, and
- 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
- 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.
- Form 8889 is mandatory: Whenever Box 12 Code
Wappears 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. CodeWis entered on Form 8889, Line 9 (Employer contributions made to your HSAs). - Check annual HSA limits across all jobs: Your combined Box 12 Code
Wamount 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
Wis 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 CodeWback 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.