Skip to content

Are Magnesium Supplements HSA/FSA Eligible?

  • Author:Kennedy Coleman

  • Published:

    August 12, 2026

  • Last Updated:

    September 10, 2026

Person taking a supplement, HSA/FSA eligible for qualified customers

Key Takeaways

  • Magnesium supplements aren't automatically HSA/FSA eligible: Products used for general wellness generally don't qualify, but a magnesium supplement may qualify when a licensed practitioner ties it to a diagnosed condition, like magnesium deficiency, chronic migraine, or a sleep disorder, and the applicable substantiation requirements are met.

  • Eligibility comes down to the IRS "but for" test: The purchase has to be something you wouldn't have made but for a diagnosed medical condition. That's the line between everyday nutrition and a reimbursable medical expense.

  • Truemed helps simplify the process: Shop a participating magnesium supplement, complete a private health intake survey, and, if you qualify, an independent clinician can provide the appropriate medical documentation for your purchase.

Shop Eligible Products

Ready to unlock your HSA/FSA funds for qualified medical expenses?

Shop All

This guide breaks down the ins and outs of magnesium HSA/FSA eligibility, the IRS rule that determines whether your purchase may qualify, and how to use Truemed to find out if you may be eligible for reimbursement.

Are magnesium supplements HSA/FSA eligible?

Magnesium supplements are not automatically HSA/FSA eligible the way a prescription medication is. Under IRS Publication 502, supplements are generally treated as general wellness expenses unless they're recommended by a clinician to treat, mitigate, or prevent a specific diagnosed condition.

That's where a Letter of Medical Necessity (LMN) comes in: it's the document that certifies that a magnesium supplement purchase is not for general nutrition or health but rather serves as a substantiated medical expense.

Wondering about other supplements?
See our guide to Are Supplements HSA Eligible? to learn which supplements may qualify for HSA/FSA reimbursement and what documentation you may need.

What is the "but for" test?

The IRS generally only allows a medical expense deduction (and by extension, HSA/FSA reimbursement) for costs you would not have incurred "but for" a diagnosed medical condition. A magnesium supplement bought for general wellness fails this test.

The same supplement, recommended by an independent licensed practitioner to manage a documented condition like a diagnosed nutritional deficiency or perhaps a sleep disorder, can pass it because the purchase is now tied to treating that condition rather than everyday nutrition.

Conditions that may be cited in LMNs for magnesium supplementation include:

  • Diagnosed magnesium deficiency (hypomagnesemia)
  • Chronic migraine
  • Muscle cramps or spasms
  • Sleep disorders and sleep architecture conditions
  • Irritable bowel syndrome (IBS) and related digestive conditions
  • Premenstrual syndrome (PMS) and hormonal conditions
  • Diagnosed anxiety
  • Hypertension

If an independent licensed clinician determines that magnesium supplementation is medically necessary for one of these conditions, your purchase may qualify for HSA/FSA spending.

How it works with HSA/FSA and Truemed

As discussed previously, you might be able to purchase a magnesium supplement with your HSA or FSA dollars. Magnesium supplements might be eligible expenses for HSA or FSA holders if the product is used to address a specific medical condition and supported by the necessary documentation.

To purchase a magnesium supplement with your HSA or FSA, you might need a Letter of Medical Necessity (LMN). An LMN is a formal document from a licensed healthcare provider that explains why a certain product, treatment, or service is necessary to treat, mitigate, or prevent a medical condition.

Truemed* specializes in helping you maximize your HSA and other health-related benefits (such as an FSA):

  • First, you can check whether a product or service is normally considered a qualifying medical expense or whether you might need an LMN.
  • Complete a health intake survey that will be reviewed by an independent licensed clinician.
  • Buy the item; either pay directly with your HSA/FSA card at checkout, or pay with a regular credit/debit card and seek HSA/FSA reimbursement afterward.
  • The independent licensed clinician will review your medical history, and if you qualify, will issue an LMN. Truemed itself does not make eligibility determinations.

Truemed also offers support in the event you get a denial of reimbursement and need to provide substantiation documentation.

*Truemed is for qualified customers. HSA/FSA tax savings vary. Learn more at truemed.com/disclosures

Start Saving 30% & Shop Now

FAQ

Magnesium supplements may be HSA/FSA eligible for qualified customers when a Letter of Medical Necessity (LMN) from an independent licensed practitioner ties the purchase to a diagnosed condition, such as magnesium deficiency, chronic migraine, or a sleep disorder. General wellness use does not qualify.

In most cases, yes. Because supplements aren't automatically qualified medical expenses under IRS Publication 502, an LMN from a licensed practitioner is what documents that a specific magnesium supplement is being used to manage a diagnosed condition.

Stay in the loop

See what you can do with your HSA/FSA.

Join 1.5 million Americans who have routed their healthcare dollars toward root cause health via Truemed's HSA/FSA marketplace.

  • New product announcements

  • Sales and special offers

  • Tips for utilizing your HSA/FSA

Editorial Standards
At True Medicine, Inc., we believe better health starts with trusted information. Our mission is to empower readers with accurate and accessible content grounded in peer-reviewed research, expert insight, and clinical guidance to make smarter health decisions. Every article is written or reviewed by qualified professionals and updated regularly to reflect the latest evidence. For more details on our rigorous editorial process, see here.