Learning Hub/Tax & Rules/Rules & Limits

HSA and Taxes — What Goes on Your Tax Return

Form 8889, payroll vs. direct contributions, qualified vs. non-qualified distributions, and the California/New Jersey trap.

An HSA is the most tax-advantaged account in the tax code — but those tax benefits don't happen automatically. They show up on specific forms, in specific boxes, and if you get the paperwork wrong, you can lose the deduction, trigger a penalty, or leave FICA savings on the table. The good news: the rules are learnable, and most of the filing work is just knowing which form does what.

This guide walks through every HSA tax form you'll encounter, how contributions and distributions get reported, the states that break the rules, and the filing mistakes that quietly cost people money every April.

Key takeaways
  • Everyone with an HSA must file Form 8889 every year — even if you made no contributions or withdrawals.
  • Payroll contributions save income tax + FICA (7.65%). Direct contributions save income tax only.
  • Qualified distributions are tax-free. Non-qualified distributions before 65 = income tax plus a 20% penalty.
  • Over-contributions that aren't fixed by the tax deadline trigger a 6% excise tax every year until corrected, reported on Form 5329.
  • California and New Jersey do not recognize HSA tax benefits — contributions and investment gains are taxable at the state level.
  • You can make prior-year contributions until the April 15 filing deadline.

The Forms You Need to Know

HSA tax reporting involves exactly three forms. Two come from your HSA provider in January and February, and one is the form you actually file with your return.

Form 8889 — the one you file

This is the HSA tax form. Every person with an HSA files Form 8889 with their federal return, attached to Form 1040. It has two main parts: Part I reports contributions and calculates your deduction, and Part II reports distributions and figures out whether any are taxable.

Even if you didn't contribute a dollar and didn't withdraw a dollar, if you had an HSA at any point during the tax year, you still file Form 8889. Skipping it is one of the most common HSA filing errors — more on that below.

Form 5498-SA — the contribution record

Your HSA custodian sends you Form 5498-SA in late May. It reports the total contributions made to your HSA for the prior tax year, including any prior-year contributions you made between January and April. You don't file this form — it's for your records and for matching against what the IRS already has.

Because this form arrives after the April 15 filing deadline, you'll usually need to file your return based on your own contribution records, then verify against 5498-SA when it arrives.

Form 1099-SA — the distribution record

If you took any money out of your HSA during the year — for medical expenses or not — your custodian sends you Form 1099-SA in late January. It reports the total gross distribution amount. The form does notcategorize your withdrawals as qualified or non-qualified — that's your job on Form 8889, based on your records.

The IRS trusts you to categorize
Your HSA custodian has no idea whether that $1,500 withdrawal went to a dentist or to a vacation. They just report that you took the money out. On Form 8889, you tell the IRS how much of the distribution was for qualified medical expenses. Which means your receipts are the only thing standing between you and a taxable distribution if you ever get audited.

Reporting Contributions: Part I of Form 8889

How you contributed matters a lot for how it gets reported — and for how much tax you actually save. The difference between payroll and direct contributions is one of the most underappreciated details in HSA planning, covered in depth in opening and contributing to an HSA.

Payroll contributions (cafeteria plan / Section 125)

When you contribute through your employer's payroll system, the money is deducted from your paycheck before federal income tax, Social Security, and Medicare are calculated. By the time your W-2 is generated, those contributions are already excluded from Box 1 (federal wages), Box 3 (Social Security wages), and Box 5 (Medicare wages).

You see the total in Box 12 with code Won your W-2. This code reports both your contributions and any employer contributions. On Form 8889, you enter the Box 12 code W amount on line 9 (employer contributions) — this includes yourpayroll contributions, because the IRS treats them as employer contributions for tax purposes. You do notdeduct these on Form 8889 again, because they're already excluded from your wages.

Direct contributions (personal check / bank transfer)

If you contributed to your HSA with after-tax money — say, by writing a check from your personal checking account — those contributions go on line 2 of Form 8889. The deduction flows to Schedule 1, line 13, which reduces your adjusted gross income. You get the income tax deduction this way, but you do not get the FICA savings.

The FICA difference is the entire reason payroll contributions win when available. At the 2026 individual limit of $4,400, the FICA savings alone are about $337 per year. Over a career, that's tens of thousands in additional savings that direct contributors miss.

