HSA contributions you make yourself are deductible on your federal return even if you don't itemize, and contributions through your employer's payroll are excluded from your taxable wages, which also saves Social Security and Medicare tax. Employer contributions aren't taxed at all. Growth is tax-free, and withdrawals for qualified medical expenses are tax-free too. California and New Jersey are the main exceptions at the state level.

The short version

Direct contributions
Deductible "above the line"
Payroll contributions
Pre-tax, including FICA
2026 limits
$4,400 / $8,750
2027 limits
$4,500 / $9,000

The short answer

"Are HSA contributions tax-deductible in 2026?" is a question we see in our search data every week, especially in the first months of the year when people are doing their taxes. The answer is yes, but how you get the tax break depends on how the money goes in. There are three routes, and they're not equal.

How each kind of HSA contribution is taxed
ContributionFederal income taxSocial Security and MedicareWhere it shows up
Through your employer's payroll (cafeteria plan)Excluded from wagesExcluded (saves 7.65%)W-2 Box 12, code W
Employer contributionsExcluded from wagesExcludedW-2 Box 12, code W
Money you deposit yourselfDeducted on Form 8889Not savedForm 8889 and Schedule 1

The payroll route is the best deal, because it skips payroll taxes as well as income tax. If your employer offers payroll HSA contributions, use them instead of depositing money yourself.

Deductible even if you don't itemize

Contributions you make directly to your HSA are an "above-the-line" adjustment to income on Schedule 1, calculated on Form 8889. You get the deduction whether you take the standard deduction or itemize, and there's no income limit. That's different from medical expenses, which you can only deduct if you itemize and they exceed 7.5% of adjusted gross income.

There's also no requirement to have earned income. Anyone who's HSA-eligible can contribute, or have someone else contribute for them; a family member's contribution to your HSA is deductible by you, not by them.

That combination is unusual. A traditional 401(k) is deductible going in but taxed coming out; a Roth IRA is taxed going in but tax-free coming out. An HSA used for medical expenses is tax-free at both ends, which is why people who can afford to pay small medical bills out of pocket often treat their HSA as a long-term investment account.

The triple tax advantage

  • Going in: pre-tax through payroll, or deductible if you deposit it yourself.
  • While invested: interest, dividends and gains aren't taxed federally.
  • Coming out: withdrawals for qualified medical expenses are tax-free at any age.

After 65, you can withdraw for any purpose without penalty; non-medical withdrawals are taxed as ordinary income, like a traditional IRA. Before 65, non-medical withdrawals are taxed and hit with a 20% penalty unless you're disabled. You can also reimburse yourself later for qualified expenses you had after opening the HSA, as long as you keep records.

What the deduction is worth

In short: use payroll if you can, deposit directly if you can't, and remember that the deduction is capped by your annual limit, so contributing more than the limit doesn't increase the tax benefit.

State taxes: the exceptions

Most states follow the federal treatment. The main exceptions are California and New Jersey, which don't recognize HSAs for state income tax. In those states, payroll contributions are added back to state wages, employer contributions are taxable for state purposes, and investment earnings can be taxed by the state each year. The federal savings still apply. If you live in one of these states, use only the federal and FICA lines when estimating your savings.

If your employer offers both a match and a seed deposit, both count; add them up before you set your own payroll amount for the year.

Employer contributions

When your employer deposits money into your HSA, it isn't wages for federal income tax, Social Security, Medicare or federal unemployment tax. For the employer, it's a deductible business expense with no payroll tax. That makes employer HSA contributions one of the most tax-efficient benefits a company can give: a $1,000 deposit costs the company $1,000, while a $1,000 raise costs $1,076.50 after payroll tax and is worth less to the employee after tax.

  • It counts toward your limit. Employer and employee contributions share one annual limit.
  • It shows on your W-2 in Box 12 with code W, combined with your own payroll contributions.
  • Owners are different. More-than-2% S corporation shareholders and partners get employer contributions treated as income, which they can then deduct.

Self-employed and business owners

