You can use your HSA to pay medical bills in three ways: swipe the debit card your administrator issued, use the account’s online bill-pay to send money directly to a provider, or pay the bill yourself and reimburse yourself from the HSA later. Any of those methods work tax-free as long as the expense qualifies under federal rules and you keep the paperwork to prove it.
The Three Ways to Pay
Most HSA administrators issue a debit card linked to your account balance. You swipe it at the pharmacy counter, the dentist’s front desk, or the doctor’s office the same way you would a regular bank card, and the money comes straight out of the HSA. Before you tap the card, confirm the amount you actually owe after insurance has adjusted the bill. Paying the full billed amount rather than the adjusted patient responsibility is the most common overpayment mistake, and getting a refund routed back into an HSA is more hassle than it should be.
Some administrators cap daily debit card spending, and a large hospital bill can push past that limit. If the card declines, call your administrator to request a temporary increase or switch to the online bill-pay option.
For bills that arrive by mail after a visit, log into your HSA administrator’s web portal and use the bill-pay feature. You enter the provider’s name, billing address, and your patient account number, and the administrator sends either an electronic transfer or a paper check on your behalf. The money moves straight from the HSA to the provider without ever touching your personal checking account.
The third option is to pay out of pocket first and pull the money out of the HSA afterward. Log into the administrator’s portal, link an external bank account with your routing and account numbers, enter the dollar amount matching your medical expense, and submit the request. Funds typically arrive within a few business days. This method matters more than it sounds, and the timing rules that make it powerful are covered further down.
What Counts as a Qualified Medical Expense
Federal law defines a qualified medical expense broadly: anything you pay for the diagnosis, treatment, prevention, or cure of a disease, plus any care that affects a structure or function of the body, counts as long as insurance has not already covered it. That includes doctor visits, hospital stays, prescription drugs, dental work, vision care, mental health services, and physical therapy. Over-the-counter medications and menstrual care products qualify too, no prescription needed.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
When you are unsure about a specific purchase, IRS Publication 502 provides an alphabetical list of what is eligible and what is not.2Internal Revenue Service. Publication 502, Medical and Dental Expenses
Insurance Premiums: Usually No, Sometimes Yes
You generally cannot use HSA funds to pay health insurance premiums. Federal law carves out specific exceptions:
- COBRA or other federally mandated continuation coverage after leaving a job
- Any health plan premium during a period you are collecting federal or state unemployment compensation
- Qualified long-term care insurance premiums
- After age 65, premiums for Medicare Part A, Part B, Part D, and Medicare Advantage plans (Medigap supplemental premiums do not qualify)
- Beginning in 2026, periodic fees for a direct primary care service arrangement
Outside those categories, paying a health insurance premium from your HSA is treated as a non-qualified withdrawal.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
Common Expenses That Do Not Qualify
Things that feel health-related but fall outside the IRS definition trip people up regularly. Spending HSA funds on any of the following triggers income tax plus a 20% penalty if you are under 65:
- Cosmetic procedures such as facelifts, teeth whitening, hair transplants, and liposuction
- Gym memberships and fitness classes, even if a doctor recommends exercise for a condition
- Nutritional supplements and vitamins, unless a physician prescribes them for a diagnosed condition
- General wellness activities like swimming lessons and dance classes aimed at overall health rather than treating a specific condition
- Cannabis, regardless of state legality, because it remains a controlled substance under federal law
The underlying test is simple: if the expense does not treat or prevent an identified medical condition, it probably does not qualify.2Internal Revenue Service. Publication 502, Medical and Dental Expenses
The Penalty for Getting It Wrong
If you withdraw HSA funds for something that is not a qualified medical expense before age 65, you owe income tax on the amount plus an additional 20% penalty tax. On a $1,000 non-qualified withdrawal, someone in the 22% federal bracket loses $420 to taxes and penalties combined. You report the penalty on IRS Form 8889, filed with your annual tax return.3Internal Revenue Service. Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans
The 20% penalty does not apply in three situations: the account holder has reached age 65, the account holder has become disabled, or the account holder has died and the funds pass to a beneficiary.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
If you accidentally withdraw HSA money for the wrong purpose, you may be able to return it. The IRS allows repayment of a mistaken distribution as long as the mistake was due to reasonable cause and you put the money back by the tax-filing deadline for the year you discovered the error. A returned mistaken distribution is not taxed, is not hit with the 20% penalty, and does not count toward your annual contribution limit.4Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA Your HSA administrator is not required to accept the return, though, so contact them quickly if you need to reverse a transaction.
Records You Need to Keep
The IRS does not require you to submit receipts when you take an HSA distribution, but if you are audited, you have to prove every withdrawal went toward a qualified medical expense. Keeping clean records from the start avoids a painful scramble later.
For each medical expense, hold onto two documents: the itemized bill from the provider, which shows the service, date, and charge, and the Explanation of Benefits from your insurer, which shows the negotiated rate, what insurance paid, and your remaining balance. Comparing the two tells you exactly what you owe before you pull money from the HSA. Most insurance portals let you download Explanation of Benefits statements, and provider offices will supply paper copies on request.
Your records need to establish three things: the distribution paid for a qualified medical expense, the expense was not already reimbursed from another source, and you did not also claim the same expense as an itemized deduction on your tax return.3Internal Revenue Service. Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans
The standard IRS audit window is three years from the date you file the return, so keep HSA-related receipts at least that long.5Internal Revenue Service. How Long Should I Keep Records If you use the delayed-reimbursement approach below, hold onto receipts indefinitely until you actually take the withdrawal, because the three-year clock does not start until you file the return for the year you received the distribution.
Paying Now, Reimbursing Yourself Later
There is no federal deadline for reimbursing yourself from an HSA. You could pay a $500 dental bill today and pull $500 out of the HSA next month, next year, or twenty years from now.3Internal Revenue Service. Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans The only requirement is that the expense occurred after you opened the HSA and that you kept the receipt.
That open-ended timeline is what turns an HSA into more than a spending account. If you can afford to cover routine medical bills from your regular checking account, the HSA balance stays invested and grows free of federal income tax. Years later you can reimburse yourself for every documented expense you have saved up, pulling a potentially much larger sum out completely tax-free. Some people treat the pile of unreimbursed receipts as a supplemental retirement resource, cashing it out when they stop working.
To make this work you need discipline about paperwork. Every receipt, every Explanation of Benefits, every itemized bill has to be stored somewhere you can find it. A folder in cloud storage organized by year is enough. Without the documentation, the reimbursement is just a withdrawal, and if it happens before age 65 without a matching qualified expense on file, it is taxable and hit with the 20% penalty.
How Payment Rules Change at Age 65
Two things shift when you turn 65. The 20% penalty for non-medical withdrawals disappears, so you can pull money out for any reason and owe only ordinary income tax on the amount, similar to a traditional IRA. Withdrawals for qualified medical expenses stay completely tax-free at any age.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
Enrolling in any part of Medicare ends your ability to put new money into the HSA, but not your ability to spend what is already there. HSA funds can pay Medicare Part A, Part B, Part D, and Medicare Advantage premiums tax-free. Medigap supplemental premiums are the one Medicare-related expense that does not qualify. Applying for Social Security benefits after age 65 automatically enrolls you in Medicare Part A, which cuts off further contributions even if you did not mean to sign up for Medicare, so time that decision carefully if you are still funding the account.3Internal Revenue Service. Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans