Your HSA debit card will not work just anywhere. It is programmed to approve payments only at businesses coded as healthcare merchants, or at mixed retailers whose checkout systems can verify each item’s medical eligibility. Swipe it at a restaurant, a clothing store, or a gas pump and it will be declined at the terminal. Use it on something that isn’t a qualified medical expense and the transaction may go through, but the cost shows up later as income tax plus a 20% penalty.
Why the Card Gets Declined at Most Stores
Every business that accepts card payments is assigned a Merchant Category Code by the payment network processing the transaction. Your HSA card is set up to approve only at merchants whose codes correspond to healthcare: hospitals, dental offices, optometrists, pharmacies, and similar providers.1Visa Acceptance Support Center. Payments – Merchant Category Code (MCC) Everything else is blocked at the network level before the payment even reaches your account.
That means the card is essentially useless at a grocery run, a hardware store, or a coffee shop, regardless of what you are buying. The gating happens by merchant, not by product.
Supermarkets, Big-Box Stores, and Online Retailers
Stores that sell a mix of healthcare and non-healthcare products sit in the middle. Supermarkets, big-box retailers, and online pharmacies can accept your HSA card only if they use an Inventory Information Approval System (IIAS). The IIAS checks every item at checkout against a database of eligible medical products. If your cart has allergy medicine and groceries, the system splits the transaction: the HSA card pays for the eligible items, and you cover the rest with another card.
Without a working IIAS, a mixed-goods retailer cannot take the card at all. The same rule applies online. A web store that sells health products alongside general merchandise has to run an IIAS on its checkout, or the card will be declined the same way it would be in person.
What Counts as a Qualified Medical Expense
Even where the card works, the purchase still has to fit the federal definition of a qualified medical expense. Under the Internal Revenue Code, that covers the cost of diagnosing, treating, or preventing disease, or anything that affects a structure or function of the body.2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses In practice:
- Doctor and hospital visits, including copays, lab work, imaging, ER bills, and inpatient stays
- Dental care, from cleanings and fillings to crowns, root canals, and orthodontics
- Vision care, including eye exams, prescription glasses, contact lenses, and corrective surgery such as LASIK
- Mental health care from licensed professionals, including psychiatry, psychotherapy, and substance-abuse treatment
- Physical therapy and chiropractic care when prescribed for a diagnosed condition
- Any drug that requires a prescription
The CARES Act permanently added over-the-counter medications (pain relievers, cold medicine, allergy treatments) without a prescription requirement, and menstrual care products such as pads, tampons, liners, and cups.3Internal Revenue Service. IRS Outlines Changes to Health Care Spending Available Under CARES Act
What Doesn’t Qualify, Even If It Feels Health-Related
The IRS draws a firm line between treating a medical condition and improving general health. General wellness spending is not a qualified expense, even when a doctor recommends it.4Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health Common items that fail the test:
- Gym memberships, swimming lessons, yoga classes, and general fitness programs
- Vitamins and supplements, unless a medical practitioner prescribes them for a specific diagnosed condition
- Nutritional counseling and weight-loss programs, unless treating a physician-diagnosed disease such as obesity, diabetes, or heart disease
- Cosmetic procedures that don’t treat illness, correct a congenital deformity, or repair damage from an accident or disfiguring disease2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses
- Marital counseling (though therapy for a diagnosed mental health condition does qualify)
- Health foods and special diets, unless the food doesn’t meet normal nutritional needs and is used to treat a physician-diagnosed illness
For borderline items, such as a massage chair prescribed for chronic back pain, a Letter of Medical Necessity from your doctor can make the expense eligible. The letter should identify the medical condition, explain why the item is medically necessary rather than for general wellness or cosmetic purposes, and state the expected duration of treatment.
Cash and ATM Access
Some HSA providers allow ATM withdrawals and cash back at retail registers. Others disable these features entirely. Cash access does not change the tax rules: the IRS doesn’t treat cash pulled from your HSA as automatically qualified, so you have to prove every dollar went to eligible medical costs with receipts and invoices.5Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
Without documentation, an audit reclassifies the withdrawal as a non-qualified distribution, with the same income tax and 20% penalty that follows any other misuse. Paying providers directly with the card keeps a cleaner paper trail than converting HSA funds to cash first.
Using the Card While Traveling Abroad
HSA cards on the major payment networks generally work at international healthcare providers that accept those networks. Emergency treatment, doctor visits, and prescriptions overseas can be paid for with the card, as long as the expense would qualify under U.S. federal rules.2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses
One catch on medications: a prescription drug bought and used in another country qualifies only if the drug is legal in both that country and the United States.6Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Drugs imported or shipped into the U.S. from abroad generally do not qualify unless they meet FDA requirements for legal importation.
Expect a foreign transaction fee from your HSA provider, typically 1% to 3% of the purchase amount, deducted from your account along with the cost of care. Confirm the card is enabled for international transactions before you travel.
What a Non-Qualified Purchase Costs
If HSA funds go toward something that doesn’t qualify, the amount is added to your gross income for the year, taxed at your regular federal rate of anywhere from 10% to 37%.7Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts8Internal Revenue Service. Federal Income Tax Rates and Brackets Account holders under 65 also owe a 20% penalty on the non-qualified amount, reported on IRS Form 8889 with the annual return.
For someone in the 22% bracket, a $500 non-qualified purchase costs roughly $210 in combined tax and penalty, a 42% hit on the withdrawn amount. After age 65, or if you become disabled, the 20% penalty goes away. Regular income tax still applies to non-qualified distributions, but the account then works much like a traditional retirement account.7Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
Fixing an Honest Mistake
If you swiped the card on something you genuinely believed was eligible and later found out it wasn’t, you may be able to return the money to your HSA and avoid both the income tax and the 20% penalty. This requires clear and convincing evidence that the distribution resulted from a mistake of fact due to reasonable cause.9Internal Revenue Service. Notice 2004-50
The deadline is April 15 of the year after you first knew, or should have known, the distribution was a mistake. Your HSA custodian is not required to accept returned distributions, so confirm with your provider before assuming a transaction can be reversed.9Internal Revenue Service. Notice 2004-50