Are Gym Memberships Covered by HSA? Rules, Exceptions, and Penalties

Gym memberships are generally not covered by an HSA. The IRS treats fitness as a personal expense unless the membership exists for the sole purpose of treating a specific disease diagnosed by a physician, or for treating an injury or condition affecting a structure or function of the body.1Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness, and General Health A doctor telling you to exercise more is not enough. A doctor prescribing gym-based treatment for a diagnosed condition, and documenting it, can be.

Why Most Gym Memberships Fail the IRS Test

Federal tax law defines medical care as amounts paid for the diagnosis, cure, treatment, or prevention of disease, or for affecting any structure or function of the body.2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses HSA-qualified expenses follow that same definition.3Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts Anything that only improves general health or eases discomfort unrelated to a specific condition falls outside it.

The IRS has addressed gym memberships directly. In its FAQ on nutrition and wellness expenses, the agency says a gym membership qualifies only if it was purchased for the sole purpose of treating a specific disease diagnosed by a physician, such as obesity, hypertension, or heart disease, or for affecting a structure or function of the body, such as a prescribed physical therapy plan following an injury.1Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness, and General Health “Sole” is the operative word. If you also use the gym for general fitness, stress relief, or socializing, the membership fails the test.

A separate FAQ answer draws the line even harder: exercise for the improvement of general health, such as swimming or dancing lessons, is not a qualified medical expense even if a doctor recommended it.1Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness, and General Health A recommendation is not a prescription tied to a diagnosis.

When a Gym Membership Can Qualify

A membership becomes eligible when it fits into a physician-directed treatment plan for a diagnosed medical condition. The condition needs to be specific and documented. The IRS names obesity, hypertension, and heart disease as examples, and other diagnoses can qualify as long as gym access serves a direct therapeutic purpose.

Conditions that commonly support this kind of claim include:

  • Cardiovascular disease or hypertension, where a cardiologist prescribes structured aerobic exercise to lower blood pressure or improve heart function.
  • Obesity diagnosed as a disease, with gym-based exercise prescribed as part of a weight management plan.
  • Physical rehabilitation after surgery, a fracture, or a musculoskeletal injury, using gym equipment under a physical therapy protocol.
  • Clinical depression or anxiety disorders, where a psychiatrist or physician prescribes regular physical activity as part of a treatment plan.

The common thread is a physician identifying a disease or injury, determining that gym-based exercise is necessary to treat it, and documenting the connection. Wanting to feel better, lose some weight, or manage everyday stress does not meet the threshold no matter how sincerely your doctor encourages it.

Getting a Letter of Medical Necessity

A Letter of Medical Necessity is what connects your gym membership to your medical condition for HSA purposes. Without one, you have no defense if the IRS questions the distribution. A licensed physician drafts the letter, and it should include:

  • Your diagnosed condition, stated in medical terms.
  • Why gym access is medically necessary, not merely beneficial.
  • The treatment plan, including the type of exercise, frequency, and duration. A vague recommendation to stay active will not hold up.
  • The physician’s signature and date, which establishes when medical necessity began.

The letter should read as a prescription rather than a lifestyle suggestion. “Patient should consider regular exercise” reads like general advice. “Patient is prescribed three weekly sessions of supervised resistance training at a gym facility to rehabilitate a lumbar disc injury” reads like a treatment plan. The difference matters at audit time.

Most HSA administrators treat the letter as valid for one year from its date, after which you need a new evaluation and a fresh letter. If treatment extends beyond a year, schedule the follow-up before the letter expires rather than trying to backfill documentation.

One timing point that trips people up: if your gym membership was already active before you received a diagnosis, the IRS may view the ongoing fees as a continuation of a personal expense rather than a new medical one. Starting a membership, or switching to a medically oriented program, after the diagnosis and letter are in hand produces a cleaner paper trail.

Membership Dues Versus Separate Program Fees

IRS Publication 502 draws a distinction that trips up even careful planners. The publication says you cannot include gym, health club, or spa membership dues as medical expenses, but you can include separate fees charged there for weight loss activities when the weight loss is prescribed to treat a specific disease.4Internal Revenue Service. Publication 502 – Medical and Dental Expenses The flat monthly fee that gives you general access to the building is harder to claim than a separate charge for a medically prescribed program conducted at the facility.

The practical implication: if your gym charges one all-inclusive monthly rate, isolating a medical component is difficult. Gyms that price structured programs, physical therapy sessions, or medically oriented classes separately give you documentation that is far easier to defend.

Personal training follows the same logic. If a physician prescribes one-on-one training to treat a specific condition such as diabetes management, post-surgical rehabilitation, or severe obesity, the cost can qualify. The Letter of Medical Necessity should explain why supervised training, rather than unsupervised exercise, is necessary and how long treatment will last. General training to improve strength or appearance does not qualify.

Gym-Related Costs That Never Qualify

Some fitness spending is off-limits regardless of your medical situation. Publication 502 excludes health club dues when the purpose is general health improvement.4Internal Revenue Service. Publication 502 – Medical and Dental Expenses Beyond that:

  • Athletic clothing and personal gear, including workout shoes, yoga mats, and gym bags, are personal items with no direct medical connection.
  • Nutritional supplements and protein powders substitute for normal food consumption and fall under personal nutrition expenses.
  • Childcare offered at the gym is not a medical service, though it may qualify under a dependent care FSA under separate rules.
  • Locker rentals and spa amenities are convenience and recreational services.
  • Social or recreational club memberships are excluded even when the club has fitness facilities.4Internal Revenue Service. Publication 502 – Medical and Dental Expenses

Paying, Reporting, and Keeping Records

You have two ways to use HSA funds. Pay the gym directly with your HSA debit card, or pay out of pocket and reimburse yourself later. There is no deadline for reimbursement as long as the HSA was open when you incurred the expense, so some people pay out of pocket and let the balance grow tax-free before reimbursing themselves months or years later.

Either way, you must report all HSA distributions on IRS Form 8889 when you file your tax return.5Internal Revenue Service. Instructions for Form 8889 The form captures contributions, deductions, and distributions, and it flags any amounts not used for qualified medical expenses. Keep the Letter of Medical Necessity, monthly gym invoices, and proof of payment together and accessible. The IRS generally requires tax records to be kept for at least three years from the filing date, but if you reimburse yourself years after incurring an expense, hold onto the documentation until three years after the return on which you report the distribution.6Internal Revenue Service. How Long Should I Keep Records

The 20% Penalty for Getting It Wrong

If the IRS determines that a gym expense paid from your HSA was not a qualified medical expense, the distribution is added to your taxable income and hit with an additional 20% tax.3Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts On a $1,200 annual membership, that penalty alone is $240 on top of the regular income tax you would owe.

Three exceptions eliminate the additional 20% tax, though the distribution still counts as taxable income:

  • Reaching age 65. After Medicare eligibility age, non-qualified distributions are taxed as ordinary income but the 20% penalty no longer applies.7Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans
  • Disability, as defined by federal tax law.
  • Death. Distributions to a beneficiary or estate after the account holder’s death are not subject to the additional tax.

Legislation That Could Change the Rules

Congress has repeatedly considered making fitness expenses broadly HSA-eligible. The most recent effort, rooted in the long-running Personal Health Investment Today (PHIT) Act, would have allowed up to $500 per individual and $1,000 per household in annual HSA distributions for fitness and physical activity expenses without a medical diagnosis. The provision was included in the House version of a 2025 reconciliation bill but excluded from the Senate version. As of mid-2025, it has not become law. Until a version passes, the “sole purpose” medical necessity standard is the rule.