Walk down any supplement aisle and you will find a wall of sleep aids promising deep, restful nights. Some genuinely help, most are mild, and a few are mostly marketing. The trick is matching the right supplement to your actual problem, and not expecting any of them to do the job that good sleep habits do. Here is an honest, evidence-based ranking of the sleep supplements worth knowing, the right dose and timing for each, why low-dose melatonin beats the megadoses on the shelf, and what to skip.

The short version

  • The biggest wins are not in a bottle. A consistent schedule, morning light, a cool dark room, and limiting late caffeine, alcohol, and screens do more than any supplement. For chronic insomnia, CBT-I is the proven first-line treatment.
  • Melatonin is the most useful and the most misused. It is a clock signal, not a sedative, and 0.5 to 1 mg often works better than the 5 to 10 mg sold in stores.
  • Magnesium, L-theanine, glycine, and ashwagandha have reasonable evidence, especially for stress and anxiety-driven sleeplessness.
  • Tart cherry and apigenin are mild at best, and valerian has not held up.
  • Quality control is a real problem with melatonin, so choose third-party-tested products.

Start with the basics

Before any supplement, the unglamorous truth: the biggest improvements in sleep come from behavior, not bottles. A consistent sleep and wake time, morning daylight, a cool and dark bedroom, and cutting off caffeine by early afternoon and alcohol and screens before bed will do more than any pill. And if you have chronic insomnia, the proven first-line treatment is not a supplement at all. It is CBT-I, cognitive behavioral therapy for insomnia, a short structured program that sleep medicine guidelines rank above sleeping pills for lasting results. Supplements work best on top of these basics, not instead of them. Our sleep and insomnia guide goes deeper.

Melatonin: the most useful and the most misused

Melatonin is the sleep supplement everyone knows, and almost everyone uses it wrong. The key thing to understand is that melatonin is not a sedative. It is a "hormone of darkness," a signal your brain releases at night to tell your body it is time to wind down. Taken as a supplement, it nudges your internal clock and modestly helps you drift off. That makes it genuinely useful for circadian problems: jet lag, shift work, and a sleep schedule that has drifted too late. It is less impressive for classic "I just cannot sleep" insomnia, where it typically shaves only a few minutes off how long it takes to fall asleep.

Three things matter more than most people realize:

Melatonin is not habit-forming, but it is also not a cure for ongoing insomnia. Use it for the circadian jobs it does well. See our full melatonin guide for details.

Magnesium

Magnesium supports the nervous system's "rest and digest" side, and many people do not get enough from food. The best-studied form for sleep is magnesium glycinate, and a 2025 trial found a daily dose improved insomnia severity in adults with poor sleep. The effect is gentle rather than knockout, and it is most noticeable if you were running low to begin with. We compare the forms in detail in our magnesium for sleep and anxiety guide. Typical dose: 200 to 400 mg of elemental magnesium in the evening.

L-theanine

L-theanine is an amino acid from green tea that promotes a calm, relaxed alertness without sedation. It is most useful when the problem is a racing mind or bedtime anxiety rather than a circadian issue: it helps quiet mental chatter so you can fall asleep, and it does not leave you groggy in the morning. It pairs naturally with magnesium. Typical dose: 100 to 200 mg before bed.

Glycine

Glycine is a simple amino acid with a small but interesting body of research for sleep. Taken before bed, it appears to improve subjective sleep quality and next-day alertness, partly by gently lowering core body temperature, which is one of the signals that helps you fall asleep. The studies are small, but the safety is excellent and the cost is low. Typical dose: 3 grams before bed.

Ashwagandha

If your sleeplessness is driven by stress, ashwagandha is worth a look. A meta-analysis of randomized trials found it improved sleep, with the clearest effects at around 600 mg of a standardized extract taken for at least 8 weeks. It works less as a direct sleep aid and more by lowering the stress and cortisol load that keeps people wired at night, which is why it overlaps with our cortisol guide.

The rest, and what to skip

A few more get a lot of attention:

