Can I Use My HSA for a Gym Membership?

Gym shoes, a barbell, a yoga mat, and an hsa debit card on the floor

Quick Answer

Usually not. The IRS says a gym membership is a medical expense your HSA can pay for only if you bought it for the sole purpose of treating a specific disease a physician diagnosed, such as obesity, hypertension or heart disease, or for something like a prescribed plan of physical therapy after an injury. A membership for staying fit or for your general health doesn't count, even when your doctor recommends exercise.

If you do have a diagnosis, expect to show three things: a physician diagnosed a specific disease, you use the gym to treat it, and you wouldn't be paying for the gym otherwise. Home exercise equipment is judged in a similar way. The tax law passed in July 2025 didn't change this, although an earlier version of it would have.

What the IRS Says About Gym Memberships

The most direct statement is in the IRS's frequently asked questions about medical expenses related to nutrition, wellness and general health. Question 10 asks whether the cost of a gym membership can be paid or reimbursed by an HSA, FSA, Archer MSA or HRA. The answer is, "Yes, but only if the membership was purchased for the sole purpose of affecting a structure or function of the body (such as a prescribed plan for physical therapy to treat an injury) or the sole purpose of treating a specific disease diagnosed by a physician (such as obesity, hypertension, or heart disease). Otherwise, the cost of a gym membership is for the general health of the individual and is not a medical expense."

Question 11 covers "exercise for the improvement of general health, such as swimming or dancing lessons." The answer is, "No, because the exercise, even if recommended by a doctor, is only for the improvement of general health."

Both answers apply the general rule in Publication 502: "Medical care expenses must be primarily to alleviate or prevent a physical or mental disability or illness. They don't include expenses that are merely beneficial to general health, such as vitamins or a vacation." An HSA uses the same definition. Publication 969 says qualified medical expenses are amounts paid for medical care as defined in section 213(d) of the tax code, which is the section Publication 502 explains.

So the FAQ gives a membership two ways to qualify:

  • A specific disease diagnosed by a physician: The FAQ's examples are obesity, hypertension and heart disease. Revenue Ruling 2002-19 is where the IRS recognized obesity as a disease in its own right. The ruling's second taxpayer wasn't obese but had hypertension, and a physician had directed that person to lose weight as treatment.
  • A structure or function of the body: The FAQ's example is "a prescribed plan for physical therapy to treat an injury."

The FAQ doesn't give a list of qualifying conditions. Its diseases follow the words "such as," so they're examples. On the first route, the wording requires a specific disease that a physician has diagnosed. On the second, it requires a purpose like prescribed physical therapy for an injury.

Why Publication 502 Reads Like a Flat No

Publication 502 is the IRS guide to the itemized deduction for medical expenses, and it's often quoted for HSAs too. Three of its entries bear on gyms:

  • Health Club Dues: "You can't include in medical expenses health club dues or amounts paid to improve one's general health or to relieve physical or mental discomfort not related to a particular medical condition." The entry adds that you can't include "the cost of membership in any club organized for business, pleasure, recreation, or other social purpose."
  • Weight-Loss Program: "You can't include membership dues in a gym, health club, or spa as medical expenses, but you can include separate fees charged there for weight loss activities." The entry appears a second time, in the list of expenses you can't include, and repeats the rule on dues.
  • Health Institute: "You can include in medical expenses fees you pay for treatment at a health institute only if the treatment is prescribed by a physician and the physician issues a statement that the treatment is necessary to alleviate a physical or mental disability or illness of the individual receiving the treatment." Publication 502 doesn't say what a health institute is. Information Letter 2001-0105, describing a 1955 ruling that set the same rule, calls a health institute a place where "the taxpayer takes exercise, rubdowns, etc."

