Do Sleep Supplements Work? Magnesium vs Melatonin

12 min read
Maria Otworowska, PhD

Do magnesium, melatonin, and L-theanine actually help you sleep? A look at what the research shows, realistic doses, and which may support your routine

Sleep supplements are over-the-counter products containing compounds like magnesium, melatonin, or L-theanine that aim to improve sleep quality, reduce the time it takes to fall asleep, or promote relaxation before bed, though their effectiveness varies significantly depending on the ingredient, dosage, and the individual taking them.

Walk into any pharmacy and the sleep supplement aisle is overwhelming. Gummies, capsules, powders, tinctures, all promising deeper sleep and better mornings. Some of these ingredients have legitimate research behind them. Others are riding the wellness wave with minimal evidence. Here is what the science actually says about the three most popular options, and which ones are worth your money.

Key Takeaways:

  • Magnesium may improve sleep quality, especially if you are deficient, with glycinate and threonate being the most studied forms for sleep 1
  • Melatonin reduces sleep onset latency by about 7 minutes on average and is best used for circadian rhythm issues, not as a nightly sedative 2
  • L-theanine promotes relaxation through alpha brain wave activity without causing drowsiness, and may improve sleep quality in people with anxiety 3
  • None of these supplements are replacements for good sleep hygiene; they work best as additions to an already solid routine
  • Quality and dosing matter enormously; more is not better with any of these compounds

Does magnesium actually help you sleep?

Magnesium is involved in over 300 enzymatic reactions in your body, including several that regulate your nervous system and sleep-wake cycle. It activates the parasympathetic nervous system (the one responsible for calming you down) and helps regulate melatonin production. About 50% of adults in Western countries do not get enough magnesium from their diet 1.

A double-blind, placebo-controlled trial in elderly adults with insomnia found that 500 mg of magnesium daily for eight weeks significantly improved sleep time, sleep efficiency, and sleep onset latency. It also increased melatonin levels and decreased cortisol 4. A systematic review and meta-analysis found that magnesium supplementation reduced sleep onset latency by an average of 17 minutes compared to placebo 5.

The evidence is promising but comes with caveats. Most studies are small, use different magnesium forms at different doses, and focus on older adults or people with diagnosed deficiencies. If your magnesium levels are already adequate, supplementation may not produce noticeable effects. The strongest case for magnesium is as a corrective measure for the large number of people who are mildly deficient without knowing it.

Which form of magnesium is best for sleep?

Not all magnesium supplements are created equal. The form determines how much your body absorbs and where it acts. Here is how the main options compare.

Form Bioavailability Primary use Notes
Magnesium glycinate High Sleep and relaxation Bound to glycine, which itself has calming properties; well tolerated 6
Magnesium threonate Moderate to high Cognitive function and sleep Crosses the blood-brain barrier; studied for brain-specific effects
Magnesium citrate High General supplementation Well absorbed but more likely to cause digestive effects at higher doses 6
Magnesium oxide Low (about 4%) Budget option Poorly absorbed; often used as a laxative rather than a sleep aid 6
Magnesium taurate Moderate to high Cardiovascular and sleep Taurine component may add calming effects

Magnesium glycinate is the most commonly recommended form for sleep. The glycine molecule it is bonded to has its own calming effect on the nervous system. It is also gentler on the stomach than citrate or oxide, which makes it easier to take at bedtime without digestive issues.

A typical sleep-focused dose is 200 to 400 mg of elemental magnesium, taken 30 to 60 minutes before bed. Start at the lower end and increase gradually. Magnesium is generally safe, but high doses can cause loose stools, especially with citrate and oxide forms.

Is melatonin a good sleep supplement?

Melatonin is the most widely used sleep supplement in the world, but it is also the most misunderstood. Melatonin is not a sedative. It is a hormone that signals to your brain that it is time to prepare for sleep. Your body produces it naturally when light levels drop in the evening, and it peaks around two to four hours after your habitual bedtime.

A meta-analysis of 19 studies involving 1,683 participants found that supplemental melatonin reduced sleep onset latency by 7.06 minutes and increased total sleep time by 8.25 minutes 2. Those numbers are statistically significant but modest. Melatonin is not going to knock you out. Where it shines is in resetting disrupted circadian rhythms: jet lag, shift work, delayed sleep phase disorder, or recovering from a period of irregular scheduling.

