Writing

Magnesium: the deep-dive deficiency guide

June 15, 2026

Magnesium is the nutrient that everyone has vaguely heard is good for sleep, cramps, and stress, and that almost nobody can actually account for in their diet. It's the fourth most abundant mineral in the body and a cofactor in more than 300 enzyme systems — energy production, protein synthesis, blood pressure regulation, blood glucose control, nerve conduction, and muscle contraction all depend on it. It's also one of the few nutrients where the average person genuinely does eat less than the recommended amount, and where the standard blood test is bad enough at detecting a problem that "my magnesium was normal" doesn't mean what people think it means.

This is a single-nutrient deep dive. If you want the broader picture of how magnesium sits alongside vitamin D, iron, and B12, start with our overview of the signs you might be low on the four most common deficiencies. Here we're going deep on magnesium alone.

What magnesium actually does

Magnesium's job description is enormous because it works as a cofactor, meaning it's the thing that lets other reactions happen rather than the reaction itself. Every time a cell makes or spends ATP — the molecule that carries energy — magnesium is involved, because biologically active ATP is bound to a magnesium ion. It stabilizes DNA and RNA. It gates the channels that move calcium and potassium across cell membranes, which is why magnesium status quietly governs muscle contraction, heart rhythm, and nerve signaling.

That last point is the practical one. Magnesium and calcium are functional opposites at the muscle: calcium drives contraction, magnesium drives relaxation. When magnesium runs low, muscles get twitchy and over-excitable, which is the mechanistic story behind cramps, eyelid twitches, and — in severe depletion — abnormal heart rhythms. Magnesium also has a regulatory relationship with potassium and calcium, and it tends to drag them down with it: low magnesium frequently causes a low potassium and a low calcium that simply won't correct until the magnesium is replaced first.

How much you need

Per the NIH Office of Dietary Supplements magnesium fact sheet, the RDA for adults is:

Group RDA (mg/day)
Men 19–30 400
Men 31+ 420
Women 19–30 310
Women 31+ 320
Pregnancy 350–360

Here's the uncomfortable part: national survey data show that a large share of adults habitually consume less than their RDA, with intakes lowest in older adults. Refining grains strips out most of the magnesium — whole wheat loses around 80% of it when milled to white flour — so diets heavy in processed carbohydrates run low almost by design. This is one of the genuinely common dietary shortfalls, not a manufactured supplement-aisle problem, though "below the RDA on a food diary" and "clinically deficient" are not the same thing.

Food sources, with rough amounts

Magnesium is the deficiency most fixable with food, because it's concentrated in whole plants — seeds, nuts, legumes, leafy greens, and whole grains. Approximate amounts per the NIH ODS data:

  • Pumpkin seeds — about 156 mg per ounce (the single best snack source)
  • Chia seeds — about 111 mg per ounce
  • Almonds — about 80 mg per ounce; cashews about 74 mg
  • Cooked spinach — about 78 mg per half cup
  • Black beans — about 60 mg per half cup
  • Edamame — about 50 mg per half cup
  • Peanut butter — about 49 mg per 2 tablespoons
  • Whole wheat bread — about 46 mg per two slices
  • Dark chocolate (70–85%) — about 65 mg per ounce

A day that includes an ounce of pumpkin seeds, a serving of beans, and some leafy greens covers a meaningful chunk of the target. A day built on white bread, lean meat, and refined snacks may not crack half of it.

Signs of deficiency

Early magnesium depletion is often silent or vague: loss of appetite, nausea, fatigue, and weakness. As it progresses, the neuromuscular signs appear — numbness, tingling, muscle cramps and twitches — and in severe cases, seizures, personality changes, and cardiac arrhythmias. Because magnesium pulls potassium and calcium down with it, severe deficiency often shows up as a treatment-resistant low potassium or low calcium.

The catch is detection. More than half of the body's magnesium sits in bone and the vast majority of the rest is intracellular, so the routine serum magnesium test reflects less than 1% of total body stores and the body defends that blood level by pulling magnesium out of bone. A review on assessing magnesium status concluded there's still no simple, accurate routine test for total-body magnesium, and that a normal serum value does not rule out a meaningful deficit. A serum magnesium below about 0.75 mmol/L is a reliable signal of real deficiency, but values in the "normal" range can still hide chronic depletion. This is why the food-diary number is genuinely useful here: if your habitual intake is well under the RDA, that's often a better signal than a reassuring blood test.