Read alone, the Weight-Loss Program sentence says gym dues never count, even for someone being treated for obesity. The FAQ says they can. Neither document explains the difference, so this is our reading of how they fit together:

  • The FAQ is the one written for HSAs: Every question in it asks about HSAs, FSAs, Archer MSAs and HRAs, and the gym question was added on March 17, 2023.
  • IRS letters have allowed gym fees for the deduction too: Information Letter 2010-0175 says a taxpayer "may be able to deduct the gym fees as a medical expense" with a diagnosed disease. Information Letter 2002-0077 says health club membership fees "incurred primarily for the purpose of preventing or alleviating obesity may be deductible as a medical expense."
  • Two of the letters also cite a limit on club dues: Letters 2002-0077 and 2001-0105 both point to section 274(a)(3) of the tax code, which allows no deduction for "membership in any club organized for business, pleasure, recreation, or other social purpose." Publication 502's Health Club Dues entry uses the same words. Letter 2001-0105 says fees for specific services at a health club may be deductible, and sets that against the bar on membership. Section 274(a)(3) is written as a limit on deductions, and a qualified HSA withdrawal is left out of income, not deducted. That may be why the FAQ is more open than Publication 502, but none of these sources says so.
  • Publication 502 states the general rule, so treat the exception as narrow: If weight loss is treatment for your diagnosed disease and your gym charges a separate fee for a weight-loss program, that fee is on firmer ground than the monthly dues, because Publication 502 allows it by name.

None of these documents is binding law. The IRS's page on relying on its guidance says FAQs that haven't been published in the Internal Revenue Bulletin "will not be relied on, used, or cited as precedents by Service personnel in the disposition of cases." Information Letter 2001-0105 says an information letter "is advisory only and is not a binding determination by the Internal Revenue Service." They show how the IRS reads the law, and the law itself controls.

The Three Things You'd Have to Show

Information Letter 2010-0175 was written in answer to a question about gym fees. It says a taxpayer may be able to treat them as a medical expense by establishing that:

  1. "A physician diagnosed the taxpayer with a specific disease"
  2. "The taxpayer uses the gym to treat the specific disease"
  3. "The taxpayer would not incur the gym fees but for the specific disease"

The third is the hard one. The letter says a personal expense isn't medical care if the taxpayer "would have paid the expense in the absence of a medical condition."

It also lists the facts that point toward medical care: your motive or purpose for the expense, a physician's diagnosis and recommendation of the item as treatment, the relationship between the treatment and the illness, the treatment's effectiveness, and "the proximity in time to the onset or recurrence of a disease."

Letter 2002-0077 adds that the IRS "will consider additional facts and circumstances, such as the location of the health club, whether an alternative health club is available closer to the taxpayer's home, the types of activities available, the services included in the health club membership fee, and whether the taxpayer would be able to safely fulfill his or her exercise need without having to join a health club."

Here is what we take from those tests. This part is our reading, not something the IRS spells out:

  • A membership you already had is hard to defend: If you were paying for the gym before the diagnosis, it's difficult to say you wouldn't have paid for it but for the disease.
  • "Sole purpose" leaves little room for mixed use: The FAQ says sole purpose. The regulation behind it says "primarily," which is looser, but we'd plan around the stricter word. A family membership, or one you also use for recreation, doesn't fit it well.
  • A gym has to be needed, not just convenient: If you could safely do the prescribed exercise without joining one, the membership is harder to call treatment.

A Doctor's Note Helps, but It Doesn't Decide

A physician's diagnosis and recommendation is one of the facts the IRS looks at, so get it in writing. It isn't the whole test:

  • The FAQ: Exercise for general health isn't a medical expense "even if recommended by a doctor."
  • The Tax Court: Letter 2002-0077 quotes it: "Not every expenditure prescribed by a physician is to be catalogued under this term, nor is every expense that may be incurred for the physical comfort of a party a medical expense."
  • A 2024 IRS alert: In news release IR-2024-65, the IRS said, "Some companies mistakenly claim that notes from doctors based merely on self-reported health information can convert non-medical food, wellness and exercise expenses into medical expenses, but this documentation actually doesn't."

The phrase "letter of medical necessity" doesn't appear in Publication 502, Publication 969 or the FAQ. The closest thing is Publication 502's Health Institute entry, which asks that the treatment be "prescribed by a physician" and that the physician issue "a statement that the treatment is necessary to alleviate a physical or mental disability or illness." So a letter from the physician who is treating you, naming the condition and prescribing the exercise, is what we'd want in the file. A note a company sells you for a fee, based on what you report about yourself, reads to us like the kind the alert describes.

