Magnesium and sleep: what the research actually shows
Partager
Does magnesium help with sleep problems?
Magnesium contributes to the normal function of the nervous system and to normal psychological function. These are two EFSA-authorised effects tied to how easily you wind down in the evening. The mineral is involved when the body dampens the activating signalling molecule glutamate and strengthens the calming GABA system.
The research is mixed but promising. In an often-cited study from 2012, older adults with sleep problems took 500 mg of magnesium daily for eight weeks. The researchers found that participants fell asleep faster and slept longer than the group given placebo. A larger review from 2021 concluded that the effect exists but is moderate, and that it is clearest in those who already had a low magnesium intake.
How magnesium affects melatonin and the nervous system
Melatonin is the hormone that tells the body it is night. Magnesium is needed in several of the enzyme steps that govern the circadian rhythm, and low levels are linked in studies to irregular melatonin production.
- Calms the nervous system: supports GABA, the body's brake.
- Lowers the stress response: dampens the release of stress hormones that would otherwise keep you awake.
- Relaxes the muscles: less tension and fewer night-time cramps that wake you.

Magnesium citrate – an easily absorbed form that contributes to normal muscle function and a reduction of tiredness.
See current price »Which magnesium form is best for sleep?
The form determines how well the mineral is absorbed and how gentle it is on the stomach. Glycinate and citrate are usually mentioned for evening use since they rarely cause loose stools at normal doses. Oxide is cheap but poorly absorbed. Read more in our comparison of magnesium forms.
| Form | Absorption | Suits |
|---|---|---|
| Glycinate | High | Evening, sensitive stomach |
| Citrate | High | All-round, evening |
| Malate | High | Daytime, energy |
| Oxide | Low | Mainly for constipation |
What time of day should you take magnesium for sleep?
For sleep, most people take magnesium 30–60 minutes before bed. That gives the body time to absorb the mineral before you wind down. If you want to read more about timing, there is a separate guide on what time of day magnesium suits best. Ideally take it with a little food if you have a sensitive stomach.
How much magnesium for better sleep?
Sleep studies have often used 200–500 mg per day. EFSA's upper limit for magnesium from supplements is 250 mg per day on top of your diet, since higher doses can cause loose stools. Start low and increase if needed. See the full dosage guide on how much magnesium per day suits you.
When is magnesium not enough?
Magnesium is not a sleeping pill. If you have regular trouble falling asleep, snore heavily or wake up exhausted, the cause may be something else – stress, sleep apnoea or irregular habits. Persistent problems should be raised with a doctor. If you want to find the right product first, you can compare options in our guide to the best magnesium.
What do the largest studies say?
The evidence consists mostly of smaller studies, but the pattern can be summarised. The 2012 study of older adults with insomnia is the most cited and showed improved sleep quality, longer sleep and lower levels of the stress hormone cortisol in the morning. A systematic review from 2021 went through several trials and concluded that magnesium may give slightly better sleep quality, but that the quality of the studies varies.
What matters is who took part. The clearest effects are seen in people who already had a low magnesium intake or sleep problems. In young, healthy people with full levels, the effect is small or non-existent. Magnesium therefore fills a shortfall rather than working as a sleeping aid for everyone.
Why do older adults often sleep worse – and where does magnesium fit in?
With age, both the intake of magnesium from food and its absorption in the gut often decrease. At the same time, sleep changes naturally: it becomes lighter and more fragmented. That makes older adults a group where an adequate magnesium intake can matter for both muscle relaxation and winding down. Here, diet is the first step, with supplements as a complement when needed.
Combine magnesium with an evening routine
Magnesium works best together with habits that signal the day is over. A supplement does not replace the basics, but it can reinforce them.
- Keep regular times – go to bed at roughly the same time each night.
- Dim the lights an hour before and put the screen away.
- Keep the bedroom cool, dark and quiet.
- Avoid caffeine late in the day and heavy meals right before bed.
By building magnesium on top of this structure, you give the body the best conditions to wind down. See it as one piece of the puzzle, not the solution in itself.
What you can realistically expect
If you have a low magnesium intake, you may notice that you wind down more easily and wake less during the night after a week or so. The effect is usually moderate, not dramatic. If there is no improvement at all after four to six weeks, magnesium is probably not your limiting factor, and it is worth looking at stress, routines or other causes.
Magnesium compared with other sleep aids
Magnesium is a nutrient, not a medicine, which means it works differently from many other options. Here is a quick comparison.
| Option | How it works | Good to know |
|---|---|---|
| Magnesium | Fills a shortfall, calms the nervous system | Best when intake is low, mild effect |
| Melatonin | Signals night, governs the circadian rhythm | Suits time shifts and jet lag |
| Sleep hygiene | Routines, light, temperature | The foundation everything else builds on |
They do not exclude each other. Many start with the routines, make sure their magnesium intake is adequate, and add melatonin only for specific needs. If you have persistent problems despite all this, it is time to see a doctor to rule out other causes.
Frequently asked questions
Can magnesium give better sleep straight away, the first night?
Rarely overnight. In studies, the effect usually appears after one to four weeks of regular use, once the body's magnesium levels have been replenished. If you already have a deficiency, you may notice a difference sooner. Give it at least a few weeks before judging whether it helps you personally.
Which magnesium is best for sleep?
Glycinate and citrate are popular for evening use because they are well absorbed and rarely upset the stomach at normal doses. Oxide is less well absorbed and is used mainly for constipation. Choose a form that suits your stomach and stay within the 250 mg supplement per day that EFSA recommends.
Can magnesium deficiency cause sleep problems?
Yes, low magnesium is linked in studies to poorer sleep quality and more night-time waking. The mineral is needed to calm the nervous system and govern the melatonin rhythm. If you get too little from your diet, a supplement can help – but a deficiency should be confirmed before you draw conclusions about your own particular problems.
Can I take magnesium together with melatonin?
Many people combine them without problems, and they work in different ways. Magnesium calms the nervous system while melatonin signals night. If you take medication or other supplements, you should still check with a doctor or pharmacist first, especially with regular use over time.