Melatonin and Magnesium: How to Combine Them

Melatonina y magnesio cómo combinarlos

Melatonin and magnesium are two of the supplements most sought after by people who want to sleep better, and it is increasingly common to find them together in the same product. The question is a fair one: does it make sense to combine them? The short answer is that they can be taken together and act in different ways, but the evidence on the combination is scarce and neither of them replaces good sleep habits.

In this article you will discover what each one does, what studies say about taking them at the same time, what amounts are considered in Spain and the European Union, when each option makes the most sense, and in which situations it is advisable to consult a professional first.

What does each one do, two different mechanisms?

Melatonin, the signal that it is night.

Melatonin is a hormone that the body itself produces when it gets dark. Its main function is not to “knock you out”, but to tell the body that it is time to sleep. That is why it is mainly related to the when of sleep, that is, to the circadian rhythm.

This explains why it works best in situations where that internal clock is out of step, such as jet lag or delayed sleep phase, rather than in sleep problems of other origins.

Magnesium, a mineral linked to relaxation

Magnesium is an essential mineral that takes part in hundreds of reactions in the body, including nerve and muscle function. Its possible link to rest is attributed to its action on the nervous system, for example by enhancing the activity of GABA receptors, which reduce the excitability of neurons (Schuster et al., 2025). That is why it is usually associated more with a feeling of calm than with the timing of sleep.

Since they act through different pathways, the idea of combining them has reasonable logic. But something being reasonable in theory does not mean it has been proven in practice, so it is worth looking at the studies.

What does science say about each one separately?

Melatonin

A meta-analysis of 19 studies with 1,683 participants with primary sleep disorders found that melatonin reduced the time taken to fall asleep by about 7 minutes on average compared with placebo (Ferracioli-Oda et al., 2013). A later meta-analysis confirmed that the strongest evidence is for reducing the time to fall asleep in primary insomnia and in delayed sleep phase syndrome (Auld et al., 2017).

Magnesium

The evidence is more limited. The largest trial to date, with 155 adults who slept poorly, observed that 250 mg daily of magnesium in the form of bisglycinate slightly improved the severity of insomnia compared with placebo after four weeks, with a small effect size (Schuster et al., 2025). A meta-analysis in older people with insomnia found that they fell asleep about 17 minutes sooner (Mah and Pitre, 2021).

And combined? What we know about taking them together

Here is the important part: there are hardly any trials that study the combination. The most cited one is a randomised trial with 43 people aged 70 or over with primary insomnia who lived in a residential care home in Italy. For eight weeks they took, one hour before bedtime, a combination of 5 mg of melatonin, 225 mg of magnesium and 11.25 mg of zinc, or a placebo. The group that took the combination clearly improved their perceived sleep quality, while the placebo group barely changed (Rondanelli et al., 2011).

The result is promising, but it has nuances worth knowing:

  • It was a small study in institutionalised older people, so it cannot simply be extrapolated to young adults or active people.
  • It included zinc, so it is not known which part of the effect corresponds to each component.
  • It used 5 mg of melatonin, an amount higher than the one contemplated in food supplements in Spain (we will see this below).

In short, combining melatonin and magnesium is a plausible option, but there is no evidence that the mix works better than each one on its own in the general population.

How to combine them wisely

Choose according to your need.

Before thinking about the combination, ask yourself what is stopping you from sleeping well:

  • If your problem is timing (you go to bed late and are not sleepy, you have changed time zones or your routine is irregular), melatonin makes more sense.
  • If you find it hard to switch off and your diet provides little magnesium (few pulses, nuts, seeds or wholegrain cereals), magnesium may provide a small extra.
  • If you have both situations, combining them may be reasonable, always with moderate amounts and for a limited time.

Reference amounts

Melatonin. In the European Union, the claim that melatonin helps reduce the time needed to fall asleep is authorised when 1 mg is taken shortly before bedtime. To ease the effects of jet lag, the condition is at least 0.5 mg shortly before bedtime on the first day of travel and the days following arrival. In Spain, products with more than 2 mg per day are considered medicines rather than food supplements (AESAN, 2013). More does not mean more effect; if 1 mg does not help you, the sensible thing is to review your habits or consult, not to raise the dose on your own.

