HSA contributions on Form W-2: code W reports them, and code DD leaves them out.
An employee with a high-deductible health plan and an HSA can have two Box 12 entries. Code DD reports the cost of the coverage, and code W reports HSA contributions.
The IRS excludes HSA contributions from the code DD amount and points to code W for them. The main guide is the code DD guide. Send us your renewal and we will review your payroll reporting.
Why an employee can see both.
Code DD
The cost of the employer-sponsored health coverage, generally employer and employee portions combined.
Code W
HSA contributions are reported in Box 12 with code W. They are excluded from the code DD amount.
Both Can Appear
An employee on a high-deductible plan with an HSA can have a code DD amount for the coverage and a code W amount for the contributions.
What goes where.
| Item | Box 12 Code | Note |
|---|---|---|
| Cost of the high-deductible health plan | DD | Employer and employee portions combined. |
| HSA contributions | W | Excluded from code DD. |
| Health FSA funded only by salary reduction | Not in DD | Excluded from the code DD amount. |
Two questions about HSA reporting.
Do we add the HSA contribution to the code DD amount?
No. The IRS excludes HSA contributions from code DD.
Where do we confirm the exact amounts?
Your payroll provider, using the cafeteria plan records. We can review them with you.
Where these figures and rules come from.
IRS Form W-2 reporting page
The IRS describes code DD, what it includes and excludes and the small-filer relief on its Form W-2 reporting page.
Related guides.
W-2 Box 12 Code DD
The main guide to reporting the cost of coverage.
Is Code DD Taxable?
No. It is informational only.
What Code DD Includes
Included, excluded and optional items.
The 250 W-2 Relief
Optional reporting for small filers.
Coverage Tiers Explained
EE, ES, EC and EF in plain terms.
Qualifying Life Events
Mid-year election changes.
Send us your renewal.
Four documents — the renewal letter, the plan summary, the contribution split by tier and enrolled counts by tier. We’ll come back with a competitive read, where we see opportunity, and the five questions we’d put to your carrier.
An independent employee benefits consulting firm. We look at the entire benefits program — cost, plan performance, risk and administration.
Switch to CFH. Unhappy with your broker? Your employees won’t notice. You will. →
Cookies on This Site
We use cookies to keep the site working properly and to understand how it is used. You can decline anything that is not essential. See our Privacy Policy for the detail.
- Essential — needed for the site to load and for you to move around it. These cannot be switched off.
- Analytics — tell us which pages get read, so we know what is worth writing more of.
- Advertising — set by third parties such as ad and social platforms to measure and target campaigns.

