Can I Buy Food With My HSA Card: Eligibility, Limits, and Proof

You generally cannot buy food with your HSA card. The IRS treats groceries and everyday meals as a personal living expense, not a medical one, so a swipe at the supermarket will usually be declined at checkout, and if it does go through on ineligible items, you will owe income tax plus a 20 percent penalty on the amount. The only real exception is specialty food a doctor prescribes to treat a diagnosed condition, and even then only the extra cost above ordinary food qualifies.1Internal Revenue Service. Publication 502 – Medical and Dental Expenses

Why the Card Usually Gets Declined at the Grocery Store

HSA debit cards run through merchant category codes. Grocery stores are coded as food retailers, not healthcare providers, so most HSA cards will not authorize the purchase in the first place. That mismatch is not an accident. IRS Publication 502 draws a firm line: diet food and beverages that substitute for what you would normally eat to meet basic nutritional needs are not medical expenses.1Internal Revenue Service. Publication 502 – Medical and Dental Expenses Organic produce, whole-grain bread, lean protein, meal prep boxes, smoothie subscriptions — however healthful, they are ordinary nutrition in the eyes of the IRS.

When Food Can Qualify as a Medical Expense

Since Revenue Ruling 55-261, the IRS has required specialty food to clear a three-part test, and all three parts have to be true at once:2Internal Revenue Service. Revenue Ruling 2002-19

  • The food does not satisfy normal nutritional needs — it sits outside what a healthy person would eat as part of a regular diet.
  • The food alleviates or treats an illness, meaning a diagnosed medical condition is the reason for buying it, not general wellness.
  • A physician substantiates the need for that specific food.

The IRS applies the same framework to food, beverages, and nutritional supplements in its nutrition-related medical expenses FAQ.3Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness, and General Health Miss any one condition and the whole cost is ineligible.

How Much of the Cost You Can Actually Claim

Even when a food item clears the three-part test, you cannot claim the full price. Publication 502 caps the eligible amount at the difference between what the specialty item costs and what a comparable ordinary product costs.1Internal Revenue Service. Publication 502 – Medical and Dental Expenses This is the excess cost rule.

Say a loaf of gluten-free bread costs $7 and a standard wheat loaf costs $3. Only the $4 difference is a qualified medical expense. The other $3 covers ordinary nutrition you would be paying for anyway. To make the number stick, keep receipts and a screenshot or shelf-price photo of the regular version at the same or a comparable store. That side-by-side is what an HSA administrator or the IRS will want to see.

Weight-Loss Meals, Supplements, and Infant Formula

Weight-loss programs are where readers get tripped up most often. If a doctor diagnoses obesity or another specific condition and prescribes a weight-loss program, the program fees can qualify.3Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness, and General Health The meal kits and branded snacks that come with them almost always do not, because they substitute for meals you would eat anyway. Enrollment fees, yes; the food, no.1Internal Revenue Service. Publication 502 – Medical and Dental Expenses

Supplements follow the same logic. A vitamin or supplement a medical practitioner recommends to treat a specific physician-diagnosed condition can qualify. A daily multivitamin taken for general health does not.3Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness, and General Health

Infant formula works the same way. Standard formula is basic nutrition and is not reimbursable. Specialty formula a pediatrician prescribes for a diagnosed condition such as a metabolic disorder or severe protein allergy can qualify, again limited to the excess cost above regular formula. An inability to breastfeed, on its own, does not convert formula into a medical expense.

Documentation to Have Before You Spend

Get a Letter of Medical Necessity from your doctor before any purchase. A useful letter names your diagnosis, identifies the specific food or supplement (not a vague instruction to eat healthier), states how long you need it, and carries your physician’s signature and a date that precedes your purchases. Retroactive letters invite problems.

Then build the excess cost paper trail as you go. Save itemized receipts for the specialty items, and keep evidence of what the ordinary equivalent costs at the same or a comparable store. A gluten-free pasta receipt paired with a shelf price for standard pasta is the kind of record that makes the math obvious to anyone reviewing it.

Paying Out of Pocket and Reimbursing Yourself

Because grocery merchant codes trip up HSA cards, most people pay out of pocket at checkout and then submit for reimbursement. Upload the receipts, the Letter of Medical Necessity, and your excess cost documentation through your HSA administrator’s online portal. Some administrators still take paper submissions by mail. Processing usually takes a few business days, though it varies.

There is no federal deadline for reimbursing yourself. You can pay for a qualifying medical food expense today and pull the money out of your HSA months or years later, as long as the expense was incurred after you opened the account.4Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans The trade-off is recordkeeping. Every receipt needs to match every withdrawal.

What It Costs You If You Get It Wrong

If HSA funds go toward food that does not meet the medical expense test, the amount gets added to your gross income for the year and taxed as ordinary income. Federal law then adds a 20 percent tax on top of the non-qualified distribution.5Office of the Law Revision Counsel. 26 Code 223 – Health Savings Accounts Distributions are reported on IRS Form 8889, which is where the mistake tends to surface.6Internal Revenue Service. Instructions for Form 8889

In dollar terms: if you are in the 22 percent bracket and spend $500 of HSA funds on ineligible groceries, you owe $110 in income tax and another $100 in penalty tax. That is $210 in tax on $500 of food, and the math gets worse in higher brackets. For most shoppers, that is reason enough to leave the HSA card in the wallet at the grocery store and reserve it for the narrow, well-documented cases where food genuinely qualifies as medicine.