Magnesium. In the EU, the tolerable upper intake level for magnesium from supplements is 250 mg per day, not counting that from food (EFSA, 2018). Check the amount of elemental magnesium stated on the label, not the total weight of the compound. Bisglycinate is a form that is usually well tolerated in the digestive system.

Timing

Melatonin is taken shortly before going to bed, because its role is to mark the start of the night. For magnesium, sleep studies usually schedule it 30 to 60 minutes before sleep, although there is no evidence that the exact time is decisive. In practice, taking them together in that window before bed is the simplest approach.

Keep a stable schedule and give yourself a few weeks to assess whether you notice changes. Melatonin may help you from the first nights, while the effects described for magnesium appeared after several weeks of daily use.

Check the product label.

Many supplements combine melatonin and magnesium with other ingredients, such as tryptophan, plants or B-group vitamins. The more components there are, the harder it is to know what works for you and the easier it is to accumulate amounts without realising it if you take several products at once. In addition, quality control matters: in laboratory analyses carried out in the United States, most of the melatonin supplements studied did not contain the amount stated on the label (NCCIH). Choose products from manufacturers with good traceability and clearly stated doses.

Precautions before taking them

In healthy adults and over the short term, melatonin appears safe for most people. Its side effects are usually mild, such as headache, dizziness, nausea or drowsiness, but there is not enough data on its long-term safety (NCCIH). With magnesium, the most frequent adverse effect at high doses is diarrhoea (NIH ODS, 2026).

Consult a healthcare professional before taking them if:

  • You take medication regularly, especially anticoagulants, or you have epilepsy, in the case of melatonin (NCCIH).
  • You take bisphosphonates, some antibiotics (tetracyclines or quinolones), diuretics or long-term stomach protectors, in the case of magnesium (NIH ODS, 2026).
  • You have kidney disease, because it increases the risk of accumulating magnesium.
  • You are pregnant or breastfeeding: there are not enough studies on the safety of melatonin at these stages.
  • You are an older person, since melatonin can stay active for longer and cause drowsiness the next day.
  • It is for a child or adolescent: the decision must be taken by their paediatrician, and these products should be kept out of their reach.

If you have been sleeping badly for weeks, snore heavily or regularly wake up tired, do not rely on supplements alone: persistent insomnia deserves a professional assessment, and cognitive behavioural therapy for insomnia remains the most effective treatment for chronic insomnia (Schuster et al., 2025).

What matters most for your rest

No supplement can compensate for habits that work against you. These changes are useful at every level, whether you are just starting to train or preparing for a competition:

  • Keep similar sleep and wake times, including at weekends.
  • Get natural light in the morning and reduce bright light and screens at night: this supports your own melatonin production.
  • Limit caffeine from mid-afternoon onwards.
  • If you train late in the day, leave a margin to wind down before going to bed.
  • Include pulses, nuts, seeds and wholegrain cereals in your diet, good sources of magnesium.

Can melatonin and magnesium be taken together?

Yes. They act through different mechanisms and are frequently sold together. We have not found studies describing problematic interactions between the two, but it is worth checking how each one interacts with your medication.

Which is better for sleep, melatonin or magnesium?

It depends on the cause. Melatonin has more evidence for falling asleep sooner when the sleep schedule is out of step. Magnesium may offer a small benefit, especially if your diet is poor in this mineral.

Can they be taken every day?

Over the short term and at the reference amounts, they appear safe for most healthy adults. For melatonin, long-term data are lacking, so the prudent approach is to use it for specific periods and review whether it is still needed.

Do they cause dependence?

No dependence like that of some sleep medicines has been described, but if you notice that you cannot sleep without them, it is worth reviewing your habits and discussing it with a professional.

Conclusion

Melatonin and magnesium can be combined with peace of mind in healthy adults, and there is logic in doing so because they act differently: melatonin helps mark the moment to sleep and magnesium is linked to relaxation. Even so, the evidence on the combination is limited and the expected benefits are modest. If you decide to try it, use moderate amounts (around 1 mg of melatonin and no more than 250 mg of magnesium from supplements), take them shortly before bedtime and support them with sleep habits that work in your favour.

Want to keep improving your rest and performance with evidence-based information? Explore the rest of our guides on nutrition and training and adapt each recommendation to your level and your goals.

References

Return to the blog