Tax Planning

Form 8889: Who Must File It, HSA Eligibility and the Medicare Rule

Figures checked November 18, 2026 against primary sources

Form 8889, Health Savings Accounts (HSAs), is the form you attach to your tax return to report money going into and coming out of a health savings account. The IRS says to use it to "Report contributions to your HSA, Figure your HSA deduction, Report distributions from HSAs, and Figure amounts you must include in income and additional tax you may owe if you fail to be an eligible individual."


The Short Answer

  • Anyone with HSA activity files it. That means contributions from you, your employer or anyone else, or any distribution.
  • Distributions alone are enough. If you or your spouse (on a joint return) received HSA distributions, you file Form 8889 "even if you have no taxable income or any other reason for filing."
  • Medicare stops the deduction. "You cannot deduct any contributions for any month in which you were enrolled in Medicare."
  • Two HSAs in a marriage, two forms. If you file jointly and both spouses have HSAs, each completes a separate Form 8889.

Who Must File Form 8889

The IRS instructions say "You must file Form 8889 if any of the following applies":

  • "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."

Employer contributions count, so a worker whose only HSA money came through payroll still files the form. Your HSA trustee reports withdrawals to you and the IRS on Form 1099-SA, and its box 1 total goes on line 14a of Form 8889.


Who Is an Eligible Individual

Only an eligible individual can have money put into an HSA. The IRS definition: "you must be covered under a high deductible health plan (HDHP) and have no other health coverage except certain disregarded coverage." Two more limits apply: "you cannot be enrolled in Medicare or be another person's dependent."

  • Disregarded coverage includes "accidents, disability, dental care, vision care, long-term care, or telehealth and other remote care," plus permitted insurance.
  • Telehealth is new. Public Law 119-21 (July 4, 2025) lets an eligible individual have telehealth and remote care coverage besides the HDHP, for plan years beginning after 2024.
  • Month by month. "You must be, or be considered, an eligible individual on the first day of a month to take an HSA deduction for that month."
  • Anyone can contribute once you qualify: "If you are an eligible individual, anyone can contribute to your HSA."

For the dollar limits on contributions, see our HSA contribution limits guide.


Medicare and Form 8889

Enrolling in Medicare ends your eligibility to put money in. It does not end your use of the account:

  • No deduction for Medicare months. "You cannot deduct any contributions for any month in which you were enrolled in Medicare."
  • Withdrawals still work. "You can receive distributions from an HSA even if you are not currently eligible to have contributions made to the HSA."
  • Premiums can qualify after 65. Insurance premiums are not qualified medical expenses, with exceptions that include "Medicare and other health care coverage if you were 65 or older (other than premiums for a Medicare supplemental policy, such as Medigap)."

If you are under 65, the IRS says Medicare premiums for a spouse or dependent who is 65 or older "are generally not qualified medical expenses."


The Last-Month Rule and Testing Period

The last-month rule lets you treat yourself as eligible for the whole year "if you are an eligible individual on the 1st day of the last month of the tax year (December 1, for most individuals)." The catch is a testing period.

"The testing period begins with the last month of your tax year and ends on the last day of the 12th month following that month (for example, December 1, 2025 – December 31, 2026)." If you stop being an eligible individual during it, "other than because of death or becoming disabled," you add to income the contributions that the last-month rule allowed. You add it in the year you lose eligibility, and "This amount is also subject to a 10% additional tax."

A separate testing period applies to a qualified HSA funding distribution, a one-time direct transfer from a traditional or Roth IRA to your HSA. It runs from the month of the transfer "through the last day of the 12th month following that month." The IRS adds: "You can make only one qualified HSA funding distribution during your lifetime," with one exception for a switch from self-only to family HDHP coverage in the same year.


The Three Parts of the Form

PartTitleWhat it works out
IHSA Contributions and DeductionsYour HSA deduction, any excess contributions you made, and any excess employer contributions
IIHSA DistributionsTotal distributions (line 14a, from Form 1099-SA box 1), minus rollovers and returned excess contributions (line 14b), minus qualified medical expenses (line 15)
IIIIncome and Additional Tax for Failure To Maintain HDHP CoverageIncome and the additional tax when you fail the testing period for the last-month rule or a qualified HSA funding distribution
Source: IRS Instructions for Form 8889 (2025).

In Part II, money not spent on qualified medical expenses is taxed: "Any part of a distribution not used to pay qualified medical expenses is includible in gross income and is subject to an additional 20% tax unless an exception applies." Excess contributions are figured in Part I, and the IRS points to Form 5329 for the additional tax on them. Our health savings account guide covers how the account works.


Sources & Methodology

  • IRS, Instructions for Form 8889 (2025) (last reviewed April 30, 2026): purpose, who must file, eligible individual, disregarded coverage, the Medicare rule, last-month rule and testing periods, the three parts, the 10% and 20% additional taxes.

Method notes. Every rule on this page comes from the IRS page above, read on November 17 and again on November 18, 2026; quotes are kept in our research file. On that date the latest instructions were the 2025 edition, which is why the testing-period example uses 2025 and 2026 dates. We will update the page when the edition for 2026 returns is out. This page does not give contribution limits; those are on our contribution limits guide.

This article is for general information and is not tax advice. Rules checked against the IRS source listed above on November 18, 2026.


FAQ

What is Form 8889 used for?
It reports HSA contributions and distributions, figures your HSA deduction, and figures any income and additional tax if you stop being an eligible individual during a testing period.

Do I need Form 8889 if only my employer contributed?
Yes. Contributions made by your employer are one of the reasons the IRS lists for filing.

Do I need Form 8889 if I only took money out?
Yes. If you received HSA distributions, you file Form 8889 even if you have no taxable income or other reason to file.

Can I contribute to an HSA on Medicare?
No. You cannot be enrolled in Medicare and be an eligible individual, and you cannot deduct contributions for any month you were enrolled. You can still take distributions.

What happens if I fail the testing period?
Unless the reason is death or disability, the contributions allowed only by the last-month rule become income in the year you lose eligibility, plus a 10% additional tax.

Do spouses file one Form 8889?
Not if both have HSAs. On a joint return, each spouse with an HSA completes a separate Form 8889.