Gym memberships are not covered by your HSA, but some fitness-related expenses are

You cannot use your HSA to pay for a regular gym membership or fitness classes. The IRS treats gym fees as general wellness expenses, which fall outside what an HSA can cover. However, your HSA can pay for certain fitness-related costs if they treat or prevent a specific medical condition — for example, physical therapy prescribed by a doctor, or a gym membership that your doctor specifically recommends in writing as treatment for a diagnosed condition like obesity or heart disease.

The difference comes down to medical necessity. If you are paying for fitness to stay generally healthy, that is a personal expense. If you are paying for fitness because a doctor has told you it is medically necessary to treat or manage a diagnosed condition, you may be able to use your HSA — but you will need documentation from your doctor to prove it.

Key Takeaways

  • A standard gym membership for general fitness is not an HSA-covered expense, even if you use it regularly.
  • A gym membership becomes HSA-may be able to access only if your doctor prescribes it in writing as treatment for a specific medical condition you have been diagnosed with.
  • Physical therapy, cardiac rehabilitation programs, and weight-loss programs recommended by a doctor are HSA-covered, even if they happen at a gym.
  • You must keep your doctor's written recommendation and receipts from the gym to prove the expense was medically necessary if the IRS ever questions it.

When a doctor's prescription makes a gym membership HSA-may be able to access

If your doctor writes a letter stating that a gym membership is medically necessary to treat a condition you have — such as diabetes, hypertension, obesity, or heart disease — you can use your HSA to pay for it. The key word is prescribed. Your doctor must document that the gym membership is part of your treatment plan, not just a general recommendation to exercise.

The letter does not need to be formal or lengthy. It should state that you have a diagnosed medical condition, that exercise is medically necessary to treat it, and that a gym membership is an appropriate way to receive that treatment. Keep this letter with your HSA records. If you are ever audited by the IRS, you will need to show that the expense was medically necessary, and the doctor's letter is your proof.

Even with a doctor's prescription, some HSA administrators may ask for additional documentation or may deny the claim initially. If that happens, you can appeal by submitting the doctor's letter and explaining why the expense qualifies. You have the right to dispute a denial.

Fitness expenses that are always HSA-covered

Certain fitness-related costs are HSA-covered without needing a doctor's prescription, because they are clearly medical in nature. Physical therapy is the most common example — whether it happens at a gym, a clinic, or a therapist's office, you can use your HSA to pay a licensed physical therapist. The same applies to occupational therapy and cardiac rehabilitation programs run by hospitals or clinics.

Weight-loss programs supervised by a doctor or registered dietitian are also covered. This includes medically supervised weight-loss clinics, nutritionist consultations for a diagnosed condition, and programs like Weight Watchers if your doctor has referred you to it specifically for treatment of obesity or diabetes. The difference is that the program must be tied to treating a medical condition, not just general wellness.

Fitness equipment prescribed by a doctor — such as a stationary bike recommended for someone recovering from knee surgery, or a treadmill prescribed for cardiac rehabilitation — can also be covered. You will need the doctor's recommendation in writing and a receipt showing what you paid.

What you need to keep if you use your HSA for a gym membership

If your doctor has prescribed a gym membership as treatment, save three things: the doctor's written recommendation, your receipt or invoice from the gym, and a record of what you paid from your HSA. Most HSA administrators will ask for these if they question the expense.

The receipt should show the gym's name, the dates of membership, the amount paid, and ideally a description of what services you received. If the gym does not provide an itemized receipt, ask for one. A credit card statement alone is usually not enough — the IRS wants to see what the money was actually for.

Keep these documents for at least three years. The IRS can audit HSA expenses going back that far, and you will need proof that the expense was medically necessary. If you cannot produce the doctor's letter or receipt, the IRS may require you to repay the amount you withdrew, plus taxes and penalties.

How to talk to your doctor about a gym membership prescription

If you have a medical condition that your doctor has said would benefit from regular exercise, you can ask whether they would be willing to prescribe a gym membership. Be specific: explain that you need a written recommendation stating that the gym membership is medically necessary to treat your condition, and that you plan to use your HSA to pay for it.

Some doctors will write this letter readily, especially if you have a condition like obesity, diabetes, or heart disease where exercise is a standard part of treatment. Others may be hesitant because they worry about the IRS or because they do not typically write prescriptions for gym memberships. If your doctor is unsure, you can offer to show them this article or to contact your HSA administrator for guidance on what documentation they need.

If your doctor will not prescribe it, you cannot use your HSA to pay for the gym membership. In that case, you would pay for it with after-tax money, just like any other personal expense.

Other fitness costs you might be able to use your HSA for

Beyond gym memberships, your HSA can cover other fitness-related expenses if they are medically necessary. A personal trainer hired to help you recover from an injury or manage a medical condition may be covered if the trainer is working under a doctor's supervision or recommendation. Fitness classes specifically designed for people with a medical condition — such as arthritis exercise classes or prenatal fitness classes — may also may have access to.

Wearable fitness devices like smartwatches are generally not covered, even if you use them to track your health. However, medical devices that happen to track fitness — such as a continuous glucose monitor for diabetes or a heart rate monitor prescribed after a cardiac event — are covered because they are medical devices, not fitness devices.

The rule is always the same: if the primary purpose is general fitness or wellness, your HSA cannot pay for it. If the primary purpose is to treat or prevent a diagnosed medical condition, and a doctor has recommended it, you may be able to use your HSA.

Frequently Asked Questions

Can I use my HSA for a Peloton or other home fitness equipment?

Only if your doctor prescribes it in writing as treatment for a specific medical condition. A Peloton for general fitness is not covered. If your doctor recommends a stationary bike for cardiac rehabilitation or knee recovery, you can use your HSA, but you need the written prescription and a receipt showing what you paid.

What if I get a gym membership and later get a doctor's prescription for it?

You can request reimbursement from your HSA for past gym membership payments, as long as you have the doctor's written prescription and receipts. However, you can only reimburse expenses from the date the doctor prescribed it, not from before. Check with your HSA administrator about their process for retroactive reimbursement.

Does my HSA cover yoga or Pilates classes?

General yoga or Pilates classes are not covered. However, if your doctor prescribes a specific therapeutic yoga or Pilates program as treatment for a condition like back pain or arthritis, and you have that prescription in writing, you may be able to use your HSA. The class must be medically necessary, not just for general wellness.

Can I use my HSA for a personal trainer?

Only if the trainer is working as part of a medically necessary program prescribed by your doctor. For example, if your doctor recommends physical therapy with a trainer after surgery, that is covered. A personal trainer for general fitness is not covered, even if they help you lose weight or get stronger.

What happens if the IRS questions my gym membership expense?

If the IRS audits your HSA and questions a gym membership expense, you will need to show your doctor's written prescription and your receipts. If you cannot prove it was medically necessary, you may have to repay the amount you withdrew, plus income tax on that amount and a 20% penalty. This is why keeping documentation is important.