The timing and dose matter more than most people realize. Taking 0.5 to 1 mg about 30 to 60 minutes before your target bedtime is enough for most adults 7. Higher doses (5 to 10 mg, common in over-the-counter products) do not improve effectiveness and can cause morning grogginess, vivid dreams, or headaches. In children and adolescents, melatonin shows stronger effects on sleep onset latency than in adults 7.

What are the downsides of melatonin?

Melatonin is not a long-term solution for everyone, and the supplement market makes it easy to overdo. Because melatonin is classified as a dietary supplement in most countries (not a drug), manufacturing standards are inconsistent. Studies have found that actual melatonin content in supplements can vary by as much as 478% from what the label claims.

Common side effects at higher doses include morning drowsiness, headache, dizziness, and unusually vivid dreams. Long-term safety data in healthy adults is limited. The concern is not that melatonin is dangerous, but that taking high-dose exogenous melatonin nightly could theoretically downregulate your body's own production over time. The research here is incomplete.

A more practical issue: melatonin treats the timing of sleep, not the quality. If you fall asleep at the right time but still wake up at three in the morning, melatonin is probably not addressing the root cause. For issues with sleep maintenance, magnesium or addressing underlying anxiety may be more effective.

Melatonin also plays a role beyond sleep. In the skin, it acts as an antioxidant that scavenges free radicals generated by UV exposure 8. Disrupted melatonin rhythms from poor sleep can reduce this protective effect, which is another reason to fix your circadian alignment rather than just masking it with supplements.

Does L-theanine help with sleep?

L-theanine is an amino acid found primarily in tea leaves. It does not make you sleepy. Instead, it promotes a state of calm alertness by increasing alpha brain wave activity, the same brain wave pattern associated with meditation and relaxed focus 3. This makes it useful for people whose main barrier to sleep is an overactive mind.

A randomized controlled trial found that L-theanine supplementation significantly improved sleep quality scores, reduced sleep latency, and decreased sleep disturbance compared to placebo 9. The participants also reported lower anxiety scores. Another study confirmed that L-theanine increased alpha wave activity in posterior brain regions, particularly in people with higher baseline anxiety 10.

The typical effective dose is 200 to 400 mg, taken 30 to 60 minutes before bed. L-theanine has a strong safety profile. Unlike melatonin, it does not directly interact with your hormonal systems, and it does not cause morning grogginess. The main limitation is that the evidence base is still growing. Results across studies are sometimes inconsistent, and many trials are small 3.

For the best results, L-theanine pairs well with magnesium. The two work through different mechanisms (alpha wave promotion versus nervous system calming), and the combination is a common stack in sleep-focused supplements.

What about valerian root and other herbal supplements?

Valerian root is one of the oldest herbal sleep remedies, but modern evidence is underwhelming. An umbrella review of multiple systematic reviews found no consistent evidence that valerian is effective for treating insomnia, despite a generally good safety profile 11. The studies that do show positive results tend to be small, use inconsistent preparations, and rely on subjective reporting.

Chamomile has similar limitations. It is safe and mildly relaxing, but clinical evidence for meaningful sleep improvement is thin. Ashwagandha shows some promise for stress-related sleep issues, but the research is early-stage and dosing is not well standardized.

The honest assessment: herbal supplements are unlikely to harm you, but they are also unlikely to produce the kind of results you would notice compared to fixing your sleep environment and schedule. If you enjoy chamomile tea as part of your wind-down routine, the ritual value may be as important as the pharmacological effect. There is nothing wrong with that.

How do you choose the right sleep supplement?

Start by asking what your actual sleep problem is. The answer determines which supplement, if any, makes sense.

Sleep problem Best first option Why
Trouble falling asleep (racing mind) L-theanine (200 to 400 mg) Promotes calm without sedation; reduces anxiety-driven wakefulness
Trouble falling asleep (circadian shift) Melatonin (0.5 to 1 mg) Resets your internal clock timing; take 30 to 60 min before target bedtime
Restless sleep or muscle tension Magnesium glycinate (200 to 400 mg) Calms nervous system and relaxes muscles; corrects common deficiency
General sleep quality issues Magnesium glycinate Broadest evidence base for overall sleep quality improvement
Jet lag or shift work adjustment Melatonin (0.5 to 3 mg) Specifically designed for circadian rhythm resetting