If you're self-employed with an HSA-qualified plan, you contribute directly and deduct the contributions on Form 8889; there's no payroll exclusion because you don't have an employer's cafeteria plan, so you don't save self-employment tax on those dollars. Partners and more-than-2% S corporation shareholders are in a similar position: contributions the business makes for them are treated as income and then deducted on their personal return. The income tax benefit is the same as for an employee; the payroll tax benefit isn't.

For S corporation owners, the usual approach is for the company to include the HSA contribution in the owner's W-2 wages and for the owner to deduct it on Form 8889. How payroll taxes apply to those contributions depends on how they're made, so confirm the treatment with your accountant before year-end rather than after the W-2 is issued.

How to claim it

  1. Get your forms Your HSA provider sends Form 5498-SA (contributions) and Form 1099-SA (withdrawals). Your W-2 Box 12 code W shows payroll and employer contributions.
  2. Complete Form 8889 Report contributions, figure your limit and deduction, and report withdrawals.
  3. Carry the deduction to Schedule 1 Your direct contributions become an adjustment to income.
  4. Check for excess If total contributions exceed your limit, withdraw the excess and its earnings before the filing deadline to avoid a 6% excise tax.

Payroll contributions are already excluded from your W-2 wages, so you don't deduct them again; Form 8889 just reconciles them against your limit.

Timing and deadlines

You can make contributions for a tax year until that year's filing deadline, normally April 15 of the following year, not counting extensions. So 2026 contributions can be made until April 15, 2027. If you deposit money between January and April, tell your HSA provider which year it's for; they default to the current year. That window is useful: if you're doing your taxes and realize you have room under your limit, you can still contribute and take the deduction.

Tax mistakes people make with HSAs

The most common mistake is contributing too much, usually because people forget that employer contributions count toward the same limit, or because they changed jobs and both employers' payroll systems withheld the maximum. The fix is simple if you catch it before your filing deadline: ask your HSA provider to return the excess contribution and its earnings. The earnings are taxable, but you avoid the 6% excise tax that applies for every year excess contributions stay in the account.

The second mistake is contributing while ineligible. Enrolling in Medicare, including backdated Part A when you sign up after 65, ends eligibility, and so does a spouse's general-purpose health FSA that can reimburse your expenses. Contributions for months you weren't eligible are excess contributions, with the same fix.

The third mistake is not keeping receipts. Withdrawals are tax-free only for qualified medical expenses, and the IRS can ask you to prove it. Keep itemized receipts or explanations of benefits for anything you pay from the HSA, or for expenses you plan to reimburse yourself for later. A folder of PDFs is enough.

Finally, people sometimes deduct payroll contributions a second time on their return. Payroll contributions are already excluded from your W-2 wages; Form 8889 reconciles them against your limit, but only money you deposited yourself becomes a deduction.

The limits that cap the deduction

HSA contribution limits
Coverage20262027
Self-only$4,400$4,500
Family$8,750$9,000
Catch-up, age 55+$1,000$1,000

The limit is prorated for months you weren't eligible, unless you use the last-month rule. Our HSA contribution calculator works out your limit and per-paycheck amount, including employer money.

A note for employers

HSAs are a strong tax tool, but they come with a high-deductible plan. If your team mainly uses the HSA to pay a deductible, compare that with removing the deductible altogether.

Frequently asked

Sources

  1. IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans
  2. IRS Form 8889 instructions (last-month rule and testing period)
  3. IRS Revenue Procedure 2025-19 (2026 HSA and HDHP limits)
  4. IRS Revenue Procedure 2026-24 (2027 HSA and HDHP limits)
  5. IRS Publication 15-B, Employer's Tax Guide to Fringe Benefits

Cite this page

Rishab Jain. "Are HSA contributions tax-deductible?." Prescience, December 4, 2026. https://www.getprescience.com/guides/are-hsa-contributions-tax-deductible

This page is general information, not legal or tax advice. Plan terms, prices and savings depend on your company, your quote and your plan documents, which control if they differ from this page.