SupplementBest forTypical doseEvidence
MelatoninJet lag, shift work, resetting a late clock0.5 to 1 mg, timedGood (circadian)
Magnesium glycinateGeneral sleep quality, especially if low200 to 400 mgModerate
L-theanineRacing mind, bedtime anxiety100 to 200 mgModerate
GlycineSleep quality and next-day alertness3 g before bedModerate (small trials)
AshwagandhaStress-driven sleeplessness300 to 600 mgModerate
Tart cherryMild, natural melatonin source1 to 2 servingsMixed
Apigenin / chamomileMild relaxationVariesWeak
ValerianTraditional useVariesInsufficient

Frequently asked questions

What is the best supplement for sleep?

It depends on the problem. Low-dose melatonin is best for circadian issues like jet lag or a late schedule. Magnesium glycinate and glycine help general sleep quality, and L-theanine or ashwagandha help when stress and a racing mind are the issue. None of them replaces good sleep habits.

How much melatonin should I take?

Less than most products provide. A starting dose of about 0.5 to 1 mg, taken 30 to 60 minutes before bed, works better for most people than the 5 to 10 mg sold in stores. More does not mean better sleep and can cause grogginess. Timing matters more than dose.

Is it safe to take melatonin every night?

Short-term use is generally considered safe, and melatonin is not habit-forming. But it is not meant to be a long-term fix for chronic insomnia. If you find you need it nightly for weeks, that is a reason to see a doctor and consider cognitive behavioral therapy for insomnia (CBT-I).

Does magnesium really help you sleep?

It can, gently, especially if you are low in magnesium. Magnesium glycinate is the best-studied form for sleep, at about 200 to 400 mg in the evening. The effect is subtle rather than a knockout.

What can I take for sleep if stress and anxiety keep me up?

L-theanine (100 to 200 mg) helps quiet a racing mind at bedtime without grogginess, and ashwagandha (around 600 mg over several weeks) helps by lowering the underlying stress load. Both pair well with good wind-down habits.

What sleep supplements should I avoid or be skeptical of?

Valerian has weak evidence, GABA is poorly absorbed into the brain, and kava carries a liver risk. Be cautious with PM combination products that contain hidden antihistamines, which are not meant for nightly use. Quality is also a real issue with melatonin, so choose third-party-tested brands.

The bottom line

The best sleep supplement is the one matched to your actual problem, used on top of solid sleep habits. For a drifted or jet-lagged clock, low-dose melatonin (0.5 to 1 mg), timed correctly, is the right tool. For general sleep quality, magnesium glycinate and glycine are gentle, well-tolerated options. For a racing, anxious mind, L-theanine and, over a few weeks, ashwagandha can help by turning down the stress that keeps you awake. Tart cherry and apigenin are mild at best, and valerian has not earned its reputation. And if poor sleep is a regular thing, the most effective fix is not on a supplement shelf at all: it is CBT-I, with your doctor's help. Buy third-party-tested products, start low, and give the basics the credit they deserve.

VS
Reviewed for accuracy by
Vladimir Salamakha

B.S. in Chemistry, University of South Florida · a formulation scientist with 15 years developing compliant, evidence-based products across nutritional supplements and personal care. More about the author →

A quick note This article is general information, not medical advice, and it is not a diagnosis. Ongoing insomnia can have underlying causes worth checking. If poor sleep persists, talk to your doctor about CBT-I and rule out other issues, especially before relying on any supplement nightly.
Sources
Erland LA, Saxena PK. Melatonin natural health products and supplements: presence of serotonin and significant variability of melatonin content. J Clin Sleep Med, 2017. · Bannai M et al. The effects of glycine on subjective daytime performance in partially sleep-restricted healthy volunteers. Front Neurol, 2012. · Fatima K et al. Safety and efficacy of Withania somnifera for anxiety and insomnia: a systematic review and meta-analysis. Hum Psychopharmacol, 2024. · Losso JN et al. Pilot study of the tart cherry juice for the treatment of insomnia. Am J Ther, 2018. · Tucker RM et al. Commonly used dose of Montmorency tart cherry powder does not improve sleep or inflammation outcomes. Nutrients, 2024. · Buysse DJ et al. Combination treatment for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. J Clin Sleep Med, 2026. · American Academy of Sleep Medicine and Cleveland Clinic, melatonin dosing and CBT-I.