Guide 01 of 08
Can I use my HSA for a gym membership?
Almost never — and the exceptions are narrower than most people assume.
By Iliya Iliev · Last verified August 2026
In almost every case, no. Under Internal Revenue Code Section 213(d), an HSA can only reimburse expenses incurred primarily for the diagnosis, cure, mitigation, treatment, or prevention of disease. A gym membership is treated as a general health expense — something that benefits your overall wellbeing rather than treating a specific, diagnosed condition. IRS Publication 502 lists health club dues explicitly under expenses that are not deductible medical expenses, and the same test applies to HSA withdrawals.
The narrow exception is when a licensed physician diagnoses a specific medical condition — obesity, hypertension, a cardiac condition — and prescribes an exercise program as treatment. Even then, the IRS has historically required that the cost be one you would not have otherwise incurred and that it not represent a personal, capital, or family expense. A general-admission gym membership rarely clears this bar, because the same facility also serves your everyday fitness and social use, which the IRS treats as an inherently personal benefit even when a program is attached.
To document a legitimate exception, you would typically need a written letter of medical necessity from your provider naming the diagnosis, explaining why the specific program (not just "exercise more") is the recommended treatment, and specifying the duration. Some fitness-therapy programs tied to physical therapy, cardiac rehabilitation, or a supervised weight-management clinic can qualify because they are structured as treatment rather than recreation. A standard commercial gym membership, fitness app subscription, home gym equipment for general fitness, or workout clothing does not qualify, regardless of how beneficial it is to your health.
If you withdraw HSA funds for a non-qualified expense like a standard gym membership, the amount is added to your taxable income for the year and, if you're under 65, hit with an additional 20% penalty on top of ordinary income tax. There's no gray area once you're audited — the burden is on the account holder to substantiate that an expense was a qualified medical expense, so keep the letter of medical necessity and receipts on file if you ever claim this exception.
Before assuming an expense is covered, it's worth checking how much room you actually have left to contribute this year, since misclassified withdrawals reduce your available balance for expenses that clearly do qualify — doctor visits, prescriptions, dental and vision care, and HSA-eligible over-the-counter items.
Source
IRS Publication 502, "What Expenses Are Not Includible"Checked against the source document above. Report an error.
Run the numbers
HSA Contribution Calculator
Frequently asked questions
My doctor told me to exercise more — does that make my gym membership HSA-eligible?
No — and this is the detail most people get wrong. A general recommendation to exercise for your overall health doesn't make a gym membership a qualified medical expense, even in writing: the IRS treats exercise "for the improvement of general health" as a personal cost, not medical care. The narrow exception is when a physician diagnoses a specific disease — such as obesity, hypertension, or heart disease — and prescribes a specific program to treat it. Even then, it's the separate fee for that program that can qualify, not your regular gym membership dues.
Can I just pay for my gym with my HSA card — like at Planet Fitness?
You often can swipe an HSA debit card at a gym — but a charge going through isn't the same as the expense being eligible. HSA cards have no gatekeeper checking each purchase, so the payment can clear even when it shouldn't. If the membership isn't a qualified medical expense, paying with HSA funds turns it into a taxable withdrawal, plus a 20% penalty if you're under 65. Whether the gym accepts your card never decides eligibility — the IRS rules do. When in doubt, pay the gym with ordinary money and keep your HSA for costs you're sure about.
So what fitness or wellness costs can I actually use my HSA for?
More than you might think — as long as the cost treats or prevents a specific medical condition rather than supporting general fitness. Examples that can qualify: a weight-loss program prescribed to treat a physician-diagnosed disease like obesity, physical therapy, and equipment your doctor prescribes for a condition. What doesn't qualify: your everyday gym membership, general fitness classes, and wellness gadgets bought to stay healthy. The dividing line is always the same question — is this treating a diagnosed medical problem, or is it for general well-being?
What happens if I already paid for a gym membership with my HSA by mistake?
First, don't panic — it's a common mix-up, and there's often a way to fix it. Left as-is, the charge counts as a non-qualified distribution: you'll owe income tax on it, plus a 20% additional tax if you're under 65 (that penalty goes away at 65). But the IRS lets you correct a genuine mistake in limited cases — if you honestly believed the expense qualified, you can return the money to your HSA, generally by April 15 of the following year, provided your HSA provider allows it (they aren't required to). Or, if you had other unreimbursed qualified medical bills that same year, you can treat the withdrawal as paying for those instead. Keep your documentation either way.
This guide provides general information for informational purposes only, based on publicly published IRS guidance. It is not tax, legal, or financial advice. Verify your specific situation with a tax professional or your plan administrator.