Quick answer

Magnesium is an essential mineral, and low magnesium is common in type 2 diabetes because high glucose increases its loss in urine. In trials, supplementing 250–400 mg a day improves fasting glucose and insulin sensitivity in people who are magnesium-deficient, with little effect in those who are not. It also modestly lowers blood pressure and has moderate evidence for migraine prevention; evidence for sleep is limited. Well-absorbed forms are citrate, glycinate and chloride; oxide is poorly absorbed. Excess causes diarrhoea, and supplements need care in kidney disease.

What magnesium is

Magnesium is the fourth most abundant mineral in the body and a cofactor for more than 300 enzymes, including those involved in energy production, muscle and nerve function, blood pressure regulation and — relevant here — insulin signalling and glucose metabolism. About 60% of the body's magnesium is in bone, most of the rest inside cells, and less than 1% in the blood.

Good food sources are green leafy vegetables, nuts (especially almonds and cashews), seeds (pumpkin, chia), legumes, whole grains and dark chocolate. Recommended intake is 310–320 mg a day for adult women and 400–420 mg for men; surveys suggest around half of adults in Western countries fall below it.

Why it matters in diabetes

Magnesium and glucose control are linked in both directions:

  • High glucose increases magnesium loss. When glucose spills into urine, magnesium is lost with it. As a result, low magnesium (hypomagnesemia) is found in roughly a quarter to a third of people with type 2 diabetes, more in those with poor control.
  • Low magnesium worsens insulin resistance. Magnesium is required for the insulin receptor to signal properly; deficiency reduces insulin sensitivity and impairs insulin secretion.
  • Low intake is associated with higher diabetes risk. Large population studies consistently find that people with higher magnesium intake are less likely to develop type 2 diabetes.

This creates a cycle in which diabetes lowers magnesium and low magnesium worsens diabetes.

Evidence by use

Use Rating What the trials show
Blood glucose / insulin sensitivity in people with low magnesium Moderate Trials in people with type 2 diabetes or prediabetes and low magnesium show improved fasting glucose and insulin sensitivity with 250–400 mg a day.
Blood glucose in people with normal magnesium Limited Effects small or absent. Pooled meta-analyses across all participants show modest average reductions in fasting glucose, driven by the deficient subgroups.
Prevention of type 2 diabetes Limited Strong observational association with intake; few prevention trials.
Blood pressure Moderate Small but consistent reductions of about 2 mmHg systolic in meta-analyses.
Migraine prevention Moderate Several trials at 400–600 mg a day reduce migraine frequency; recommended by some neurology guidelines.
Sleep Limited A few small trials, mostly in older adults.
Muscle cramps Mixed Trials in the general population mostly negative; some benefit in pregnancy-related cramps.
Constipation Strong Magnesium salts are established laxatives.

Doses studied

For glucose and blood pressure, trials mostly used 250–400 mg of elemental magnesium a day, often for 3–6 months. For migraine, 400–600 mg. The label figure matters: "magnesium citrate 500 mg" may contain only about 80 mg of elemental magnesium, whereas "magnesium (as citrate) 200 mg" means 200 mg of the mineral. Check which the label gives.

Side effects and safety

The main side effect is diarrhoea, from unabsorbed magnesium in the gut; it is dose-related and more common with oxide and citrate than glycinate. The tolerable upper intake from supplements is 350 mg a day for adults, set because of this laxative effect rather than toxicity; amounts from food have no upper limit.

Kidney disease is the important caution. The kidneys clear excess magnesium; when they cannot, it accumulates and can cause low blood pressure, muscle weakness, confusion and — at very high levels — heart rhythm problems. People with reduced kidney function should not take magnesium supplements without medical advice.

Interactions

Magnesium reduces absorption of some antibiotics (tetracyclines, quinolones), bisphosphonates and levothyroxine; take it at least two to four hours apart from these. Diuretics, proton pump inhibitors and some chemotherapy drugs lower magnesium and may make supplementation appropriate. It can add to the glucose-lowering effect of diabetes medication.

Where it appears in supplements

Magnesium is a common minor ingredient in blood sugar, sleep and heart formulas, often at 50–100 mg — well below the amounts studied. A stand-alone magnesium supplement in a well-absorbed form is usually cheaper and better dosed than a blend. See blood sugar supplement research.

Bottom line

If you have type 2 diabetes or prediabetes and your magnesium intake is low — or you take diuretics or acid-suppressing drugs — magnesium is one of the few supplements with a plausible mechanism and supporting trials, and correcting a deficiency benefits blood pressure, muscle and nerve function as well. If your levels are normal, expect little from it. Food sources come first. The comparison of glucose-lowering ingredients puts it alongside the others.

Frequently asked questions

How do I know if I am low in magnesium?

A serum magnesium blood test is the usual measure, but it reflects only about 1% of body magnesium and can be normal when tissue stores are low. Low serum magnesium is definitely low; a normal result does not rule out a marginal deficiency. Risk factors — diabetes, diuretics, proton pump inhibitors, heavy alcohol use, digestive disorders, low dietary intake — matter as much as the number.

Which form of magnesium is best?

Citrate, glycinate (bisglycinate), chloride, lactate and malate are well absorbed. Oxide is cheap and common but poorly absorbed, and much of it stays in the gut as a laxative. Glycinate is gentler on the bowel; citrate is a reasonable general choice.

Can magnesium help me sleep?

Evidence is limited: a few small trials in older adults with insomnia found modest improvements, and effects are more plausible in people with low magnesium. It is not a reliable sleep aid for people with normal levels.

Does magnesium lower blood pressure?

Meta-analyses find a small reduction — roughly 2 mmHg systolic — at doses around 300–400 mg a day, larger in people with high blood pressure or low magnesium.

References

  1. NIH Office of Dietary Supplements. Magnesium — Fact Sheet for Health Professionals (2022). https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
  2. National Center for Complementary and Integrative Health (NCCIH). Diabetes and Dietary Supplements: What You Need To Know (2021). https://www.nccih.nih.gov/health/diabetes-and-dietary-supplements-what-you-need-to-know
  3. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Type 2 Diabetes (2023). https://www.niddk.nih.gov/health-information/diabetes/overview/what-is-diabetes/type-2-diabetes
About this article

This page discusses supplement ingredients or categories. It may mention a commercial product, with disclosure. It is general health information, not personal medical advice. Read our editorial policy and medical review policy.