
Why Magnesium Matters
Magnesium is a cofactor in more than 300 enzyme systems. It takes part in DNA synthesis, protein production, ATP energy generation, nerve signal transmission, and muscle contraction and relaxation. Yet about half of Americans get less magnesium from food than the average requirement, according to the NIH Office of Dietary Supplements. In the UK, about 1 in 8 adults aged 20–59 get less magnesium than the lower reference intake (NDNS analysis). Symptomatic deficiency in otherwise healthy people is uncommon, though, because the kidneys hold on to magnesium when intake is low.
Why do intakes fall short? Processed foods and refined grains supply little magnesium, and many people eat few nuts, seeds, legumes and leafy greens. UK data suggest magnesium in fruit and vegetables fell about 10% between 1940 and 2019, likely due to changes in crop varieties and farming practices (Mayer 2022). Here is the evidence for each major benefit, organized by strength.
Take the free supplement quiz →
Blood Pressure — Moderate Evidence (small effect)
Magnesium competes with calcium in the smooth muscle of blood vessels, helping them relax. A 2016 analysis of 34 trials found magnesium (median 368 mg/day) lowered blood pressure by about 2 mmHg — a small effect. Hospitals give IV magnesium for certain heart-rhythm emergencies — a different situation from oral supplements. Large observational studies link higher magnesium intake or blood levels to lower risk of some heart problems, such as sudden cardiac death, but haven't proven cause and effect.
Migraine Prevention — Moderate Evidence
Neurology and headache societies (the American Academy of Neurology and American Headache Society) rate magnesium "probably effective" for preventing migraines, based on a few small trials. In one 1996 trial, 600 mg/day reduced attack frequency by about 42% versus 16% with placebo, but nearly 1 in 5 people taking magnesium got diarrhea. Doses studied for migraine (about 400–600 mg/day) are above the supplement upper limit, so use them only under a doctor's supervision; diarrhea is common.
Blood Sugar and Insulin Sensitivity — Mixed Evidence
Insulin signaling depends on magnesium. A 2011 meta-analysis of 13 prospective cohort studies (536,318 participants) found each 100 mg/day increase in magnesium intake was associated with about 14% lower risk of type 2 diabetes (an association, strongest in people with overweight). Trials are small and conflicting; the American Diabetes Association doesn't recommend magnesium for blood-sugar control unless you're deficient.
Sleep Quality — Limited Evidence
Magnesium interacts with calming brain pathways (GABA and NMDA receptors), which may explain its proposed effect on sleep. A small 2012 trial in 46 older adults with insomnia found 500 mg/day (above the usual supplement upper limit, so only with medical advice) improved insomnia scores, sleep efficiency and time to fall asleep over 8 weeks. A 2021 review of three small trials found magnesium shortened the time to fall asleep by about 17 minutes in older adults, but rated the evidence low quality.
If you have ongoing insomnia, cognitive behavioral therapy for insomnia (CBT-I) is the recommended first-line treatment. If you want to try magnesium, magnesium glycinate is a popular, gentle-on-the-stomach choice for evening use.
Stress and Anxiety — Limited Evidence
A 2017 review of 18 studies found hints that magnesium may ease mild anxiety in people prone to it, but the studies were poor quality and none properly measured stress. Researchers have proposed that stress and magnesium status may affect each other, but this hasn't been established.
Muscle Cramps — Weak Evidence
Muscles need magnesium both to contract and to relax. But despite its reputation, reviews have found magnesium doesn't meaningfully reduce ordinary night-time leg cramps in older adults (Cochrane 2020), and evidence in pregnancy is unclear (Cochrane 2015). Athletes lose some magnesium in sweat, so a magnesium-rich diet matters.
Magnesium malate is another well-tolerated form.
Bone Health — Early Evidence
About 50–60% of the body's magnesium is stored in bone. It influences parathyroid hormone and the active form of vitamin D. Higher magnesium intake is linked to better bone density, and a few small studies in postmenopausal women are encouraging, but more research is needed.

Choosing the Right Form
| Form | Often used for | Notes |
|---|---|---|
| Glycinate | Evening use, general use | Gentle on the stomach for most people |
| L-Threonate | Cognitive interest | Raised brain magnesium in animal studies; one small human trial |
| Malate | General use | Well tolerated |
| Citrate | General absorption | Better absorbed than oxide; loose stools at higher doses |
| Oxide | Constipation | Poorly absorbed; mostly used as a laxative/antacid |
Dosing and Safety
The RDA is 310–420 mg/day from all sources, depending on age and sex. The tolerable upper limit for supplemental magnesium is 350 mg/day — above that, diarrhea and cramping become more likely, whatever the form. Most people who supplement do well with 100–350 mg of elemental magnesium a day, taken with food.
Safety notes. Don't take magnesium supplements if you have kidney disease unless your doctor advises it — the risk of magnesium toxicity rises when the kidneys can't clear it. Magnesium can interact with certain medications: take tetracycline or fluoroquinolone antibiotics at least 2 hours before or 4–6 hours after magnesium, and keep bisphosphonates (osteoporosis drugs) 2 hours apart. Some diuretics and long-term use of proton pump inhibitors can change magnesium levels, so consult a healthcare provider if you take any medications regularly. If you're pregnant, check with your provider before supplementing.
The Bottom Line
Magnesium is essential and many people eat too little. Supplements modestly lower blood pressure and probably help prevent migraines (at doctor-supervised doses); evidence for sleep and anxiety is limited, and they don't reliably stop leg cramps. Food first — nuts, seeds, legumes, whole grains and leafy greens — and if you supplement, stay at or under 350 mg/day unless your doctor advises otherwise. Our free quiz looks at your diet, lifestyle, symptoms and goals to suggest which supplements fit you and how strong the evidence is.