Who's at risk

Several groups lose magnesium faster or absorb it worse:

  • GI disorders — Crohn's, celiac, and chronic diarrhea impair absorption and increase losses.
  • Type 2 diabetes — higher blood glucose increases urinary magnesium loss. The relationship runs both ways: a dose-response meta-analysis of prospective cohorts covering more than 600,000 people found that each additional 100 mg/day of dietary magnesium was associated with roughly an 8–13% lower risk of developing type 2 diabetes. That's an association, not proof that pills prevent diabetes, but the consistency is striking.
  • Heavy alcohol use — increases urinary excretion and often pairs with poor intake.
  • Older adults — lower intake plus reduced absorption and increased renal losses.
  • Long-term medication use — proton pump inhibitors (PPIs) and certain diuretics can deplete magnesium over time; the FDA has warned about hypomagnesemia with long-term PPI use.

A review framing subclinical magnesium deficiency as a public health issue argues that because the common blood test misses chronic depletion, a lot of marginal magnesium status goes unrecognized — which is a reason to look at intake, not a reason to assume everyone is deficient.

Supplement forms, decoded

If food isn't getting you there, the form of magnesium matters more than the marketing. The big practical divide is organic salts versus magnesium oxide:

  • Magnesium oxide is cheap and packs a lot of elemental magnesium per pill, but it's poorly absorbed and mostly acts as an osmotic laxative — which is exactly why it's the active ingredient in milk of magnesia. A randomized crossover bioavailability study found magnesium citrate produced significantly higher serum and urinary magnesium than oxide.
  • Magnesium citrate is well absorbed and widely available; at higher doses it also loosens stools.
  • Magnesium glycinate (bisglycinate) is well tolerated and gentle on the gut, which makes it a common pick for people who want to supplement without a laxative effect.
  • Magnesium malate and chloride are also reasonably bioavailable organic forms.
  • Magnesium L-threonate is marketed for cognition based on animal data; human evidence is thin, and you're paying a premium for a niche claim.

Crucially, the NIH ODS sets a Tolerable Upper Intake Level of 350 mg/day for magnesium from supplements only — this UL does not apply to magnesium in food, which is regulated by the kidneys and effectively impossible to overdo through diet in healthy people. The first sign of too much supplemental magnesium is diarrhea. Genuinely dangerous magnesium toxicity (hypermagnesemia) is largely confined to people with impaired kidney function, who can't clear the excess — which is exactly the group that should not supplement without medical supervision.

Deficiency vs. toxicity, in one line each

  • Deficiency builds slowly, is common, often invisible on a standard blood test, and is best addressed with food first.
  • Toxicity from food essentially doesn't happen in healthy people; from supplements it starts as diarrhea and only becomes dangerous with kidney impairment.

When testing or supplementing makes sense

Order a serum magnesium — understanding its limits — if you have unexplained muscle cramps, are on a long-term PPI or diuretic, have a malabsorptive condition, or have a low potassium or calcium that won't correct. For most healthy people who simply eat a refined diet, the more useful move is to look at intake and shift the plate toward seeds, nuts, beans, and greens before reaching for a pill. If you do supplement, a modest dose of an organic form (citrate or glycinate) kept near the 350 mg supplemental ceiling is the sensible play — not a megadose.

See your actual magnesium intake

The honest problem with magnesium is the same as with every micronutrient: you can't feel a 60%-of-target week, and the standard blood test won't reliably catch it either. The one thing you can do is measure what's going in. CalBurndown reads magnesium straight off nutrition labels as you log meals and rolls it into a daily percent-of-target, so a chronic shortfall is something you can see on day three instead of inferring from a cramp on week ten. If you want to estimate your own target first, our micronutrient calculator will give you a number to aim at, and the guide to tracking micronutrients walks through how the label-reading works. For the broader context of why deficits make all of this harder, see are you getting enough vitamins on a calorie deficit.

This is not medical advice. Nothing here can diagnose a deficiency — only a clinician working with your history and the right tests can. Don't start supplements, especially if you have kidney disease, without talking to a clinician first.


References

Newsletter

Liked this? Get one in your inbox each week.

Short, honest essays on calorie math. Same voice, same depth, delivered weekly.

Free, weekly. We never share your email.