Is a Gym Membership HSA or FSA Eligible? (Yes — With a Letter of Medical Necessity)
I get this question constantly: “can I use my HSA or FSA to pay for my gym?” The honest answer is the most frustrating one in tax law — it depends. But it depends on something specific and gettable, not on luck. Here’s exactly when a gym membership is HSA/FSA eligible, and what makes the difference.
The short answer
A gym membership is HSA- and FSA-eligible when a physician documents that it treats, mitigates, or prevents a specific diagnosed medical condition. That documentation is called a Letter of Medical Necessity (LMN). Without it, the same membership is a personal expense the IRS won’t let you reimburse. With it, it can be paid for — or reimbursed — with pre-tax dollars.
Why the default answer is “no”
The rule everyone runs into comes from IRS Publication 502 and Section 213(d) of the tax code. “Medical care” is defined as amounts paid for the diagnosis, cure, mitigation, treatment, or prevention of disease. General health, toning, and “staying in shape” explicitly don’t count — the IRS calls those expenses for general well-being, and they are not reimbursable.
So if you join a gym simply because being fit is good for you, that’s a personal expense. That’s the version most people have heard, and it’s why the reflex answer is “no.” But it’s only half the rule.
The exception that changes everything
Publication 502 carves out a clear exception: the cost of a program — including gym or health-club dues — is medical care when a physician has diagnosed a specific condition and prescribed exercise to treat it. The classic examples the IRS itself uses are obesity, hypertension, and heart disease. The exercise is the treatment; the membership is the cost of that treatment.
Conditions a physician commonly documents for an exercise-based LMN include:
- Obesity (a BMI at or above 30)
- Hypertension (high blood pressure)
- Type 2 diabetes or prediabetes
- High cholesterol / metabolic syndrome
- Coronary artery disease and other cardiovascular conditions
- Chronic lower-back or joint pain managed with conditioning
- Anxiety or depression with exercise as part of the treatment plan
If one of these applies to you — and for a huge share of adults, at least one does — your gym membership may already qualify. You just need it documented correctly.
Need your letter right now?
Physician-reviewed and signed. Makes your gym membership FSA/HSA-eligible. $40 flat.
Get my letter →What the Letter of Medical Necessity actually does
An LMN is the bridge between “personal expense” and “medical care.” It’s a signed physician statement that names your diagnosed condition, confirms that exercise (and the membership that enables it) is part of treating or mitigating it, and states how long the treatment applies — usually 12 months. It’s the single piece of paper an HSA or FSA administrator needs on file to approve the expense.
That’s the whole mechanism. No loophole, no gray area — it’s the exact documentation the IRS contemplates, issued by a licensed physician who has reviewed your case.
How much can you actually save
HSA and FSA dollars are pre-tax, so the saving is roughly your marginal tax rate applied to what you spend on the gym. At a typical combined rate of 30–35%, a $1,200-a-year membership effectively costs you $780–$840. On a boutique studio or training package running $300+ a month, the annual saving climbs into the thousands. Over a few years it more than pays for the cost of the letter many times over.
How to get a Letter of Medical Necessity
You don’t need an in-person visit. MedSlip was built for exactly this: you answer a few questions about your health, a board-certified physician reviews your case, and if it’s appropriate, you receive a signed Letter of Medical Necessity — with the physician’s NPI and license on it — that you submit to your HSA or FSA administrator. If a physician can’t issue one, you aren’t charged.
If you’ve been paying for your gym with after-tax money while sitting on an HSA or FSA balance, this is one of the easiest tax savings most people are leaving on the table.

Dr. Kawalek is a board-certified internal medicine physician with 15+ years of clinical experience. He founded MedSlip to give patients fast, affordable access to the Letters of Medical Necessity that make fitness and wellness spending HSA/FSA-eligible.