Are HSA Deductions on Your W2 Pre-Tax?

When it comes to your W2 form, you may wonder about the deductions related to your HSA. Health Savings Accounts (HSAs) offer individuals a tax-advantaged way to save and pay for medical expenses, but how do these contributions affect your taxes?

As you look at your W2 form, you may notice a box for HSA deductions. Here's how HSA deductions work:

  • HSA contributions made through payroll deductions are typically done on a pre-tax basis. This means that the amount you contribute to your HSA is not included in your taxable income, reducing the amount of income tax you owe.
  • The contributions you make to your HSA directly from your paycheck are excluded from your W2 box 1 (Wages) and box 3 (Social Security wages) and box 5 (Medicare wages). However, the total HSA contributions made during the tax year will be reported in Box 12 of your W2 using code W.
  • Employer contributions to your HSA are also excluded from your taxable income. These contributions made by your employer are not subject to federal income tax, Social Security tax, or Medicare tax.
  • Individuals can also make post-tax contributions to their HSA and claim a deduction on their tax return. These contributions are not subject to payroll taxes but can be deducted when calculating your adjusted gross income on your tax return.

Understanding how HSA deductions are treated on your W2 can help you plan your taxes effectively and take advantage of the tax benefits offered by HSAs.


HSA deductions on your W2 form can be a great way to maximize your tax savings. When you make HSA contributions through payroll deductions, the best part is that these contributions are made pre-tax, meaning they effectively lower your taxable income for the year.

Download our FREE mobile app to get more of the following

Over 7,000+ HSA eligible items for sale.
Check on product HSA (Health Savings Account) eligibility
Get price update notifications
And more!

Did you find this page useful?

Subscribe to our Newsletter