Magnesium: Sleep, Stress, and Strength

Table of Contents
Magnesium is an essential mineral involved in more than 300 enzyme systems in the body — supporting nerve transmission, muscle contraction and relaxation, blood pressure regulation, blood sugar control, energy production (ATP is only active when bound to magnesium), protein and DNA synthesis, and bone formation. About 50–60% of the body’s magnesium is stored in bone, most of the rest in muscle and soft tissues, and less than 1% in the blood. It’s also used medically as an antacid and laxative.
RDA (Recommended Dietary Allowance)
| Age | Males | Females |
|---|---|---|
| 0-6 months* | 30mg | 30mg |
| 7-12 months* | 75mg | 75mg |
| 1-3 | 80mg | 80mg |
| 4-8 | 130mg | 130mg |
| 9-13 | 240mg | 240mg |
| 14-18 | 410mg | 360mg |
| 19-30 | 400mg | 310mg |
| 31+ | 420mg | 320mg |
| Pregnant (14-18) | — | 400mg |
| Pregnant (19-30) | — | 350mg |
| Pregnant (31-50) | — | 360mg |
| Breastfeeding (14-18) | — | 360mg |
| Breastfeeding (19-30) | — | 310mg |
| Breastfeeding (31-50) | — | 320mg |
* Adequate Intake (AI) for infants. Source: US National Academies, via the NIH Office of Dietary Supplements. The daily value used on food labels is 420mg.
ODA (Optimal Daily Allowance)
Meet the RDA — 310–420mg a day for adults — mainly from food. That’s worth paying attention to, because many people fall short: in the US, about half of adults get less magnesium from food than they need. Nuts, seeds, legumes, whole grains, and leafy greens make it easy to close the gap. Athletes who sweat heavily may need somewhat more. If you use a supplement to fill a shortfall, keep it within the 350mg-a-day upper limit for supplemental magnesium, unless your doctor advises otherwise — magnesium from food has no upper limit. There’s no good evidence that going well beyond the RDA improves health or performance in people who aren’t deficient.
Found In (per 100g)
| Food | Magnesium | % Daily Value |
|---|---|---|
| Pumpkin seeds (pepitas, raw) | 500mg | 119% |
| Flaxseeds (ground) | 372mg | 89% |
| Brazil nuts (raw) | 351mg | 84% |
| Chia seeds | 326mg | 78% |
| Sunflower seeds (raw) | 302mg | 72% |
| Almonds (raw) | 258mg | 61% |
| Cashews (raw) | 251mg | 60% |
| Dark chocolate (70–85% cacao) | 228mg | 54% |
| Peanuts (raw) | 180mg | 43% |
| Hazelnuts (raw) | 156mg | 37% |
| Walnuts (raw) | 142mg | 34% |
| Pistachios (raw) | 110mg | 26% |
| Spinach (boiled) | 87mg | 21% |
| Whole wheat bread | 73mg | 17% |
| Black beans (cooked) | 70mg | 17% |
| Quinoa (cooked) | 64mg | 15% |
| Tofu (firm) | 58mg | 14% |
Seeds and nuts are the richest sources by weight — a small handful (30g) of pumpkin seeds provides about a third of the daily value. Note that pumpkin seeds roasted in their shells contain only about half as much per 100g as the hulled green kernels (pepitas). Legumes, whole grains, and leafy greens contribute less per 100g but are eaten in bigger portions, and fish (such as salmon and mackerel), dairy, avocado, and bananas add smaller amounts. Refining strips out most of the magnesium in grains, so whole grains provide considerably more than white flour and white rice.
Helps With
- Regulating muscle and nerve function
- Blood pressure — in trials, magnesium supplements lowered blood pressure modestly, by about 2mmHg on average
- Energy production and metabolism
- Bone health — magnesium is part of bone’s structure, and higher intakes are linked with higher bone density
- Insulin sensitivity and blood sugar control — higher intakes are linked with a lower risk of type 2 diabetes, and supplements modestly improve blood sugar in people with diabetes
- Migraine prevention — US neurology guidelines rate magnesium as “probably effective” for preventing migraines
- Sleep — small trials, mainly in older adults with insomnia, suggest modest benefits; evidence in healthy younger people is limited
- Heart rhythm — magnesium is essential for normal heart rhythm, and low levels can trigger arrhythmias
- Artery health — magnesium helps stop calcium from crystallizing in blood vessel walls. In the Framingham Heart Study, people with the highest magnesium intakes were 58% less likely to have calcium deposits in their coronary arteries than those with the lowest intakes (an observational finding)
For Athletes and Active People
Magnesium is worth keeping an eye on if you train regularly. It’s lost in sweat, and athletes in weight-class or aesthetic sports who restrict food are especially likely to fall short. Low magnesium impairs muscle contraction and relaxation, and it disrupts electrolyte balance — significant magnesium deficiency causes low potassium and low calcium levels that don’t correct until magnesium is restored.
Magnesium is also needed for protein synthesis and for energy production — every molecule of ATP your muscles use works as a magnesium–ATP complex. In athletes who are deficient, correcting magnesium can improve performance; in athletes with adequate status, supplements haven’t shown consistent performance benefits.
What about cramps? Magnesium is widely recommended for muscle cramps, but the evidence is disappointing: a Cochrane review concluded that magnesium supplements are unlikely to prevent common muscle cramps in adults, and exercise-associated cramps seem to be driven mainly by muscle fatigue rather than low magnesium. Evidence for cramps in pregnancy is mixed. If you have frequent cramps, slow recovery, or poor sleep, it’s still worth checking that your diet supplies enough magnesium — just don’t expect a supplement to fix cramps on its own.
Insufficient Doses
Are you at risk? Many people don’t get enough magnesium from food — about half of US adults fall short — though clear-cut deficiency is less common, because the kidneys conserve magnesium when intake is low. Risk is higher in:
- People with heavy alcohol use — alcohol increases magnesium loss in urine and often goes with poor diets.
- People with type 2 diabetes — high blood sugar increases magnesium loss through the kidneys.
- People with digestive conditions — such as Crohn’s disease, coeliac disease, chronic diarrhea, or after weight-loss surgery.
- Older adults — who tend to eat less magnesium, absorb less, and lose more in urine.
- People taking certain medicines — long-term proton pump inhibitors (the US FDA has warned that use for over a year can cause low magnesium), loop and thiazide diuretics, and some asthma medicines and antibiotics (such as aminoglycosides) can all lower magnesium levels. Oral contraceptives may lower levels slightly.
- People who drink a lot of cola or caffeine — the effect is fairly small: caffeine slightly increases magnesium loss in urine, and heavy cola intake may matter mainly because it replaces more nutritious foods and drinks.
- People under chronic stress — stress appears to increase magnesium loss, and low magnesium may in turn heighten the stress response; this proposed feedback loop is supported mainly by animal and small human studies.
- People taking high-dose calcium supplements while getting little magnesium — calcium and magnesium work as a balance in the body, and an imbalance may contribute to arterial calcification, in which calcium deposits in blood vessel walls and stiffens them. Low magnesium intake and blood levels are linked with more coronary artery calcification, and in a large US study that followed people for about 10 years (MESA), those taking calcium supplements were more likely to develop new calcium deposits in their coronary arteries, while calcium from food wasn’t linked with more calcification. In a small trial in people with chronic kidney disease, whose arteries are especially prone to calcification, magnesium supplements slowed its progression. Most of this evidence is observational, but it supports a sensible approach: get calcium mainly from food, and if you take calcium supplements, make sure your magnesium intake is adequate too.
A note on testing: standard blood tests measure serum magnesium, but less than 1% of the body’s magnesium is in the blood, and the body works hard to keep that level normal — so a normal result doesn’t rule out low stores. Red blood cell (RBC) magnesium tests are sometimes suggested as a better measure, but they haven’t been well validated, and no single test reliably reflects the body’s total magnesium. Doctors may combine blood and urine tests with your symptoms and diet to get a fuller picture.
Symptoms of deficiency (many overlap with other causes, so see a doctor if you have these):
- Early signs: loss of appetite, nausea and vomiting, fatigue, and weakness
- As deficiency worsens: numbness and tingling, muscle cramps and contractions, tremor, and abnormal eye movements
- Mood changes, including irritability, anxiety, and low mood
- Irregular heartbeat and, in severe cases, seizures
- Low potassium and calcium levels that don’t correct until magnesium is restored
- Over the long term, low magnesium status is linked with higher blood pressure, type 2 diabetes, osteoporosis, and migraine
Occasional eyelid twitches are often blamed on low magnesium, but they’re usually harmless and more often linked to stress, tiredness, or caffeine.
Excessive Doses
Upper limit (UL): 350mg a day of supplemental magnesium for adults and children aged 9 and over (65mg for ages 1–3, and 110mg for ages 4–8). The limit applies only to magnesium from supplements and medicines — magnesium from food isn’t associated with toxicity, because healthy kidneys excrete the excess. Higher doses are sometimes used under medical supervision, for example for migraine prevention.
Possible side effects of too much supplemental magnesium:
- Diarrhea, nausea, and stomach cramps — the most common side effects, especially with forms that have a strong laxative effect (oxide, citrate, hydroxide, and sulfate)
- Magnesium toxicity (hypermagnesemia) — very rare, usually from very large doses of magnesium-containing laxatives or antacids (often over 5,000mg a day), and especially in people with kidney disease. Symptoms include low blood pressure, nausea, facial flushing, muscle weakness, difficulty breathing, irregular heartbeat, and, in extreme cases, cardiac arrest
People with kidney disease shouldn’t take magnesium supplements without medical advice, because they can’t clear the excess. People with heart conditions, digestive conditions, or diabetes, or who take the medicines listed under Interactions, should also check with their doctor first.
Different Types
- Magnesium Citrate — one of the better-absorbed common forms, and inexpensive, making it a good general-purpose choice. At higher doses it acts as a laxative, which is why it’s also used for constipation.
- Magnesium Glycinate (bisglycinate) — magnesium bound to the amino acid glycine. Well absorbed and gentle on the stomach, with less laxative effect, which makes it popular for sleep and relaxation. Its “calming” reputation is plausible — glycine itself has some evidence for sleep — but it hasn’t been well tested against other forms.
- Magnesium Chloride — well absorbed; available as tablets, liquids, and flakes.
- Magnesium L-Threonate — raised magnesium levels in the brain in animal studies, and is marketed for memory and cognition. Small human trials, mostly industry-funded, have reported benefits, but the evidence is still early. Expensive, and provides relatively little elemental magnesium per dose.
- Magnesium Malate — magnesium bound to malic acid; often marketed for fatigue and fibromyalgia, but trials have been small, with mixed results.
- Magnesium Taurate — magnesium bound to the amino acid taurine; marketed for heart health and blood pressure, mostly based on animal studies.
- Magnesium Orotate — magnesium bound to orotic acid. One trial in people with severe heart failure reported improved survival, but claims that it delivers magnesium “into the mitochondria” or boosts athletic performance aren’t supported by evidence. It also provides little elemental magnesium per dose.
- Magnesium Oxide — contains a lot of magnesium by weight, but only a small fraction is absorbed. It works well as a laxative and antacid, and is the inexpensive form used in many migraine and blood pressure studies.
- Magnesium Hydroxide (milk of magnesia) — used mainly as a laxative and antacid. Like other laxative doses of magnesium, it works by drawing water into the intestines, so overuse can cause dehydration and electrolyte imbalances.
- Magnesium Sulfate (Epsom salt) — popular in baths for sore muscles, but very little magnesium is absorbed through the skin, so any benefit likely comes from the warm water and relaxation. Given intravenously, magnesium sulfate is an important medical treatment — for example, to prevent seizures in pre-eclampsia and to treat severe asthma attacks.
Which form for your goal:
| Goal | Best form |
|---|---|
| General supplementation | Citrate, glycinate, or chloride |
| Sleep and relaxation | Glycinate (gentle; benefits mainly shown in older adults with insomnia) |
| Sensitive stomach | Glycinate |
| Migraine prevention | Oxide or citrate (400–600mg a day was used in studies — discuss with your doctor, as this exceeds the supplement upper limit) |
| Constipation | Citrate, oxide, or hydroxide |
| Brain health and cognition | L-threonate (early evidence) |
| Heart health and blood pressure | Any well-absorbed form; trials have used several, including oxide and citrate |
| Fatigue or muscle function | Malate (limited evidence) |
How to Take It
Split your dose into two or three smaller servings rather than one large one — absorption is more efficient, and it significantly reduces the risk of digestive side effects. Taking magnesium with food helps too, particularly for forms that can irritate the gut on an empty stomach.
Timing depends on your goal. For sleep, glycinate taken 30–60 minutes before bed is a popular approach. For general supplementation or athletic recovery, spreading doses through the day tends to work better than a single dose. Avoid taking magnesium at the same time as high-dose calcium or zinc supplements, as very high doses compete for absorption.
Interactions
Magnesium supplements and antacids can reduce the absorption of some medicines, so timing matters: take tetracycline and fluoroquinolone antibiotics (such as ciprofloxacin) at least 2 hours before or 4–6 hours after magnesium, and keep osteoporosis drugs (bisphosphonates, such as alendronate) at least 2 hours apart from magnesium. Long-term proton pump inhibitors, loop and thiazide diuretics, and some other medicines (including certain antibiotics and chemotherapy drugs) can lower magnesium levels, while potassium-sparing diuretics reduce magnesium loss. Very high doses of zinc (over 140mg a day) can reduce magnesium absorption.
Synergy
- Works with calcium and vitamin D to support bone, and helps keep calcium in bone rather than in blood vessel walls — magnesium is involved in activating vitamin D, and in one trial, magnesium supplements helped normalize vitamin D levels in people whose levels were low.
- Works with potassium in muscle and nerve function — low magnesium causes the kidneys to waste potassium, so low potassium often can’t be corrected until magnesium is restored.
- Needed to activate vitamin B1 (thiamine) into its working form.
- Often combined with vitamin B6 — the pairing has been studied for stress and PMS, with some modest positive results (check the B6 dose, as combined products are a common source of hidden B6).
- Supports insulin function alongside other minerals involved in blood sugar control, such as zinc and chromium — though evidence for combining them is limited.
Antagonistic Interactions
- Very high calcium intakes may modestly reduce magnesium absorption, though at normal intakes the effect is small.
- Very high zinc intakes (over 140mg a day) reduce magnesium absorption.
- Alcohol increases magnesium loss in urine; caffeine has a smaller effect.
- Phytates in whole grains and legumes slightly reduce magnesium absorption — though these foods are still good sources overall.
Food values: USDA FoodData Central — pumpkin seeds (pepitas), raw (Foundation Foods, FDC ID 2515380); flaxseed, ground (Foundation Foods, 2262075); Brazil nuts, raw (Foundation Foods, 2515373); chia seeds (Foundation Foods, 2710819); sunflower seeds, raw (Foundation Foods, 2515381); almonds, raw (Foundation Foods, 2346393); cashews, raw (Foundation Foods, 2515374); dark chocolate, 70–85% cacao (SR Legacy, 170273); peanuts, raw (Foundation Foods, 2515376); hazelnuts, raw (Foundation Foods, 2515375); English walnuts, raw (Foundation Foods, 2346394); pistachios, raw (Foundation Foods, 2515379); spinach, boiled (SR Legacy, 168463); 100% whole wheat bread (Foundation Foods, 2758994); black beans, cooked (SR Legacy, 173735); quinoa, cooked (SR Legacy, 168917); tofu, firm (SR Legacy, 172475). RDA and upper limits from the US National Academies, via the NIH Office of Dietary Supplements. % Daily Values use the FDA’s current Daily Value of 420mg.
