Most gym memberships are not covered by your HSA, but some fitness expenses are
A standard gym membership does not may have access to as an HSA-may be able to access expense under IRS rules. The IRS treats general fitness and gym access as a personal wellness choice, not a medical treatment. However, if your doctor prescribes exercise as part of treatment for a specific medical condition—such as cardiac rehabilitation after a heart attack, or physical therapy for a knee injury—those prescribed programs may be covered. The distinction matters: the gym itself is not may be able to access, but medically necessary exercise under a doctor's order can be.
The IRS publishes a list of what HSAs can and cannot cover. Gym memberships appear on the "cannot cover" side because they benefit general health rather than treating or managing a diagnosed condition. If you want to use HSA funds for fitness, you need documentation from your doctor stating that the specific program is medically necessary for your condition, not just generally good for you.
Key Takeaways
- Routine gym memberships do not may have access to for HSA coverage under IRS rules, even if you use them to stay healthy.
- Medically prescribed exercise programs—such as cardiac rehab or physical therapy ordered by your doctor—may be covered if you have written documentation of the prescription.
- The difference is whether a doctor prescribed the specific program as treatment for your condition, not whether exercise itself is healthy.
- If your gym offers a separate medically supervised program (like a cardiac rehab class), that program may may have access to even if the general membership does not.
- You will need to keep the doctor's prescription and any receipts showing you paid for the prescribed program specifically.
When a doctor prescribes exercise as medical treatment
If your doctor writes an order for you to attend a specific exercise program as part of your medical care, that program becomes potentially HSA-may be able to access. Common examples include cardiac rehabilitation programs after heart surgery, physical therapy for orthopedic injuries, pulmonary rehabilitation for lung disease, or supervised exercise programs for diabetes management. The key is that the doctor must prescribe it, and the program must be designed to treat your condition rather than just improve general fitness.
The program itself must also be legitimate medical care. A gym class labeled "cardiac fitness" is not the same as a medically supervised cardiac rehabilitation program run by a hospital or clinic. The difference is who runs it and whether it is designed specifically for people with your diagnosis. If your cardiologist refers you to a hospital-based rehab program, that is covered. If they say "exercise is good for you, go to the gym," that is not.
You will need to keep the written prescription or referral from your doctor. When you pay for the program, the receipt should show the name of the program and the provider. If the provider is a hospital or medical clinic, that strengthens your case. If you are later audited by the IRS, you will need to show both the prescription and proof that you paid for the prescribed program.
Fitness equipment and wearables that track health data
Fitness trackers, smartwatches, and exercise equipment are generally not HSA-may be able to access either, even if they monitor your heart rate or steps. The IRS treats them as general wellness devices, not medical equipment. However, if your doctor prescribes a specific device as part of treatment—such as a continuous glucose monitor for diabetes management or a prescribed heart rate monitor for arrhythmia monitoring—that device may may have access to. The distinction is the same: prescription for a medical condition, not general health tracking.
Exercise equipment like treadmills or stationary bikes also does not may have access to unless your doctor prescribes it as part of rehabilitation. If you buy a treadmill because your doctor said exercise would help your back pain, that is still not covered. If your doctor prescribes a specific physical therapy program that requires equipment, and you buy that equipment on the therapist's recommendation, you may have a case—but you need the written prescription and documentation that the equipment is part of the prescribed treatment plan.
What you can use your HSA for instead
HSAs cover a wide range of actual medical expenses that many people do not realize. You can use HSA funds for copays, deductibles, prescription medications, mental health counseling, dental work, vision care, and medical equipment like crutches or blood pressure monitors. You can also cover costs for medically necessary travel to receive treatment, certain over-the-counter medications (with a doctor's prescription), and home modifications required for a medical condition.
If you want to use your HSA for wellness, look at what your insurance actually covers. Some plans cover preventive care visits, screenings, or vaccinations at no cost. Some offer wellness programs that include subsidized gym memberships or fitness classes as part of the plan itself—not through your HSA, but through your insurance. Check your plan documents or call your insurance company to see what wellness benefits are included.
How to document a prescribed fitness program for your HSA
If your doctor has prescribed a specific exercise program, start by getting the prescription in writing. A verbal recommendation is not enough. Ask your doctor to write a note stating that the program is medically necessary for your condition and the name of the specific program or provider. This note should go in your medical records and you should keep a copy for yourself.
When you enroll in or pay for the program, keep all receipts and documentation showing the program name, the provider, the dates of service, and the amount paid. If the program is run by a hospital, clinic, or licensed physical therapy practice, that strengthens your case. If you are paying a gym for a "medically supervised" class, ask for documentation that the class is supervised by a licensed healthcare provider and that it is designed for your specific condition.
Save everything: the doctor's prescription, the receipt, any paperwork from the program provider, and your HSA records showing the withdrawal. If the IRS ever questions the expense, you will need to show the chain from prescription to payment to prove it was medically necessary.
What the IRS actually says about fitness and HSAs
The IRS Publication 502 lists what medical expenses may have access to for tax-advantaged accounts. It explicitly excludes "health club dues, vitamins or other dietary supplements" unless they are prescribed by a doctor for a specific medical condition. The key phrase is "prescribed by a doctor for a specific medical condition." General fitness, even if it improves your health, does not meet that standard.
The IRS also distinguishes between treatment and prevention. Preventive care—like annual checkups or screenings—is covered by HSAs. But preventive fitness, like going to the gym to stay healthy, is not. If your doctor prescribes exercise as treatment for an existing condition, that crosses the line into covered care. The difference is whether you are treating something or preventing something from happening.
Frequently Asked Questions
Can I use my HSA to pay for a gym membership if my doctor says exercise is good for me?
No. A general recommendation to exercise does not make a gym membership HSA-may be able to access. Your doctor would need to prescribe a specific medically supervised program as treatment for a diagnosed condition. A casual suggestion to "get more exercise" is not a medical prescription.
What if my gym offers a cardiac rehab class—can I use my HSA for that?
Only if the class is medically supervised and prescribed by your doctor as part of your treatment plan. A gym class labeled "cardiac fitness" is different from a hospital-based cardiac rehabilitation program. Ask the gym whether the class is run by licensed healthcare providers and whether it is designed for people with specific diagnoses. If it is, get your doctor's written prescription for that program.
Can I use my HSA for a fitness tracker or smartwatch?
Not unless your doctor prescribes it as medical equipment for a specific condition. A general fitness tracker is treated as a wellness device. A continuous glucose monitor prescribed for diabetes management or a prescribed heart rate monitor for arrhythmia would may have access to, but you need the written prescription.
What happens if I use my HSA for a gym membership and get audited?
If you cannot show a doctor's written prescription stating the gym membership is medically necessary for your condition, the IRS will likely disallow the expense. You would owe income tax on the amount plus a 20% penalty. This is why documentation matters: keep the prescription and receipts.
Are there other fitness-related expenses my HSA can cover?
Yes. If your doctor prescribes physical therapy, that is covered. If your doctor prescribes a specific rehabilitation program, that is covered. If your doctor prescribes medical equipment used in exercise (like a prescribed orthotic or a prescribed exercise bike as part of rehab), that may be covered. The common thread is a doctor's prescription for treatment of a specific condition.