Letters of Medical Necessity (LMN) for HSA Expenses
If you have looked up whether a specific expense is HSA-eligible and seen “requires LMN” in the answer, you have encountered one of the more practical corners of HSA tax law. A Letter of Medical Necessity is the document that turns certain otherwise-personal expenses into qualified medical expenses eligible for tax-free HSA reimbursement.
It is not complicated, but it matters. Without one, the expense is not eligible. With one, it is. The difference can be hundreds or thousands of dollars in tax-free spending.
Key takeaways
- An LMN is a letter from your doctor confirming that a specific expense is medically necessary to treat a diagnosed condition.
- You need one when an expense falls in the gray zone between clearly medical and clearly personal -- things like gym memberships, supplements, and ergonomic equipment.
- The letter must include your diagnosis, the recommended treatment, the prescribing provider's credentials, and an expected duration.
- Get the LMN before you make the purchase, and store it alongside your receipt for IRS documentation.
- An LMN is strong evidence of eligibility, but it does not override IRS rules -- some expenses remain ineligible regardless.
What an LMN is
A Letter of Medical Necessity is a written statement from a licensed healthcare provider confirming that a specific product, service, or treatment is medically necessary to diagnose, treat, mitigate, cure, or prevent a specific medical condition.
The IRS distinguishes between expenses that are inherently medical (a doctor's visit, prescription medication, surgery) and expenses that could be medical depending on the circumstances (a gym membership, a massage, vitamins). The first category is automatically eligible. The second category requires documentation that the expense's primary purpose is medical care, not personal comfort or general wellness.
The LMN provides that documentation.
When you need one
You need an LMN when the expense falls in the gray zone between clearly medical and clearly personal. The IRS looks at whether the “primary purpose” of the expense is for medical care as defined under IRC §213(d). If the item or service could reasonably be used for either medical or personal purposes, the LMN is what establishes medical intent.
Common HSA expenses that typically require an LMN
Gym memberships and personal training. Not eligible as a general wellness activity. Eligible when prescribed to treat a diagnosed condition -- obesity, cardiovascular disease, diabetes, hypertension, or post-surgical rehabilitation.
Fitness equipment. Treadmills, exercise bikes, resistance bands, rowing machines. Same rule: eligible only when prescribed as part of a treatment plan for a specific condition.
Weight-loss programs. Medically supervised weight loss or structured programs like Weight Watchers can qualify when prescribed to treat a diagnosed condition such as obesity. Weight loss for general appearance or fitness does not qualify.
Vitamins and nutritional supplements. Eligible only when prescribed to treat a specific diagnosed deficiency or condition. A daily multivitamin for general health does not qualify. Iron supplements prescribed for diagnosed anemia do qualify.
Massage therapy. Eligible when prescribed to treat chronic pain, musculoskeletal conditions, injury recovery, or other diagnosed conditions. Massage for relaxation or stress relief does not qualify.
Air purifiers and humidifiers. Eligible when prescribed to treat respiratory conditions such as asthma, COPD, or severe allergies.
Ergonomic equipment. Standing desks, ergonomic chairs, and similar items can qualify when prescribed for a diagnosed condition like chronic back pain or a specific orthopedic issue.
Special mattresses and bedding. Eligible when prescribed for conditions like chronic pain, sleep apnea, or severe allergies.
Acupuncture. Generally eligible as a medical treatment, though some HSA administrators may request an LMN depending on the condition being treated.
Hot tubs and pools. Eligible when prescribed as hydrotherapy for conditions like severe arthritis, fibromyalgia, or post-surgical recovery. The cost is typically limited to the amount exceeding what a standard non-medical version would cost.
Search for any expense in the HSA Eligible Expenses Checker to see whether it requires a Letter of Medical Necessity.
The common thread
Every item on this list follows the same pattern: the expense is eligible only when it is prescribed to treat a specific, diagnosed medical condition. General wellness, comfort, and convenience do not qualify -- no matter how beneficial they may be.
What the LMN needs to include
There is no official IRS template for an LMN. But plan administrators and custodians generally expect the following elements:
Required elements
Patient identification. Your full name as it appears on your HSA account and medical records.
Provider identification. The name, credentials, and contact information of the licensed healthcare provider writing the letter. This should be the provider who is actually treating the condition -- not a provider you visited solely to obtain the letter.
Diagnosis. A description of the specific medical condition being treated, including the diagnosis and relevant medical history. “Patient is overweight” is insufficient. “Patient has been diagnosed with obesity (BMI 34.2) and Type 2 diabetes” establishes the medical basis.
Recommended treatment. A clear statement of what product, service, or treatment is being recommended and how it relates to the diagnosed condition. The more specific, the better. “I am recommending a supervised exercise program three times per week for six months to improve glycemic control and reduce cardiovascular risk” is stronger than “patient should exercise.”
Duration. How long the treatment is expected to last. Most HSA administrators consider an LMN valid for 12 months from the date it was written. If the treatment extends beyond that period, you will need a new LMN.
Specificity is your best protection
A vague LMN is almost as risky as no LMN at all. The more precisely your provider describes the diagnosed condition, the recommended treatment, and the expected duration, the stronger your documentation will be if your plan administrator or the IRS ever questions the expense.
Who can write one
The LMN must come from a licensed healthcare provider who is treating the condition. Acceptable providers typically include physicians (MD/DO), nurse practitioners, physician assistants, dentists, optometrists, chiropractors, psychologists, and licensed clinical social workers -- depending on the condition and their scope of practice.
The provider must be treating you for the relevant condition. An LMN from a provider who has not examined you or does not have a treatment relationship with you carries less weight and may be rejected by your plan administrator.
Watch out for LMN mills
The IRS has cautioned consumers about misleading marketing from companies that claim to convert general wellness purchases into HSA-eligible expenses through LMNs obtained via brief online questionnaires. An LMN needs to reflect a real medical evaluation and treatment relationship. Letters from providers who have never examined you are unlikely to hold up under scrutiny and could expose you to the 20% penalty on non-qualified distributions.
How to get one
The process is simpler than most people expect. Here is the practical workflow:
1. Identify the expense. Determine whether the item or service you want to purchase requires an LMN for HSA eligibility.
2. Bring it up with your provider. You can ask during a regular appointment or through your provider's patient portal. A brief note explaining that you want to document the expense for HSA purposes is usually sufficient. Not every provider is familiar with HSA-specific documentation, so a short explanation of what an LMN is and why you need it can help.
3. Be specific about what you are requesting. Tell the provider exactly what product or service you want documented. If you want an LMN for a gym membership, say so. The provider can then write the letter connecting your diagnosis to the recommended exercise program.
4. Get it before you make the purchase. While some providers will write an LMN retroactively, it is cleaner to have the documentation in place before the expense is incurred. This also avoids the risk that your provider is unwilling to substantiate a purchase after the fact.
5. Store the LMN with your receipt. The LMN and the receipt for the expense should be kept together as part of your HSA documentation. If you are ever audited or your plan administrator requests substantiation, you need both.
LMN limitations
An LMN does not guarantee eligibility. It is strong evidence that the expense's primary purpose is medical care, but it is not a blanket override. Some items remain ineligible regardless of medical documentation -- cosmetic surgery that is not correcting a deformity, general health foods, and personal convenience items typically cannot be made eligible through an LMN alone.
The expense must still fit within the IRS definition of medical care under §213(d): diagnosis, cure, mitigation, treatment, or prevention of disease, or affecting a structure or function of the body.
The practical value
For HSA holders -- particularly those using the shoebox strategy to defer reimbursement -- LMNs expand the pool of eligible expenses significantly. A family dealing with chronic conditions could potentially add thousands of dollars in eligible expenses per year by properly documenting items like exercise programs, therapeutic equipment, and supplements that would otherwise be classified as personal.
That said, do not chase LMNs for every borderline expense. The administrative overhead of obtaining and storing letters for small purchases may not justify the tax benefit. Focus on high-value items where the LMN unlocks a meaningful reimbursement: gym memberships, fitness equipment, therapeutic devices, and ongoing treatment programs.
Track your HSA expenses the right way
HSA IQ keeps your receipts organized, tracks your unreimbursed balance, and generates tax-ready exports.
Start your free trialThis article is for informational purposes only and does not constitute tax advice. Eligibility determinations depend on individual circumstances and IRS interpretation. Consult a qualified tax professional before making HSA decisions. IRS guidance referenced: IRC §213(d); IRS Publication 502.