Employer contributions

Any money your employer contributes on your behalf is already excluded from your W-2 wages and counts toward your annual limit. It goes on line 9 of Form 8889 alongside your payroll contributions (code W on your W-2 bundles them together). Remember: employer + employee contributions share the same cap — $4,400 individual or $8,750 family in 2026. More detail on the math is in HSA contribution limits and rules.

Contribution typeIncome tax savingsFICA savingsWhere it's reported
Payroll (Section 125)Yes — excluded from W-2 Box 1Yes — 7.65%Form 8889 line 9 (from W-2 Box 12, code W)
Direct (personal check)Yes — deducted on Schedule 1NoForm 8889 line 2
Employer contributionYes — excluded from W-2 Box 1Yes — 7.65%Form 8889 line 9 (from W-2 Box 12, code W)

Reporting Distributions: Part II of Form 8889

Part II is where the IRS finds out how much of your HSA withdrawal was for legitimate medical expenses and how much, if any, is taxable. It's short — only about six lines — but it's the most important part of the form for people who actively use their HSA.

Line 14a gets the total distribution amount from your 1099-SA. On line 15, you report the portion that was for qualified medical expenses. The difference is your taxable distribution, which flows to Schedule 1 as ordinary income. If you're under 65 and the distribution wasn't for a qualified expense, you also owe a 20% additional tax, calculated on line 17b.

0%
Tax on qualified distributions
Income tax + 20%
Non-qualified distribution, under 65
Income tax only
Non-qualified distribution, 65+

The 20% penalty drops off at age 65, which is what makes the HSA function like a traditional IRA after that age — non-medical withdrawals just get taxed as ordinary income, no penalty. But qualified medical withdrawals remain completely tax-free forever, which is the basis of the long-term strategy covered in the HSA reimbursement strategy.

Reimbursing yourself for past expenses

Here's a detail that trips people up: there's no special tax treatment for "delayed reimbursements" vs. same-day payments. On Form 8889, a $2,000 distribution today against a 2019 medical receipt is reported exactly the same as a $2,000 distribution against a bill you paid last week. Both are qualified medical distributions, both go on line 15, both are tax-free. The IRS doesn't ask when the expense was incurred — only that it was a qualified expense incurred after your HSA was established and that you can prove it.

This is why MyHSAHub exists: when you eventually do this reimbursement — five, ten, thirty years later — you need the receipt. A stack of documented expenses is what turns Form 8889 line 15 from a vulnerability into an asset.

The Excess Contribution Trap

If you contribute more than your annual limit and don't fix it before the tax deadline, the IRS imposes a 6% excise tax on the excess amount. And here's the part most people miss: that 6% applies every yearthe excess stays in the account. It's not a one-time penalty — it compounds until you correct it.

The excise tax is reported on Form 5329, Part VII. If you had a $500 excess contribution sitting in your HSA for five years because you never fixed it, you'd owe $30 per year for five years — $150 in penalties on money you could have just withdrawn. Over a decade, the drag starts to get ugly.

The fix is simple if you catch it in time: contact your HSA custodian and request a "return of excess contribution" before the tax filing deadline (typically April 15). They'll remove the excess amount plus any earnings attributable to it. The earnings become taxable income in the year of the excess, but you avoid the 6% excise tax entirely. Details on the underlying rules are in contribution limits and rules, and preventing the mistake in the first place is covered in HSA mistakes that cost you thousands.

HSA and State Taxes: The California and New Jersey Problem

Most states follow federal tax treatment of HSAs — contributions are deductible on your state return, growth is tax-free, and qualified withdrawals are tax-free. But two states are notable exceptions, and if you live in either, your HSA tax picture is meaningfully different.

California and New Jersey do not recognize HSAs
In California and New Jersey, HSA contributions are not deductible on your state return, and investment gains inside the HSA are taxable on your state return each year — even though they're tax-free federally. Interest, dividends, and realized capital gains inside the HSA all count as taxable state income. You'll need to track these amounts yourself; HSA custodians typically don't provide a state-specific tax summary.

This doesn't mean the HSA is a bad deal in those states — the federal tax benefits alone are still enormous, and qualified distributions remain tax-free at the state level too. But the math for CA and NJ residents is: full federal benefits, partial state benefits. The triple tax advantagebecomes something closer to a "double-and-a-half" in those two states.

