In recent years, magnesium has become the most popular dietary supplement for better sleep. On social media, it's celebrated as a natural sedative, and in pharmacies, it's readily available next to valerian. The question rarely clearly answered is: Does magnesium help with sleep because it benefits everyone – or only those who have too little of it? The answer makes a big difference in the expectation one has when buying a package. This article explains what the mineral does in the body, what studies show, and when supplementation is actually useful.
The short answer: Magnesium is involved in over 300 enzyme reactions and plays a role in muscle relaxation, nerve excitability, and the regulation of the neurotransmitter GABA – all factors that influence sleep. Existing studies show small improvements in sleep onset latency and sleep quality in people with low magnesium status; in well-nourished individuals, the effect is minor to undetectable. People with nocturnal leg cramps or restless legs benefit most significantly. Sensible daily doses are around 200 to 400 milligrams of elemental magnesium; organic compounds such as citrate, glycinate, or bisglycinate are well tolerated. Magnesium is not a sleeping pill and does not replace treatment for a sleep disorder.
- People with an actual deficiency or nocturnal cramps benefit most.
- Recommended dose: around 200–400 mg of elemental magnesium, taken in the evening.
- Citrate, glycinate, and bisglycinate are better tolerated than oxide.
- Only supplement if kidney function is impaired after consulting a doctor.
What Magnesium Does in the Body
Magnesium is the fourth most important mineral in the human body. Around 60 percent is stored in bones, the rest in muscles and soft tissues; less than one percent circulates in the blood – which is why a normal blood value does not reliably rule out a deficiency in the tissues. Three functions are relevant for sleep. First, magnesium acts as a natural antagonist to calcium in muscle cells, thereby promoting relaxation. Second, it modulates NMDA receptors and the GABA system, balancing excitatory and inhibitory signals in the brain. Third, it is involved in regulating the stress axis; a low magnesium status is associated with higher cortisol levels. These mechanisms explain why a deficiency can lead to inner restlessness, muscle twitching, and poorer sleep – and why compensation can then noticeably help.

Who Really Benefits
The Swiss reference value for daily intake is about 300 milligrams for women and 350 to 400 milligrams for men. Most people achieve this through diet, but certain groups are at risk: people with a very unbalanced diet, older individuals with reduced intestinal absorption, endurance athletes with high sweat losses, pregnant women, people with chronic inflammatory bowel diseases, and those taking proton pump inhibitors or certain diuretics for extended periods. Persistent stress also increases excretion. Typical signs of a deficiency include nocturnal calf cramps, eyelid twitching, muscle twitching when falling asleep, and general inner restlessness. Those who recognize themselves in these symptoms have the best chance of noticing an improvement. Related to this is the article on Restless Legs and Sleep.
| Magnesium form | Tolerability | Special feature |
|---|---|---|
| Citrate | good, slightly laxative | high bioavailability, inexpensive |
| Bisglycinate | very good | stomach-friendly, often recommended for evenings |
| Malate | good | often used for muscle discomfort |
| Oxide | moderate | inexpensive, lower absorption |
Dosage, Timing, and Form
Always pay attention to the amount of elemental magnesium on the package, not the total weight of the compound – 500 milligrams of magnesium citrate contains significantly less than 500 milligrams of magnesium. For supplementation, 200 to 400 milligrams of elemental magnesium per day is considered a reasonable range. Higher amounts offer no additional benefit and almost always lead to loose stools because unabsorbed magnesium binds water in the intestine. If you are sensitive, divide the dose into two portions or choose bisglycinate. For sleep, it is recommended to take it about one to two hours before bedtime, with some food. Allow two to four weeks for tissue stores to replenish – an effect on the first night is unlikely.
Preferably Through Diet
Before reaching for a capsule, it's worth looking at your plate. Particularly rich in magnesium are pumpkin seeds with around 500 milligrams per 100 grams, sunflower seeds, almonds and cashews, oats, whole-grain bread, legumes, dark chocolate with 70 percent cocoa content or more, and green leafy vegetables like Swiss chard and spinach. In Switzerland, many mineral waters also contribute significantly – magnesium-rich varieties contain over 100 milligrams per liter. A handful of pumpkin seeds, a serving of oats, and a liter of magnesium-rich water already cover a large part of the daily requirement. The advantage of dietary intake: you also consume potassium, B vitamins, and fiber, which also play a role. Read more in the article on Diet for Better Sleep.
Caution and Limitations
Magnesium is safe with healthy kidneys because excess is excreted. This is precisely why caution is advised if kidney function is impaired – here, magnesium can accumulate and cause serious problems. In this case, always consult your doctor beforehand. Interactions should also be noted: magnesium can reduce the absorption of certain antibiotics, thyroid hormones, and bisphosphonates, so an interval of at least two to four hours should be maintained. And generally speaking: if you've been sleeping poorly for months, magnesium is not the solution, but at most one component. The structural factors – rhythm, bedtime, tension, sleeping surface – weigh much more heavily, as shown in the article on Insomnia.

Get a CHF 25 discount
Subscribe to the newsletter and receive a one-time CHF 25 discount. ✓ 200 nights trial sleep ✓ 10-year warranty
Frequently Asked Questions About Magnesium and Sleep
When should I take magnesium for sleep?
About one to two hours before bedtime, ideally with some food. The timing is less critical than regularity: tissue stores replenish over two to four weeks, so a single dose will have little effect.
Which form of magnesium is best for the evening?
Bisglycinate is considered particularly stomach-friendly and is often recommended for evening use. Citrate has good bioavailability but has a mild laxative effect at higher doses. Oxide is inexpensive but poorly absorbed.
Does magnesium help with nocturnal leg cramps?
Often yes, if there is an actual deficiency. In well-nourished individuals, the study data is less convincing. Since supplementation at typical doses is well-tolerated, a four-week trial is considered reasonable – provided kidney function is normal.
Can I take too much magnesium?
With healthy kidneys, excess is excreted. However, higher doses lead to diarrhea because unabsorbed magnesium binds water in the intestines. If kidney function is impaired, it can accumulate – in this case, only supplement after consulting a doctor.
Does magnesium replace a sleeping pill?
No. Magnesium is a mineral, not a sedative. It can help if muscle restlessness or a deficiency disrupts sleep, but it does not induce sleep. For chronic sleep disorders, other measures are necessary.
This article is for general information only and does not replace medical advice.











Leave a comment
This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.