⚠️ Nutritional information is for general educational purposes only and is not a substitute for advice from a registered dietitian or healthcare professional. Full disclaimer.

Magnesium: Sleep, Stress, and Strength

magnesium

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.

AgeMalesFemales
0-6 months*30mg30mg
7-12 months*75mg75mg
1-380mg80mg
4-8130mg130mg
9-13240mg240mg
14-18410mg360mg
19-30400mg310mg
31+420mg320mg
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)

FoodMagnesium% Daily Value
Pumpkin seeds (pepitas, raw)500mg119%
Flaxseeds (ground)372mg89%
Brazil nuts (raw)351mg84%
Chia seeds326mg78%
Sunflower seeds (raw)302mg72%
Almonds (raw)258mg61%
Cashews (raw)251mg60%
Dark chocolate (70–85% cacao)228mg54%
Peanuts (raw)180mg43%
Hazelnuts (raw)156mg37%
Walnuts (raw)142mg34%
Pistachios (raw)110mg26%
Spinach (boiled)87mg21%
Whole wheat bread73mg17%
Black beans (cooked)70mg17%
Quinoa (cooked)64mg15%
Tofu (firm)58mg14%

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

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:

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):

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:

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

Which form for your goal:

GoalBest form
General supplementationCitrate, glycinate, or chloride
Sleep and relaxationGlycinate (gentle; benefits mainly shown in older adults with insomnia)
Sensitive stomachGlycinate
Migraine preventionOxide or citrate (400–600mg a day was used in studies — discuss with your doctor, as this exceeds the supplement upper limit)
ConstipationCitrate, oxide, or hydroxide
Brain health and cognitionL-threonate (early evidence)
Heart health and blood pressureAny well-absorbed form; trials have used several, including oxide and citrate
Fatigue or muscle functionMalate (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

Antagonistic Interactions

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.