Gym Memberships & Your HSA

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.

ConditionICD-10 Codes
Obesity (BMI 30+)E66.01, E66.09
Type 2 DiabetesE11.x
Cardiovascular DiseaseI25.10, I10
HypertensionI10
Major Depressive DisorderF32.x, F33.x
Generalized Anxiety DisorderF41.1
Chronic PainG89.29, M54.5
Metabolic SyndromeE88.81
Musculoskeletal DisordersM79.1, M54.x
Sleep DisordersG47.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.

FeatureTruemedFlex
LMN FeeVaries; current examples include $20 and $30Current gym/studio example: $15
ProcessOnline health surveyOnline health survey
TurnaroundVaries by provider reviewVaries by provider review
Partner NetworkBroad wellness marketplaceBroad marketplace; official Equinox flow
Marketplace CategoriesFitness, recovery, nutrition, and moreFitness, wellness, equipment, and more
Payment MethodCheckout or reimbursement, by merchantCheckout or reimbursement, by merchant
Final Eligibility DecisionYour HSA/FSA administratorYour HSA/FSA administrator
Best ForMerchants using Truemed checkout or reimbursementMerchants 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 marketplace

Equinox + 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:

Step-by-Step: Pay for Your Gym With HSA

  1. 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. 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. 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. 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. 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?
Yes, but only with a Letter of Medical Necessity (LMN) from a licensed healthcare provider. The IRS considers gym memberships a "general health" expense by default. An LMN proves the membership is treating a specific diagnosed condition like obesity, Type 2 diabetes, or cardiovascular disease.
How do I get a Letter of Medical Necessity for my gym?
Two main options: (1) Ask your doctor to write one linking your gym membership to treatment of a diagnosed condition. (2) Use a merchant-integrated service such as Truemed or Flex that connects you with a licensed provider through an online intake. Published fees vary by integration: current examples include $20 or $30 through Truemed and $15 through Flex's gym/studio reimbursement product.
Which gyms accept HSA/FSA payments?
Truemed and Flex both work with broad merchant marketplaces, but the exact checkout or reimbursement flow depends on the gym. Flex currently has an official Equinox HSA/FSA checkout page. A local gym may also be reimbursable when the membership is medically necessary and you retain a valid LMN and itemized receipts. Confirm eligibility with your account administrator.
Did the One Big Beautiful Bill make gym memberships HSA-eligible?
No. Early drafts of the One Big Beautiful Bill Act included a provision to add fitness expenses as qualified HSA expenses. That provision was stripped from the final version signed in July 2025. Gym memberships still require a Letter of Medical Necessity to qualify.
What is the "but for" test?
The IRS uses the "but for" test to determine eligibility: would you have purchased the gym membership regardless of your medical condition? If the answer is yes, it does not qualify. Your LMN should state that the membership is specifically prescribed to treat your diagnosed condition - not just for general fitness.
What conditions qualify for an LMN?
Common qualifying conditions include obesity (BMI 30+), Type 2 diabetes, cardiovascular disease, hypertension, depression and anxiety disorders, chronic pain conditions, metabolic syndrome, and musculoskeletal disorders. Your provider determines medical necessity based on your specific health profile.
How much can I save using HSA for my gym?
At a 24% marginal tax rate, a $150/month gym membership ($1,800/year) saves you $432 in federal taxes. At the 32% bracket, that jumps to $576. If your HSA contributions are made through payroll deduction, you also avoid FICA taxes (7.65%), increasing your savings further.
Is personal training HSA-eligible?
Yes, with a Letter of Medical Necessity. If a licensed provider prescribes personal training as part of a treatment plan for a diagnosed condition, the cost qualifies as an HSA-eligible expense. The same LMN pathway applies as gym memberships.
How long does an LMN last?
Truemed says its LMNs are typically valid for 12 months, but the actual dates and renewal process can depend on the provider, merchant, and your circumstances. Check the dates on your LMN and keep it with the itemized receipt in case your administrator requests substantiation.
Can I use my FSA for a gym membership too?
Yes. The same rules apply to both HSAs and FSAs - you need a valid Letter of Medical Necessity. Truemed and Flex support both HSA and FSA payments. The key difference is FSA funds expire annually, so plan your gym spending accordingly.

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