Best sleep supplements for insomnia: what the evidence says
The best sleep supplements for insomnia are, honestly, a short list with modest evidence: melatonin helps some people with a shifted body clock but is not recommended by the American Academy of Sleep Medicine for ordinary chronic insomnia, and magnesium, glycine, valerian and others have small or low-quality trials. None has been shown to beat CBT-I, the first-line treatment. If you want to try one, the safe way is one product, a set trial of two to four weeks, and a check with a pharmacist or doctor first. This is not medical advice.
Before you buy anything, our free 2-minute sleep quiz shows how long you lie awake and gives a starting sleep window, which does more for most people than a bottle. Below: what the guidelines say, a table of each supplement, how to run a fair trial, what not to combine, the over-the-counter sleep pills to avoid, and what works better.
What the guidelines say about sleep supplements
Two bodies matter most. The American College of Physicians (2016) recommends CBT-I as the first treatment for chronic insomnia and medicine only if that fails or is not available. The American Academy of Sleep Medicine's 2017 guideline on medicines for chronic insomnia lists drugs it suggests for specific problems, and it suggests against melatonin and against valerian for chronic insomnia, in both cases as a weak recommendation based on low-quality evidence. Supplements are sold as foods, not medicines, so in the US they do not need approval for effectiveness before sale, and quality varies.
That does not mean a supplement can never help; it means the proof is thin. Treat any of them as a low-cost experiment rather than a treatment plan.
Sleep supplements compared
| Supplement | What the evidence looks like | Main cautions |
|---|---|---|
| Melatonin | Best for body-clock problems: jet lag, shift work, a late sleep phase. Small average benefit in ordinary insomnia, and the AASM guideline suggests against it for chronic insomnia | Doses in products vary a lot; can cause morning grogginess, vivid dreams; check interactions. See melatonin stopped working |
| Magnesium (glycinate, citrate) | A few small trials, some in older adults, and reviews rate the evidence as low quality | Too much causes diarrhea; kidney disease needs a doctor first |
| Glycine | Small studies from Japan found people felt better rested after about 3 g before bed; few trials | Little long-term data |
| Valerian | Mixed results across trials; the AASM suggests against it | Quality differs a lot between brands; rare liver reports; mixing with sedatives |
| Chamomile, lavender | Small or mixed trials; chamomile tea is a pleasant ritual with little downside | Allergy to related plants (ragweed) |
| L-theanine | Small trials on relaxation; not established for insomnia | Few reported at normal doses |
| Kava | Used for anxiety; some liver safety warnings in several countries | Liver injury risk; avoid with alcohol or liver disease |
| CBD | Early research only; products are not standardized | Interacts with some medicines; product contents often differ from the label |
We did not rank these by "best" because no head-to-head trial lets anyone do so honestly. A roundup that gives star ratings is selling something.
Melatonin: who might benefit
Melatonin is a timing signal more than a sedative. It makes the most sense when your clock, not your sleep drive, is the problem: you travelled across time zones, work nights, or fall asleep at 3 a.m. and wake at 11. In those cases a small dose taken at the right time can nudge the clock, and low doses (often 0.5 to 1 mg in studies on timing) can do as well as high ones. Taken at bedtime for ordinary insomnia, the average gain is small. If you are weighing it, how to fix your sleep schedule shows the light and wake-time steps that do the same job without a pill.
Magnesium for insomnia
Magnesium is popular because low intake is common and the pill is cheap. The trials are small, short and often in older adults or people with low levels, and reviews call the evidence low quality. If you try it, the forms called glycinate and citrate are the common ones; oxide is mostly a laxative. Stay at or under the supplement upper limit (350 mg a day from supplements for adults in the US, according to the NIH Office of Dietary Supplements), and ask a doctor first if you have kidney disease or take diuretics, some antibiotics or osteoporosis drugs.
Over-the-counter sleep aids to avoid
Many products labeled "PM" or "nighttime" contain diphenhydramine or doxylamine, which are antihistamines. They can cause next-day fog, dry mouth, constipation and urinary trouble, and tolerance to the sleep effect can build in days. The American Geriatrics Society's Beers Criteria list these as drugs to avoid in older adults. If you take them often, that is a reason to see a doctor about the sleeping problem itself, not a reason to keep taking more.
How to run a fair trial of one supplement
- Check first. Ask a pharmacist about interactions with your medicines, and check with a doctor if you are pregnant, breastfeeding, over 65, or have liver, kidney or heart disease.
- Keep a diary for a week with nothing new. Use a sleep diary for minutes to fall asleep, minutes awake in the night and wake time.
- Change one thing. One product, one dose, starting low. Start no other new habit at the same time, or you cannot tell which worked.
- Choose a tested product. Look for a third-party seal such as USP or NSF on the label. It checks that what is in the bottle is what the label says.
- Give it two to four weeks and then compare the diary with the week before. If the numbers did not move, stop it. Do not raise the dose.
- Do not mix. Stacking melatonin, magnesium, valerian and an antihistamine means you cannot tell what helped or what caused a side effect.
What works better than any bottle
CBT-I changes the things that keep insomnia going: too much time in bed, a changing wake time, a bed linked with being awake, and worry about sleep. In the trials it shortens the time to fall asleep and the time awake at night, and the gains last after treatment stops, unlike medicines. See does CBT really work for insomnia? and CBT-I vs medication. A few of the habits are free and quick:
- One wake time every day, weekends included.
- Time in bed close to the sleep you really get, from your diary: sleep restriction for insomnia.
- Up after about 20 minutes awake and back when sleepy: stimulus control therapy.
- Caffeine cut-off by early afternoon and alcohol away from bedtime. See sleep hygiene tips for what actually helps.
Best sleep supplements for insomnia by problem
If you still want to choose, match the product to what keeps you awake rather than to a ranking. This is a way to think, not a prescription.
- Can't fall asleep until very late, and you sleep fine once you do: a clock problem. Fix the wake time and morning light first; a small melatonin dose a few hours before your target bedtime is the one supplement with a logical fit.
- Mind racing at bedtime: a supplement will not turn thoughts off. A worry list earlier in the evening and a mental exercise in bed do more; see cognitive shuffling.
- Waking at 3 a.m.: usually not a supplement problem. Alcohol, a long time in bed and stress are the common drivers; see waking up at 3 a.m..
- Waking soaked in sweat: a medical and temperature question first; see night sweats and can't sleep.
- Leg cramps or tightness: ask a doctor about magnesium or iron status instead of guessing.
Notice that for most nights awake, the best sleep supplements for insomnia are not the answer; the pattern is.
When to see a doctor instead
- You snore loudly, gasp or wake choking, or are very sleepy in the day: see why you keep waking up choking.
- Your legs feel restless at night, or pain wakes you.
- Low mood, constant worry or thoughts of self-harm come with the sleep trouble (in the US you can call or text 988 at any hour).
- You have needed a sleep aid most nights for more than a few weeks.
- You take prescription medicine and want to add a supplement.
Our online sleep doctor guide covers who to see and what it costs.
Questions people ask
What is the best supplement for insomnia?
None is proven best. Melatonin has the clearest role for body-clock problems, and magnesium and glycine have small trials. CBT-I has stronger evidence than any of them.
Is magnesium or melatonin better for sleep?
They do different things. Melatonin shifts timing; magnesium is a mineral with a weak evidence base for sleep. Choose by your problem, not by popularity.
Can I take sleep supplements every night?
Many people do, but trial it for a few weeks and review. Using one for months without a plan hides a problem that may need a different fix.
Do natural sleep aids work?
"Natural" says nothing about benefit or safety. Kava and some herbs have real risks. Judge by evidence and your diary.
Is it safe to mix sleep supplements?
It is best not to. Add one at a time and check interactions first.
Start with the free part
Do the free thing first: take the sleep quiz for your starting numbers and keep a diary for a week. More on all sleep guides.
Sources: Qaseem A et al., ACP guideline on management of chronic insomnia, Annals of Internal Medicine, 2016; Sateia MJ et al., AASM clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults, J Clin Sleep Med, 2017; NIH Office of Dietary Supplements, magnesium fact sheet; NIH National Center for Complementary and Integrative Health, sleep disorders and herbal products pages; American Geriatrics Society Beers Criteria, 2023. Product formulations and evidence change; check with a pharmacist. Not medical advice.