Classes, Trainers and Other Fees at a Gym

  • Physical therapy: Publication 502 says, "You can include in medical expenses amounts you pay for therapy received as medical treatment." As we read it, that covers sessions with a physical therapist whether they're at a clinic or a gym. See our page on physical therapy.
  • Separate weight-loss fees: With a diagnosed disease that weight loss treats, Publication 502 allows "separate fees charged there for weight loss activities." Our page on weight-loss programs covers the rest of that rule.
  • Treatment a physician prescribes: Publication 502's Health Institute entry, quoted above, allows fees for treatment that a physician prescribes and states is necessary. Information Letter 2001-0105 applies that to a gym: "fees for specific services provided by a health club may be deductible" when those requirements are met.
  • Lessons for general health: Publication 502 rules out "dancing lessons, swimming lessons, etc., even if they are recommended by a doctor, if they are only for the improvement of general health."
  • Personal training, yoga, Pilates and fitness apps: None of the IRS sources listed below names them. Our reading is that a class taken for general health is treated like the lessons above, and that any of these would need the same showing as a membership to count as treatment.

Home Exercise Equipment

The IRS addressed equipment in Information Letter 2003-0202, about a taxpayer whose physician recommended home exercise equipment as part of treatment for obesity. It says "taxpayers may deduct exercise expenses, including the cost of equipment to use in the home, if required to treat an illness (including obesity) diagnosed by a physician."

The conditions are close to the ones the letters set for a gym. The purpose has to be "to treat a disease rather than to promote general health," and you have to show that you "would not have paid the expense but for this purpose." Our page on exercise equipment goes through treadmills, bikes and home gyms.

What to Keep

Your HSA provider isn't required to check any of this. Notice 2004-2, Q&A 29, says HSA trustees and custodians "are not required to determine whether HSA distributions are used for qualified medical expenses." The account holder makes that determination and keeps the records. So an HSA card payment going through at a gym doesn't mean the expense qualified.

Publication 969 says you must keep records sufficient to show that the distributions were exclusively to pay or reimburse qualified medical expenses, that the expenses hadn't been paid or reimbursed from another source, and that they hadn't been taken as an itemized deduction in any year. It doesn't list documents. For a gym membership, we'd keep:

  • The diagnosis and the prescription: A dated letter or record from your physician naming the specific disease and prescribing the exercise as treatment, written before the fees you're counting.
  • The membership agreement: With the start date, the fee and who the membership covers.
  • Proof of each payment: Receipts or statements showing the date and amount.
  • Evidence the treatment happened: A physical therapy plan of care, follow-up visit notes, or the gym's attendance records.
  • Anything paid by someone else: If an insurer or an employer wellness program reimburses part of the dues, you can count only what you paid yourself.

If the membership qualifies, you don't have to reimburse yourself right away. Notice 2004-50, Q&A 39, says "there is no time limit on when the distribution must occur," as long as the expense came after your HSA was established and you keep the records. That's the idea behind the HSA shoebox strategy, and our post on the records the IRS expects covers the paperwork. For a gym membership you'd be saving the medical reason along with the receipts, because years from now you'd have to show both.

If the Membership Doesn't Qualify

Publication 969 says that if you take money out for anything other than qualified medical expenses, "the amount you withdraw will be subject to income tax and may be subject to an additional 20% tax." It lists the exceptions: "There is no additional tax on distributions made after the date you are disabled, reach age 65, or die."

On $600 of yearly dues, someone under 65 in the 22% bracket would owe $132 of federal income tax and $120 of additional tax. The additional tax is what makes this worse than paying the gym with ordinary money.

The withdrawal goes on Form 8889. Our guide to reporting HSA withdrawals covers the lines, and the narrow rule for paying back a withdrawal made by mistake.

What Congress Did and Didn't Change

You may have read that gym memberships became HSA eligible in 2025. They didn't.

  • The House version had a fitness provision: H.R. 1, the "One Big Beautiful Bill Act," as passed by the House on May 22, 2025, included section 110208. It would have treated up to $500 a year of "qualified sports and fitness expenses" as medical care for HSAs, or $1,000 on a joint return or for a head of household, for tax years beginning after December 31, 2025. It covered membership at a fitness facility and participation or instruction in physical exercise, and left out one-on-one personal training.
  • The law as enacted doesn't: Public Law 119-21, enacted July 4, 2025, has no such section. Its HSA changes are in sections 71306 through 71308. They cover telehealth before the deductible, bronze and catastrophic marketplace plans, and direct primary care arrangements.
  • The PHIT Act is still a bill: H.R. 2369, the Personal Health Investment Today Act of 2025, and its Senate companion S. 1144 would treat up to $1,000 a year of fitness expenses as medical care, or $2,000 on a joint return or for a head of household, including exercise equipment. Both were introduced on March 26, 2025 and referred to committee the same day. The bill status data the Government Publishing Office publishes for H.R. 2369 and S. 1144 showed no later action on either when we checked on November 18, 2026.

