Form 8889 Explained: Filing Taxes With an HSA

If you have an HSA you have to file Form 8889 — even in a year you contributed nothing. Here's what each part does and where people get it wrong.

Form 8889 is where your HSA meets your tax return. It's two pages, it's required in more situations than people expect, and skipping it is one of the more common HSA filing errors.

Here's what the form does, section by section, and the mistakes worth avoiding.

When you have to file it

You must attach Form 8889 to your Form 1040 if any of these are true for the tax year:

  • You (or someone on your behalf, including your employer) contributed to your HSA
  • You took any distribution from your HSA
  • You acquired an interest in an HSA because of someone's death
  • You must include an amount in income because you failed the last-month rule testing period

That second condition catches people. Even in a year you contributed nothing, if you reimbursed yourself a single dollar, you file Form 8889. People who are running a delayed-reimbursement approach and are no longer HDHP-eligible often assume the form no longer applies to them. It does, every year they withdraw.

Married couples who each have an HSA file two separate forms — one per spouse — even on a joint return. The forms are individual; only the totals flow to the joint 1040.

The forms your custodian sends you

Two arrive early in the year, and they do different jobs:

Form 5498-SA reports contributions made to your HSA. Slightly awkward timing: because you can contribute for a tax year up until the April filing deadline, custodians often issue this in May — after you've filed. You generally don't wait for it; you use your own records and your W-2.

Form 1099-SA reports distributions from your HSA. This is the one you need in hand before filing.

The critical thing about the 1099-SA: it reports a total. It does not distinguish qualified medical distributions from non-qualified ones. Your custodian doesn't know and doesn't check. Form 8889 is where you make that declaration, and it's entirely self-reported.

Part I: Contributions and your deduction

This part establishes how much you were allowed to contribute and how much you actually did.

You'll indicate your coverage type (self-only or family), which sets your limit — for 2026, $4,400 self-only or $8,750 family, plus $1,000 catch-up if you're 55 or older. If your coverage changed mid-year, the limit gets prorated month by month, based on your status on the first day of each month.

The line that causes the most trouble is employer contributions. These appear on your W-2, Box 12, code W — and that box includes both what your employer put in and anything you contributed through payroll deduction. All of it is already excluded from your taxable wages.

The mistake: entering your payroll contributions again as a personal contribution. That double-counts them, inflates your deduction, and produces a phantom excess contribution. If it came out of your paycheck, it's in Box 12 already. Only contributions you made directly from a bank account go on the personal-contribution line.

The deduction from this part flows to Schedule 1 and reduces your adjusted gross income. It's an above-the-line deduction — you get it whether or not you itemize.

Part II: Distributions

Here's the substantive part. You report:

  1. Total distributions, taken straight from your 1099-SA
  2. How much was for qualified medical expenses

The difference between those two numbers becomes taxable income.

You are asserting line 2 on your own authority. No receipts are attached, nothing is verified at filing. The number simply has to be defensible if someone asks later — which is the whole reason the receipt retention question matters.

Two rules that govern what you can count here:

  • The expense must have been incurred after your HSA was established
  • It must not have been reimbursed by insurance or deducted on another return

There's no requirement that the expense occurred in the same tax year. Reimbursing a 2018 expense in 2026 is fine — it goes on your 2026 Form 8889, because that's when the distribution happened. This timing mismatch is the mechanical basis of the shoebox strategy.

Also on this part: mistaken distributions. If you withdrew money by accident and repaid it to the custodian by the following April 15, it can be excluded. Custodians aren't obligated to accept repayment, but most will.

Part III: The last-month rule testing period

This part only applies if you used the last-month rule — contributing the full annual amount because you were HSA-eligible on December 1, despite not being eligible all year.

The condition attached is the testing period: you must stay HSA-eligible for all twelve months of the following year. Break it — switch to a non-HDHP plan, enroll in Medicare — and Part III is where you pay for it. The excess contribution is added back to your income and hit with an additional 10% tax.

Most filers leave this part blank. If you're the person who used the last-month rule and then changed coverage, this is the section that will cost you.

The 20% penalty

Non-qualified distributions are taxed as ordinary income plus an additional 20% tax, calculated on the form. That's double the 10% early-withdrawal penalty on a traditional IRA — the HSA's tax benefits come with correspondingly sharp teeth.

Three exceptions to the 20%: you're 65 or older, disabled, or deceased. Note that these waive only the penalty. Non-qualified withdrawals are still ordinary income. After 65, the HSA behaves like a traditional IRA for non-medical spending, which is covered in more detail in our post on what changes at 65.

Mistakes that come up repeatedly

Not filing at all in a distribution-only year. No contributions doesn't mean no form.

Double-counting payroll contributions. W-2 Box 12 code W already includes them.

Reporting the full 1099-SA as taxable. Some tax software defaults this way if you don't affirmatively enter the qualified-expense amount. Left alone, your entirely legitimate reimbursement becomes taxable income plus a 20% penalty on a form you signed.

Filing one form for a married couple with two HSAs. Two accounts, two forms.

Claiming an expense from before the account existed. The establishment date is a hard boundary.

Claiming the same expense twice across different years. This is the failure mode that a folder of unlabeled receipts practically invites — and the reason tracking reimbursement status per receipt matters more than just keeping the paper.

What to do before you file

Pull your 1099-SA and your W-2. Total your qualified expenses for the year from your own records. Confirm none of them were already reimbursed or claimed in a prior year. Check that every expense postdates your account's establishment.

Then file the form with numbers you could actually defend.

The form takes fifteen minutes. Reconstructing four years of receipts to justify a number you estimated takes considerably longer — which is what SaveMyHSA is designed to prevent, with per-receipt reimbursement tracking and a bulk export you can hand straight to whoever prepares your return.

This is general information, not tax advice. Form 8889 interacts with your broader return in ways this post doesn't cover — work with a tax professional.

Related