Magnesium Deficiency: Signs, Causes, and the Best Food Sources
Magnesium deficiency rarely shows up on a routine blood test, yet the National Institutes of Health Office of Dietary Supplements estimates that nearly half of American adults consume less magnesium than the estimated average requirement. The mineral sits inside every cell in your body and quietly runs more than 300 enzymatic reactions, from ATP production to muscle contraction to DNA repair. When intake falls short for months or years, the symptoms are easy to misread as stress, poor sleep, or aging. This guide covers what the science actually says about magnesium deficiency, who is most at risk, and how to test, treat, and prevent it with food first.
What magnesium actually does in the body
Magnesium is the fourth most abundant mineral in the body and the second most abundant intracellular cation after potassium. About 60 percent of total body magnesium is stored in bone, another 20 percent in muscle, and the remainder in soft tissues and blood. Less than 1 percent circulates in serum, which is exactly why a standard blood test is a poor proxy for whole-body status.
The mineral is a required cofactor for more than 300 enzymes. The biggest categories are energy metabolism (every ATP molecule that gets used in the body must bind to magnesium to become biologically active), protein synthesis, muscle and nerve function, blood glucose control, and blood pressure regulation. It also stabilizes membranes, supports the sodium-potassium pump, and modulates calcium entry into cells. When magnesium is low, calcium floods in and overcontracts muscle. That mechanism explains the muscle twitches, cramps, and palpitations people notice first.
How common is magnesium deficiency?
True clinical magnesium deficiency (hypomagnesemia, defined as serum magnesium below 0.75 mmol/L or 1.8 mg/dL) is uncommon in otherwise healthy people. The NIH Office of Dietary Supplements reports that 48 percent of Americans of all ages ingest less magnesium than the Estimated Average Requirement. The figure rises to 70 percent in adults over 70. The gap is dietary: refined grains lose 80 to 95 percent of their magnesium during milling, and modern produce has measurably less magnesium than 50 years ago because of soil depletion.
So most people are not technically deficient in the clinical sense, but many are running on chronically suboptimal intake. Symptoms of mild inadequacy can include fatigue, muscle cramps, restless legs, irritability, poor sleep, and headaches. Whether correcting that gap with food or supplements produces measurable benefit depends on what you measure. For some endpoints, like blood pressure and fasting glucose, the evidence is fairly consistent. For sleep and mood, it is more mixed.
Signs and symptoms of magnesium deficiency
Early symptoms of low magnesium are nonspecific and easy to miss. The NIH and Mayo Clinic cite the following as the most common early complaints:
- Muscle twitches, cramps, and fasciculations, especially in the calves and eyelids
- Fatigue and generalized weakness
- Loss of appetite and mild nausea
- Headaches, including migraines (magnesium deficiency is more common in migraine sufferers than in controls)
- Poor sleep, including difficulty falling asleep and more night waking
- Irritability, anxiety, and numbness or tingling
Severe deficiency, usually seen in hospital settings or with malabsorption, can produce hypocalcemia, low potassium that resists repletion, cardiac arrhythmias, seizures, and personality changes. These scenarios are medical emergencies and not something you fix with a multivitamin.
A note on interpretation: leg cramps and poor sleep have dozens of causes. Treating them with magnesium is reasonable if your intake is genuinely low, but a supplement trial is not a diagnosis. If symptoms persist after 8 to 12 weeks of repletion, look elsewhere.
Who is most at risk?
Several groups have consistently lower magnesium status. The NIH ODS and the National Health and Nutrition Examination Survey (NHANES) identify these as priority groups:
People with type 2 diabetes
Magnesium is excreted in urine, and insulin resistance increases urinary magnesium loss. NHANES data show that adults with type 2 diabetes have lower serum magnesium than non-diabetics, and the deficit worsens with poorer glycemic control. There is a two-way relationship: low magnesium impairs insulin sensitivity, and insulin resistance increases magnesium loss.
Older adults
Aging reduces intestinal magnesium absorption and increases urinary excretion. Older adults also eat less and take more medications that deplete magnesium, including loop and thiazide diuretics, proton pump inhibitors, and certain antibiotics.
People with alcohol use disorder
Alcohol increases urinary magnesium excretion, impairs absorption, and is often paired with poor intake. Hypomagnesemia is found in roughly 30 percent of people with chronic alcoholism admitted to hospital.
People with malabsorption
Crohn's disease, celiac disease, short bowel syndrome, and chronic diarrhea all reduce magnesium absorption. Bariatric surgery patients are also at risk, especially in the first year.
Prolonged PPI users
Proton pump inhibitors (omeprazole, pantoprazole, and similar) reduce stomach acid and, over months, can impair magnesium absorption. The FDA issued a safety communication in 2011 warning that long-term PPI use can cause hypomagnesemia, often presenting as muscle spasms, arrhythmias, or seizures.
Best food sources of magnesium
Food should always come first. The NIH ODS lists the following as the richest sources, with values per serving:
- Pumpkin seeds, shelled: 156 mg per ounce (37 percent of the daily value)
- Chia seeds: 111 mg per ounce (26 percent DV)
- Almonds: 80 mg per ounce (19 percent DV)
- Spinach, boiled: 78 mg per half cup (19 percent DV)
- Cashews: 74 mg per ounce (18 percent DV)
- Black beans, cooked: 60 mg per half cup (14 percent DV)
- Peanuts: 48 mg per ounce (11 percent DV)
- Edamame, shelled: 50 mg per half cup (12 percent DV)
- Potato, baked with skin: 43 mg per medium potato (10 percent DV)
- Brown rice, cooked: 42 mg per half cup (10 percent DV)
Drinking water can also contribute. Hard water contains dissolved magnesium and calcium, and some observational studies have found lower rates of cardiovascular disease in regions with harder water. The contribution is modest, usually 10 to 30 mg per day, but it adds up over years.
Two dietary patterns reliably deliver the RDA of 400 to 420 mg for men and 310 to 320 mg for women: the Mediterranean diet and the DASH diet. Both emphasize nuts, seeds, legumes, whole grains, and leafy greens, which together cover the magnesium-rich food groups. Estimate your own intake with the Magnesium Calculator.
What about supplementation?
If you cannot consistently hit the RDA through food, a supplement is reasonable. The form matters more than most people realize. Magnesium oxide, the cheap form in many multivitamins and antacids, is poorly absorbed (bioavailability around 4 percent compared with citrate) and is mostly useful as a laxative. Better absorbed forms include:
- Magnesium citrate: well absorbed, inexpensive, mildly laxative at higher doses
- Magnesium glycinate: well absorbed, gentle on the gut, often marketed for sleep though trials are mixed
- Magnesium malate: well absorbed, sometimes used for fibromyalgia with limited evidence
- Magnesium L-threonate: crosses the blood-brain barrier in animal studies; human cognitive data are preliminary
- Magnesium taurate: often marketed for cardiovascular use; trial data are scarce
The NIH ODS recommends against routine mega-dosing. The tolerable upper intake level for supplemental magnesium (not from food) is 350 mg per day for adults. Doses above that can cause diarrhea, and very high doses can cause dangerous hypotension, muscle weakness, and cardiac arrhythmias. People with significant kidney disease should not supplement without medical supervision, because the kidney is the main route of excretion.
Magnesium and blood pressure: what the trials show
The strongest evidence for magnesium supplementation in a healthy population is for blood pressure. A 2016 meta-analysis by Zhang and colleagues in Hypertension pooled 34 randomized, double-blind, placebo-controlled trials with 2,028 participants. Median dose was 368 mg per day. The pooled effect was a 2.00 mmHg reduction in systolic blood pressure and a 1.78 mmHg reduction in diastolic. The effect was larger in studies where baseline magnesium intake was low.
In 2022, the FDA authorized a qualified health claim stating that "consuming diets with adequate magnesium may reduce the risk of high blood pressure (hypertension)." The agency reviewed the evidence and concluded it was supportive but not conclusive, hence the "may" language. The FDA's qualified health claim framework is reserved for nutrients where the science is promising but does not meet the higher bar of significant scientific agreement.
For context, a 2 mmHg reduction in systolic blood pressure at a population level is meaningful. The Lancet's Prospective Studies Collaboration estimated that a 2 mmHg drop in usual systolic blood pressure translates to roughly 7 percent lower stroke mortality and 5 percent lower mortality from coronary heart disease. Magnesium is not a substitute for medication when blood pressure is high, but it is a reasonable lifestyle addition.
Magnesium and glucose control
Multiple meta-analyses of randomized trials report modest improvements in fasting glucose and insulin sensitivity with magnesium supplementation in people with type 2 diabetes or metabolic syndrome. A 2016 meta-analysis by Veronese and colleagues in the European Journal of Clinical Nutrition pooled 18 trials and found that magnesium supplementation (median 360 mg per day for a median 12 weeks) reduced fasting glucose by about 5 mg/dL and improved HOMA-IR, a marker of insulin resistance.
The mechanism is biologically plausible. Magnesium is a cofactor for tyrosine kinase, an enzyme in the insulin receptor signaling pathway. Low intracellular magnesium impairs insulin receptor phosphorylation and reduces insulin sensitivity. In observational cohorts, higher magnesium intake is associated with a 15 to 20 percent lower risk of developing type 2 diabetes over follow-up periods of 10 to 20 years.
Magnesium and sleep: the evidence is thinner than marketing suggests
Sleep is where magnesium supplements are most heavily promoted, and where the evidence is weakest. A 2021 systematic review by Cao and colleagues in BMC Complementary Medicine and Therapies identified only three randomized trials of magnesium supplementation for sleep outcomes, with a combined 151 participants. The pooled effect showed a small improvement in sleep time and a reduction in sleep onset latency, but the authors described the quality of evidence as low and called for larger trials.
The biological rationale is real. Magnesium regulates NMDA and GABA receptors in the brain and supports melatonin production. Animal studies consistently show that magnesium deprivation disrupts sleep architecture. But human trials have been small, short, and heterogeneous in dosing and form. If you try magnesium for sleep, give it 4 to 8 weeks at 200 to 400 mg of glycinate or citrate, and judge the result honestly. If your sleep does not change, the supplement is not the answer.
Testing and diagnosis
Standard serum magnesium is the most commonly ordered test, but it has real limitations. Because less than 1 percent of total body magnesium is in serum, serum levels can appear normal while intracellular and bone stores are depleted. The body tightly defends serum magnesium by pulling from bone, so a low serum level reflects late-stage depletion, not early inadequacy.
For people at higher risk of true deficiency (PPI users, diabetics, alcohol use disorder, malabsorption, diuretic therapy), serum magnesium is still worth checking periodically. For people with vague symptoms but no risk factors, an 8 to 12 week trial of dietary repletion or a low-dose supplement is more informative than a blood test. There is no widely available clinical test that reliably measures total body magnesium, though 24-hour urinary magnesium and the magnesium retention test (urinary magnesium after an intravenous load) are used in research settings.
The bottom line on magnesium deficiency
Magnesium deficiency in the clinical sense is rare, but chronic suboptimal intake is common, especially in older adults, people with type 2 diabetes, long-term PPI users, and anyone eating a heavily refined diet. The fix is usually food first: a handful of pumpkin seeds, almonds, or cashews delivers 50 to 150 mg, and a daily diet built around legumes, leafy greens, whole grains, and nuts can reliably hit the RDA. For people who cannot get there with food, a 200 to 400 mg supplement of magnesium citrate or glycinate is well absorbed, inexpensive, and safe in people with normal kidney function. Test your intake with the Magnesium Calculator, prioritize food sources, and reserve supplementation for the gaps food cannot fill.
Discussion
Share your perspective - be constructive and kind. Comments are visible immediately and moderated by our team.