So the FAQ's test is still the rule. The IRS last updated that page on September 23, 2026, and its gym answer still carries the original date of March 17, 2023.

Is a Gym Membership FSA Eligible?

The same test applies, because the FAQ gives one answer for HSAs, FSAs, Archer MSAs and HRAs. Publication 969 adds two differences for a health FSA:

  • The plan has to cover it: For an FSA, "Qualified medical expenses are those specified in the plan that would generally qualify for the medical and dental expenses deduction." Publication 969 also says you must give the FSA "a written statement from an independent third party stating that the medical expense has been incurred and the amount of the expense."
  • You can't save the receipt for later: An FSA reimburses expenses "you incurred during the period of coverage," apart from a grace period or a limited carryover if the plan has one. Reimbursing yourself years later only works with an HSA.

The 2024 alert warns that "FSAs and other health spending plans that pay for, or reimburse, non-medical expenses are not qualified plans," and that "plan administrators are wary of claims that could invalidate their plans." Expect questions on a gym claim.

Common Questions

Does a doctor's note make a gym membership HSA eligible?

Not by itself. The membership has to be bought for the sole purpose of treating a specific disease a physician diagnosed, or for something like prescribed physical therapy. A note from your physician is evidence of that. The FAQ says exercise for general health isn't a medical expense "even if recommended by a doctor."

Which medical conditions qualify?

There's no IRS list. The FAQ's examples for a gym membership are obesity, hypertension and heart disease, plus an injury treated with a prescribed plan of physical therapy. Its answer on weight-loss programs also names diabetes. For a disease, the requirement is that it's a specific one diagnosed by a physician and that the gym is used to treat it.

Can I use my HSA for a gym membership to lose weight?

Only if the weight loss is treatment for a specific disease diagnosed by a physician. Obesity is one, under Revenue Ruling 2002-19. Losing weight for appearance or general health doesn't count.

My HSA card worked at the gym. Does that make it eligible?

No. Notice 2004-2, Q&A 29, says HSA trustees and custodians aren't required to determine whether a distribution paid for a qualified medical expense. You make that call, and your records have to back it up.

Is a treadmill, exercise bike or home gym HSA eligible?

It's judged in a similar way. Information Letter 2003-0202 allows home exercise equipment "if required to treat an illness (including obesity) diagnosed by a physician." See exercise equipment.

Can my HSA pay for my spouse's or child's gym membership?

An HSA can pay for medical care for your spouse and dependents, so whose membership it is doesn't rule it out. The same test applies to that person: a specific disease a physician diagnosed, and a membership bought solely to treat it.

Can I reimburse gym fees I paid in an earlier year?

If they qualified when you paid them and came after your HSA was established, yes. Notice 2004-50, Q&A 39, sets no time limit. You'd need the diagnosis and the physician's recommendation from that time, along with the receipts.

Final Thoughts

A gym membership is a personal expense unless you bought it to treat a specific disease a physician diagnosed, or for something like prescribed physical therapy. If that's your situation, get the diagnosis and the recommendation in writing before you join, and keep them with the receipts. If it isn't, pay for the gym with ordinary money and use the HSA for expenses that plainly count. Our eligibility lookup has the common ones.

Sources

This article is for informational purposes only and does not constitute tax or legal advice. Consult a licensed tax professional for advice specific to your situation.

Shoebox keeps your HSA receipts in one place so they're ready when you reimburse yourself, whether that's next month or years from now. It costs $60 a year, with a 30-day trial and no card required. Start your free trial

Stop Losing Receipts. Start Growing Your HSA.

Keep every eligible receipt organized and ready to reimburse, and let your HSA keep growing for retirement.

Start Free Trial