Magnesium is one of the most marketed sleep supplements, and the evidence is much smaller than the advertising suggests. It is worth understanding what it can and cannot do.
What magnesium does
Magnesium supports muscle and nerve function and is involved in hundreds of reactions in the body. It is essential for health, but that does not make it a sleep medicine.
Most people who eat a varied diet get enough.
What the studies show
Trials in older adults and people with low intake show modest improvements in sleep quality. Studies in healthy adults with normal levels are small and mixed.
Expect a slight nudge, not a transformation.
Food sources first
Nuts, seeds, wholegrains, beans, leafy greens and cocoa are reliable sources. Food also brings other nutrients and is hard to overdo.
A handful of pumpkin seeds or almonds is a simple daily addition.
Who may be low
People with poor intake, heavy alcohol use, certain gut conditions or long-term medicines may run low. Symptoms include cramps, weakness and fatigue rather than insomnia alone.
Our guide to sleep and anxiety cycle covers the anxiety side of poor sleep.
Supplement forms
Several forms are sold, and absorption differs. The label matters less than the elemental dose and whether the product is independently tested.
Choose a reputable brand rather than the cheapest option.
Dose and safety
High doses cause diarrhoea and abdominal cramps. People with kidney disease should not take supplements without medical advice, because magnesium can build up.
More is not better, and the upper limit matters.
Interactions
Magnesium can interfere with some antibiotics and other medicines by binding in the gut. Separate doses by a few hours and ask a pharmacist.
Bring the supplement bottle to the conversation.
Timing
There is no strong evidence that evening dosing is better. If you take it, a consistent time with food suits most people.
Do not expect an immediate effect on the first night.
Better first steps
A steady wake time, morning light, less evening caffeine and a cool dark room do more for sleep than any supplement. Fix those before adding a pill.
Sleep hygiene is unglamorous and effective.
When to seek help
Persistent insomnia, restless legs, cramps or unusual fatigue deserve assessment. Blood tests can clarify whether a deficiency exists.
Do not treat a suspected deficiency blindly.
Test before supplementing
A blood test can show whether you are actually low. Without one, a supplement is a guess that may cost money and cause side effects.
Ask for magnesium to be included if a deficiency is suspected.
A food-first week
Try a week of magnesium-rich meals: oats at breakfast, seeds as a snack, beans at dinner and cocoa in the evening.
Most people notice no dramatic change, which is the honest result.
Check the label for elemental magnesium rather than the total compound weight. A dose that looks large may contain little usable mineral. Ask a pharmacist if unsure.
NIH magnesium fact sheet covers the general guidance.
The takeaway
Eat magnesium-rich foods, consider a supplement only if intake is poor, and keep expectations modest. The routine still does most of the work.
Magnesium is a small helper, not a cure.
Frequently asked questions
Does magnesium help sleep?
The evidence is modest. It may help slightly in people with low intake, but it is not a sedative.
Which foods contain magnesium?
Nuts, seeds, wholegrains, beans, leafy greens and cocoa are reliable sources.
Is a high dose better?
No. High doses cause diarrhoea and cramps, and people with kidney disease should avoid supplements without advice.
When should I ask a clinician?
For persistent insomnia, cramps, restless legs or unusual fatigue, especially before starting supplements.