Magnesium is an essential mineral involved in more than 600 reactions inside your cells. Correcting a shortfall is where the clearest benefits sit. Past that: magnesium is a reliable laxative, a possibly-effective migraine preventive at high daily doses, and a small help for blood pressure and blood sugar.
For sleep it does a little on weak evidence, and for the night leg cramps it is most often sold for, the best trials show no benefit. Start with food, and if you supplement, match the form to the goal.
Findings & Outcomes
What It Is
Refining strips magnesium out of processed food, and nearly half of American adults fall short of the recommended intake. Food sources are leafy greens, nuts, seeds, and legumes.
Supplementing someone already replete adds little, and only for a few specific uses.
Several long-term medicines lower magnesium further, among them proton pump inhibitors and diuretics.
What It Does
- Reliable. As an osmotic laxative for constipation, magnesium is fast and dependable, its single best-supported use.
- Modest but supported. Three uses rest on decent trials: daily high-dose migraine prevention, plus small drops in blood pressure and blood sugar, each bigger in those who started low. In 34 trials of 2,028 people, magnesium lowered blood pressure by about 2 mmHg systolic and diastolic versus placebo. Over years, people eating more magnesium have less stroke, heart failure, and diabetes: observational data that shows a link without proving cause.
- Overstated. For sleep, anxiety, and cramps, the marketing claims more than the trials support. For sleep, three small trials in older adults tested magnesium against placebo. It cut the time to fall asleep by about 17 minutes, on low to very low quality evidence, with no clear gain in total sleep time. For anxiety, a systematic review of 18 studies found a benefit in about half the trials of anxiety-prone people. That was four of eight in mildly anxious adults and four of seven in premenstrual syndrome. The rest showed nothing, quality was poor, the trials often added vitamin B6, and no trial measured stress with a validated scale, so magnesium cannot take sole credit. Night leg cramps are the headline use on the label, and controlled trials show no benefit. A Cochrane review found no edge over placebo in older adults, pregnancy data conflict, and exercise cramps are untested. Magnesium is cheap and low-risk to try, and it hasn't been shown to do much here.
The Research & Studies
Everything here is based on the research we have collected and checked, sorted into groups and ordered with the strongest evidence first. Click any claim to open the studies behind it.
Measurement And Diagnosis
About 48% of Americans eat less magnesium than recommended
A large share of people do not eat enough magnesium. In US national survey data, close to half the population fell short of the amount recommended from food.
A review of magnesium status in the United States (Rosanoff 2012, Nutr Rev) drew on national dietary survey data (NHANES) showing that roughly 48% of the population consumed less magnesium from food than the estimated average requirement in 2005 to 2006, an improvement on 56% in 2001 to 2002. Refined and processed foods lose magnesium in processing, and crop levels have drifted down, so the shortfall tracks a modern diet low in leafy greens, nuts, legumes and whole grains. Low intake and low blood levels have been associated with several conditions, though the survey measures what people ate, not a diagnosis.
Who this may not transfer to:Measured in US survey populations; the intake gap is broadly similar across other Western diets.
The study · 1
Rosanoff 2012, Nutr Rev · Nutr Rev
Blood Sugar
Magnesium lowers fasting glucose in diabetes and improves insulin sensitivity
In people who have diabetes or are heading toward it, taking magnesium nudged blood sugar down and improved how well the body handles glucose, compared with a dummy pill.
A systematic review and meta-analysis of double-blind randomized controlled trials (Veronese 2021, Nutrients) pooled trials of oral magnesium versus placebo in people with diabetes or at high risk. Compared with placebo, magnesium reduced fasting plasma glucose in people with diabetes, improved fasting glucose and the two-hour glucose after an oral glucose tolerance test in those at high risk, and improved insulin-sensitivity markers. Effects were reported as standardized mean differences; the review concludes magnesium has a beneficial role in glucose parameters, strongest where a deficit is likely.
Who this may not transfer to:Studied in adults with or at high risk of type 2 diabetes; the effect is largest where magnesium is low.
The study · 1
Veronese 2021, Nutrients · Nutrients
Digestion
About 70% improved on magnesium oxide for constipation, versus 25% on placebo
Magnesium is a reliable osmotic laxative: it pulls water into the bowel and gets things moving. In two placebo-controlled trials, roughly seven in ten people improved on magnesium oxide, against a quarter or fewer on placebo.
Two randomized, double-blind, placebo-controlled trials in patients with chronic constipation tested magnesium oxide. In the first (Mori 2019, J Neurogastroenterol Motil), 34 patients were randomized, 17 to MgO 0.5 g three times a day (1.5 g/day) and 17 to placebo, for 28 days: overall improvement reached 70.6% on MgO versus 25.0% on placebo (P = 0.015), with better spontaneous bowel movements, softer stool form and faster colonic transit. In the second (Morishita 2021, Am J Gastroenterol), 90 patients were randomized to senna, magnesium oxide or placebo: the overall response rate was 68.3% for MgO and 69.2% for senna versus 11.7% for placebo (P < 0.0001), with no severe adverse events. Magnesium works here precisely because it is poorly absorbed: the fraction left in the gut holds water osmotically.
Who this may not transfer to:Both trials enrolled 93% or more women; the osmotic mechanism is not sex-specific, but the trial populations were.
For constipation, the poorly-absorbed forms (oxide, citrate) are the point, and the dose is titrated to stool form. For raising body magnesium instead, those same poorly-absorbed forms are a weaker choice.
The studies · 2
Mori 2019, J Neurogastroenterol Motil · J Neurogastroenterol Motil
Morishita 2021, Am J Gastroenterol · Am J Gastroenterol
Headache And Migraine
Rated possibly effective for migraine prevention at about 600 mg a day
Taken daily as prevention, magnesium can cut down migraine attacks for some people. The evidence is modest: a systematic review rated it possibly effective.
A systematic review (von Luckner 2018, Headache) applied the American Academy of Neurology evidence scheme to five randomized, double-blind, placebo-controlled trials of magnesium for migraine prevention. One of two Class I trials and two of three Class III trials showed a significant reduction in migraine days or attacks versus placebo. The review concluded Grade C evidence, meaning magnesium is possibly effective, and that high-dose magnesium dicitrate around 600 mg/day appears to be a safe and low-cost prevention option. Magnesium prophylaxis is one of the better-tolerated options in this space.
Who this may not transfer to:Studied in adults aged 18 to 65 with migraine; not tested in children.
The study · 1
von Luckner 2018, Headache · Headache
Heart And Vascular
Lowers systolic blood pressure about 2 mmHg across 34 trials
Magnesium lowers blood pressure by a small amount. Across many trials it dropped the top number by about 2 points and the bottom number by about 2 points, which is modest.
A meta-analysis of 34 randomized, double-blind, placebo-controlled trials in 2028 participants (Zhang 2016, Hypertension) found that magnesium at a median dose of 368 mg/day for a median of three months reduced systolic blood pressure by 2.00 mmHg (95% CI 0.43 to 3.58) and diastolic by 1.78 mmHg (95% CI 0.73 to 2.82), alongside a measurable rise in serum magnesium. A dose of 300 mg/day for one month was enough to raise serum magnesium and lower pressure. The effect is small at the population level and largest where magnesium status is low to begin with.
Who this may not transfer to:Normotensive and hypertensive adults; the drop is larger where magnesium status is low.
The study · 1
Zhang 2016, Hypertension · Hypertension
Each extra 100 mg a day of dietary magnesium tracks with 22% less heart failure and 19% less diabetes
People who eat more magnesium tend to have less stroke, heart failure and diabetes over the years. This is diet, not a supplement trial, so it shows a pattern, not proving the mineral alone does it.
A dose-response meta-analysis of 40 prospective cohort studies totaling more than one million people (Fang 2016, BMC Med) found that each 100 mg/day increment in dietary magnesium was associated with a 22% lower risk of heart failure (RR 0.78, 95% CI 0.69 to 0.89), 7% lower stroke (RR 0.93, 0.89 to 0.97), 19% lower type 2 diabetes (RR 0.81, 0.77 to 0.86) and 10% lower all-cause mortality (RR 0.90, 0.81 to 0.99). There was no association with total cardiovascular disease (RR 0.99) or coronary heart disease (RR 0.92). These are dietary-intake associations, not supplement effects.
Who this may not transfer to:Adult cohorts; this is a dietary-intake association, not a supplement effect.
The study · 1
Fang 2016, BMC Med · BMC Med
Pain
No meaningful benefit for the night leg cramps of older adults
Despite being sold for it, magnesium does not reliably stop muscle cramps. In the best trials, older adults with night cramps did no better on magnesium than on a dummy pill.
A Cochrane systematic review and meta-analysis (Garrison 2020) pooled 11 randomized controlled trials in 735 people. For idiopathic cramps, largely nocturnal leg cramps in older adults, magnesium showed no meaningful advantage over placebo: the difference in cramps per week at four weeks was -0.18 (95% CI -0.84 to 0.49; moderate-certainty), and the share of people getting a 25% or better reduction was no different from placebo (RR 1.04, 95% CI 0.84 to 1.29; high-certainty). The review concluded it is unlikely magnesium provides clinically meaningful cramp prophylaxis in this group. For pregnancy-associated cramps the trials conflict, and exercise-associated cramps were not tested at all.
Who this may not transfer to:Mostly older adults with idiopathic cramps; pregnancy and exercise cramps were not settled here.
If you are taking magnesium purely to stop night cramps, the evidence does not support it; the reasons to take it are elsewhere, so judge it on those.
The study · 1
Garrison 2020, Cochrane Database Syst Rev · Cochrane Database Syst Rev
How it works
A cofactor in over 600 enzyme reactions, second most abundant ion inside cells
Magnesium is the second most common positively-charged ion inside your cells, and it helps run hundreds of enzyme reactions, including the ones that make and spend cellular energy.
A comprehensive physiology review (de Baaij 2015, Physiol Rev) describes magnesium as the second most abundant intracellular cation after potassium, involved in over 600 enzymatic reactions including energy metabolism (it stabilizes ATP) and protein synthesis, with major roles in the brain, heart and skeletal muscle. The review also notes that serum magnesium is not routinely measured and reflects body stores poorly, and that several common drug classes, including proton pump inhibitors, diuretics and some cancer therapies, can deplete magnesium over time.
The study · 1
de Baaij 2015, Physiol Rev · Physiol Rev
Counts once: this finding and 1 other here come from the same source, so they are one body of evidence, not separate confirmations.
Almost all magnesium sits inside cells and bone, so a normal blood test can miss a shortfall
The standard magnesium blood test can look normal even when your body is running low, because almost all magnesium is stored inside cells and bone, not floating in the blood the test samples.
The physiology review (de Baaij 2015, Physiol Rev) notes that serum magnesium makes up a tiny fraction of the body total, with almost all of it held inside cells and bone, and that serum values are not generally determined in patients and can stay within range despite a whole-body deficit. This is why intake surveys and serum tests can disagree, and why clinicians weigh diet, symptoms and medication use, not relying on the blood number alone.
The study · 1
de Baaij 2015, Physiol Rev · Physiol Rev
Counts once: this finding and 1 other here come from the same source, so they are one body of evidence, not separate confirmations.
Citrate and chelated forms absorb better than oxide, which barely raised blood levels
The form matters for absorption. In a head-to-head trial, magnesium citrate and chelated forms got into the blood better than magnesium oxide, and oxide barely moved blood levels at all.
A randomized, double-blind trial (Walker 2003, Magnes Res) compared three magnesium forms (amino-acid chelate, citrate and oxide) at 300 mg elemental magnesium a day in 46 healthy adults over 60 days. The organic forms showed greater absorption than oxide by 24-hour urinary excretion (P = 0.033), magnesium citrate produced the highest serum and salivary magnesium, and magnesium oxide produced no rise in serum magnesium compared with placebo. This is a small single study, but it fits the wider picture: the cheap, poorly-absorbed oxide is a weaker choice for raising body magnesium, and a better one when a laxative effect is what you want.
Who this may not transfer to:Healthy adults; an absorption ranking by surrogate markers, not a clinical outcome.
The study · 1
Walker 2003, Magnes Res · Magnes Res
Sleep
Older adults fell asleep about 17 minutes faster, on weak evidence
The popular idea that magnesium fixes sleep runs ahead of the evidence. In older adults it helped people fall asleep a bit faster, roughly 17 minutes, but the studies were small and weak, and total sleep time did not clearly improve.
A systematic review and meta-analysis (Mah 2021, BMC Complement Med Ther) found only three randomized controlled trials of oral magnesium versus placebo for insomnia, in 151 older adults across three countries. Pooled sleep onset latency was 17.36 minutes shorter on magnesium (95% CI -27.27 to -7.44, p = 0.0006), while total sleep time improved by 16 minutes but was not statistically significant. All trials were at moderate-to-high risk of bias and the evidence was rated low to very low quality. The authors note that because magnesium is cheap and widely available, it is a reasonable low-dose trial for insomnia symptoms, while the underlying evidence is thin.
Who this may not transfer to:Studied in older adults; whether it helps sleep in younger people has barely been tested.
If sleep is the goal, treat magnesium as a cheap, low-risk thing to try, not a proven fix, and put the weight on the sleep habits and environment that have stronger evidence.
The study · 1
Mah 2021, BMC Complement Med Ther · BMC Complement Med Ther
Mood & stress
Suggestive relief of anxiety in anxiety-prone people, on poor-quality evidence across 18 studies
Magnesium is widely taken to calm anxiety, and a systematic review found the evidence points that way but is weak. Roughly half the trials in anxiety-prone people showed a benefit and the rest showed nothing, and the study quality was rated poor.
A systematic review (Boyle 2017, Nutrients) gathered 18 studies of magnesium for subjective anxiety, all in samples already vulnerable to it: mildly anxious adults, premenstrual syndrome, postpartum women, and people with hypertension. Positive effects appeared in 4 of 8 anxious samples, 4 of 7 premenstrual samples, and 1 of 2 hypertensive samples, while magnesium did not help postpartum anxiety. The authors rated the overall evidence poor and called for well-designed randomized trials. Many of the trials gave magnesium combined with other ingredients such as vitamin B6, so the benefit cannot be pinned on magnesium alone, and no study used a validated stress measure despite the common stress claim.
Who this may not transfer to:The samples skew female because several trials were in premenstrual and postpartum women; whether the signal holds specifically in men is not separately established.
If anxiety is the reason for trying magnesium, treat it as a cheap, low-risk experiment, not a proven treatment, and keep the stronger, evidence-backed measures for anxiety in place.
The study · 1
Boyle 2017, Nutrients · Nutrients 2017;9(5):429
How It Works
A supplement only works if it crosses the gut wall, and forms differ sharply. In a head-to-head absorption test, citrate and chelated forms raised blood levels, while magnesium oxide barely moved them at all. The form on the label changes how much magnesium reaches your cells.
Anatomy of the Practice
1A cofactor inside the cell
Most magnesium sits inside cells and bone; only about 1% is in the blood. Inside the cell it stabilizes ATP, the molecule cells use to store and release energy, and it is needed for nerve and muscle signaling. When body stores run low, many small processes work less smoothly at once.
2Absorbed in the gut, cleared by the kidney
You absorb only a fraction of what you swallow, and how much depends on the form. The kidney clears the excess in urine. Magnesium that is not absorbed stays in the gut and draws water in. That is the laxative effect.
3Why the blood test can read normal
Because the routine serum test samples only that small blood fraction, it can read normal even when whole-body stores are low. This is why diet, symptoms, and medication use matter alongside the number.
Getting It Right
Ways to Do It
Food first, because a magnesium-rich diet also brings the fiber, potassium and plant compounds packaged with it. If you supplement, choose the form that fits your goal; a third-party-tested product confirms the label is accurate.
The densest everyday sources are leafy greens like spinach and chard, pumpkin and other seeds, nuts, legumes such as black beans and lentils, whole grains, and dark chocolate. Building meals around these covers most people without a pill.
To raise body magnesium, use a better-absorbed form: magnesium glycinate is well tolerated and a common choice, and magnesium citrate is well absorbed but mildly laxative. Magnesium oxide is cheap but poorly absorbed. That makes it a weak choice for repletion and a fair one when you want the laxative effect for constipation.
A typical supplemental amount is around 200 to 400 mg of elemental magnesium a day, taken with food, which most people tolerate well. Start at the lower end and let your response guide you. The migraine-prevention studies used more, around 600 mg a day of magnesium dicitrate, a specific regimen for that use and not a general target.
Unflavored magnesium glycinate or citrate from any brand carrying an independent testing mark, such as USP Verified, NSF or Informed Choice, is the practical buy. Magnesium is a commodity mineral, so the testing mark's job is simply to confirm the product holds what the label says.
Cautions For This Practice
Everything to be aware of is here, in one place. This practice suits most healthy people; a few situations call for real care.
Loose stools are the main side effect, a non-significant trend above placebo
In the Cochrane review of magnesium for cramps (Garrison 2020), pooled adverse-event data across trials showed oral magnesium was associated mostly with gastrointestinal effects such as diarrhea, reported by 11% to 37% of magnesium recipients versus 10% to 14% of controls. Minor adverse events trended more common on magnesium, though the difference was not statistically significant (RR 1.51, 95% CI 0.98 to 2.33), while major adverse events and withdrawals did not differ from placebo. The effect is dose-related: it is the unabsorbed magnesium drawing water into the gut, so it eases with a lower dose or a better-absorbed form.Garrison 2020, Cochrane Database Syst Rev
Reduced kidney function: check first
When kidney function is reduced, magnesium can build up. Have chronic kidney disease, dialysis, or a kidney-affecting medicine? Talk to the doctor who manages your kidney care before starting magnesium. With normal kidney function, a dietary or ordinary supplemental dose clears without a problem.
The tolerable upper limit for supplements, and loose stools
The tolerable upper intake level for magnesium from supplements is about 350 mg of elemental magnesium daily for adults, set because higher supplemental doses cause diarrhea. The limit covers supplements and antacids. Magnesium from food is not capped. If you get loose stools, that is the signal to lower the dose, split it across the day, or switch from oxide to a better-absorbed form.
Timing around certain medicines
Magnesium can bind some oral drugs in the gut and reduce their absorption, including tetracycline and quinolone antibiotics (such as doxycycline and ciprofloxacin), bisphosphonates, and thyroid hormone (levothyroxine). The fix is spacing: take those medicines at least a few hours apart from magnesium. If you take a prescription medicine and are unsure, ask your pharmacist about timing.
Start slow, be smart, read the research, and consult a professional if you have any concerns. This is here to inform your choice, not make it for you.
Go Deeper
- The laxative effect belongs to the broader plan in constipation.
- High-dose prevention sits inside headache and migraine.
- The blood-pressure work, run at a median 368 mg a day, is one small lever among many in high blood pressure.
- Food-first begins at whole foods.
- The practices for better sleep live in sleep environment.
The Chinese Medicine View
Magnesium was first isolated as a pure element in the early 1800s, long after the classical Chinese pharmacopoeia was set. No historical text assigns it a channel, a temperature, or a flavor. Magnesium does turn up in a few classical mineral medicines: talc, known as Hua Shi, is a hydrated magnesium silicate used to clear damp-heat and promote urination.
Common Questions
What is the best time of day to take magnesium?
No hour clearly wins for general use. Take it with a meal, which is easier on the stomach. Pick a time you will actually keep to, since taking it steadily matters more than the clock. The timing that does count is separating it from the specific drugs it can bind, covered under Cautions.
Will taking magnesium fix my sleep?
On its own, unlikely. The sleep evidence is weak and any effect small. If better sleep is the aim, the dependable levers are behavioral (steady light, a cool dark room, a fixed wake time) gathered in sleep environment. Treat magnesium as a minor extra there.
Does the brand of magnesium matter?
Less than the form does. Magnesium is the same element in every product, so brand and flavor mostly change price and taste. The chemical form is what sets how much your body absorbs.
Can I take magnesium alongside my other supplements?
Usually, yes. The interactions worth planning for are with certain prescription medicines, and the spacing fix for those is spelled out under Cautions. No routine supplement pairing needs special timing, so a daily stack alongside a multivitamin is fine.
Can magnesium replace my blood-pressure or migraine medication?
Keep any prescribed medicine as prescribed and treat magnesium as a possible add-on. The benefits shown for both uses are modest, so changing or stopping a prescription stays a call for the doctor who wrote it. For blood pressure especially, the free food-first steps do more of the work.
Why is magnesium marketed for so many things it barely helps?
Magnesium is inexpensive, and it plays a part in much of the body's chemistry. That combination lets a broad claim sound plausible for almost any complaint. Thin evidence doesn't mean it does nothing, it means better trials haven't been run yet.
Explore Related
Other pages this one connects to, by the evidence they share, the outcomes they touch, and the ground they cover.
All 14 sources on this page independently checked and cross-referenced.
Thomas Dehli, Founder & Editor, Sacred Lotus
Sacred Lotus has published Chinese medicine reference material since 2001. Integrative pages are held to the same standard as the herb and formula library: cite the source, grade the claim at its real strength, and say where the research has not looked. This page is educational and it is not medical advice. Last reviewed and updated August 9, 2026.
Evidence strength
How confidently the research supports a claim. Strength describes the evidence, not our endorsement.