Do I Need to Report HSA on Taxes and File Form 8889?

If you or your employer put money into a health savings account during the year, or you took any money out, you have to report it. Reporting HSA activity on your taxes means filing Form 8889 alongside your Form 1040, 1040-SR, or 1040-NR, and it applies even when every dollar you withdrew went straight to qualified medical bills.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans

When You Have to File Form 8889

Three kinds of activity trigger the filing requirement, and any one is enough:

  • You made personal contributions from a bank account or after-tax paycheck funds.
  • Your employer contributed on your behalf, including pretax payroll deductions routed through a cafeteria plan. The IRS treats those as employer contributions even though the money started in your paycheck.2Internal Revenue Service. 2025 Instructions for Form 8889 – Health Savings Accounts (HSAs)
  • You took a distribution of any size, whether it went to a hospital, a pharmacy, or your own checking account.

The obligation stands even when nothing is taxable. If your withdrawals all paid qualified medical expenses, you won’t owe a cent on them, but the IRS still needs to see them on Form 8889 to confirm that.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Skip the form and you lose the deduction on contributions, and you invite an IRS notice on distributions the agency can see through Form 1099-SA.

Documents to Gather Before You Start

Three forms feed Form 8889. Pulling them together first saves real time.

Form 1099-SA comes from your HSA custodian and reports every distribution during the year. Box 1 shows the total withdrawn. Box 3 carries a distribution code: Code 1 for a normal distribution, Code 2 for a withdrawal of excess contributions, and others for less common situations. Your custodian will not decide how much of that money was taxable. You do.3Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA (12/2026)

Form 5498-SA reports total contributions deposited during the calendar year, including the employer portion, in Box 2.4Internal Revenue Service. Form 5498-SA (Rev. December 2026) HSA, Archer MSA, or Medicare Advantage MSA Information It often arrives later than your other tax documents, sometimes not until May. If you’re filing before it shows up, your year-end HSA statement and W-2 will fill the gap.

Form W-2, Box 12, Code W shows the employer’s contribution total, which should match the employer portion on Form 5498-SA. If those numbers don’t line up, call your employer or custodian before you file.4Internal Revenue Service. Form 5498-SA (Rev. December 2026) HSA, Archer MSA, or Medicare Advantage MSA Information

You also need your own tally of qualified medical expenses paid from the account. Compare that total to your distributions. If your qualified expenses equal or exceed what you withdrew, nothing is taxable. If they don’t, the difference becomes income and may attract a penalty.

Filling Out Form 8889

The form has three parts. Most filers only work with the first two.

Part I: Contributions and Your Deduction

Part I figures your HSA deduction. Enter your personal contributions on the designated line and leave out employer contributions, which go on a separate line pulled from your W-2 Box 12 Code W. The form applies your annual contribution limit, based on your coverage type and the months you were HSA-eligible, and produces the deductible amount on line 13. That figure flows to Schedule 1 (Form 1040), Part II, line 13, and reduces your adjusted gross income.5Internal Revenue Service. Form 8889 Health Savings Accounts (HSAs)2Internal Revenue Service. 2025 Instructions for Form 8889 – Health Savings Accounts (HSAs)

Part II: Distributions

Line 14a captures the total distribution number from Form 1099-SA. Line 15 is the portion you used for qualified medical expenses. Line 16 does the subtraction: total distributions minus qualified expenses equals your taxable HSA distribution. Zero on line 16 means you’re done with this section.5Internal Revenue Service. Form 8889 Health Savings Accounts (HSAs)

Anything above zero gets added to your income on Schedule 1 (Form 1040), Part I, line 8f. Line 17b then calculates a 20% additional tax on that taxable portion, which flows to Schedule 2 (Form 1040), Part II, line 17c. The 20% tax does not apply to distributions made after you turn 65, become disabled, or die (in a beneficiary’s hands).2Internal Revenue Service. 2025 Instructions for Form 8889 – Health Savings Accounts (HSAs)

Part III: When It Applies