New Hampshire and Tennessee historically had their own wrinkles (they taxed HSA interest and dividends), but both states have phased out those taxes. A handful of other states occasionally update their conformity rules, so it's worth checking your state's current treatment each year.

Common Tax-Time Mistakes

Forgetting to file Form 8889

The most common HSA tax mistake is simply not filing Form 8889 at all — usually because the filer didn't contribute or withdraw anything that year and assumed they didn't need to. The rule is stricter than that: if you had an HSA at any point during the tax year, you file Form 8889. If you use tax software, make sure it flags your HSA and generates the form automatically.

Not reporting direct contributions

People who make contributions directly from their checking account sometimes forget to report them on Form 8889 line 2 — which means they miss the deduction entirely. If you contributed $3,000 to your HSA directly and forgot to put it on the form, you just paid federal income tax on $3,000 you didn't need to.

Confusing contribution year

You can make prior-year contributions until the April 15 filing deadline. When you tell your HSA custodian you're contributing for the previous year (say, you send $1,000 on March 1, 2026 and designate it for the 2025 tax year), they'll code it that way on Form 5498-SA. If you don't specify, it defaults to the current year. People routinely contribute in Q1 and forget to tell the custodian which year the contribution is for, which can mess up their limits.

Categorizing distributions wrong

Your HSA custodian reports the gross distribution amount on Form 1099-SA but makes no claim about whether the money went to qualified expenses. On Form 8889 line 15, some filers conservatively under-report qualified expenses because they're not sure — and end up paying income tax + 20% on money that was genuinely for medical care. Others over-report without documentation and set themselves up for audit problems. The fix: good records, linked to each distribution.

A Full Example: Anita's Tax Year

Anita, 34, marketing manager — a typical HSA filing year

Anita has family HDHP coverage. In 2026, she contributes $4,400 through payroll to her HSA, and her employer kicks in another $1,000. During the year, she withdraws $1,500from the HSA to reimburse herself for her daughter's orthodontist bill. Her HSA investments earned $200in dividends inside the account. Here's how each number appears on her return:

W-2 Box 12, code W: $5,400 ($4,400 her payroll + $1,000 employer). Her W-2 Box 1 wages are already reduced by her $4,400, so she gets the federal income tax deduction automatically. She also saved ~$337 in FICA because the contribution went through payroll.

Form 8889 line 9: $5,400 (employer contributions, which includes her payroll). Line 2: $0 (she made no direct contributions). Line 13: $0 deduction to flow to Schedule 1, because her deduction was already taken through payroll.

Form 1099-SA: $1,500 total distribution. Form 8889 line 14a: $1,500. Line 15:$1,500 (all qualified — orthodontics for her dependent). Line 16: $0 taxable. She owes no tax and no penalty on this withdrawal.

The $200 in dividends: Not reported anywhere on her federal return. Growth inside an HSA is federally tax-free. If she lived in CA or NJ, that $200 would show up on her state return as taxable interest/dividend income.

Total time to file, assuming she uses tax software: about 10 extra minutes. Total tax savings from her HSA that year: roughly $1,400 at a 24% federal bracket, plus $337 in FICA. Not bad for a form most people never think about.

The Bottom Line

HSA tax filing comes down to three forms, two parts, and one golden rule: keep your receipts. Form 8889 is where all your HSA activity lives on your return, and it's a short form — but it controls whether you actually capture the tax benefits the account is designed to deliver.

Payroll contributions beat direct contributions by about 7.65% in FICA savings, so max out that channel first if your employer offers it. Track your distributions against documented qualified expenses so Part II of Form 8889 is airtight. Catch excess contributions before April 15 to avoid the 6% annual excise tax. And if you live in California or New Jersey, build in the extra state-level tracking from day one — it won't kill the HSA advantage, but it will affect your numbers.

Once you've done one HSA tax year correctly, every subsequent year is essentially a copy-paste. The system is designed to reward people who pay attention to the paperwork, and punish people who don't — so spend the hour it takes to understand it, then let the tax savings compound for the rest of your career.

Keep learning

This article is educational and not personalized financial or tax advice. Consult a qualified tax professional for your situation.

Ready to put this into practice?

MyHSAHub tracks your HSA-eligible receipts and shows you exactly when to reimburse for maximum tax-free growth.

Get started free