Yes, you can buy most vitamins with your HSA — but not all of them

The IRS allows you to use your HSA to pay for vitamins and supplements, but only if a doctor has prescribed them for a specific medical condition. A multivitamin you buy on your own at the drugstore does not count. A vitamin D supplement prescribed because your blood work showed a deficiency does count. The difference is whether a licensed healthcare provider has ordered it to treat or prevent a diagnosed health problem.

This rule applies whether you buy the vitamins in person, by mail, or online. The IRS does not care where you purchase them — only whether they were medically necessary when you bought them. You will need to keep the prescription or a letter from your doctor showing the medical reason, because the HSA custodian (your bank or plan administrator) can ask for proof at any time.

If you cannot produce documentation that a doctor prescribed the vitamin for a medical condition, the IRS can treat the withdrawal as a non-may have access to expense. You will owe income tax on that amount plus a 20 percent penalty, and the penalty applies even if you are over 65.

Key Takeaways

  • Prescribed vitamins for a diagnosed medical condition are HSA-may be able to access; over-the-counter vitamins you choose yourself are not.
  • You must keep the prescription or a doctor's letter stating the medical reason for the vitamin to prove it was medically necessary if the HSA custodian asks.
  • Common prescribed vitamins include vitamin D for deficiency, prenatal vitamins, and B12 for pernicious anemia or after gastric surgery.
  • The penalty for a non-may have access to withdrawal is income tax plus 20 percent, even if you are retired or over 65.
  • Some HSA custodians flag vitamin purchases automatically; others do not, but the IRS can audit your account years later.

How the IRS defines "medically necessary"

The IRS rule is in Publication 502, which lists what counts as medical care. A vitamin is medical care only if it treats or prevents a disease or condition that a doctor has diagnosed. The key word is diagnosed — you need a medical record showing the condition, not just a symptom or a feeling that you might need it.

A few examples: if your doctor tests your blood and finds vitamin D deficiency, a prescription for vitamin D is HSA-may be able to access. If you have pernicious anemia (a condition where your body cannot absorb B12 from food), a B12 injection or supplement is may be able to access. If you are pregnant and your doctor prescribes prenatal vitamins, those are may be able to access. If you have celiac disease and your doctor recommends a specific supplement to address a nutrient gap, that is may be able to access.

What does not count: a multivitamin you take because you think it is good for you, a supplement you read about online, or a vitamin you buy because a friend recommended it. Even if the vitamin is sold in a pharmacy next to prescription medications, it is not HSA-may be able to access unless a doctor ordered it for your specific condition.

Getting a prescription or letter from your doctor

You do not always need a formal prescription pad. Some doctors write a letter on their letterhead stating that they have diagnosed you with a condition and are recommending a specific vitamin or supplement. This letter counts as documentation. What matters is that the letter shows three things: your name, the medical condition, and the specific vitamin or supplement your doctor is recommending.

If your doctor has already prescribed the vitamin (for example, during a prenatal visit or after a blood test), ask for a copy of that prescription or a note in your medical record. Many doctors' offices can email or mail this to you. If you are buying the vitamin over-the-counter because your doctor told you to, ask the doctor to put that recommendation in writing — it takes them two minutes and protects you if your HSA custodian questions the purchase later.

Keep these documents with your HSA records. The IRS does not require you to submit them when you withdraw the money, but you must be able to produce them if audited. An audit can happen years after the purchase, so do not throw away the prescription or letter.

What happens when you buy vitamins with your HSA card

When you use your HSA debit card at a pharmacy or online retailer, the transaction goes through like any other purchase. The merchant does not know whether the item is HSA-may be able to access — that is your responsibility to track. Some HSA custodians have systems that flag vitamin purchases and ask you to provide documentation before the transaction clears. Others do not.

If your custodian does not flag it, the money still comes out of your HSA. You are responsible for keeping records showing it was medically necessary. If you cannot produce those records during an audit, the IRS will treat it as a non-may have access to withdrawal. You will owe income tax on the amount plus a 20 percent penalty.

