A health savings account gets a deduction on the way in, tax-free growth in the middle, and tax-free withdrawals on the way out. Form 8889 is where you prove you earned all three. It is one page, twenty-one lines, and it is attached to your Form 1040.
It is also the form people skip, usually because the money went in through payroll and felt like someone else’s paperwork. It was not. If a single dollar moved into or out of your HSA during the year, the form is required.
Everything below was verified against IRS pages on September 6, 2026. Line numbers come from the 2025 Form 8889, the current published version, which is what you use for a 2025 return. Where a figure depends on the tax year, the tax year is named in the same sentence.
Who Has to File Form 8889
The instructions give four triggers. You must file if any of these apply:
- You, your employer, or someone else made contributions to your HSA.
- Your HSA made a distribution.
- You failed to be an eligible individual during a testing period and must recognize income.
- You acquired an interest in an HSA because of the death of the account beneficiary.
Read the first one again. It does not say contributions you made. Employer contributions count, and so do the pre-tax deferrals you elected through a cafeteria plan, because the tax code treats those as employer contributions too. All of it lands in box 12 of your W-2 under code W, which the 2026 General Instructions for Forms W-2 and W-3 define as employer contributions to a health savings account.
The second trigger catches almost everyone else. Swiping the HSA debit card once at a pharmacy is a distribution. It does not matter that the purchase was obviously qualified. The custodian reports it, and you reconcile it.
Gather Three Documents Before You Start
Form 1099-SA comes from your HSA custodian and reports what came out. The IRS describes it as reporting distributions from HSAs, Archer MSAs and Medicare Advantage MSAs, and notes the money may have gone directly to a provider or to you. Box 1 is the total, and it feeds line 14a.
Form 5498-SA is the companion information return your custodian files for contributions. It often arrives in May, after you have already filed, which is why line 2 rarely matches it exactly.
Your W-2, box 12, code W. That figure goes on line 9, not line 2. Line 2 explicitly says not to include employer contributions, cafeteria plan contributions or rollovers. Double-counting your payroll deferrals on both lines is the single most common way this form goes wrong, and it inflates a deduction you are not entitled to.
Part I: Contributions and the Deduction
Part I is the limit test. Line 1 asks whether your HDHP coverage was self-only or family. Line 3 is your annual limitation.
| Tax year | Self-only limit | Family limit | Set by |
|---|---|---|---|
| 2025 | $4,300 | $8,550 | Rev. Proc. 2024-25 |
| 2026 | $4,400 | $8,750 | Rev. Proc. 2025-19 |
| 2027 | $4,500 | $9,000 | Rev. Proc. 2026-24 |
Those figures come straight from the revenue procedures that set them, and the 2025 numbers are printed on the face of the 2025 form at line 3. Full detail on how the limits are prorated for partial-year eligibility is in HSA contribution limits.
The age 55 catch-up. If you were 55 or older at the end of the tax year you add $1,000. This is a flat statutory amount, and the revenue procedures above do not index it, so it was $1,000 for 2025 and remains $1,000. Mechanically, most filers fold it into the line 3 amount using the instructions’ limitation chart, because line 3 tells anyone who was not under 55 for the whole year to see the instructions. Line 7 is a separate slot reserved for filers 55 or older who were married and had family HDHP coverage at any time during the year.
Eligibility depends on your plan. For tax year 2025 an HDHP needed an annual deductible of at least $1,650 self-only or $3,300 family, with out-of-pocket expenses capped at $8,300 and $16,600. For 2026 those thresholds move to $1,700 and $3,400 with caps of $8,500 and $17,000, and for 2027 to $1,750 and $3,500. If you are choosing a plan around these numbers, HDHP vs PPO works through the tradeoff.
One change worth knowing: Revenue Procedure 2026-24 explains that section 71308 of Public Law 119-21 added a rule letting a direct primary care service arrangement coexist with an HSA, for months beginning after December 31, 2025, as long as aggregate monthly fees stay at or under $150 for one person or $300 for an arrangement covering more than one. Before that, a DPC membership could disqualify you.
The last-month rule and its trap. If you were an eligible individual on December 1, the last-month rule treats you as eligible for the entire year, so you can contribute the full annual maximum even if you only had HDHP coverage from October. The price is a testing period. Publication 969 illustrates it as December 1, 2025 through December 31, 2026. Lose eligibility during that window, for any reason other than death or disability, and Part III comes for the difference.
The deduction itself. Line 8 is your allowable contribution, line 11 subtracts what your employer already put in tax free, and line 13 is your HSA deduction. It is an above-the-line adjustment, not an itemized deduction, so it reduces adjusted gross income whether or not you itemize. The instructions carry it to Schedule 1 (Form 1040), line 13. That is the whole reason the medical expense tax deduction and its 7.5% AGI floor are irrelevant here.
The deadline. Publication 969 says contributions for 2025 could be made through April 15, 2026, the unextended due date. Filing an extension does not buy you more contribution time.
Part II: Distributions
Line 14a is the total from box 1 of your 1099-SA. Line 14b backs out rollovers and any excess contributions you withdrew in time. Line 15 is the part you actually spent on qualified medical expenses.
Line 16 is the subtraction, and it is where nonqualified spending surfaces as taxable HSA distributions. That amount goes into the total on Schedule 1 (Form 1040), Part I, line 8f.
Then line 17b applies an additional 20% tax on the line 16 amount, and it flows to Schedule 2 (Form 1040), Part II, line 17c. Publication 969 is explicit about the escape hatches: there is no additional tax on distributions made after the date you are disabled, reach age 65, or die. Note what that does and does not do. After 65, a nonqualified withdrawal is still ordinary income, just without the penalty, which makes an HSA behave like a traditional IRA at that point.
You do not attach receipts. You assert line 15, and you keep the documentation in case the IRS asks later. Publication 969 warns that you cannot also deduct on Schedule A the same expenses you paid with a tax-free HSA distribution.
Premiums are usually not qualified expenses, with four narrow exceptions. One of them is COBRA, which is covered in are COBRA premiums tax deductible.
Part III: Income and Additional Tax
Part III exists for one situation: you used the last-month rule or a qualified HSA funding distribution, then failed the testing period.
Line 18 captures the last-month rule amount, line 19 the funding distribution amount, and line 20 adds them and sends the total to Schedule 1 (Form 1040), Part I, line 8f. Line 21 multiplies line 20 by 10% and sends that to Schedule 2 (Form 1040), Part II, line 17d.
Note the rate. Part II’s penalty is 20%. Part III’s is 10%. They are different taxes for different failures, and mixing them up is a common filing error.
Excess Contributions and How to Fix Them
If you put in more than line 8 allows, you have an excess contribution. The instructions give you a clean out: withdraw the excess, plus the earnings attributable to it, by the due date of your return including extensions, and do not claim a deduction for it. Do that and no penalty applies.
Miss that window and section 4973 imposes a 6% excise tax, calculated on Form 5329. It is not a one-time hit. It applies each year the excess stays in the account, so a forgotten $500 overage keeps costing $30 a year until you clear it.
Married Couples File Two Forms
There is no joint Form 8889. An HSA belongs to one individual, so if both spouses have accounts, each completes a separate Part I, a separate Part II and a separate Part III, then the two line 13 amounts are combined on Schedule 1 (Form 1040), line 13.
The family limit does not double. It is a single family limit shared between the two of you, split however you agree, which is why line 6 sends spouses with separate HSAs and family coverage to the instructions for the amount to enter. The catch-up is different: it is per person, so each spouse who is 55 or older gets their own $1,000, and it has to go into that spouse’s own account.
The Bottom Line
Form 8889 is arithmetic, not judgment. The three places it goes wrong are counting box 12 code W twice, forgetting the form entirely because the only activity was a debit card swipe, and taking the last-month rule without tracking the testing period into the following year.
Get the three documents, put employer money on line 9 and your own money on line 2, and the rest falls out. If your situation involves a mid-year plan change, a divorce, an inherited account or a Medicare enrollment date, those prorations are where a tax professional actually earns the fee. For the account itself, HSA vs FSA covers which one you should be funding in the first place.