Can You Use Your HSA or FSA for a Gym Membership?
The short answer
Usually not.
General fitness and wellness expenses do not qualify — the IRS treats a gym membership bought to get fitter or stay healthy as a general-health expense, which is not a medical expense at all. There are exactly two ways it can qualify, and both turn on the word solely:
- it was purchased solely to affect a structure or function of the body — the IRS’s example is a prescribed plan for physical therapy to treat an injury; or
- it was purchased solely to treat a specific disease diagnosed by a physician — the IRS’s examples are obesity, hypertension and heart disease.
A doctor’s recommendation on its own does not make an expense eligible. The IRS excludes exercise aimed at improving general health even if a doctor recommends it.
How much would you save paying with HSA or FSA money?
The saving is the difference the pre-tax payment makes to a 2026return, priced through the same federal engine every calculator on this site uses — not your cost multiplied by a bracket rate. That matters most around the $184,500 Social Security wage base, where a flat 7.65% overstates the payroll saving to nothing.
State coverage for TX: Simplified estimate. State HSA conformity was verified for California and New Jersey only, because those are the two states whose own tax authority sets out a different treatment. For every other state the estimate assumes the state follows the federal treatment — that assumption has not been checked state by state, so confirm it against your state's own return before relying on the state line.
Nothing you type here is stored or sent anywhere. The federal brackets, FICA rates and wage base behind this calculation were last verified 2026-07-28; the dates for this page’s IRS eligibility sources are listed under Sources below.
Key takeaways
- A gym membership bought to get fitter or stay healthy is never an HSA or FSA expense. The IRS calls that general health, and general health is excluded.
- It can qualify when it was bought for the sole purpose of treating a specific disease diagnosed by a physician, or for the sole purpose of a prescribed plan such as physical therapy. “Sole” is the word the rule turns on.
- A doctor's recommendation on its own is not enough. The IRS says exercise for the improvement of general health is excluded even if a doctor recommends it.
- The eligibility test is identical for an HSA, a health FSA, an Archer MSA and an HRA. What differs is the money: FSA money expires, HSA money does not.
- The IRS rule is about the purpose of the expense, not about paperwork. The IRS does not require a “letter of medical necessity” — but documentation helps substantiate a claim, and a plan administrator may require it under its own process.
- Get the wrong answer and an HSA distribution becomes taxable income plus an additional 20% tax before age 65. Your plan administrator decides, so ask before you pay.
Understand your result
Quick answer
The saving is the difference paying pre-tax makes to a 2026 return — federal income tax, state income tax where the state gives relief, and Social Security and Medicare when the money runs through payroll. It is computed through the same federal and state engines the rest of this site uses, not by multiplying your cost by a bracket rate, because a bracket rate gets the payroll half badly wrong for higher earners.
What this includes
- Federal income tax, at the rate the money actually comes off at
- Social Security at 6.2% until wages reach the $184,500 wage base, and nothing after that
- Medicare at 1.45% with no cap, plus the 0.9% Additional Medicare surtax above the threshold
- State income tax, from the same state engine the state calculator uses
- A warning when the yearly cost exceeds the 2026 HSA or health FSA limit
What it excludes
- Whether your expense qualifies — that is the eligibility checker below, and no arithmetic settles it
- Social Security and Medicare on a direct HSA contribution, because those wages were already taxed
- State HSA relief in California and New Jersey, which give none
- Local and city income tax, and employer-side payroll tax
The 2026 rule most people get wrong: pre-tax money is not a 7.65% payroll saving for everyone. Once your wages pass the Social Security wage base there is no Social Security left to save, so the payroll half of the benefit drops from 7.65% to 1.45% — and a flat-rate calculator will tell you otherwise by a wide margin.
How these figures are calculated · IRS nutrition, wellness and general health FAQ · IRS Publication 969 · Tax data last verified
Is your gym membership HSA or FSA eligible?
The IRS answers this question by name, in its FAQ on medical expenses related to nutrition, wellness and general health. Asked whether a gym membership can be paid or reimbursed by an HSA, FSA, Archer MSA or HRA, it says:
“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.”
Read it twice and the test is narrower than it first looks. It is not “a purpose”, it is the sole purpose. A membership you would have bought anyway, which you now also use for a condition, was not bought for the sole purpose of treating it. That is why the third question in the checker above asks whether you would be paying for the gym without the diagnosis — it is the only form of the sole-purpose question a reader can answer about themselves.
Underneath that sits the definition the whole thing rests on. Medical expenses, the IRS says, are “the costs of diagnosis, cure, mitigation, treatment, or prevention of disease, and for the purpose of affecting any part or function of the body”, they “must be primarily to alleviate or prevent a physical or mental disability or illness”, and they “don’t include expenses that are merely beneficial to general health”. Fitness is beneficial to general health. That last clause is what rules out most gym memberships, and it rules them out however genuinely someone wants to get healthier.
Publication 502 — the list both the HSA and the health FSA rules point at — is blunter still: “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.” And in the weight-loss section, where you would most expect an opening, it closes one and opens another: “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.”
What qualifies, and what does not
| Expense | HSA / FSA | On what condition | Source |
|---|---|---|---|
| Gym membership bought for the sole purpose of treating a diagnosed condition | Can qualify | The IRS gives obesity, hypertension and heart disease as its own examples. “Sole purpose” is the whole test. | IRS nutrition & wellness FAQ |
| Gym membership bought for the sole purpose of a prescribed physical therapy plan to treat an injury | Can qualify | The IRS's second route: purchased solely to affect a structure or function of the body. | IRS nutrition & wellness FAQ |
| Gym membership for general fitness, getting in shape, or staying healthy | Does not | The IRS treats this as general health, which is excluded however genuine the motive. | IRS nutrition & wellness FAQ |
| A weight-loss programme treating a disease diagnosed by a physician | Can qualify | Allowed for obesity, diabetes, hypertension or heart disease when a physician has diagnosed it. | IRS nutrition & wellness FAQ |
| A weight-loss programme joined to improve appearance or general wellbeing | Does not | Not a medical expense without the diagnosis behind it. | IRS nutrition & wellness FAQ |
| Fees billed separately for weight-loss activities at a gym, health club or spa | Can qualify | Publication 502 rules out the membership dues but allows separate fees charged there for weight-loss activities. | Publication 502 |
| Nutritional counselling treating a disease diagnosed by a physician | Can qualify | Allowed where it treats a specific diagnosed disease such as obesity or diabetes. | IRS nutrition & wellness FAQ |
| Exercise classes for general health, such as swimming or dancing lessons | Does not | Excluded even when a doctor recommends them, because the purpose is improving general health. | IRS nutrition & wellness FAQ |
| Nutritional supplements and vitamins | Can qualify | Only when recommended by a medical practitioner as treatment for a specific condition diagnosed by a physician. Taken for general health they are out. | IRS nutrition & wellness FAQ |
| Food or drink bought for weight loss | Can qualify | Only if it does not meet normal nutritional needs, it treats an illness, and a physician substantiates the need — and then only the amount above the cost of ordinary food. | IRS nutrition & wellness FAQ |
| Health club dues to improve general health or relieve discomfort unrelated to a medical condition | Does not | Publication 502 excludes these in terms. | Publication 502 |
| Items ordinarily used for personal, living or family purposes | Does not | Out unless used primarily to prevent or alleviate a physical or mental disability or illness. | Publication 502 |
Letter of medical necessity for a gym membership
A letter of medical necessity is a letter from the treating physician setting out the diagnosis, the treatment being recommended, and why that treatment treats that condition. It is worth being clear about what it is not: “letter of medical necessity” is not an IRS term, no IRS form prescribes its contents, and the IRS does not say anywhere that having one makes an expense eligible.
The IRS rule is about the purpose of the expense, and nothing else. A letter cannot turn a general-fitness membership into a medical expense, and no amount of paperwork will. What a letter does is substantiate a claim — it is how you show that the purpose test was met, if anyone asks. Separately, a plan administrator may require documentation of its own under its claims process before it will pay. Those are two different things: one is evidence of eligibility, the other is a condition the plan imposes. Neither creates eligibility.
Which means the letter’s job is narrow and specific: make the sole-purpose test visible to whoever reads it. A letter that says “exercise would benefit this patient” actively hurts the claim, because benefiting general health is the exclusion. These are the elements plans look for.
| Element | Why the plan wants it |
|---|---|
| Patient's full name and date of birth | Ties the letter to the account holder or covered dependent. |
| The specific diagnosed condition, with its ICD-10 code if available | The IRS test needs a specific disease diagnosed by a physician, not a general concern. |
| The date of diagnosis | Shows the diagnosis came before the expense rather than after the claim. |
| The exact treatment recommended — gym membership, prescribed exercise programme, supervised training | A plan cannot approve what the letter does not name. |
| How that treatment treats the condition | This is what separates treatment of a disease from exercise for general health. |
| A statement that the treatment is recommended for the sole purpose of treating the condition | The sole-purpose wording is the test itself, in the IRS's own words. |
| The duration the recommendation covers, with a start and end date | Plans reimburse the period the letter covers, and most ask for a fresh letter each plan year. |
| The prescribing provider's name, credentials, practice address and phone number | The plan verifies the provider. |
| The provider's signature and the date signed | An unsigned letter is routinely rejected. |
LETTER OF MEDICAL NECESSITY Date: ____________________ To: Plan Administrator, [name of HSA / health FSA administrator] Re: [Patient full name], date of birth [__/__/____] Member / account ID: ____________________ I am the treating physician for the patient named above. DIAGNOSIS I have diagnosed this patient with [specific condition], ICD-10 code [______], diagnosed on [date of diagnosis]. TREATMENT RECOMMENDED To treat that condition I am recommending the following: [describe exactly what is being recommended - for example, a supervised exercise programme at a fitness facility, a specific number of sessions per week with a qualified trainer, or a named medically supervised weight-loss programme] HOW THIS TREATS THE CONDITION [Explain in one or two sentences how the recommended activity treats this specific condition - for example, how a supervised programme is being used to reduce blood pressure, manage diagnosed obesity, or rehabilitate a named injury.] SOLE PURPOSE I am recommending this treatment for the sole purpose of treating the condition diagnosed above. It is not being recommended for the patient's general health, general fitness, or general wellbeing. DURATION This recommendation applies from [start date] to [end date], a period of [number] months, after which the patient's condition and this recommendation should be reassessed. PROVIDER Name: ____________________________________ Credentials: ______________________________ Practice name: ____________________________ Address: __________________________________ Phone: ____________________________________ NPI (if applicable): ______________________ Signature: ________________________________ Date: ______________
HSA vs FSA for gym costs
Nothing in the eligibility rule distinguishes the two accounts — an HSA, a health FSA, an Archer MSA and an HRA all run off the same definition of a medical expense. What changes is what happens to the money, how the claim is checked, and what it costs you to be wrong.
| HSA | Health FSA | |
|---|---|---|
| Who can have one | Anyone covered by an HSA-eligible high-deductible health plan, with no other disqualifying coverage. It is yours, not your employer's. | Only through an employer that offers one; there is no individual health FSA. What happens when the job ends depends on the plan — whether expenses incurred after your last day can be reimbursed, and whether continuation coverage is offered and elected, are plan and COBRA questions rather than automatic outcomes. Ask your administrator what your plan does. |
| 2026 contribution limit | $4,400 self-only, $8,750 family, plus $1,000 from age 55. | $3,400 of salary reduction. |
| What happens to money you do not spend | It stays yours and rolls over with no limit and no deadline. It can be invested, and it follows you between jobs. | Use-it-or-lose-it. A plan may allow a carryover of up to $680 into the next plan year, or a grace period of up to two and a half months — but not both. Anything above the carryover is forfeited. |
| Does the plan want the letter before or after? | There is no pre-approval. You decide the expense qualifies, pay it, and carry the burden of proving it if asked. The letter protects you later. | The administrator substantiates claims as they come in, so the letter is normally wanted up front — and many plans want it before they will let the card work at a gym at all. |
| Card payment or reimbursement | Either. A debit card at the point of sale, or pay yourself back from the account later — there is no deadline on reimbursing an expense incurred after the account was opened. | Either, but a gym is a merchant category that cards routinely decline. Expect to pay and claim it back with the letter and the invoice attached. |
| If the claim is refused | The money is already out, so it becomes a non-qualified distribution: taxable income, plus an additional 20% tax if you are under 65. Publication 969 removes the additional tax after you are disabled, reach 65, or die — the income tax stays. | The claim is simply not paid, so the cost stays yours. A card payment already taken is reversed or you are asked to repay the plan; an unresolved amount can be added to your taxable wages. |
| Does the state follow the federal break? | Not everywhere. California and New Jersey give an HSA contribution no state tax relief. | It is a section 125 salary reduction, so the money is left out of the wages reported to the state as well as to the IRS. |
Publication 969 puts the FSA deadline plainly: FSAs are generally "use-it-or-lose-it" plans, and any unused amounts in excess of the carryover amount are forfeited. A plan adopting a carryover provision is not permitted to also provide a grace period with respect to health FSAs.
There are two ways pre-tax money reaches a medical expense, and they are not worth the same. Money taken out of your pay — a health FSA always, an HSA when the employer runs one through a cafeteria plan — never enters the wages reported in boxes 1, 3 and 5 of your W-2. Publication 969 says of the employer side that “Amounts you contribute to your employees' HSAs aren't generally subject to employment taxes.”, and an amount you elect through a cafeteria plan counts as an employer contribution. So it escapes income tax and Social Security and Medicare.
Money you move into an HSA yourself, from an account you have already been paid into, is a deduction rather than an exclusion. Publication 969 confirms you get it without itemising — “You can claim a tax deduction for contributions you or someone other than your employer make to your HSA … even if you don't itemize your deductions on Schedule A (Form 1040)” — but the wages were already taxed for Social Security and Medicare when they were paid, and nothing gives that back. On a $600 a year membership for a mid-income earner, that difference is roughly the price of a month of the membership.
The payroll advantage also has a ceiling that most calculators miss. Social Security stops at the $184,500wage base, so for anyone earning above it the payroll saving on pre-tax money is Medicare only — 1.45%, plus the 0.9% Additional Medicare surtax, rather than the 7.65% a flat rate would suggest. The calculator above handles this by pricing the whole return twice and reporting the difference, which is why its payroll line can read $0 on a high salary while the federal line is large.
With a health FSA the downside is contained: the administrator refuses the claim and you have simply paid for the gym yourself. If a card payment has already gone through you will be asked to substantiate it or repay the plan, and an amount that is never resolved can end up added to your taxable wages.
An HSA is harsher, because the money left the account before anyone checked. A distribution that did not pay a qualified medical expense is added to your income and, says Publication 969, “the amount you withdraw will be subject to income tax and may be subject to an additional 20% tax”. The additional tax has three exits — “There is no additional tax on distributions made after the date you are disabled, reach age 65, or die.” — and reaching 65 is the one most people are counting on. Note what survives all three: the income tax. After 65 a non-medical withdrawal is taxable like a traditional IRA withdrawal, which is a worse outcome than never having claimed the gym at all.
This asymmetry is the practical argument for sending the letter to the administrator first even though an HSA has no pre-approval step. An FSA tells you the answer before the money moves. With an HSA you find out afterwards, on a Form 8889 you have already filed.
How to get a gym membership reimbursed, step by step
- Get the diagnosis first, and in that orderThe test needs a specific disease diagnosed by a physician. A diagnosis dated after you joined the gym invites the obvious question, so see the doctor before you sign up rather than afterwards.
- Ask the doctor to write the recommendation downIt has to say what is being recommended, how that treats the diagnosed condition, that it is recommended for the sole purpose of treating it, and the period it covers. The template above is laid out to collect exactly those facts.
- Send the letter to your plan administrator before you payThis is the step people skip, and it is the only one that tells you the answer in advance. An FSA administrator will usually say yes or no outright. An HSA custodian will not pre-approve, but your employer's benefits team can tell you how the plan has treated similar claims.
- Pay, and keep the paperwork the claim will be judged onKeep the itemised invoice showing what was bought and when, proof of payment, and the letter itself. An invoice that says only “membership” is weaker than one that names a supervised programme.
- Claim it, or reimburse yourselfAn FSA claim goes in with the invoice and the letter attached. With an HSA you can pay the gym from the account directly, or pay from your own pocket and reimburse yourself later — there is no deadline on reimbursing an expense incurred after the account was opened.
- Keep the records for as long as the distribution can be questionedHSA distributions are reported on Form 8889, and you have to be able to show that each one paid a qualified medical expense. Keep the letter and the invoices for as long as that return remains open to examination, and get a fresh letter each plan year the treatment continues.
Frequently asked questions
Can I use my HSA for a gym membership?
Usually no. The IRS allows it only if the membership was bought for the sole purpose of treating a specific disease diagnosed by a physician — obesity, hypertension and heart disease are the IRS's own examples — or for the sole purpose of a prescribed plan such as physical therapy for an injury. Bought to get fitter or stay healthy, it is a general-health expense and not a medical expense at all. The word doing the work is “sole”.
Can I use my FSA for a gym membership?
The eligibility rule is identical: a health FSA, an HSA, an Archer MSA and an HRA all run off the same definition of a medical expense, so the same sole-purpose test applies. What differs is the money. FSA money is a salary reduction that must be spent within the plan year, with at most a $680 carryover or a grace period of up to two and a half months, and never both.
Can I use my HSA for a personal trainer?
Training that treats a specific diagnosed condition can qualify on the same test as the membership, and it is often the stronger claim because it is billed separately and described on the invoice as treatment. Training bought to build muscle or improve performance does not qualify. Publication 502 makes the split explicit for gyms: it rules out the membership dues but allows separate fees charged at the facility for weight-loss activities.
Does a fitness tracker count as an HSA or FSA expense?
A fitness tracker is an item ordinarily bought for personal use, and Publication 502 excludes those unless the item is used primarily to prevent or alleviate a physical or mental disability or illness. Tracking your steps and sleep is general health. A device prescribed to monitor a diagnosed condition is a different claim, and your plan administrator will want the prescription before approving it.
Does a Peloton or home gym equipment qualify for HSA or FSA money?
The same personal-use rule governs, so the answer is usually no. Home exercise equipment bought to improve general fitness is excluded. Equipment whose main purpose is medical care can be a medical expense, and where it is an improvement to a home that raises the property's value only the excess cost counts. Expect to substantiate it, and expect most plans to decline a consumer exercise bike.
What is a letter of medical necessity, and how long is it valid?
It is a letter from the treating physician setting out the diagnosis, the treatment recommended, how that treatment treats the condition, and the period it covers. The IRS does not require one: its rule is about the purpose the expense was incurred for, not about paperwork, and no IRS form prescribes a letter's contents. A letter substantiates a claim rather than creating eligibility, and a plan administrator may require documentation under its own claims process. Validity is set by the letter and the plan, not the IRS; many plans ask for a fresh letter each plan year.
What happens if my HSA claim for a gym membership is denied?
A distribution that did not pay a qualified medical expense is added to your income and, says Publication 969, “may be subject to an additional 20% tax”. The additional tax does not apply to distributions made after you are disabled, reach age 65, or die — but the income tax still does. Catching the mistake in the same year and repaying the amount is a conversation to have with your HSA custodian quickly.
Can my spouse's or child's diagnosed condition make a gym membership eligible?
Yes in principle. An HSA or health FSA can pay qualified medical expenses for you, your spouse and your dependents, and a health FSA can also cover a child under 27. The membership still has to clear the sole-purpose test for the person being treated, and the letter of medical necessity has to name that person rather than the account holder.
Does a doctor's recommendation on its own make the gym eligible?
No, and this is the trap. The IRS answers the question directly for exercise aimed at general health: swimming or dancing lessons are not a medical expense “because the exercise, even if recommended by a doctor, is only for the improvement of general health”. The recommendation has to be treatment of a specific diagnosed condition, and the membership has to have been bought for that purpose alone.
Which states tax HSA contributions?
California and New Jersey are the two whose own tax authorities set out a different treatment. California does not conform to the federal HSA provisions, so the federal deduction is added back on Schedule CA (540) and the account's earnings are taxable as they arise. New Jersey's gross income tax allows a deduction for Archer MSA contributions but not for HSA contributions. A health FSA is unaffected in both: it is a salary reduction, so the money never reaches the state wage figure.
- IRS — Frequently asked questions about medical expenses related to nutrition, wellness and general health →
- IRS Publication 502 — Medical and Dental Expenses →
- IRS Publication 969 — Health Savings Accounts and Other Tax-Favored Health Plans →
- IRS Rev. Proc. 2025-19 — 2026 HSA inflation-adjusted amounts →
- IRS IR-2025-103 — 2026 inflation adjustments, including the health FSA salary-reduction and carryover limits →
- Social Security Administration — Contribution and benefit base →
- IRS Topic no. 751 — Social Security and Medicare withholding rates →
- California FTB — Instructions for Schedule CA (540) →
- NJ Division of Taxation — Income Tax: Deductions →
- Page sources last read: 2026-10-24. The date the IRS pages cited below were read for this page, and the date the health FSA carryover figure was taken from IR-2025-103.
- Federal tax constants last verified: 2026-07-28. The brackets, FICA rates, Social Security wage base and the 2026 HSA and health FSA contribution limits the calculator uses, verified against their own sources on that date and shared with every other calculator on this site.
- IRS FAQ last reviewed by the IRS: 2026-09-23. The IRS’s own review date on the nutrition, wellness and general health FAQ that governs the eligibility rule quoted above. It is the IRS’s date, not ours.
Publication 502 and Publication 969 are cited in their 2025 edition. The 2026 contribution figures come from Rev. Proc. 2025-19 and IR-2025-103. IRS — Frequently asked questions about medical expenses related to nutrition, wellness and general health is the source of the medical-expense definition quoted above.