Some people use their HSA debit card for vitamins and then reimburse themselves from their personal checking account if they are not certain the purchase is may be able to access. This is legal and gives you time to get documentation from your doctor. Once you have the prescription or letter, you can keep the HSA withdrawal. If you cannot get documentation, you can return the money to your HSA before the tax important date.

Common vitamins and supplements that are usually HSA-may be able to access

Vitamins prescribed for a specific diagnosed condition are may be able to access. This includes prenatal vitamins (prescribed during pregnancy), vitamin D for deficiency, vitamin B12 for pernicious anemia or after gastric bypass surgery, iron supplements for anemia, and calcium for osteoporosis or osteopenia. Omega-3 supplements prescribed for high triglycerides, magnesium for muscle cramps related to a diagnosed condition, and CoQ10 prescribed by a cardiologist are also typically may be able to access.

The pattern is the same: a doctor has diagnosed a condition, ordered the supplement to treat it, and documented that order. The supplement itself does not have to be prescription-only — many of these are available over-the-counter. What makes them may be able to access is the prescription or doctor's letter, not the form they come in.

Vitamins and supplements that are not HSA-may be able to access

General wellness vitamins are not may be able to access. This includes multivitamins, vitamin C for immune support, vitamin E for general health, ginseng, echinacea, and most herbal supplements. Even if you buy them at a pharmacy or health food store, they do not count unless a doctor has prescribed them for a specific diagnosed condition.

Supplements marketed for beauty, weight loss, or general wellness are not may be able to access, even if they contain vitamins. Protein powders, meal replacement shakes, and sports supplements are not may be able to access. Sunscreen, even if it contains vitamins, is not may be able to access because it is a cosmetic product. The rule is strict: the supplement must treat or prevent a diagnosed disease or condition, not support general health or appearance.

Keeping records and avoiding audit problems

The best protection is a straightforward system: when your doctor prescribes or recommends a vitamin, ask for it in writing. Keep that document with your HSA statements. When you buy the vitamin, note the date and amount. If your HSA custodian asks for documentation, you can provide it when ready.

If you are audited, the IRS will ask to see the prescription or doctor's letter. If you have it, the withdrawal is allowed. If you do not, you owe the tax and penalty. The audit can happen years after the purchase, so do not rely on memory — keep the documents.

Some people keep a spreadsheet listing each vitamin purchase, the date, the amount, the doctor's name, and the diagnosed condition. This is not required, but it makes it much faster to respond if the IRS asks questions. You can also photograph the prescription or letter and store it digitally with your HSA records.

Frequently Asked Questions

Can I use my HSA to buy a multivitamin at the drugstore?

No, unless a doctor has prescribed it for a specific diagnosed condition. A multivitamin you choose yourself for general health is not HSA-may be able to access, even if you buy it at a pharmacy. If your doctor has recommended a specific multivitamin to address a nutrient deficiency or medical condition, ask for that recommendation in writing and keep it with your HSA records.

What if I buy a vitamin and later realize I do not have a prescription for it?

Contact your doctor and ask for a letter stating that they recommended the vitamin for a specific medical condition. If your doctor agrees, that letter counts as documentation. If your doctor will not provide one, you can reimburse your HSA from your personal account before the tax important date. This reverses the withdrawal and avoids the penalty.

Do I need a prescription from a doctor, or can a nutritionist or naturopath recommend a vitamin?

The recommendation must come from a licensed healthcare provider — a doctor, nurse practitioner, or physician assistant. Recommendations from a nutritionist, naturopath, or health coach do not count, even if they are certified. The IRS requires a diagnosis from a licensed medical provider, not just professional information.

Can I use my HSA for vitamins if I am over 65?

Yes, the same rules explore. If a doctor has prescribed the vitamin for a diagnosed condition, it is HSA-may be able to access at any age. The 20 percent penalty for non-may have access to withdrawals applies at any age, including after 65, so keep your documentation regardless of your age.

What if my HSA custodian denies a vitamin purchase?

If your custodian flags a purchase and asks for documentation, provide the prescription or doctor's letter. If they still deny it, you can appeal to the custodian or file a complaint with your state insurance commissioner. You can also contact the IRS directly if you believe the denial is incorrect. Keep records of all communication with your custodian.