The short answer: a general gym membership for fitness is not HSA-eligible under IRS Publication 502, which explicitly excludes "health club dues" from deductible medical expenses. The longer answer: with a Letter of Medical Necessity from a licensed provider treating a specific diagnosed condition, a gym membership can become an eligible expense. The longer-still answer involves the difference between general wellness and prescribed treatment, the conservative interpretations most HSA custodians apply, and the audit risk of grey-area claims.
This page covers the IRS rules in detail, the Letter of Medical Necessity mechanics, the 10 specific scenarios we see most frequently, and the PHIT Act legislation that would change the rules if it ever passes.
IRS Publication 502 defines medical expenses as "the costs of diagnosis, cure, mitigation, treatment, or prevention of disease, and the costs for treatments affecting any part or function of the body." The publication then lists specific inclusions and exclusions.
Under the "What Medical Expenses Are Not Includible?" section, Pub 502 explicitly excludes "Health club dues" with the following text: "You cannot include in medical expenses health club dues, YMCA dues, or amounts paid for steam baths for your general health or to relieve physical or mental discomfort not related to a particular medical condition." The operative phrase is "general health", which is contrasted with treatment of a particular medical condition.
The exception emerges from Revenue Ruling 2003-57, which addressed obesity treatment costs. The IRS confirmed that obesity is a disease (consistent with AMA classification), and treatment for obesity, including weight loss programs and exercise prescriptions, can qualify as medical care. By extension, a gym membership prescribed for treatment of diagnosed obesity, with a Letter of Medical Necessity documenting the prescription, can be HSA-eligible.
| Scenario | HSA-Eligible? | Note |
|---|---|---|
| General gym membership for fitness | No | Health club dues excluded per IRS Pub 502 |
| Gym membership with LMN for obesity (BMI 30+) | Yes | Obesity is a medical condition per AMA classification |
| Cardiac rehabilitation prescribed by cardiologist | Yes | Formal prescribed treatment, not general wellness |
| Post-surgical physical therapy at a gym | Yes, if billed by licensed PT | The PT service is medical, the gym facility is incidental |
| Personal trainer with LMN for diabetes management | Yes, with strong LMN | Provider must specifically prescribe and document |
| Yoga class for general wellness | No | General wellness, not treatment |
| Yoga therapy with LMN for chronic pain | Yes, in some cases | Conservative interpretation, document carefully |
| Pilates with LMN for back injury rehabilitation | Yes | Treatment of specific diagnosed condition |
| Swimming pool membership for arthritis | Yes, with LMN | Hydrotherapy for arthritis is recognised treatment |
| CrossFit membership for general fitness | No | Same as gym, no LMN exception for general fitness |
A defensible Letter of Medical Necessity should include several specific elements. The patient's full name and date of birth. The specific diagnosed condition with the ICD-10 code (for example, E66.9 for unspecified obesity, M54.5 for low back pain, I25.10 for atherosclerotic heart disease). A clear statement that gym access (or specific exercise modality) is medically necessary for treatment of the condition, with reasoning. The expected duration of the recommendation (commonly 12 months, renewable). The provider's full name, credentials (MD, DO, NP, PA), license number, and contact information. Date and signature.
The letter does not need IRS approval and is not submitted to the IRS or to your HSA custodian. You keep it with your tax records in case of audit. Most HSA custodians will reimburse gym membership claims without requesting the LMN at the time of reimbursement, but the IRS can request it during audit (typically a 3 to 7 year window after the tax year of reimbursement).
Conservative practice: get the LMN updated annually if the underlying condition is being actively treated. For chronic conditions like obesity or osteoarthritis where treatment is ongoing, an annual renewed LMN is reasonable. For acute conditions like post-surgical rehabilitation, the LMN should specify the rehabilitation period.
The Personal Health Investment Today (PHIT) Act has been introduced in Congress in multiple sessions (most recently in the 118th Congress as H.R. 3942) to allow up to $1,000 individual / $2,000 family in HSA and FSA spending on physical activity expenses including gym memberships, fitness classes, and equipment without requiring a Letter of Medical Necessity. The bill has bipartisan support but has not passed as of 2026.
If PHIT passes in some future Congress, the rules would change significantly. Until then, the current rules apply: gym memberships are not HSA-eligible without an LMN for a specific diagnosed condition. Watch for PHIT updates each Congressional session if you are interested in this change.
If you reimburse a gym membership from your HSA without a defensible LMN and the IRS later audits, the reimbursement is treated as a non-qualified distribution. Under 65, this means the reimbursement is added back to taxable income and subject to a 20 percent additional tax penalty. Over 65, the reimbursement is added back to taxable income but not subject to the additional penalty.
Realistic audit rates for HSA reimbursements are low (well under 1 percent per year), but the penalty if caught is real. Conservative practice: only reimburse gym membership from your HSA with a properly documented LMN, and keep records for at least 6 years after the reimbursement year.
Generally no. IRS Publication 502 explicitly excludes 'health club dues' as a deductible medical expense unless the membership is recommended by a physician to treat a specific diagnosed medical condition. General wellness or fitness goals do not qualify, even if exercise improves your overall health. The workaround requires a Letter of Medical Necessity documenting the specific condition (obesity classified as a disease, cardiac rehabilitation, post-surgical rehabilitation, diagnosed mental health condition with exercise prescription).
A Letter of Medical Necessity (LMN) is a written statement from a licensed medical provider documenting that a specific product or service is needed to treat a diagnosed medical condition. For a gym membership LMN, the letter should include the patient's name, the diagnosed condition (with ICD-10 code), the recommendation that gym access is medically necessary for treatment, the expected duration of the recommendation, and the provider's signature, license number, and contact information. Keep the LMN with your tax records, you do not file it with the IRS but may need it in audit.
No. The CARES Act of 2020 expanded HSA eligibility for over-the-counter medications and menstrual products. It did not change the gym membership rules. The 2020 PATH Act and various subsequent COVID-era HSA expansions also left gym membership rules untouched. The PHIT Act (Personal Health Investment Today Act) has been introduced in Congress multiple times to make fitness expenses HSA-eligible without an LMN, but it has not passed as of 2026.
Same rules apply. Personal training and fitness class fees are not HSA-eligible as general wellness. With a Letter of Medical Necessity for a specific diagnosed condition (e.g., osteoporosis requiring weight-bearing exercise, post-cardiac event requiring supervised exercise), they can qualify. Cardiac rehabilitation programs prescribed by a cardiologist are usually HSA-eligible as medical care without an LMN, because they are formally prescribed treatment, not general fitness.
Employer wellness reimbursements are taxable income unless they qualify under a specific safe harbor, and they do not go through your HSA. If your employer offers a gym reimbursement up to $50/month, that reimbursement is generally added to your W-2 income. The HSA-eligible question is separate and concerns whether you can pay for the gym yourself from HSA dollars (generally no, with LMN exception).
Not tax, medical, or legal advice. Information based on IRS Publication 502 (most recent edition), IRS Revenue Ruling 2003-57, and published custodian guidance. Tax rules can change; verify current rules with your HSA custodian and tax professional before making reimbursement decisions. Consult a CPA for specific audit risk and substantiation questions.