Nutrition Science12 min readΒ·Updated 12 April 2026

Magnesium Deficiency: Signs You're Low and the Best Food Sources

Magnesium is involved in over 300 enzymatic reactions yet most adults fall short of their daily requirement. Discover the subtle signs of deficiency, the best dietary sources, and how to choose the right supplement.

#magnesium deficiency#magnesium rich foods#magnesium supplement#muscle cramps magnesium#sleep magnesium#anxiety magnesium

Magnesium is the fourth most abundant mineral in the human body and participates in more than 300 enzymatic reactions, yet surveys consistently show that a significant proportion of adults in Western countries fail to meet their recommended daily intake. It is essential for energy production, DNA synthesis and repair, protein formation, muscle contraction and relaxation, nerve signal transmission, and the regulation of blood glucose and blood pressure. Every molecule of ATP β€” the universal energy currency of cells β€” must be bound to a magnesium ion to be biologically active. Despite this central importance, magnesium deficiency is rarely diagnosed because standard blood tests measure serum magnesium, which reflects only 0.3% of total body magnesium and remains relatively stable even when intracellular and skeletal stores are depleted. This creates a situation in which subclinical or functional deficiency is far more prevalent than official statistics suggest. Understanding the signs, the dietary sources, and the supplemental landscape is an important step towards maintaining adequate status.

Why Magnesium Deficiency Is So Common

Several converging factors explain why magnesium insufficiency has become so widespread in modern populations. First and most fundamental is dietary change: the displacement of whole, minimally processed foods by refined carbohydrates, processed grains, and convenience foods has dramatically reduced average magnesium intake. Milling wheat into white flour removes up to 85% of its magnesium content; similarly, refining sugar from molasses eliminates virtually all the magnesium present in the original plant. Second, agricultural soil depletion over decades of intensive farming has reduced the magnesium content of many vegetables and grains compared with historical values, meaning that even people eating what appears to be a healthy diet may be consuming less magnesium per serving than they expect. Third, certain common dietary and lifestyle factors actively increase magnesium losses: high intake of alcohol, caffeine, and sugar all promote urinary excretion of magnesium. Chronic stress activates the hypothalamic-pituitary-adrenal axis and raises cortisol, which in turn increases renal magnesium excretion β€” creating a vicious cycle in which stress depletes magnesium and low magnesium worsens the stress response. Fourth, a range of widely used medications including proton pump inhibitors, diuretics, antibiotics, and some diabetes medications impair magnesium absorption or accelerate its excretion. Type 2 diabetes itself is associated with increased urinary magnesium losses, and since diabetes is increasingly common, this compounds population-level deficiency.

πŸ’‘ Pro Tip

If you drink more than two cups of coffee daily or experience regular high stress, pay particular attention to your dietary magnesium intake.

Recognising the Signs of Low Magnesium

Because magnesium participates in so many biological processes, its deficiency manifests across multiple body systems, often in ways that overlap with other conditions. Muscle cramps and spasms are among the most classically associated symptoms, particularly nocturnal leg cramps that wake people from sleep. The mechanism relates to magnesium's role as a natural calcium antagonist: without sufficient magnesium, calcium-driven muscle contraction occurs more easily and relaxation is impaired. Eye twitches β€” technically termed eyelid myokymia β€” are another common and recognisable sign. Fatigue and weakness that are disproportionate to activity level are frequently reported, driven by magnesium's central role in ATP synthesis; without adequate magnesium, cellular energy production becomes inefficient. Anxiety, irritability, and a heightened sensitivity to noise and stress are neurological manifestations of magnesium deficiency, reflecting the mineral's role as a modulator of NMDA glutamate receptors β€” the same receptors involved in the excitatory stress response. Difficulty falling asleep, poor sleep quality, and early morning waking are common complaints in people with low magnesium, partly because magnesium regulates melatonin production and activates the parasympathetic nervous system. Headaches and migraines have a strong association with magnesium status: several clinical trials have shown that magnesium supplementation can reduce both migraine frequency and severity. Elevated blood pressure, irregular heartbeat, and constipation are additional downstream consequences of chronic deficiency. In severe cases, clinical hypomagnesaemia causes hypocalcaemia and hypokalaemia because magnesium is required for the secretion and action of parathyroid hormone and for potassium transport into cells.

πŸ’‘ Pro Tip

Nocturnal leg cramps that wake you from sleep are a classic sign of magnesium insufficiency β€” try increasing dietary intake before reaching for a supplement.

The Best Food Sources of Magnesium

The richest dietary sources of magnesium are whole plant foods, particularly those with high chlorophyll content (since chlorophyll's porphyrin ring contains a magnesium ion at its centre). Dark leafy greens such as spinach, Swiss chard, and kale are excellent sources: a 180g serving of cooked spinach provides around 157mg, roughly 37% of the adult daily reference intake. Nuts and seeds are among the most concentrated sources available: pumpkin seeds contain approximately 156mg per 28g serving, making them one of the single richest sources per gram. Almonds, cashews, Brazil nuts, and sunflower seeds all provide 60–90mg per 28g serving. Legumes including black beans, edamame, kidney beans, and chickpeas each contribute 60–120mg per cooked cup. Whole grains β€” particularly quinoa, brown rice, whole wheat bread, and oats β€” provide meaningful amounts, with quinoa offering around 118mg per cooked cup. Dark chocolate (70% cocoa or higher) contains roughly 65mg per 28g square, making it a pleasurable source. Avocados provide approximately 58mg each. Fatty fish including salmon, mackerel, and halibut each provide 82–106mg per 100g serving. The bioavailability of magnesium from foods varies: the phytate content of legumes and whole grains reduces absorption somewhat, while the simultaneous presence of fermentable fibre (as found in legumes) may actually improve net uptake. Soaking and cooking dried legumes significantly reduces their phytate content and improves magnesium bioavailability.

Magnesium and Sleep Quality

The relationship between magnesium and sleep is one of the most practically relevant aspects of this mineral. Magnesium regulates the activity of gamma-aminobutyric acid (GABA) receptors β€” the primary inhibitory neurotransmitter system in the brain that promotes relaxation and sleep onset. Low GABA activity is associated with anxiety and difficulty switching off mentally, both of which interfere with sleep. Magnesium also participates in melatonin synthesis by supporting the enzymatic conversion pathway that produces the sleep hormone from serotonin. Additionally, magnesium's role as a calcium channel blocker reduces overall neuronal excitability, making it easier to transition from wakefulness into sleep. A randomised controlled trial published in the Journal of Research in Medical Sciences found that older adults with insomnia who received 500mg of magnesium daily for eight weeks experienced significant improvements in sleep efficiency, sleep time, early morning awakening, and cortisol concentrations compared with placebo. Another systematic review found consistent associations between higher dietary magnesium and better sleep quality across multiple population studies. Glycinate and threonate forms of magnesium supplementation are most commonly recommended for sleep because they cross the blood-brain barrier more readily than oxide or sulphate forms. Threonate in particular has shown promise for cognitive and sleep-related outcomes in early trials. Taking magnesium in the evening β€” ideally 1–2 hours before bed β€” appears to be the optimal timing for sleep-related benefits.

πŸ’‘ Pro Tip

Magnesium glycinate or threonate taken in the evening is a well-tolerated approach for people experiencing stress-related insomnia or poor sleep quality.

Choosing the Right Magnesium Supplement

The supplement marketplace offers numerous forms of magnesium, and they differ substantially in bioavailability, tolerability, and appropriate application. Magnesium oxide is the most widely available and cheapest form but has poor bioavailability β€” typically only 4% is absorbed β€” and is primarily useful as a laxative rather than for restoring systemic magnesium levels. Magnesium citrate is significantly better absorbed (around 30%), is reasonably priced, and has a mild laxative effect that can be helpful for those who experience constipation. It is a solid general-purpose choice for most people. Magnesium glycinate (magnesium chelated with glycine) has high bioavailability, is well tolerated, causes minimal digestive upset, and the glycine component itself has relaxing and sleep-promoting properties β€” making it one of the best options for anxiety and sleep. Magnesium threonate (magnesium L-threonate) was developed specifically to improve brain penetration and has shown particular promise in cognitive ageing research. It tends to be the most expensive form. Magnesium malate is associated with energy production (malic acid is a Krebs cycle intermediate) and may be particularly useful for fatigue and muscle pain. Magnesium taurate combines magnesium with taurine and may have specific cardiovascular benefits. For general supplementation, 200–400mg of elemental magnesium daily is a typical range; higher doses are used therapeutically for conditions such as migraines under clinical guidance. Splitting doses reduces the likelihood of gastrointestinal side effects. Transdermal magnesium products (oils and bath flakes) are popular but evidence for their efficacy at raising systemic levels remains weak.

πŸ’‘ Pro Tip

Check the label for elemental magnesium content β€” a product listing 500mg of magnesium oxide contains only about 300mg of elemental magnesium.

Magnesium and Anxiety: The Evidence

Interest in magnesium as a nutritional strategy for anxiety management has grown substantially, supported by a plausible biological mechanism and an accumulating body of research. Magnesium modulates the HPA axis β€” the stress response system involving the hypothalamus, pituitary, and adrenal glands β€” and acts as a natural antagonist at NMDA receptors, which mediate the excitatory glutamate signalling that underlies anxiety and hyperarousal. Animal models of magnesium deficiency reliably produce anxiety-like behaviour, and human epidemiological studies consistently show inverse associations between dietary magnesium intake and self-reported anxiety and depression. A systematic review and meta-analysis published in Nutrients analysed 18 studies and concluded that magnesium supplementation had a beneficial effect on subjective anxiety in people with mild-to-moderate symptoms. The effects were most pronounced in those with confirmed low dietary intake and in people with comorbid physical health conditions. The interaction between magnesium and the B vitamins β€” particularly B6, which enhances magnesium uptake into cells β€” means that combined supplementation may be more effective than magnesium alone. Some commercial formulations include both nutrients for this reason. While magnesium is not a replacement for evidence-based anxiety treatments such as cognitive behavioural therapy or medication, addressing a genuine deficiency as part of a comprehensive approach to mental wellbeing is logical, low-risk, and potentially meaningful for many individuals. Given that stress itself depletes magnesium through increased urinary excretion, high-stress periods are precisely when dietary attention and supplemental support are most warranted.

Key Takeaways

Magnesium is a mineral that most people do not think about until symptoms of deficiency become difficult to ignore β€” and yet its influence spans energy, sleep, stress resilience, cardiovascular function, and mental health. The solution begins on the plate: prioritising pumpkin seeds, dark leafy greens, legumes, whole grains, and nuts at most meals will meaningfully shift dietary intake towards adequacy. For those whose intake remains insufficient due to lifestyle factors, medication, or chronic stress, a well-chosen supplement β€” particularly magnesium glycinate or citrate β€” represents a safe and often profoundly helpful intervention. If muscle cramps, poor sleep, or persistent fatigue are affecting your quality of life, investigating your magnesium status is a logical and low-cost place to start.

Frequently Asked Questions

How do I know if I am magnesium deficient?β–Ό
Standard serum magnesium tests are unreliable indicators of total body magnesium status. If you experience muscle cramps, poor sleep, fatigue, anxiety, or frequent headaches and your diet is low in whole plant foods, functional deficiency is plausible. A red blood cell (RBC) magnesium test is a better marker than serum magnesium.
What is the daily recommended intake for magnesium?β–Ό
Recommended intakes vary by age and sex: around 310–320mg per day for adult women and 400–420mg for adult men in most guidelines. Pregnant women have higher requirements. Many surveys suggest average actual intakes fall 20–30% below these targets.
Can magnesium help with migraines?β–Ό
Yes β€” magnesium deficiency is common in people with migraines, and several clinical trials support supplementation at 400–600mg daily as a preventive strategy. IV magnesium is also used in acute migraine treatment in clinical settings. It is most effective for migraines with aura.
Can you take too much magnesium?β–Ό
Excess magnesium from food poses no risk because the kidneys efficiently excrete surplus amounts. However, high-dose supplementation (above 350–400mg elemental magnesium in supplement form) can cause diarrhoea and gastrointestinal discomfort. Very high supplemental doses in people with kidney disease can lead to serious toxicity.
Does magnesium interact with medications?β–Ό
Yes β€” magnesium can interact with certain antibiotics (reducing their absorption if taken simultaneously), diuretics, blood pressure medications, and diabetes drugs. If you are on regular medication, check with your healthcare provider or pharmacist before starting supplementation.