An HSA pays for a gym membership only in a narrow situation: when the membership’s sole purpose is to treat a specific disease diagnosed by a physician, such as obesity, hypertension, or heart disease, or to address a structure or function of the body through a prescribed treatment plan like post-injury physical therapy.1Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health Anything short of that, and the IRS treats gym dues as a personal expense that cannot be paid or reimbursed from a Health Savings Account.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
Why the Default Answer Is No
The tax code defines a medical expense as an amount paid to diagnose, treat, or prevent a disease, or to affect a structure or function of the body.3Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses Staying in shape doesn’t clear that bar. IRS Publication 502 says directly that you cannot include health club dues or gym memberships as medical expenses when they’re used to improve general health or relieve discomfort not tied to a particular medical condition.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
So paying for a gym to lose a few pounds, reduce stress, or maintain fitness doesn’t qualify. Neither do swimming lessons, dance classes, or yoga bought for general wellness. The IRS has been explicit: exercise for the improvement of general health is not a medical expense, even when a doctor recommends it.1Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health
When a Gym Membership Actually Qualifies
The IRS uses a specific test. The membership must be purchased for the sole purpose of treating a disease diagnosed by a physician, or of affecting a structure or function of the body through a prescribed treatment plan.1Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health “Sole” is the pressure point. If you also use the facility for general workouts alongside the prescribed treatment, the expense may not qualify.
Conditions the IRS has named as examples include obesity, hypertension, and heart disease. Structured exercise prescribed as part of a physician-led weight-loss program for a patient diagnosed with obesity can be a qualified expense.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Physical therapy for a specific injury, such as a post-surgical rehabilitation plan, is another common case where gym access can count. A chronic condition like cardiovascular disease requiring monitored exercise may also qualify when a physician prescribes the regimen as direct treatment.
The underlying question is whether you would have bought the membership if the medical condition didn’t exist. If you were already going to the gym before the diagnosis, or would keep using it regardless of the condition, the expense likely fails the sole-purpose test.
Why a Doctor’s Note by Itself Isn’t Enough
A common misunderstanding is that any note from a physician makes a gym membership HSA-eligible. It doesn’t. The IRS has explicitly said that exercise recommended for the improvement of general health, even with a written recommendation, is not a qualified medical expense.1Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health A vague suggestion to “get more exercise” doesn’t create a qualifying expense. The recommendation has to be a treatment prescription tied to a diagnosed disease or physical condition.
The Letter of Medical Necessity
To show the membership is medical rather than personal, you’ll typically need a Letter of Medical Necessity from your physician. The IRS doesn’t use that exact term, but it does require the expense be tied to treatment of a specific disease or physical condition, and most HSA administrators want a formal letter before they’ll approve a distribution or accept a reimbursement claim.
A workable letter includes:
- The specific diagnosis being treated (for example, obesity, hypertension, or a post-surgical rehabilitation need).
- A clear statement that the gym membership, or a specific program at the gym, is medically necessary to treat that condition rather than generally beneficial.
- The expected duration of treatment, such as six months or one year. If no duration is stated, many administrators treat the letter as valid for 12 months and then require a new one.
- The provider’s name, credentials, signature, and contact information.
Check with your HSA administrator before paying. Some have their own forms, and using the preferred format avoids delays. One more limit worth knowing: expenses incurred before your HSA was established don’t qualify as distributions from that account.4Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
What It Costs If You Get It Wrong
If you use HSA money on a gym membership that doesn’t meet the medical-expense standard, the distribution is taxable. You owe income tax on the amount withdrawn plus an additional 20 percent penalty.5Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts On a $600 annual membership, someone in the 22 percent bracket would owe $132 in income tax plus a $120 penalty. That’s $252 in taxes on a $600 expense.
The 20 percent penalty no longer applies once you reach age 65, become disabled, or after death. After 65, a non-qualified distribution is still included in your taxable income, but the extra penalty is gone, which makes it function similarly to a traditional retirement account withdrawal at that point.5Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
Keep records. Save gym receipts, the Letter of Medical Necessity, and any correspondence with your administrator. The IRS generally requires records supporting a deduction or credit for at least three years from the date you file your return, and six years if you underreport income by more than 25 percent.6Internal Revenue Service. How Long Should I Keep Records You also report HSA distributions on Form 8889 when you file, even when the distribution was used for a qualified expense.4Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
Related Fitness Expenses
The same sole-purpose standard governs the rest of the fitness category. Some items can qualify with a physician’s diagnosis; others never will.
- Weight-loss program fees, including group meetings and program memberships, can be qualified medical expenses when they treat a specific diagnosed disease such as obesity, diabetes, or heart disease.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
- Home exercise equipment purchased solely to treat a diagnosed condition may qualify under the rules covering other medical equipment. Equipment bought for general fitness does not.1Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health
- Personal training sessions may qualify if prescribed as part of a treatment plan for a diagnosed condition. Expect your administrator to want documentation linking the training to the diagnosis.
- Workout clothes, shoes, water bottles, and locker fees are personal expenses regardless of any medical condition.
- Supplements taken for general well-being don’t qualify. Supplements prescribed to treat a specific diagnosed condition may, with documentation.
Publication 502 also draws a useful distinction: you can’t include general health club dues, but you can include separate fees charged at a health club specifically for weight-loss activities when those activities treat a diagnosed disease.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
Paying for a Spouse or Dependent
If your spouse or a dependent has a qualifying diagnosis, you can use your HSA to cover their gym membership even if you carry self-only HDHP coverage. HSA distributions can pay for qualified medical expenses of you, your spouse, or your dependents.7Internal Revenue Service. Distributions for Qualified Medical Expenses The same sole-purpose rule and documentation requirements apply.
The PHIT Act Could Change This
The Personal Health Investment Today Act, known as the PHIT Act, has been introduced in multiple sessions of Congress, most recently in 2025 as Senate Bill 1144.8Congress.gov. S.1144 – PHIT Act of 2025 It would amend the tax code to treat amounts paid for physical activity, fitness, and exercise as medical care, which would make gym memberships and fitness classes eligible for HSA and FSA reimbursement without a diagnosis. As of early 2026, the bill has not become law. Until it or similar legislation passes, the current IRS rules requiring a specific diagnosed condition still apply.