Magnesium vs melatonin for sleep. Which fits your problem?

Magnesium vs Melatonin for Sleep: Which Fits Your Problem?

Magnesium has become the internet's favourite sleep supplement, often pitched as the "natural" alternative to melatonin, with social media promising deeper sleep from a powder stirred into warm milk or a capsule swallowed just before you switch the light off.

They aren't really alternatives.

They do different things, and the evidence behind each is very different in strength.

So the useful question isn't which is better, but which matches the reason you're not sleeping.

In short

Melatonin is a timing signal, best supported for jet lag, shift work and a late body clock. Magnesium is a mineral; its sleep evidence is thin, mainly three small trials in older adults. If your diet is low in magnesium, food is the best fix. Check with a doctor before combining them if you take regular medicines.

How they differ

Melatonin Magnesium
What it is A hormone the body makes at night A mineral from food
How it may help Signals night; shifts sleep timing Supports nerve and muscle function
Best evidence Jet lag, late body clock Thin; mainly older adults
Typical doses studied 0.5–5 mg About 320–730 mg in trials
When to take 30–60 minutes before bed Often in the evening
Main cautions Grogginess; some medicines Loose stools; kidney disease

What the research shows

Melatonin. A meta-analysis of 19 trials and 1,683 people found it helped people fall asleep about 7 minutes faster on average (Ferracioli-Oda et al.). Its clearest benefit is for timing problems; see melatonin for jet lag and shift work.

Magnesium. A 2021 meta-analysis found only three trials, with 151 older adults in total. Magnesium shortened the time to fall asleep by about 17 minutes compared with placebo, but the evidence was rated low quality, and the change in total sleep wasn't significant (Mah and Pitre, 2021).

Those numbers can't be compared head to head.

The magnesium trials were small, in older adults who may have been low in magnesium to begin with, while the melatonin figure pools many more people. What the magnesium data suggests is that topping up a shortfall may help, not that extra magnesium improves sleep for everyone.

Getting magnesium from food

Indian adults need about 370 mg (women) to 440 mg (men) of magnesium a day, according to the ICMR-NIN 2020 recommended dietary allowances. A diet rich in whole grains, pulses, nuts and greens usually covers it.

Bar chart of magnesium per 100 g in Indian foods: white til 372 mg, almonds 318 mg, cashews 307 mg, whole green gram 198 mg, green amaranth leaves 194 mg, red rajma 173 mg, ragi 146 mg

Til, almonds, whole moong, chaulai, rajma and ragi are all rich sources, according to India's food composition tables. Polished rice and refined flour carry far less, which is one reason a diet built on white rice and maida, with little dal or greens, can fall short of magnesium even when it's filling.

Supplements need more care than food. If you take one, the US NIH sets the upper limit from supplements at 350 mg a day for adults. More can cause diarrhoea, and people with kidney disease should take magnesium only on a doctor's advice.

Which one, or both?

Choose by your problem.

If your body clock runs late, you're travelling across time zones or working shifts, melatonin fits, because it's the signal your body clock actually responds to and it has trials in travellers and shift workers behind it.

If your diet is low in whole grains, pulses and greens, fix that first; a supplement may help if a doctor finds you're short.

If stress, washroom trips or snoring are keeping you up, neither will solve it; see stress and sleep. Melatonin and magnesium are generally considered safe to take together, but ask a doctor if you take regular medicines.

Our Sleep strip is a melatonin product: melatonin 5 mg with valerian root extract, chamomile and hibiscus, for adults, taken after dinner, 30–60 minutes before bed. Don't take it with alcohol. Explore the Sleep strip.

Browse all products

Key takeaways
  • Melatonin shifts sleep timing; magnesium is a mineral with thin evidence for sleep.
  • Three small trials in older adults found magnesium shortened time to fall asleep; evidence quality was low.
  • Til, almonds, whole moong, chaulai, rajma and ragi are rich food sources of magnesium.
  • Choose by your problem: melatonin for timing, food first for magnesium, and neither for stress or snoring.

Frequently asked questions

Is magnesium or melatonin better for sleep?

They do different jobs. Melatonin has better evidence, especially for jet lag, shift work and a late body clock. Magnesium's sleep evidence is limited to a few small trials in older adults. If your diet is low in magnesium, improving it may help sleep; otherwise melatonin is the better-studied option.

Can I take magnesium and melatonin together?

They're generally considered safe together for healthy adults, and some products combine them. Keep magnesium from supplements under 350 mg a day (the US limit) unless a doctor advises more, and check with a doctor first if you have kidney disease or take regular medicines, including some antibiotics, diuretics or acid-reflux medicines.

Does magnesium help you sleep?

It may help people who are low in magnesium. A 2021 meta-analysis of three trials in 151 older adults found it shortened the time to fall asleep by about 17 minutes, but the evidence quality was low. There's little evidence it helps people who already get enough from food.

Which form of magnesium is best for sleep?

Forms such as magnesium citrate are absorbed better than magnesium oxide, according to the US NIH, but there's little direct evidence comparing forms for sleep. Food sources like til, almonds, whole moong and ragi remain the simplest way to meet your needs.

What foods are high in magnesium in India?

According to India's food composition tables, white til has about 372 mg per 100 g, almonds 318 mg, cashews 307 mg, whole moong 198 mg, green chaulai leaves 194 mg, red rajma 173 mg and ragi 146 mg. Whole grains, pulses, nuts and greens are all good sources.

Sources
  1. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: systematic review and meta-analysis. BMC Complement Med Ther 2021;21:125. Link
  2. NIH Office of Dietary Supplements, Magnesium fact sheet. Link
  3. Ferracioli-Oda E et al. Meta-analysis: melatonin for the treatment of primary sleep disorders. PLoS ONE 2013. Link
  4. Indian Food Composition Tables 2017, National Institute of Nutrition. Link
  5. ICMR-NIN. Nutrient Requirements for Indians 2020: short report (RDA tables). Link

This article is for general information and is not medical advice. Express Melts products are health supplements, not medicines, and are not intended to diagnose, treat, cure or prevent any disease. Talk to your doctor or paediatrician before starting any supplement, especially for children, during pregnancy or breastfeeding, or if you take regular medication.

Back to blog