No supplement replaces good sleep hygiene. Fix your schedule, your environment, and your evening habits first. Supplements are the final 10 to 15% of optimization, not the foundation. If you are sleeping in a hot, bright room with your phone on the pillow, magnesium glycinate is not going to save you.

The Skin Bliss app can help you track how changes in your sleep routine, including any supplements you try, correlate with your skin condition over time through the Skin Diary feature. That kind of personalized data is more useful than any generic recommendation.

Frequently asked questions

Can you take magnesium, melatonin, and L-theanine together?

Yes, this is a common combination and is generally considered safe for most adults. They work through different mechanisms and do not compete for absorption. Start each one individually to identify how you respond before stacking. If you take prescription medications, check with your doctor first, as magnesium can affect absorption of certain antibiotics and blood pressure drugs.

How long should you try a sleep supplement before deciding if it works?

Give each supplement two to four weeks of consistent use at the recommended dose before evaluating. Magnesium in particular takes time to build up if you are correcting a deficiency. Track your sleep quality daily so you can spot trends rather than relying on how you feel on any single morning.

Are sleep gummies as effective as capsules?

Gummies often contain added sugars, lower doses of active ingredients, and fillers that may affect absorption. Capsules or powder forms typically provide more precise dosing. Check the label for the amount of elemental magnesium or actual melatonin content rather than the total weight of the compound.

Is it safe to take melatonin every night?

Short-term daily use (up to three months) appears safe in most studies. Long-term nightly use is less well studied. Many sleep researchers recommend using melatonin strategically, for circadian resets, jet lag, or temporary schedule disruptions, rather than as a permanent nightly habit. If you need something every night, magnesium or L-theanine may be better long-term options.

Do sleep supplements affect your skin?

Indirectly, yes. Better sleep quality means more time in deep sleep, which is when your skin's repair processes peak. Magnesium also plays a role in skin barrier function and wound healing. Melatonin has antioxidant properties that may protect skin from UV-induced free radical damage 8. Improving your sleep through any means, supplements included, is likely to show up on your face over time.

Sources

  1. Abbasi B et al. (2012). "The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial." *Journal of Research in Medical Sciences*.
  2. Ferracioli-Oda E et al. (2013). "Meta-analysis: melatonin for the treatment of primary sleep disorders." *PLoS ONE*.
  3. Rao TP et al. (2025). "l-theanine: From tea leaf to trending supplement - does the science match the hype for brain health and relaxation?" *Neuroscience and Biobehavioral Reviews*.
  4. Abbasi B et al. (2012). "The effect of magnesium supplementation on primary insomnia in elderly." *Journal of Research in Medical Sciences*.
  5. Mah J, Pitre T. (2021). "Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis." *BMC Complementary Medicine and Therapies*.
  6. Uysal N et al. (2019). "Timeline (Bioavailability) of Magnesium Compounds in Hours: Which Magnesium Compound Works Best?" *Biological Trace Element Research*.
  7. Auld F et al. (2017). "Evidence for the efficacy of melatonin in the treatment of primary adult sleep disorders." *Sleep Medicine Reviews*.
  8. Fischer TW et al. (2013). "Melatonin's protective effect against UV radiation: a systematic review of clinical and experimental studies." *Journal of Pineal Research*.
  9. Hidese S et al. (2019). "Effects of L-Theanine Administration on Stress-Related Symptoms and Cognitive Functions in Healthy Adults: A Randomized Controlled Trial." *Nutrients*.
  10. Nobre AC et al. (2008). "The effects of L-theanine on alpha-band oscillatory brain activity during a visuo-spatial attention task." *Brain Topography*.
  11. Kang DY et al. (2024). "Does valerian work for insomnia? An umbrella review of the evidence." *Sleep Medicine*.
Maria Otworowska, PhD

Maria Otworowska, PhD

Co-founder of Skin Bliss · PhD in Computational Cognitive Science & AI

Maria combines her background in AI research with a passion for evidence-based skincare. She built Skin Bliss to help people make informed decisions about their skin, backed by science rather than marketing.

Master your skincare science with Skin Bliss

Personalized routines, ingredient analysis, and progress tracking

Download on the App Store Get it on Google Play