Paying for an HSA medically necessary diet is stressful enough without guessing whether your health savings account will actually cover the cost.
The U.S. Health department says food is medicine, but the IRS doesn’t feel the same.
That’s worrying, particularly now that employer health insurance continues shifting more costs onto employees.
Deductibles are still climbing in 2026, even when premiums level off.
The Kaiser Family Foundation reports the average deductible for covered workers is about $1,886, with many high-deductible health plans pushing well beyond that threshold as employers manage rising claims costs.
That pressure explains the surge of interest in HSAs and whether HSA diet costs, including special diet costs tied to diagnosed conditions, can be paid tax-free.
The answer isn’t a simple yes or no. It depends on IRS rules, documentation, and whether the expense treats a specific medical condition rather than general wellness.
Key Takeaways:
- A medically necessary diet can qualify, but only in limited situations defined by the IRS.
- Food usually counts as a personal expense, even when a doctor recommends dietary changes.
- To qualify, the diet must treat a diagnosed condition and go beyond normal nutrition needs.
- Only the extra cost above typical food spending can be considered medical.
- Quick online letters of medical necessity carry more risk than guidance from a provider who knows your case.
- Careful documentation matters more than intent when food, supplements, or programs are involved.
Background: How Medical Expense Deductions Are Supposed to Work
For a long time, the tax code has allowed deductions for certain medical expenses.
HSAs, FSAs, and similar accounts follow the same basic standard. The expense has to treat a specific medical condition, as defined by IRS Publication 502.
That sounds straightforward until food enters the picture. Everyone eats. Because of that, the IRS starts from the position that food is personal, not medical, even when a doctor says a diet is necessary.
Because of this, as deductibles climbed and HSAs became more common, some companies stepped in to offer letters of medical necessity for diets, supplements, and fitness programs.
In many cases, the process is quick. A short form. A few questions. A fee.
The idea is straightforward. If a doctor signs off, the expense should count as medical. For people dealing with ongoing special diet costs, that feels like a solution.
It offers a way to use HSA dollars for expenses that already feel unavoidable.
Many positive reviews of these services emerged quickly, but problems came soon after.
INSTANT QUOTE
COLORADO HEALTH INSURANCE
The Medically Necessary Diet: The IRS Strikes Back
As more people started using HSA and FSA funds for food, fitness, and supplements, the IRS pushed back.
Its position was blunt. Many of these expenses look like general wellness, not treatment for a specific medical condition.
From the IRS point of view, that makes them personal expenses. Personal expenses don’t qualify, even when a doctor supports healthier habits or long-term prevention.
The IRS also took issue with how some letters were written.
A recommendation based on emails or an online form isn’t the same as care based on an actual exam, and the IRS has said that difference matters when deciding whether something counts as medical.
That stance forced some people to do a rethink. Some claims that once seemed safe started getting denied, and earlier media coverage had to be walked back by some.
“The Government’s Case Is Absurd,” Say Critics
Not everyone agrees with the IRS approach.
Critics, like TrueMed’s CEO, Calley Means, says the policy is a violation of common sense.
They point out that the tax code will cover expensive interventions after a condition gets worse, while denying help for lower-cost steps meant to keep people stable.
Prescription weight-loss drugs like Ozempic qualify. Bariatric surgery qualifies. A structured meal plan or supervised fitness program often does not.
That contrast feels backwards to many employees. Food and movement are part of treatment for conditions like diabetes, heart disease, and obesity, not optional upgrades.
The argument isn’t that every grocery bill should qualify.
It’s that a physician-prescribed diet meant to manage a diagnosed condition shouldn’t be dismissed as personal spending just because food is involved.
How to Pay for Diet-Related Costs Without Creating Problems Later
Using HSA funds for food, supplements, or programs tied to an HSA medically necessary diet only works when the documentation lines up with the rules.
A general recommendation usually isn’t enough. What carries weight is a clear medical connection.
A provider needs to document a diagnosed condition and explain how the diet or treatment helps manage it, not just improve overall health.
Specifics matter more than conclusions. The explanation should connect the condition to the expense and show why it exceeds what someone without that condition would normally spend.
This is also where many people get too casual. Paying first and hoping the paperwork works later is risky, especially when HSA diet costs already sit in a gray area.
Getting this right up front doesn’t guarantee approval. It does reduce the chances of a problem if the expense ever gets questioned.
When Food Costs May Actually Qualify
Food only qualifies for HSA coverage when it clearly goes beyond normal nutrition and exists to treat a diagnosed condition.
The IRS looks for something closer to treatment than everyday eating, even when that everyday eating has to be strict.
A few conditions have to line up at the same time:
- The food does not meet normal nutritional needs
- It directly helps treat or manage a diagnosed condition
- A provider documents why it’s medically required
- The cost is higher than what someone without the condition would spend
Cost matters as much as purpose. Only the amount above normal food spending can be treated as medical, which is why standard groceries almost never qualify.
This is where special diet costs sometimes fit and often don’t.
Items like disease-specific nutrition formulas or required preparation methods have a better chance than foods that simply replace regular meals.
A physician-prescribed diet helps, but it isn’t a blank check. If the food still looks like a substitute for everyday groceries, the IRS usually treats it that way.
Using an HSA for Fitness Programs and Gym Memberships
This is another area where people assume more flexibility than the rules allow.
A standard gym membership usually doesn’t qualify, even when exercise is part of managing a medical condition.
The IRS treats most memberships as personal spending tied to general health.
There are limited situations where a program inside a gym may qualify:
- The program targets a diagnosed condition, not general fitness
- A provider recommends it as part of treatment
- The focus is structured therapy or weight management, not open gym access
- The recommendation explains why the program is medically necessary
This is where people get creative and sometimes get burned. Paying for a full membership and labeling it medical rarely holds up. Conditions that are more likely to support a qualifying program include:
- Obesity
- Type 2 diabetes
- Heart disease
- High blood pressure
Even then, documentation matters. Without a clear medical reason tied to a specific program, the expense usually stays personal, not medical.
INSTANT QUOTE
COLORADO HEALTH SHARING
Nutritional Supplements and Vitamins in a HSA Medically Necessary Diet
This is one of the first places the IRS looks when questions come up.
Most vitamins and supplements are treated as personal expenses. Buying them to “support health” or “fill gaps” doesn’t qualify, even if a condition is involved.
There are situations where supplements can count as medical:
- A provider recommends the supplement to treat a diagnosed condition
- The recommendation explains how it helps manage that condition
- The supplement isn’t being used for general wellness
- The guidance is documented, not implied
This applies to more than just vitamins. Herbal products, medical nutrition supplements, and similar items all fall under the same scrutiny.
Who writes the recommendation matters less than how it’s written.
It doesn’t have to come from an MD, but it does need to come from a provider acting within their scope and familiar with the patient’s condition.
This is another gray area for HSA diet costs. Some claims hold up. Many don’t. The difference usually comes down to how clearly the medical need is spelled out.
Why This Still Feels Like the Wrong Answer
We agree with Means.
The same rules that allow expensive drugs, surgery, or hospital care often shut the door on lower-cost steps meant to keep a condition from getting worse.
A prescription can qualify. A procedure can qualify. Food and movement, even when they’re part of treatment, often don’t.
That feels upside down. Health plans encourage prevention, but the tax rules reward treatment after things escalate.
None of that changes how the IRS enforces the law today. It does explain why frustration keeps growing as more care shifts into daily habits that fall outside traditional medical billing.
Until Congress updates the rules, the line stays where it is. That leaves employees balancing medical advice against tax risk, especially when managing an HSA medically necessary diet over the long term.
Understanding that tension doesn’t fix it. It does help explain why careful documentation matters so much when deciding what to run through an HSA and what to keep separate.
HSAs Are Still Worth Using, Even With These Limits
None of this makes HSAs less useful.
Even with tighter scrutiny around food and wellness expenses, HSAs remain one of the few tools that still give employees real control over health care costs.
Contributions go in before taxes, growth isn’t taxed, and qualified medical spending comes out tax-free.
That matters more as deductibles rise. High-deductible plans shift more early costs to employees, and HSAs are often the only buffer built into those plans.
HSAs are also a terrific retirement asset: once you turn 65, the usual 20% penalty on withdrawals goes away.
You can then use the money for anything you like, you just need to pay the income tax, just as you do with a traditional IRA.
You can still use your HSA to pay tax-free and penalty-free for health care expenses and even long-term care insurance premiums in retirement, too.
However, to contribute to a health savings account, you must be enrolled in a qualified high-deductible health plan.
HSA for America can help those in health sharing plans gain eligibility contribute to a health savings account.
For help finding and enrolling in an HDHP or establishing an HSA, make an appointment for a free consultation with one of our experienced Personal Benefits Managers.
Frequently Asked Questions
Can I use my HSA for groceries if my doctor recommends a diet?
Usually no. Even with a recommendation, most groceries count as personal spending. An HSA medically necessary diet only qualifies when the food goes beyond normal nutrition, treats a diagnosed condition, and costs more than typical food.
Does a letter of medical necessity guarantee IRS approval?
No. A letter helps, but it doesn’t guarantee anything. The IRS looks at how the letter was written, who wrote it, and whether it clearly connects the expense to a specific medical condition.
Are online letters of medical necessity safe to rely on?
They carry more risk. Letters based on short forms or limited interaction don’t hold the same weight as guidance from a provider who has examined you and understands your medical history.
Can meal delivery services ever qualify under an HSA?
Rarely. Most meal services look like replacements for normal food, which makes them personal expenses. Some special diet costs may qualify, but only when they clearly function as treatment, not convenience.
Can I use my HSA for supplements or vitamins?
Sometimes. Supplements may qualify when they’re recommended to treat a diagnosed condition and not for general wellness. This is one of the most scrutinized HSA diet costs, so documentation matters.
What’s the biggest mistake people make with diet-related HSA spending?
Paying first and hoping it qualifies later. Once money leaves the HSA, fixing a mistake is harder. When a physician-prescribed diet is involved, it’s safer to be clear on the rules before using the account.
Wiley Long is the president of ColoHealth, Author of Health Sharing: The Authoritative Guide to America’s Fastest-Growing Health Insurance Alternative, and has been in the health insurance industry since 1987. He received his master’s degree in nutrition and exercise science at Colorado State University, and is passionate about individual healthcare freedom. Read more about Wiley on his Bio page.