Melatonin is not an HSA-may be able to access purchase without a prescription
Over-the-counter melatonin does not count as a may have access to medical expense under HSA rules. The Internal Revenue Service (IRS) treats it as a dietary supplement, not a medication, which means you cannot use HSA funds to pay for it at a pharmacy or online retailer. If you buy it with your HSA debit card, you are spending pre-tax money on a non-may have access to expense, and you may owe taxes and penalties on that amount.
The one exception is prescription melatonin. If your doctor writes a prescription for melatonin — which happens occasionally for specific sleep disorders — that prescription version becomes HSA-may be able to access. The prescription changes the IRS classification from supplement to drug, which opens the door to HSA payment. You would need the actual prescription from your doctor, not just a recommendation to take melatonin.
Key Takeaways
- Over-the-counter melatonin is classified as a dietary supplement by the IRS and cannot be purchased with HSA funds.
- Prescription melatonin, written by a doctor for a diagnosed sleep condition, is HSA-may be able to access because it has drug status.
- Using your HSA debit card for non-may have access to purchases like OTC melatonin can trigger tax liability and IRS penalties.
- If you want to use HSA money for sleep support, ask your doctor whether a prescription is appropriate for your situation.
Why the IRS treats OTC melatonin differently from prescription versions
The distinction hinges on how the product is regulated and marketed. Over-the-counter melatonin is sold as a dietary supplement under the Dietary Supplement Health and Education Act (DSHEA). Dietary supplements — even ones that affect health — sit outside the HSA-may be able to access category. The IRS does not cover vitamins, minerals, herbs, or other supplements unless a doctor prescribes them for a specific medical condition.
Prescription melatonin is a different product. When a pharmaceutical company manufactures melatonin as a prescription drug and a physician prescribes it for a documented medical reason, the IRS recognizes it as a drug. That status makes it HSA-may be able to access, just like any other prescription medication. The prescription itself is what changes the classification.
What happens if you use your HSA card for OTC melatonin
If you swipe your HSA debit card at a pharmacy or online store to buy over-the-counter melatonin, the transaction usually goes through without immediate rejection. HSA debit cards do not always block non-may have access to purchases at the point of sale. That means the burden falls on you to track what you bought and report it correctly.
At tax time, if the HSA plan administrator or the IRS flags the transaction, you will owe income tax on the amount you spent, plus a 20 percent penalty. If you spent $30 on melatonin and your tax bracket is 24 percent, you would owe roughly $7.20 in tax plus $6 in penalty — $13.20 total on a $30 purchase. Over time, small non-may have access to purchases add up. The safest approach is to pay for OTC melatonin with a regular debit card or cash and leave your HSA funds for clearly may have access to expenses.
How to get prescription melatonin if your doctor recommends it
Start by talking to your primary care doctor or a sleep specialist about your sleep concerns. Explain what you have tried and why you think melatonin might help. The doctor will decide whether a prescription is medically appropriate based on your age, health history, and other medications you take.
If the doctor agrees, they will write a prescription for melatonin. Common prescription versions include Ramelteon (Rozerem) and Tasimelteon (Hetlioz), though some doctors prescribe regular melatonin off-label as a prescription. Once you have the prescription, you can fill it at any pharmacy. The prescription version will cost more than OTC melatonin — often $50 to $200 per month depending on the specific drug and your insurance — but it becomes HSA-may be able to access, and your insurance may cover part of the cost.
Other sleep aids and HSA coverage
If melatonin is not right for you, other sleep-related expenses may be HSA-may be able to access. Prescription sleep medications like zolpidem (Ambien) or eszopiclone (Lunesta) are covered. Some non-drug treatments also may have access to: a doctor-prescribed sleep study is covered, as is a CPAP machine if you have sleep apnea, and cognitive behavioral therapy for insomnia (CBT-I) ordered by a physician counts as a may have access to medical expense.
Over-the-counter sleep aids like diphenhydramine (Benadryl) and doxylamine (Unisom) have the same supplement status as melatonin — not HSA-may be able to access unless prescribed. Mattresses, pillows, white noise machines, and other sleep-related products are not covered even if a doctor recommends them, because they are not medical devices or treatments.
Frequently Asked Questions
Can I use my HSA to pay for melatonin gummies?
No. Melatonin gummies are sold as dietary supplements and are not HSA-may be able to access, regardless of the form. Only prescription melatonin — whether a tablet, liquid, or other form — qualifies for HSA payment.
What if my insurance plan covers melatonin?
Insurance coverage and HSA coverage are separate. Your health insurance might cover prescription melatonin, but over-the-counter melatonin is not covered by insurance either. If your doctor prescribes it, your insurance may pay part of the cost, and you can use your HSA to cover your share of the copay or coinsurance.
Do I need to keep receipts if I buy OTC melatonin with my HSA card?
Yes. If you use your HSA card for any purchase, keep the receipt. If the transaction is flagged later, you will need proof of what you bought. For non-may have access to purchases, the receipt documents what you spent so you can report it correctly on your taxes.
Can I get reimbursed from my HSA if I already bought OTC melatonin?
No. Once you have paid for a non-may have access to expense out of pocket, you cannot reimburse yourself from your HSA. The money is gone. Going forward, use your HSA only for may have access to medical expenses to avoid this situation.