Form 8889: The HSA Tax Form, Line by Line

Form 8889 is the IRS form that reports your HSA contributions and withdrawals. See who files it, what each part asks for, and where W-2 code W goes.

6 minute read

Burst guide cover, HSA Money and Taxes: the headline "Form 8889, line by line" over the line "What the HSA tax form asks in Parts I, II and III, and which papers feed each line." with three tags: HSA tax form, W-2 code W, 1099-SA.

Short answer

Form 8889 is the IRS form that reports your HSA (health savings account) on your tax return. You file it with your Form 1040 for any year when you or your employer made contributions, or the account paid money out. Part I covers contributions, Part II covers withdrawals, and Part III only applies if you lost HSA eligibility within a set testing period.

Two papers feed most of the form. Your employer's contributions come from Form W-2, box 12, code W. Your withdrawals come from Form 1099-SA, box 1, which your HSA trustee sends you.

If you paid a medical bill out of pocket this year, Burst files the claim with your HSA administrator for you. You send the receipt, Burst fills in the claim, follows up, and writes the appeal if it's denied. It takes about five minutes of your time.

Start my reimbursement →

Who has to file Form 8889

The Form 8889 instructions open with the test. "You must file Form 8889 if any of the following applies." Two of the triggers cover almost everyone with an HSA: "You, your employer, or someone else made contributions to your HSA," and "Your HSA made a distribution." A distribution is any money that left the account, including card swipes at a pharmacy.

The third trigger is losing eligibility during a testing period, which is Part III below. An HSA you open and never touch still gets a Form 8889 in any year a contribution is made to it, even if your employer made all of it.

The instructions printed for tax year 2025 use the 2025 limits of $4,300 for self-only coverage and $8,550 for family coverage. For 2026 the limits are $4,400 and $8,750. Age 55 and older adds $1,000 in both years.

Part I: contributions and the deduction

Part I works out how much of your HSA contributions you can deduct. A few lines matter most.

Line 2: what you put in yourself

Line 2 is money you, or someone on your behalf, contributed. It can include contributions made after year end, up to the April 15 filing deadline for that tax year. Payroll contributions you elect through your employer's cafeteria plan (a workplace plan that lets you pay for benefits before tax) do not go on line 2. The instructions treat those as employer contributions.

Line 9: where W-2 code W goes

Line 9 is employer contributions, and your W-2 instructions put them in one place. "You must report all employer contributions (including an employee’s contributions through a cafeteria plan) to an HSA in box 12 of Form W-2 with code W." So the number next to code W in box 12 of your W-2 is the starting point for line 9. If some of those dollars were made for a different tax year, the form has a small worksheet that adjusts the figure.

Line 13: the deduction

Line 13 is generally the smaller of line 2 or line 12, where line 12 is your limit after subtracting employer contributions. It carries over to Schedule 1 (Form 1040), Part II, line 13. If line 2 is bigger than line 13, you put in more than the limit allows. The excess contribution guide covers what happens next, and the HSA tax deduction guide covers the deduction itself.

Part II: distributions from your HSA

Part II is where the receipts matter. Line 14a is the total your HSAs paid out for the year, and the instructions say "These amounts should be shown on Form 1099-SA, box 1." The Form 1099-SA guide explains that form box by box.

Line 15 is the part of line 14a that paid for qualified medical expenses. The instructions limit it to expenses not reimbursed by insurance or other coverage, and incurred after the HSA was established. These can be for you, your spouse and your dependents. Whatever is left after line 15 is taxable income on line 16.

That leftover amount also draws a tax: "There is an additional 20% tax on the part of your distributions not used for qualified medical expenses." On the form it is line 17b, which is 20% of the taxable amount. The instructions list three exceptions, and the 20% does not apply to distributions made after you die, become disabled or turn 65.

The receipts behind line 15

Form 8889 asks for totals, and your records back them up. Publication 969 sets the recordkeeping. You must keep records showing the distributions were exclusively for qualified medical expenses, that those expenses were not previously paid or reimbursed from another source, and that they were not taken as an itemized deduction in any year. Then: "Don’t send these records with your tax return. Keep them with your tax records." An itemized receipt with the date, the amount and what you bought does the job. The HSA withdrawals guide covers the rules for taking money out.

Part III: when you lose eligibility

Part III is short. It applies if you were not an eligible individual (generally, covered by a qualifying high deductible health plan) for the full testing period tied to the last-month rule or to a qualified HSA funding distribution, which is a one-time transfer from an IRA to fund an HSA. When that happens, an amount comes into income, and a 10% additional tax applies to it.

What people mix up with Form 8889

Three other forms sit near it. Form W-2 is where your employer reports its contributions. Form 1099-SA reports your withdrawals. Form 5498-SA comes from your trustee and shows what was contributed. They are the sources you copy numbers from. A trustee-to-trustee transfer between two of your HSAs is not reported on the form at all, which the HSA transfer guide covers.

Line 15 counts any qualified medical expense, such as a prescription, a copay or a thermometer, and many more things may be eligible. The test is whether the IRS treats the item as medical care, and an itemized receipt showing what you bought, the date, the amount and who sold it is what supports it.

Let Burst find your FSA/HSA purchases

Connect your email, and let Burst find you savings. Burst finds your receipts from FSA/HSA-eligible purchases and helps you file the claim. We'll keep tracking new savings for you. You can pause or disconnect your email anytime.

Find my eligible purchases →

Frequently asked questions

Do I have to file Form 8889 if I only used my HSA card?

Yes. Card spending is a distribution, and a distribution is one of the triggers in the instructions. You report the total on line 14a and the qualified part on line 15.

Where does HSA on my W-2 go?

Box 12 of your W-2 shows employer contributions with code W. That figure feeds line 9 of Form 8889.

What is the IRS Form 8889 for?

It reports your HSA contributions, your deduction, your withdrawals and any tax owed on withdrawals that were not for medical expenses. It goes in with your Form 1040.

Where do I find the Form 8889 instructions?

The IRS publishes them at irs.gov/instructions/i8889, one version per tax year. The ones this page walks through are for tax year 2025.

Do I send my receipts with the form?

No. You keep them with your tax records. They back up the amounts you report on lines 14a and 15.

Is there a Form 8889 for each spouse?

If both spouses have their own HSAs, the instructions have each spouse complete a separate form.

More guides: HSA money and taxes, Form 1099-SA, HSA tax deduction, HSA excess contribution, HSA withdrawal rules, HSA for retirement.

Sources

Make every dollar count

Start saving on your healthcare with a single connection.

Get Burst

Make every dollar count

Start saving on your healthcare with a single connection.

Get Burst

Make every dollar count

Start saving on your healthcare with a single connection.

Get Burst