How to Use Your HSA for a Gym Membership
Yes, you can pay for your gym membership with HSA funds. You need a Letter of Medical Necessity. Here is exactly how it works, who qualifies, and how much you save.
Quick Answer
Gym memberships are HSA-eligible with a Letter of Medical Necessity (LMN) from a licensed provider. Without an LMN, the IRS considers gym costs a general health expense - not a qualified medical expense. Services like Truemed and Flex make getting an LMN fast and affordable.
Why Gym Memberships Are Not Eligible by Default
IRS Publication 502 defines qualified medical expenses as costs "primarily for the prevention or alleviation of a physical or mental defect or illness." The IRS has consistently ruled that gym memberships, even when recommended by a doctor, are a general health expense - not a medical expense.
The logic: everyone benefits from exercise, so a gym membership is not inherently medical. The IRS applies the "but for" test - would you have purchased the membership regardless of a medical condition? If yes, it does not qualify.
This changes when a licensed provider determines that exercise is medically necessary to treat a specific diagnosed condition. That determination is documented in a Letter of Medical Necessity.
When Gym Memberships ARE HSA-Eligible
A gym membership becomes a qualified medical expense when all three conditions are met:
1. You have a diagnosed medical condition
A licensed provider has diagnosed a specific condition (obesity, diabetes, heart disease, depression, etc.) with ICD-10 codes.
2. A provider prescribes exercise as treatment
The provider determines that a gym membership is medically necessary to treat or prevent your specific condition - not just general wellness.
3. You have a Letter of Medical Necessity
The LMN documents the diagnosis, ICD-10 codes, treatment plan, and the provider's determination that gym access is medically necessary.
What Is a Letter of Medical Necessity (LMN)?
An LMN is a formal document from a licensed healthcare provider (MD, DO, NP, or PA) that states a specific expense is medically necessary for your treatment. For gym memberships, the LMN must include:
- Your diagnosis with specific ICD-10 codes
- Provider's determination that exercise is medically necessary for your condition
- Treatment plan specifying frequency and type of exercise
- Duration - typically 12 months, renewable annually
- Provider credentials - name, license number, signature, and date
Qualifying Conditions
These are the most common conditions that qualify for a gym membership LMN. This is not exhaustive - your provider determines medical necessity based on your health profile.
| Condition | ICD-10 Codes |
|---|---|
| Obesity (BMI 30+) | E66.01, E66.09 |
| Type 2 Diabetes | E11.x |
| Cardiovascular Disease | I25.10, I10 |
| Hypertension | I10 |
| Major Depressive Disorder | F32.x, F33.x |
| Generalized Anxiety Disorder | F41.1 |
| Chronic Pain | G89.29, M54.5 |
| Metabolic Syndrome | E88.81 |
| Musculoskeletal Disorders | M79.1, M54.x |
| Sleep Disorders | G47.x |
How to Get an LMN: Truemed vs Flex
Two services dominate the gym-HSA space. Both connect you with a licensed provider who evaluates your health and issues an LMN if you qualify.
| Feature | Truemed | Flex |
|---|---|---|
| LMN Fee | $30 one-time | 4% per transaction |
| Process | Online health survey | Online health survey |
| Turnaround | Minutes to 24 hours | Minutes to 24 hours |
| Partner Network | 30+ gym brands | Equinox (exclusive) |
| Equipment | Peloton, Tonal, Hyperice, and more | Not currently |
| Payment Method | HSA/FSA card at checkout | HSA/FSA card at checkout |
| Funding | $34M Series A (a16z) | Private |
| Best For | Most gyms + fitness equipment | Equinox members |
Cost comparison: For a $200/month Equinox membership, Flex charges $8/month (4%). Through Truemed (if Equinox were available), you would pay $30 once for 12 months. For non-Equinox gyms, Truemed is the primary option.
Which Gyms Accept HSA/FSA Payments?
Truemed Partner Gyms (30+)
Plus additional regional and boutique gyms. Check Truemed's website for the full list.
Equinox + Flex (Exclusive Partnership)
As of February 2026, Equinox partners exclusively with Flex for HSA/FSA payments. Equinox members pay with their HSA/FSA card directly through the Equinox billing system after qualifying through Flex's health survey.
Any Gym With Direct Reimbursement
Even if your gym is not a Truemed or Flex partner, you can still use HSA funds. Get an LMN from your own provider, pay for the membership, and submit the receipt plus LMN to your HSA administrator for reimbursement.
How Much You Save
When you pay for a gym membership with pre-tax HSA dollars, you avoid federal income tax, state income tax (in most states), and FICA taxes (7.65%). Here is what that looks like at different tax brackets:
$50/month gym at 22% bracket
$132
saved per year
$150/month gym at 24% bracket
$432
saved per year
$250/month gym at 32% bracket
$960
saved per year
Savings shown are federal income tax only. If your HSA contributions are made through payroll deduction, you also save on FICA (7.65%). State income tax savings vary. California, New Jersey, and New Hampshire do not give state tax benefits for HSA contributions.
The One Big Beautiful Bill: What Actually Happened
There is widespread confusion about the One Big Beautiful Bill Act (signed July 2025) and gym memberships. Here is the truth:
The bill did NOT make gym memberships a qualified HSA expense
Early drafts included "physical activity expenses" up to $500/year as qualified medical expenses. This was stripped from the final bill.
The bill DID expand HSA eligibility in other ways
Telehealth access before deductible, direct primary care compatibility, and higher contribution limits for 2026+. Read the full breakdown.
The LMN pathway described in this guide is the only current way to use HSA funds for gym memberships. This could change with future legislation, but as of 2026, no bill has changed the IRS position on fitness expenses.
Other HSA-Eligible Fitness Expenses
Gym memberships are just one piece of the fitness-HSA picture. Here are other fitness-related expenses and their eligibility:
Physical Therapy
With a doctor's prescription
Peloton & Exercise Equipment
With an LMN via Truemed
Personal Training
With an LMN for a diagnosed condition
Weight Loss Programs
Doctor-prescribed for a diagnosis
Chiropractic Care
Licensed chiropractor visits
Acupuncture
Licensed acupuncturist visits
Massage Therapy
With a prescription for a medical condition
Step-by-Step: Pay for Your Gym With HSA
- 1
Check if your gym is a partner
Search Truemed or Flex for your gym. If it is a partner, you can pay with HSA/FSA directly at checkout.
- 2
Complete the health survey
Answer questions about your medical history. A licensed provider reviews your responses and determines if you qualify for an LMN.
- 3
Receive your LMN
If approved, you get a Letter of Medical Necessity within minutes to 24 hours. This is valid for 12 months.
- 4
Pay with your HSA/FSA card
For partner gyms, pay at checkout with your HSA/FSA card. For non-partner gyms, pay out-of-pocket and submit the receipt plus LMN for reimbursement.
- 5
Keep your documentation
Save your LMN, receipts, and payment records. Your HSA administrator may request these during an audit.
Frequently Asked Questions
Can I use my HSA for a gym membership?▼
How do I get a Letter of Medical Necessity for my gym?▼
Which gyms accept HSA/FSA payments?▼
Did the One Big Beautiful Bill make gym memberships HSA-eligible?▼
What is the "but for" test?▼
What conditions qualify for an LMN?▼
How much can I save using HSA for my gym?▼
Is personal training HSA-eligible?▼
How long does an LMN last?▼
Can I use my FSA for a gym membership too?▼
More HSA Resources
What Is an HSA?
Complete guide to Health Savings Accounts and how they work
HSA Dental Guide
Every dental expense - what qualifies, what does not
HSA Mental Health Guide
Therapy, psychiatry, medications, and treatment programs
HSA GLP-1 & Weight Loss Guide
Ozempic, Wegovy, Mounjaro - cost savings and eligibility
HSA Gym Membership Guide
How to use HSA for gym memberships with Truemed or Flex
FSA vs HSA
Side-by-side comparison of tax-advantaged health accounts
2026 Contribution Limits
How much you can contribute this year
HSA-Eligible Expenses
Browse the full list of qualified medical expenses
Track every gym expense in HSA Trackr
Snap a photo of your gym receipt and let AI categorize it. Never miss an HSA-eligible fitness deduction.
Get Started Free