Is Gym Membership a Qualified Medical Expense? IRS and HSA Rules

A gym membership is generally not a qualified medical expense. The IRS treats health club dues as a personal cost, and neither an HSA, an FSA, nor an itemized medical deduction will cover them — unless the membership was bought for the sole purpose of treating a specific disease diagnosed by a physician or carrying out a prescribed plan like physical therapy for an injury. That “sole purpose” test is narrow, and most people who join a gym won’t meet it.

IRS Publication 502 states plainly that you cannot include membership dues in a gym, health club, or spa as medical expenses, and the same goes for any club organized for recreation or social purposes.1Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses The rule applies even when a doctor recommends exercise for general well-being. Under Internal Revenue Code Section 213(d), medical care means amounts paid for the diagnosis, cure, treatment, or prevention of disease, or for affecting a structure or function of the body.2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses An expense that is merely beneficial to general health does not qualify, even if it genuinely improves your health.

The Narrow Exception That Does Exist

In FAQs published in March 2023, the IRS confirmed that a gym membership can be paid or reimbursed by an HSA, FSA, Archer MSA, or HRA if the membership was purchased for the sole purpose of affecting a structure or function of the body (such as a prescribed physical therapy plan for an injury) or treating a specific disease diagnosed by a physician, like obesity, hypertension, or heart disease.3Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health

The word “sole” is where most claims collapse. If you have a physician’s diagnosis and a prescribed exercise plan, but you also use the gym for recreational swimming or to see friends, the expense no longer passes. The IRS is not asking whether the gym helps your condition. It is asking whether you would have joined anyway, medical need or not. If any general fitness purpose runs alongside the medical one, the whole expense is disqualified.

Weight Loss: A Diagnosis Alone Doesn’t Cover the Dues

Publication 502 gives weight loss its own treatment, and readers often misread it. You can deduct amounts paid for a weight loss program that treats a specific disease diagnosed by a physician — obesity, diabetes, hypertension, or heart disease — including fees for a weight-reduction group and periodic meetings.1Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses

But even with that diagnosis, you still cannot deduct the gym membership dues themselves. What you can deduct are separate fees the gym charges specifically for weight loss activities.1Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses If your gym charges a distinct fee for a medically supervised weight loss class on top of the regular membership, that class fee can qualify while the membership does not. A doctor’s note for obesity is not a green light on the whole bill.

Diet food and beverages are excluded as well, because they substitute for food you would eat anyway. The only exception is special food that does not satisfy normal nutritional needs, alleviates an illness, and is substantiated by a physician, and even then only the cost exceeding a normal diet is deductible.1Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses

Personal Training, Yoga, and Mental Health Prescriptions

Publication 502 says you cannot include the cost of dancing lessons, swimming lessons, or similar activities in medical expenses, even when a doctor recommends them, if they are only for the improvement of general health.1Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses The same reasoning applies to personal training, yoga, and Pilates. A recommendation alone is not enough.

Personal training could qualify if it functions as prescribed physical therapy for a specific injury or disease — a trainer running you through a rehab protocol designed by your orthopedic surgeon for a torn rotator cuff, for example. If the plan also builds general strength or fitness, the sole-purpose test fails and the whole expense is out.3Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health

Therapy prescribed to treat a diagnosed mental illness qualifies as a medical expense.3Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health A gym membership prescribed for depression or anxiety, however, faces the same hurdle as any other fitness expense. The IRS has not created a special exception for mental health when it comes to exercise, and demonstrating that you joined a gym exclusively to treat a psychiatric condition — and never use it for general fitness or stress relief — is a difficult case to make.

Documentation to Have on Hand

A letter of medical necessity from your physician is the starting document. It is not an IRS form; it is what HSA and FSA administrators typically require before processing a claim that straddles the line between medical and personal. Your physician should identify the diagnosed condition, explain why gym-based exercise is medically necessary to treat it, and describe the specific exercise protocol prescribed.

A useful letter includes the physician’s name, practice, phone number, and license number; a named diagnosis such as obesity, hypertension, coronary artery disease, or a documented musculoskeletal injury (vague references to “improving health” get claims denied); the type of exercise prescribed, its frequency, and its duration, with a structured physical therapy plan carrying more weight than “exercise three times a week”; and the medical rationale for this treatment for this patient, not just a general recommendation.

Many HSA and FSA administrators provide a template. Some require annual renewal, so check with your plan. Keep the letter, every gym receipt, and any correspondence with your administrator. The IRS generally asks that records supporting a deduction be kept until the statute of limitations runs — at least three years from filing, or six years if you underreported income by more than 25% of gross income.4Internal Revenue Service. How Long Should I Keep Records For an aggressive claim like this one, six years is the safer benchmark.

What It Costs You If the Claim Fails

Using HSA funds for a gym membership that doesn’t qualify triggers two hits. The distribution is added to your taxable income, and you owe an additional 20% tax on the non-qualified amount. On a $600 annual membership, that’s income tax on the $600 plus a $120 penalty. The 20% additional tax doesn’t apply if you’re 65 or older or disabled.5Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans

If the distribution was a genuine mistake — an administrator approved a claim that shouldn’t have been approved — you can repay the funds to your HSA by April 15 following the first year you knew or should have known of the error, which avoids the tax and penalty.6Internal Revenue Service. Distributions From an HSA – Mistaken Distributions

On the deduction side, claiming a gym membership that doesn’t meet the Section 213(d) definition exposes you to an accuracy-related penalty of 20% of the tax underpayment if the IRS determines the claim was negligent or produced a substantial understatement.7Office of the Law Revision Counsel. 26 USC 6662 – Imposition of Accuracy-Related Penalty on Underpayments The dollar penalty on a single membership may be small, but an audit that finds one shaky deduction tends to look harder at the rest of the return.

Itemizing on Your Tax Return vs. Using an HSA

If you don’t have an HSA or FSA, the other route is claiming the expense as an itemized medical deduction on Schedule A. You have to give up the standard deduction, and you can only deduct medical costs above 7.5% of your adjusted gross income.1Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses

For 2026, the standard deduction is $16,100 for single filers, $32,200 for married couples filing jointly, and $24,150 for heads of household.8Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 For a single filer earning $80,000, the 7.5% floor is $6,000 in medical costs before a single dollar becomes deductible. A $600 gym bill barely registers. Itemizing typically pays off only for people already carrying heavy medical costs in a given year — major surgery, chronic illness, long-term care — not a standalone fitness expense.

You also cannot claim the same expense twice. If you take a tax-free HSA reimbursement for a gym cost, you cannot also deduct it on Schedule A.5Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans For most people who can qualify at all, the HSA route delivers more value: it sidesteps income tax entirely without demanding you clear the 7.5% floor or forgo the standard deduction.

Proposed Legislation to Watch

Congress has considered making fitness expenses explicitly eligible for HSA spending. A provision rooted in the PHIT Act was included in the House version of a recent reconciliation bill and would have allowed up to $500 per individual, or $1,000 per household, in annual HSA spending on fitness and physical activity. The Senate-passed version excluded that provision as of July 2025. Fitness industry groups have pushed for it to return in later legislation. Until something passes, the existing rules — a diagnosed condition, a sole-purpose use, and documentation to prove both — remain the only path to qualifying a gym membership as a medical expense.