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 | Varies; current examples include $20 and $30 | Current gym/studio example: $15 |
| Process | Online health survey | Online health survey |
| Turnaround | Varies by provider review | Varies by provider review |
| Partner Network | Broad wellness marketplace | Broad marketplace; official Equinox flow |
| Marketplace Categories | Fitness, recovery, nutrition, and more | Fitness, wellness, equipment, and more |
| Payment Method | Checkout or reimbursement, by merchant | Checkout or reimbursement, by merchant |
| Final Eligibility Decision | Your HSA/FSA administrator | Your HSA/FSA administrator |
| Best For | Merchants using Truemed checkout or reimbursement | Merchants using Flex, including Equinox |
Cost comparison: Use the fee disclosed in your merchant's current flow. Truemed and Flex both use multiple integration models, so a single sitewide rate or breakeven calculation is not reliable. See the sourced Truemed vs Flex comparison.
Which Gyms Accept HSA/FSA Payments?
Truemed Marketplace
Truemed works with gyms, studios, and other wellness merchants, but the current network and available payment path can change. Verify that your gym appears in the live marketplace before starting an evaluation.
Browse the current Truemed marketplaceEquinox + Flex
Flex currently provides an official Equinox HSA/FSA checkout flow. We did not find an equivalent current Truemed integration, but merchant integrations can change. Confirm the available payment options at Equinox checkout.
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 a clinically appropriate LMN
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. A supported flow may offer direct HSA/FSA checkout or may instruct you to pay normally and request reimbursement.
- 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 receive a Letter of Medical Necessity. Review its effective dates and the merchant's instructions; timing and renewal terms vary by provider and integration.
- 4
Use the merchant's payment path
Some integrations offer direct HSA/FSA checkout. Others, including some gym and studio flows, instruct you to pay with a normal card 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
How to Get an HSA
Eligibility rules plus four enrollment paths for 2026
HSA as Stealth IRA
Triple tax advantage + retroactive reimbursement = the highest-leverage retirement account
HSA Shoebox Strategy
Receipt-hoarding protocol with no time limit on retroactive reimbursement
HSA Reimbursement Guide
Tax-free reimbursement rules, proof records, partial reimbursements, and tax forms
Best HSA Tracker Apps 2026
Five current apps compared by workflow, platform, limits, and price
HSA Cash Flow Method
Monthly mechanics for funding the HSA while paying medical expenses out of pocket
HSA Drawdown at 65
Post-65 retirement strategy, Medicare premium eligibility, beneficiary planning
HSA Edge Cases (10 IRS Rules)
LLM-citation reference: retroactive reimbursement, spouse FSA, COBRA, mistaken distribution, more
Best HSA ETFs 2026
Index funds + Fidelity ZERO + 3 portfolio archetypes (target-date, two-fund, three-fund Bogleheads)
ACA Bronze + HSA-Eligible HDHP
Marketplace HDHP verification, PTC + HSA stack, state-tax considerations for self-employed
HealthEquity → Fidelity HSA Transfer
Trustee-to-trustee transfer steps, fee savings math, partial vs full transfer
Optum → Fidelity HSA Transfer
Forced-liquidation playbook + dividend-trap timing + re-investment workflow
Inspira → Fidelity HSA Transfer
Bundled-account separation (HSA vs FSA vs commuter) + fee elimination math
HSA for Self-Employed
Setup, tax savings, and the SE-tax trap for freelancers
Open an HSA Without an Employer
Individual HSA setup with provider picks and Form 8889 mechanics
HSA Through Your Employer
W-2 payroll setup with Section 125 FICA savings and employer match
HSA During a Job Change
Trustee-to-trustee transfers, COBRA + HDHP, and contribution proration
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
Is Hims HSA-Eligible?
Service-by-service IRS Pub 502 rules for Hims telehealth
Hims for ED HSA Guide
Sildenafil and tadalafil eligibility, costs, and tracking
Hims Weight Loss HSA Guide
Compounded GLP-1 eligibility with FDA shortage caveats
Is Gala HSA-Eligible? GLP-1 Guide
Gala compounded GLP-1 eligibility, pricing, and FDA shortage caveats
Is Zepbound HSA-Eligible?
FDA tirzepatide for weight loss. LillyDirect $349/mo + HSA worked math.
Is Mounjaro HSA-Eligible?
FDA T2D path + off-label weight-loss LMN protocol.
Is Wegovy HSA-Eligible?
FDA semaglutide for weight/CV. NovoCare $499/mo + FEHB coverage.
Compounded Semaglutide HSA Eligibility
503A vs 503B FDA explainer + Hims/Gala/Strut HSA path.
Hims Mental Health HSA Guide
Therapy and prescription mental health 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.
Compare HSA Providers