Part III only applies if you used the last-month rule for a full year’s contribution, or made a qualified HSA funding distribution from an IRA, and then failed to stay HSA-eligible during the required testing period. If neither describes you, skip it. If it does, the section calculates the income you must add back plus a 10% additional tax on that amount, with the income going to Schedule 1 and the tax to Schedule 2.6Internal Revenue Service. Instructions for Form 8889 (2025)

Situations That Change Your Reporting

The Last-Month Rule

If you became HSA-eligible partway through the year, the last-month rule lets you contribute the full annual amount so long as you were eligible on December 1 (for calendar-year filers). The condition is that you stay eligible through a testing period running from that December to December 31 of the following year.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Drop your HDHP or enroll in Medicare during that window and the contributions you made above your prorated limit get added back to income in the year you lost eligibility, plus a 10% additional tax, both reported through Part III. Death and disability are the only exceptions.6Internal Revenue Service. Instructions for Form 8889 (2025)

Excess Contributions

Going over your annual limit triggers a 6% excise tax on the excess for every year it stays in the account. You can avoid the tax by withdrawing the excess, along with any earnings on it, before your return’s due date including extensions. The withdrawn earnings count as income in the year you take them out.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Miss that deadline and the 6% tax goes on Form 5329, Part VII, and keeps hitting each year until the excess is removed or absorbed by unused contribution room later.7Internal Revenue Service. Instructions for Form 5329 (2025) This mistake shows up most often when both you and your employer are contributing and no one is watching the combined total.

Age 65 and Medicare

Two things change at 65. The 20% penalty on non-qualified distributions disappears, so you can withdraw for any reason and pay only ordinary income tax. Qualified medical withdrawals remain fully tax-free.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans The other change is that once you enroll in any part of Medicare, including Part A alone, you can no longer contribute. Starting Social Security benefits usually enrolls you in Part A automatically. If your Medicare coverage begins in March, your contribution limit is prorated for January and February. Distributions still get reported on Form 8889; the contribution section just shows a partial-year limit or zero.

Mistaken Distributions

If you withdrew money for something you honestly believed was a qualified expense and later found out it wasn’t, you can return the funds without penalty. The repayment must land back in the HSA no later than the tax filing deadline, without extensions, for the first year you knew or should have known the distribution was a mistake. A qualifying repayment doesn’t count as income, escapes the 20% tax, and doesn’t count as a new contribution.3Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA (12/2026) The rule covers genuine factual mistakes, not a change of mind. Cash withdrawn for a vacation cannot be un-withdrawn under this provision.

Inherited HSAs

If a spouse inherits the account, they become the new owner and report contributions and distributions on their own Form 8889 as before. A non-spouse beneficiary faces a different result: the HSA stops being an HSA on the date of death, and the fair market value on that date becomes income to the beneficiary. The beneficiary files Form 8889 with “Death of HSA account beneficiary” written across the top, skips Part I, and enters the fair market value on line 14a. The beneficiary can reduce that amount by any qualified medical expenses of the deceased paid within one year of the death. The 20% additional tax does not apply.6Internal Revenue Service. Instructions for Form 8889 (2025)

State Returns

Most states follow the federal treatment, so HSA contributions are deductible and qualified distributions are tax-free at the state level too. A few states do not conform. In those states, contributions are not deductible on the state return and investment earnings inside the account may be taxable as state income each year. Check your state’s income tax instructions to confirm how HSA activity should be reported on your state return.

Records to Keep

The IRS does not want your medical receipts attached to your return, but you need them if the return is questioned. Keep receipts, explanation-of-benefits statements, and any record showing the date, amount, and nature of each expense paid from the HSA. The records should show the expense was qualified, wasn’t reimbursed by insurance, and wasn’t claimed as an itemized deduction.

Hold onto those records for at least three years after filing the return that claimed the distribution, matching the general audit statute of limitations. If you’re using the HSA as a long-term savings vehicle and plan to reimburse yourself years after paying an expense out of pocket, keep the original receipts as long as you intend to hold that reimbursement open. There’s no deadline for reimbursing yourself from an HSA for a qualified expense, but the receipt has to exist when you do it.