Box 12b reports employer contributions to your health savings account
Box 12b on your W2 form shows money your employer put into a Health Savings Account (HSA) on your behalf during the tax year. This is separate from your own paycheck deductions. The amount in box 12b is not taxable income to you — your employer already withheld taxes before making the contribution.
The code that appears next to the amount in box 12b is always "W" when it refers to HSA contributions. You may see other codes in box 12 (like "D" for 401(k) or "AA" for 401(k) catch-up), but "W" specifically means HSA money from your employer.
This box matters because it affects how much you can contribute to your HSA yourself in the same year. The IRS sets an annual limit on total HSA contributions — from you, your employer, or both combined. If your employer put $2,000 in your HSA (shown in box 12b), you can only add $1,500 more yourself if the individual limit that year is $3,500.
Key Takeaways
- Box 12b shows employer HSA contributions with code "W" and is not counted as your taxable wages.
- The amount in box 12b reduces how much you can contribute to your HSA yourself during that same tax year.
- You need the box 12b amount to file your tax return correctly if you made your own HSA contributions.
- If box 12b is blank or shows zero, your employer did not contribute to your HSA that year.
How box 12b affects your HSA contribution limit
The IRS allows a maximum amount to go into any one person's HSA per year. For 2024, that limit is $4,150 for individual coverage and $8,300 for family coverage (these numbers change yearly). This limit includes money from all sources: your employer, you, and anyone else who contributes on your behalf.
When you file your tax return, you report your own HSA contributions on Form 8889. The IRS uses the box 12b amount from your W2 to verify you have not exceeded the annual limit. If you contributed $2,500 to your HSA yourself and box 12b shows $2,000 from your employer, your total is $4,500 — which would be $350 over the limit if you had individual coverage in 2024. You would owe a penalty tax on the overage.
Some employers contribute to HSAs automatically as part of their benefits package. Others match employee contributions, similar to a 401(k). Either way, the full employer amount appears in box 12b.
When box 12b should match your HSA records
Your employer should send you an HSA statement each year showing contributions they made. This statement and box 12b on your W2 should show the same amount. If they do not match, contact your employer's payroll or benefits department to ask for a corrected W2 (called a W2-c).
Keep your HSA statements and your W2 together when you file taxes. If the IRS questions your HSA contributions later, you will need both documents to show what you contributed yourself versus what your employer contributed.
If you changed employers during the year, you may have multiple W2s, each with a different box 12b amount. Add all of them together to get your total employer HSA contributions for the year.
What to do if box 12b is wrong
If the amount in box 12b does not match what your employer told you they contributed, or if you received an HSA statement showing a different number, ask your employer to investigate. Payroll errors happen — a contribution might have been recorded in the wrong month or coded incorrectly.
Your employer has until January 31 of the year after the tax year ends to send you a corrected W2 if they find an error. If you have already filed your return and box 12b was wrong, you can file an amended return (Form 1040-X) once you receive the corrected W2.
Do not ignore a mismatch between box 12b and your HSA statement. The IRS matches W2 data to tax returns automatically, and a discrepancy can trigger an audit notice.
Box 12b and your take-home pay
Employer HSA contributions do not reduce your take-home pay the way your own paycheck deductions do. Your employer funds the HSA from their own money, not from your salary. However, if your employer offers a cafeteria plan (Section 125), you may have chosen to reduce your own salary to fund your HSA, and that reduction would show up as a deduction in box 1 or box 12 with a different code.
Box 12b is purely informational for tax purposes. It tells you and the IRS how much pre-tax employer money went into your HSA account. It does not affect your W2 wages or your tax bracket.
Frequently Asked Questions
Do I have to report box 12b on my tax return?
You do not report box 12b itself on your return. The IRS already knows about it from your W2. You only report your own HSA contributions on Form 8889. However, you need the box 12b amount to calculate whether you exceeded the annual contribution limit.
What if I left my job mid-year and my employer contributed to my HSA?
The employer contribution still counts toward your annual limit for that year, even if you no longer work there. Box 12b will show the amount they contributed before you left. If you then changed to a new job with a different HSA, you must add both employers' contributions together when you file taxes.
Can I withdraw money from my HSA if my employer over-contributed?
If your employer contributed more than the annual limit allows, you must withdraw the overage and pay taxes and a penalty on it. Contact your HSA administrator (usually a bank or insurance company) to request a corrected contribution report. Your employer may also help you file Form 5329 to report the excess contribution.
Is box 12b the same as my employer's health insurance premium?
No. Box 12b is money deposited into your HSA account, which you control and can spend on medical expenses. Your employer's health insurance premium is separate and appears in box 12 with code "DD" if it is pre-tax. You can have both an HSA contribution and employer-paid insurance premiums.