Groceries are not covered, but some foods are

You cannot use your HSA to pay for ordinary groceries—bread, milk, vegetables, meat, or anything else you would buy at a supermarket for a regular meal. The IRS treats food as a general living expense, not a medical one, even if you need it to survive. The line is strict: if it would be deductible as food under normal tax rules, your HSA cannot pay for it.

The exception is narrow and specific. You can use your HSA for foods and beverages that are prescribed by a doctor to treat a specific medical condition. This means a written prescription or medical order from your physician, not just a recommendation. Examples include special infant formula for a diagnosed allergy, a medically prescribed ketogenic diet for epilepsy, or gluten-free products ordered by a doctor for celiac disease. The food itself must be unusual enough that you would not buy it without the medical condition, and you need documentation proving the doctor ordered it.

Even then, you can only reimburse the difference between the cost of the special food and what a regular version would cost. If your doctor prescribes a specific brand of gluten-free bread at $6 and regular bread costs $2, your HSA covers $4—not the full $6.

Key Takeaways

  • Regular groceries—produce, meat, dairy, grains—cannot be paid for with an HSA under any circumstance.
  • Medically prescribed foods for a diagnosed condition can be covered if you have a written doctor's order and keep that documentation.
  • You can only reimburse the cost difference between the special food and what a standard version would cost.
  • Vitamins, supplements, and over-the-counter nutritional products are not covered unless a doctor prescribes them for a specific medical condition.
  • Your HSA can pay for thousands of other health expenses: prescriptions, copays, dental work, vision care, and medical equipment.

What the IRS actually allows you to buy

Your HSA covers may have access to medical expenses—a term the IRS defines narrowly. These include prescription medications, copayments and coinsurance for doctor visits, dental and vision care, mental health treatment, and medical equipment like blood pressure monitors or crutches. You can also pay for physical therapy, chiropractic care, hearing aids, and many over-the-counter items if a doctor prescribes them.

The key word is "prescribed." An over-the-counter pain reliever, allergy medication, or antacid can be covered only if your doctor writes a prescription for it—not just recommends it. A prescription from your doctor transforms an OTC item into a may have access to medical expense. Without the prescription, it is not covered, even if you buy it at a pharmacy.

Preventive care is covered: annual physicals, vaccinations, cancer screenings, and cholesterol tests all may have access to. Mental health visits, therapy, and psychiatric medications are covered. Dental work—cleanings, fillings, root canals, orthodontics—is covered. Vision care including eye exams, glasses, and contact lenses is covered. If you are unsure whether a specific expense qualifies, the IRS publishes a full list on its website, and your HSA provider can also tell you whether a particular item is may be able to access before you spend the money.

How to know if a food item qualifies

Before you try to reimburse a food expense from your HSA, you need three things: a diagnosis from your doctor, a written order or prescription stating that the food is medically necessary, and proof of the cost difference between the special food and a regular alternative.

The diagnosis alone is not enough. "I have diabetes" does not mean your HSA covers all your groceries. Your doctor must write that a specific food—such as a particular brand of low-sodium meal replacement or a medically formulated nutritional drink—is necessary to treat your condition. The order should be dated and specific enough that you could show it to your HSA provider if they ask.

Keep the prescription and your receipts. When you submit a reimbursement request, your HSA provider may ask for documentation. If you cannot produce the doctor's order, the reimbursement will be denied. Some HSA providers let you upload documents through their website; others ask you to mail them. Check your provider's process before you submit.

What happens if you use your HSA for non-may have access to expenses

If you use your HSA debit card or withdraw money to pay for groceries or other non-may have access to expenses, you have a problem. The withdrawal is taxable income in the year you took it out, and you owe income tax on that amount at your normal tax rate. You also owe a 20 percent penalty on top of the income tax.

Example: You withdraw $500 from your HSA to buy groceries. If you are in the 22 percent tax bracket, you owe $110 in income tax plus $100 in penalty—$210 total on a $500 withdrawal. The money is gone, and you have to report it on your tax return.

The penalty applies only to the amount you misused, not your entire HSA balance. If you withdrew $5,000 and $500 of it was for groceries, you pay the penalty and tax only on the $500. Still, it is expensive and not worth the risk. If you are unsure whether an expense qualifies, contact your HSA provider before you spend the money.

Better ways to use your HSA for food-related health needs

If you have a medical condition that affects your diet, there are legitimate HSA expenses related to that condition—just not the food itself. You can use your HSA to pay for a registered dietitian or nutritionist if your doctor refers you for medical nutrition therapy. This is common for diabetes, heart disease, kidney disease, and other conditions where diet is part of treatment. The visit is covered; the food is not.

You can also cover medical equipment related to eating: a special utensil for someone with arthritis, a feeding tube, or a blender prescribed for someone who cannot chew solid food. Medications that affect appetite or digestion are covered. Meal delivery services are not covered, but if a doctor prescribes a specific medically formulated meal replacement drink (not a regular protein shake), that can be reimbursed.

Some people use their HSA to pay for gym memberships or fitness programs if a doctor prescribes them for a specific condition like obesity or heart disease. The prescription matters. A general recommendation to "exercise more" does not may have access to; a formal referral to a cardiac rehabilitation program does.

How to keep records and avoid problems

The IRS does not require you to submit receipts when you withdraw from your HSA, but you must keep them for at least three years in case of an audit. Store receipts, prescription documents, and any correspondence with your doctor about medically necessary foods in one place—a folder, a spreadsheet, or photos on your phone.

If you use your HSA debit card, the transaction will show up on your statement. "Whole Foods" or "Kroger" does not tell the IRS what you bought, so keep the itemized receipt showing what was purchased. If an auditor asks, you need to prove that the items were medically prescribed, not just groceries.

Some people track HSA expenses in a spreadsheet with the date, amount, what was purchased, the medical condition it treated, and where the receipt is stored. This takes a few minutes per transaction but makes tax time much simpler and protects you if questions come up later.

Frequently Asked Questions

Can I use my HSA for vitamins and supplements?

Only if a doctor prescribes them for a specific medical condition. A general multivitamin you buy on your own is not covered. A prescription for a specific supplement—such as vitamin D for diagnosed deficiency or omega-3 for heart disease—can be covered if you have the written prescription and keep it with your receipt.

What if my doctor says I should eat healthier but does not write a prescription?

That does not may have access to. The doctor must write a formal prescription or medical order stating that a specific food is medically necessary to treat a diagnosed condition. A general recommendation is not enough for the IRS to allow the expense.

Can I use my HSA for meal delivery services like HelloFresh or Freshly?

No, not unless the meals are medically formulated and prescribed by your doctor for a specific condition. A regular meal delivery service is a grocery expense, even if it is convenient or healthy. Medically formulated meal replacements (like those prescribed for certain diets) may be covered if you have a doctor's order.

Do I need to tell my HSA provider before I buy medically prescribed food?

It is a good idea to contact them first. Some providers have a pre-approval process, and checking ahead prevents a denied reimbursement later. At minimum, ask them what documentation they need before you submit a claim.

What if I already spent HSA money on groceries—can I fix it?

Once the money is withdrawn, you cannot put it back. You will owe income tax and the 20 percent penalty on the non-may have access to amount. If the withdrawal was recent and you have not filed your tax return yet, talk to a tax professional about your options, but the penalty is difficult to avoid once the money is spent.