If your goal is to correct a magnesium shortfall and see whether rest improves as a result, magnesium makes sense — with low expectations. Neither magnesium nor melatonin fixes a chaotic sleep schedule, and the evidence for magnesium as a sleep inducer is weak. That is the honest answer, and the rest of this page is about how to act on it.
Short version, before the nuance: melatonin is the one people reach for when the problem is timing — a body clock that will not settle. Magnesium is the one to consider when diet, training load or a clinical suspicion of deficiency is the more likely issue. If you cannot place yourself in either group, neither is probably your first move.
What each of the two actually is
Magnesium is an essential mineral, involved in a great many physiological and metabolic pathways. Declared deficiency is rare; subclinical shortfall may be more common than people assume. That does not mean most people with insomnia are short of magnesium. It means the mineral has broad roles in the body and that measuring your own status day to day is unreliable.
Melatonin is a hormone the body produces in response to darkness, and it is sold as a supplement in small doses. It is not a nutrient and it is not correcting a dietary gap.
Both are sold as sleep aids. Both come as gummies, tablets and capsules. Both carry promises that the research does not support as firmly as the packaging implies. Neither is the hero here.
What genuinely differs between magnesium and melatonin
Purpose is the first split. Magnesium is a nutrient: you take it to make sure the body has what it needs, and any effect on sleep, if it exists, is indirect. Melatonin is taken for its relationship with the timing of sleep.
Then speed. With magnesium there is no reason to expect an immediate change. If there is an effect at all, it will come over weeks, and unpredictably even then. Melatonin is taken shortly before bed — not a universal rule, but the most common practice and the one that fits what is known about absorption.
Cost and practicality are the last criterion, and the differences are small. Both are cheap. Both exist in gummy form. Both fit into a routine. That is not where the decision gets made.
What EU regulation allows you to say about melatonin and magnesium
Regulation (EU) No 432/2012 authorises the claim "Melatonin contributes to the reduction of time taken to fall asleep" only for foods that contain 1 mg of melatonin per quantified portion 1. To be able to make the claim, the consumer must be given the information that the beneficial effect is obtained by consuming 1 mg of melatonin before going to bed 1. According to the label, the 2-gummy serving of Sleep Well Gummies contains 1 mg of melatonin, and the directions are to chew 2 gummies per day, shortly before bedtime.
The authorised health claims for magnesium in the same regulation can only be used for foods that are at least a source of magnesium 1.
Where the marketing runs ahead of the evidence
This is the part that matters most. The evidence for magnesium improving sleep is limited. A 2021 systematic review and meta-analysis found limited evidence that oral magnesium supplementation improves sleep in older adults with insomnia. A 2024 randomised trial in 320 people with diabetes looked at effects on insomnia severity and sleep hormones — but that is a study in one specific population, not general proof.
So: there are signals, not certainties. If a label tells you magnesium "improves sleep quality", you are reading a sentence the evidence does not yet carry with any weight. There may be benefit, particularly in people who are short of the mineral, but nobody can promise it to you.
The melatonin side has its own overreach. It is widely sold as a sleep switch, and it is not one. Dosing and timing are where the practical questions sit, and a label rarely helps you with either.
If the promise is "better sleep from tomorrow", be sceptical of both. If the promise is "I may be correcting a shortfall", magnesium is the only one of the two that fits that logic.
What each study on magnesium and sleep measured, and its limits
A 2026 systematic review included 12 randomised trials in adults in which magnesium was the only active intervention, and found inconsistent results across subjective measures, EEG, device-based sleep monitoring and physiological markers, with certainty of evidence low to very low 2. The authors conclude that current data do not allow routine recommendation of oral magnesium; there may be modest benefits in some subjective outcomes in some adults, but results are inconsistent and more well-designed trials are needed 2. Another systematic review, from 2023, pooled 7,582 participants from cross-sectional, cohort and randomised studies and found an association between magnesium status and sleep quality in observational studies, while randomised trials gave contradictory results 3.
A 2010 randomised trial included 100 adults over 51 with poor sleep quality: half received 320 mg of magnesium per day (citrate) and half a sodium citrate placebo, for seven weeks 4. Sleep quality, measured with the Pittsburgh index (PSQI), improved in both groups, and the authors indicate that another factor, possibly a placebo effect, improved sleep, which prevented them from determining whether magnesium deficiency contributes to poor sleep quality 4.
Do people take both at once?
Yes, commonly. Plenty of people take melatonin at night and magnesium through the day, or both in the evening as separate products. As far as is known, there is no reason they exclude each other.
Be clear about one thing, though: there is no evidence that the combination works better than either alone. No reviewed study has demonstrated that combined effect, and we are not going to invent one for you.
If you decide to try both, do it separately and slowly. Introduce one, watch for two to three weeks, and only then consider the other. That way you know what is doing what — or whether nothing is doing anything.
What the trial with melatonin and magnesium together showed
A 2024 randomised, double-blind, crossover trial tested, for 4 weeks, a supplement with 1.9 mg of melatonin and 200 mg of elemental magnesium before sleep, in coffee capsules, against placebo, in 35 people with poor sleep quality, with a 7-day interval between the two phases 5. PSQI decreased in both conditions, and the differences between conditions favoured the supplement in several parameters, such as sleep efficiency, latency and total sleep time; however, final PSQI scores still indicated poor sleep quality, on average, in both conditions 5. The trial compared the combination with placebo and not with each component alone, so it cannot separate the contribution of melatonin from that of magnesium, nor show that the combination is better than each one on its own 5.
Who each one suits, in practice
Magnesium makes more sense if your diet is poor in magnesium sources, if you train hard and regularly, or if a clinician has suggested you may be short. Magnesium supplementation has been studied for muscle function, and there is some evidence it may help ease subjective anxiety and stress — though results are mixed. If your sleep problem travels alongside physical tension and fatigue, it may be a reasonable avenue to explore.
10% off to get you started ✨
Subscribe to our newsletter and receive your welcome code straight away. Get updates, tips and exclusive offers.
By subscribing, you agree to receive marketing communications from Tutti Bear. You can unsubscribe at any time. Please see our Privacy Policy and Terms and Conditions .
You're all set! Get 10% off ❤️
WELLCOME10
Use the code on your first order!
Melatonin is the more logical starting point when your sleep problem is one of timing rather than tension. If your issue is waking in the middle of the night, neither is the first answer. That is territory for habits, environment and, if it persists, a clinical assessment.
What to check on the label before buying either
The form of magnesium matters. Magnesium oxide has relatively low bioavailability — the absorbed fraction is around 4% — and it is the form most often responsible for gastrointestinal effects such as diarrhoea. If the label says only "magnesium" without naming the form, treat that as a bad sign. Citrate, bisglycinate and malate appear more often in products designed for digestive tolerance, although the evidence on differences between forms is not yet conclusive across the board.
Check whether the product states the amount of elemental magnesium, not just the amount of salt. A label reading "360 mg magnesium citrate" does not say the same thing as "50.4 mg magnesium". Those are different numbers and the gap is wide.
On melatonin, check the dose per serving, and start low.
Then the warnings. People with kidney disease should be cautious with magnesium supplements, because reduced kidney function can lead to accumulation of the mineral. That is not a minor detail.
Form of magnesium and routes of intake: what the studies assessed
In a systematic review of 14 studies on the bioavailability of magnesium forms in supplements, inorganic formulations appear less bioavailable than organic ones, and the percentage absorbed depends on the dose 6. A 2001 study in healthy volunteers measured the bioavailability of four commercial preparations by the increase in urinary magnesium excretion and found a fractional absorption of 4% for magnesium oxide, with significantly higher and equivalent bioavailability for chloride, lactate and aspartate 7. The authors note that inorganic magnesium salts, depending on the preparation, can have bioavailability equivalent to that of organic salts 7. These studies assessed magnesium absorption, not sleep.
As for magnesium sprays, flakes and baths, a 2017 review concluded that the promotion of transdermal magnesium has no scientific support 8. To compare forms, there is a guide on bisglycinate, citrate and oxide.
If you want to try a gummy product
If magnesium is your choice and you prefer a gummy, Magnesium Gummies provide, per two gummies, 50.4 mg of magnesium (13% of the reference daily intake) as magnesium citrate, plus vitamin B6. Note that 13% is not a high dose — it is a contribution, not a correction. If you suspect a deficiency, speak to a healthcare professional.
For melatonin, Sleep Well Gummies provide 1 mg of melatonin per two gummies, for adults, to be chewed shortly before bedtime. They may cause drowsiness, so avoid driving or operating machinery after taking them. They are not recommended for children, pregnant or breastfeeding women.
Either way, food supplements do not replace a varied and balanced diet or a healthy lifestyle. Both products contain polyols: excessive consumption may have a laxative effect.
What we still do not know
There is no reviewed evidence establishing a firm causal link between magnesium and sleep. What exists is associations, small studies and mixed results.
That does not make magnesium useless — it makes the promise bigger than the proof. If you decide to try it, give it three to four weeks, keep the rest of your sleep routine steady and judge the outcome honestly. If you notice nothing, you will probably continue to notice nothing. And if the problem persists, the next step is not another bottle: it is talking to someone who can assess what is actually going on.
Frequently asked questions
Does magnesium help you fall asleep faster?
The data are limited. A 2026 systematic review of 12 randomised trials in adults found inconsistent results across subjective measures, EEG, device-based sleep monitoring and physiological markers, with certainty of evidence low to very low. The authors conclude that current data do not allow routine recommendation of oral magnesium; there may be modest benefits in some subjective outcomes in some adults, but results are inconsistent and more well-designed trials are needed.
How many mg of magnesium should I take for sleep?
A 2026 systematic review notes that populations, formulations, elemental doses and durations varied widely between trials, with certainty of evidence low to very low. One trial used 320 mg of magnesium per day (citrate) for seven weeks, and doses used in studies are not dosing instructions. Magnesium Gummies provide 50.4 mg of magnesium per 2-gummy serving, which corresponds to 13% of the nutrient reference value.
Can I take magnesium and melatonin on the same night?
A small 4-week trial tested a combination of melatonin and magnesium in 35 people against placebo, but did not compare it with each one alone. Differences between conditions favoured the supplement in several sleep parameters, but final PSQI scores still indicated poor sleep quality, on average, in both conditions.
Do magnesium sprays or bath salts work?
A 2017 review concluded that the promotion of transdermal magnesium, in sprays, flakes and bath salts, has no scientific support.
How long does it take to notice an effect of magnesium on sleep?
The trials described here lasted seven weeks for magnesium alone and four weeks for the combination with melatonin. These durations describe the study designs, not a recommended timeframe for judging an effect.
Why do Sleep Well Gummies contain 1 mg of melatonin?
Regulation (EU) No 432/2012 authorises the claim about the time taken to fall asleep for foods with 1 mg of melatonin per portion. Sleep Well Gummies provide 1 mg of melatonin per 2 gummies, for adults, shortly before bedtime.
Sources and references
An informative summary of published research. The results relate to the forms and the people studied; they are not promises about the effect of any product.
- Regulamento (UE) n.º 432/2012 da Comissão, de 16 de maio de 2012, que estabelece uma lista de alegações de saúde permitidas relativas a alimentos que não referem a redução de risco de doença nem o desenvolvimento e a saúde das crianças. JO L 136 de 25.5.2012. eur-lex.europa.eu
- Lopresti AL, Smith SJ, Drummond PD. Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials. J Diet Suppl. 2026;23(5):553-581. pubmed.ncbi.nlm.nih.gov · PMID 42661485 · DOI 10.1080/19390211.2026.2719670
- Arab A, Rafie N, Amani R, et al. The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature. Biol Trace Elem Res. 2023;201(1):121-128. pubmed.ncbi.nlm.nih.gov · PMID 35184264 · DOI 10.1007/s12011-022-03162-1
- Nielsen FH, Johnson LK, Zeng H. Magnesium supplementation improves indicators of low magnesium status and inflammatory stress in adults older than 51 years with poor quality sleep. Magnes Res. 2010;23(4):158-68. pubmed.ncbi.nlm.nih.gov · PMID 21199787
- Carlos RM, Matias CN, Cavaca ML, et al. The effects of melatonin and magnesium in a novel supplement delivery system on sleep scores, body composition and metabolism in otherwise healthy individuals with sleep disturbances. Chronobiol Int. 2024;41(6):817-828. pubmed.ncbi.nlm.nih.gov · PMID 38745424 · DOI 10.1080/07420528.2024.2353225
- Pardo MR, Garicano Vilar E, San Mauro Martín I, et al. Bioavailability of magnesium food supplements: A systematic review. Nutrition. 2021;89:111294. pubmed.ncbi.nlm.nih.gov · PMID 34111673 · DOI 10.1016/j.nut.2021.111294
- Firoz M, Graber M. Bioavailability of US commercial magnesium preparations. Magnes Res. 2001;14(4):257-62. pubmed.ncbi.nlm.nih.gov · PMID 11794633
- Gröber U, Werner T, Vormann J, et al. Myth or Reality-Transdermal Magnesium?. Nutrients. 2017;9(8). pubmed.ncbi.nlm.nih.gov · PMID 28788060 · DOI 10.3390/nu9080813
Keep exploring
Go deeper on magnesium
Go deeper on melatonin
Explore the topic
Explore the topic
Related reads
Related reads
Magnesium for stress: what helps and what does not
Probably not. Magnesium is not an anxiolytic, and there is no solid proof that you take a tablet or a gummy and the stress disappears. What exists is a…
Melatonin gummies or tablets: what actually changes
For most people, choosing between melatonin gummies and melatonin tablets does not decide whether melatonin works. It decides whether you will actually take…
Melatonin or valerian: which one should you choose?
If your problem is falling asleep and you want the option with some regulatory footing, melatonin is the more defensible pick: the EU register of permitted…
Best sleeping position: what the evidence suggests
On your back or on your side. Those are the two positions that the available evidence links to fewer back and neck problems. Sleeping on your front is the one…
Best ashwagandha gummies: extract, dose and how to choose
There is no single 'best ashwagandha gummy' that the evidence allows us to point to, and anyone who promises you otherwise is going beyond what is known. What…
Best magnesium gummies: forms, doses and choosing criteria
The best magnesium gummies are those that state on the label how many milligrams of elemental magnesium they deliver per daily serving, what proportion that…
What to eat before bed: what helps and what hinders
Eating a large meal shortly before bed can make it harder to fall asleep. That is the most solid point in this whole discussion, and it comes from public…
Does your watch measure deep sleep accurately?
Consumer sleep trackers are not validated against polysomnography, the reference method for assessing sleep. A recent multicentre study compared 11 consumer…
