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:

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?

What you would be paying for
$
The membership fee itself. Enter 0 if only a programme is being prescribed.
$
Billed separately from the membership — supervised training, or a medically supervised weight-loss programme.
Which account, and whose tax
2026 HSA limit: $4,400 self-only, $8,750 family, plus $1,000 from age 55.
$
Gross pay, before the standard deduction and before any pre-tax election. The calculator works out your bracket from it, so there is nothing to look up.
California and New Jersey give an HSA contribution no state tax relief.
Paying pre-tax, 2026
You could save about
$178
per year on $600 of cost
A potential estimate, not an entitlement. It assumes the expense qualifies under the IRS rules. Most gym memberships do not. Eligibility is decided separately — by the IRS rules and by your plan administrator — and nothing below this line changes that.
Federal income tax saved$132
State income tax saved$0
Preliminary state estimate — full 2026 state verification pending.
Social Security and Medicare saved$46
Social Security $37 · Medicare $9
Total saved$178
Like this much off your gym
29.6%
Real cost per month
$35
Real cost per year
$422
Check whether your expense qualifies in the eligibility checker below, and confirm with your plan administrator before you pay.
What this figure is

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.

Private by design. No SSN, no bank login, no IRS login, no payroll password. No account is required. Calculator inputs are processed locally in your browser and are not transmitted to or stored by TaxSaveIQ. Standard website analytics and technical logs may still apply. See our Privacy Policy. Educational estimate only.

Key takeaways

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?

Quick eligibility checker
1. Has a physician diagnosed you with a specific medical condition?
The IRS test is built on a specific disease diagnosed by a physician — obesity, hypertension and heart disease are its own examples. Wanting to get fitter is not a diagnosis.
The recommendation has to be aimed at treating the diagnosed condition. The IRS says exercise recommended by a doctor purely for general health still does not count.
3. Would you NOT be paying for this membership if you did not have that condition?
This is the sole-purpose requirement in the reader's own terms. If you would have joined anyway, the membership is not for the sole purpose of treating the condition.
Answer all three to see where you stand
Each question maps to one part of the IRS test, so a verdict is only meaningful once all three are answered.
Your plan administrator makes the final decision — check before paying.
What the IRS actually says

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.”

That sentence is the most useful one on this page. The IRS will allow a weight-loss programme treating a diagnosed disease, and Publication 502 will allow fees billed separately at a gym for weight-loss activities — while still refusing the membership dues themselves. If your doctor is prescribing something, ask the facility to invoice the programme separately from the membership. A separately billed, named programme is a far stronger claim than a line that says “monthly membership”.

What qualifies, and what does not

Every row below is what an IRS source says, not what plans tend to do
“Can qualify” means the IRS allows it on the condition stated in the same row, not that it is automatically approved. Sources: the IRS FAQ on nutrition, wellness and general health, and Publication 502.
ExpenseHSA / FSAOn what conditionSource
Gym membership bought for the sole purpose of treating a diagnosed conditionCan qualifyThe 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 injuryCan qualifyThe 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 healthyDoes notThe 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 physicianCan qualifyAllowed 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 wellbeingDoes notNot 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 spaCan qualifyPublication 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 physicianCan qualifyAllowed 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 lessonsDoes notExcluded even when a doctor recommends them, because the purpose is improving general health.IRS nutrition & wellness FAQ
Nutritional supplements and vitaminsCan qualifyOnly 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 lossCan qualifyOnly 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 conditionDoes notPublication 502 excludes these in terms.Publication 502
Items ordinarily used for personal, living or family purposesDoes notOut unless used primarily to prevent or alleviate a physical or mental disability or illness.Publication 502

Letter of medical necessity for a gym membership

What it is, and what plans usually look for

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.

ElementWhy the plan wants it
Patient's full name and date of birthTies the letter to the account holder or covered dependent.
The specific diagnosed condition, with its ICD-10 code if availableThe IRS test needs a specific disease diagnosed by a physician, not a general concern.
The date of diagnosisShows the diagnosis came before the expense rather than after the claim.
The exact treatment recommended — gym membership, prescribed exercise programme, supervised trainingA plan cannot approve what the letter does not name.
How that treatment treats the conditionThis 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 conditionThe sole-purpose wording is the test itself, in the IRS's own words.
The duration the recommendation covers, with a start and end datePlans 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 numberThe plan verifies the provider.
The provider's signature and the date signedAn unsigned letter is routinely rejected.
Template to take to your doctor
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: ______________
Your doctor decides what the letter says. The square brackets are the parts only they can fill in, and a letter that leaves the sole-purpose paragraph out is the one plans turn down most often.

HSA vs FSA for gym costs

Same eligibility test, very different money

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.

 HSAHealth FSA
Who can have oneAnyone 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 spendIt 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 reimbursementEither. 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 refusedThe 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.

Why the payroll question changes the number so much

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.

If you get it wrong

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

  1. Get the diagnosis first, and in that order
    The 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.
  2. Ask the doctor to write the recommendation down
    It 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.
  3. Send the letter to your plan administrator before you pay
    This 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.
  4. Pay, and keep the paperwork the claim will be judged on
    Keep 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.
  5. Claim it, or reimburse yourself
    An 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.
  6. Keep the records for as long as the distribution can be questioned
    HSA 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.

Sources & verification
Dates on this page

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.

Related calculators & guides
Form 8889 (HSA) — Instructions
Where every HSA distribution is reported
Federal Tax Calculator 2026
The whole return, HSA and FSA included
Year-End Tax Moves Checklist
Spend the FSA before it expires
2026 Tax-Saving Strategies by Income
Where the HSA sits in the order
Tax Refund Estimator 2026
What pre-tax money does to the refund
Tax Savings Action Plan
Every move ranked for your situation
Educational estimate only. This page explains the IRS rules on gym and fitness costs and estimates the tax a pre-tax payment would save, for 2026, on federal and state income tax and on Social Security and Medicare. It cannot decide whether your expense qualifies, it does not model local or city income tax, and the state figure assumes your state follows the federal treatment except in the two states named above, which was not checked state by state. Your plan administrator decides every claim. Confirm your position with a qualified tax professional or your benefits administrator before paying. Full disclaimer.