Magnesium: the mineral of stress, sleep and muscles
Cramps, fatigue, stress, poor sleep: could you be low on magnesium? Roles, symptoms, best sources and supplement forms. Evidence-based.

Key takeaways
- Magnesium is involved in over 300 reactions: energy production, muscles, nerves, sleep.
- Mild deficiency is common: refined diets and chronic stress that depletes it.
- Typical signs: cramps, fatigue, irritability, restless sleep, twitching eyelid.
- Good sources: dark chocolate, nuts, legumes, whole grains, mineral-rich water.
Night cramps, lingering fatigue, nervousness, light sleep, even that eyelid twitching for no reason… These diffuse signs often share an underrated cause: low magnesium. This mineral is involved in hundreds of bodily reactions, and a large share of the population doesn't get enough (DiNicolantonio et al., 2018). Here's how to spot it and top it up.
What magnesium does
Magnesium is a cofactor for over 300 enzymes (Schwalfenberg & Genuis, 2017). It's central to energy production (it's essential to use ATP, the cells' “energy currency”), to muscle contraction and relaxation, to nerve transmission, to regulating the nervous system (hence its link with stress and sleep) and to bone strength. So a deficit makes itself felt almost everywhere.
Why we're often short
Two things add up. On one side, the modern diet is poorer in magnesium: refining grains removes most of it, and we eat fewer legumes, nuts and whole foods. On the other, chronic stress increases magnesium losses (and low magnesium increases stress sensitivity: a vicious circle). Athletes, heavy coffee/alcohol consumers and older people are also more exposed.
Symptoms of a shortfall
- •Cramps and involuntary muscle twitches.
- •Fatigue and unexplained low energy.
- •Irritability, nervousness, stress sensitivity.
- •Restless sleep or trouble falling asleep.
- •Twitching eyelid or muscle (fasciculations).
Blood tests don't tell all
Less than 1 % of the body's magnesium is in the blood: a “normal” blood level doesn't rule out a tissue deficit. So we also rely on dietary intake and symptoms.
The best food sources
| Food | Strength |
|---|---|
| Dark chocolate (≥70 %) | Very rich, enjoyable |
| Almonds, cashews, Brazil nuts | Magnesium + healthy fats |
| Legumes (beans, chickpeas) | Magnesium + fibre + protein |
| Whole grains, buckwheat, oats | Better than refined |
| Pumpkin, sunflower seeds | Very dense |
| Magnesium-rich mineral water | Easy, regular top-up |
The most effective habit is to bring back unrefined foods: swap white bread and pasta for whole versions, add a handful of nuts and legumes regularly, and keep a square of dark chocolate as a bonus. A magnesium-rich mineral water easily rounds out the day.
What about supplements?
Supplementation can help, especially during stressful periods or for athletes, and some data suggest an effect on subjective anxiety (Boyle et al., 2017). But not all forms are equal: magnesium bisglycinate, citrate or malate are better absorbed and tolerated than magnesium oxide (very common and cheap, but poorly bioavailable and laxative). Avoid megadoses: excess mainly causes digestive issues. If in doubt or with a medical condition, ask a professional.
The anti-cramp, anti-stress habit
Whole grains + nuts + legumes daily, magnesium-rich water, and if needed a bisglycinate/citrate supplement (not oxide). It also helps sleep.
As with other micronutrients, daily tracking lets you see whether your meals really cover your magnesium needs, rather than guessing. It's often by visualising intake that you realise how much refined food impoverishes the plate.
Frequently asked questions
Does magnesium really help sleep?
It contributes to nervous-system regulation and muscle relaxation, which can support better sleep, especially if deficient. It's not a sleeping pill, but correcting a shortfall often helps.
Which form of magnesium to choose?
Prefer bisglycinate, citrate or malate, better absorbed and tolerated. Avoid oxide, poorly bioavailable and often laxative.
How much magnesium per day?
ANSES references put the need around 300–400 mg/day depending on sex and age. Athletes and stressed people are toward the top of the range.
Is dark chocolate a good source?
Yes, dark chocolate at 70 % and above is one of the most enjoyable sources. In moderation (it's calorie-dense), one or two squares a day pleasantly contribute to intake.
Scientific sources
- 1.Schwalfenberg GK, Genuis SJ. The Importance of Magnesium in Clinical Healthcare. Scientifica. 2017.
- 2.DiNicolantonio JJ, et al. Subclinical magnesium deficiency. Open Heart. 2018.
- 3.Boyle NB, et al. The Effects of Magnesium Supplementation on Subjective Anxiety and Stress. Nutrients. 2017.
- 4.ANSES. Références nutritionnelles en vitamines et minéraux (magnésium).
Track your nutrition the easy way
DIAT scans your meals and computes your calories, macros and 27 micronutrients. Staying in a deficit gets simple.
Get started free