In this guide
  1. What is magnesium?
  2. How it works in your body
  3. Why deficiency is so common
  4. What the research shows
  5. Which form to take
  6. Dosage by goal
  7. Best magnesium products globally
  8. Frequently asked questions

What is magnesium?

Magnesium is the fourth most abundant mineral in the human body and serves as a cofactor for more than 300 enzymes that regulate critical biochemical reactions — including protein synthesis, muscle and nerve function, blood glucose control, and blood pressure regulation.

Unlike many supplements that are optional extras, magnesium is essential. Your body cannot produce it. And unlike calcium or iron, its deficiency often goes undetected for years because symptoms are vague and blood tests are unreliable at detecting total body magnesium status.

Global context

Studies estimate that between 50-80% of adults in Western countries consume less magnesium than recommended. Similar patterns are seen across Latin America and many parts of Asia. Most people have never had their magnesium status checked.

How magnesium works inside your body

The magnesium mechanism - key roles
1

Energy production - magnesium activates ATP

ATP (adenosine triphosphate) - the energy currency of every cell - must bind to magnesium to become biologically active. Without magnesium, your cells literally cannot use the energy they produce. This is why low magnesium causes fatigue even when sleep and diet seem fine.

2

Muscle contraction and relaxation

Calcium triggers muscle contraction. Magnesium counteracts it - allowing muscles to relax. When magnesium is low, this balance is disrupted, leading to cramps, spasms, and tension. This applies to both skeletal muscles and the heart.

3

Nervous system regulation

Magnesium acts as a natural calcium channel blocker in neurons. It regulates NMDA receptors - a key excitatory receptor in the brain. Adequate magnesium reduces anxiety, improves sleep quality, and supports focus by preventing neurons from being over-stimulated.

4

Protein synthesis and DNA repair

Magnesium is required for the synthesis of DNA, RNA, and proteins. It also stabilizes DNA structure and is involved in DNA repair. This makes it essential not just for muscle growth, but for long-term cellular health.

Why deficiency is so common

Modern food processing: When grains are refined into white flour, up to 85% of magnesium is lost. Processed foods - which dominate most modern diets - contain very little magnesium.

Soil depletion: Industrial farming over the past 70 years has reduced the mineral content of soil significantly. Vegetables today contain substantially less magnesium than the same vegetables 50 years ago.

Increased losses: Stress, alcohol, caffeine, and certain medications (especially proton pump inhibitors and diuretics) all increase urinary excretion of magnesium.

What the research shows

Well-established benefits

Sleep quality: Multiple trials show magnesium - especially glycinate - improves sleep onset, duration, and quality. Particularly effective in older adults. Muscle function: Correcting deficiency reduces cramps and supports faster recovery. Blood pressure: Meta-analyses show modest but consistent reductions in blood pressure in deficient individuals. Blood sugar: Magnesium is a cofactor for insulin receptors. Deficiency is strongly linked to insulin resistance and type 2 diabetes risk.

Honest caveat

Most benefits are most pronounced in people who are actually deficient. If your magnesium levels are already adequate, supplementing may provide minimal additional benefit. Standard blood tests are poor indicators of total body magnesium status.

Which form of magnesium to take

Not all magnesium supplements are equal. The form determines absorption rate and best use case.

Best Overall

Magnesium Glycinate

Bound to glycine - an amino acid with calming properties. Excellent absorption, gentle on digestion, ideal for sleep and anxiety. Most widely recommended form.

Best for Brain

Magnesium L-Threonate

The only form shown to cross the blood-brain barrier significantly. Best for cognitive benefits and sleep quality. More expensive but unique mechanism.

Best for Muscles

Magnesium Malate

Bound to malic acid - involved in energy production. Good for muscle fatigue, fibromyalgia, and athletic recovery. Well-absorbed and gentle.

Avoid

Magnesium Oxide

Cheapest form. Only ~4% bioavailability. Mainly acts as a laxative. Found in many cheap supplements - always check labels.

Dosage by goal

Magnesium dosage - by goal and situation
General health
200-400mg elemental magnesium per day. Most people get 150-200mg from diet, so a 200mg supplement bridges the gap comfortably.
Daily
Sleep & anxiety
300-400mg glycinate or threonate, taken 30-60 minutes before bed. The glycine component adds its own calming effect.
Evening
Athletic performance
300-500mg malate or glycinate. Athletes have higher needs due to increased losses through sweat. Take with post-workout meals.
Post-workout
Muscle cramps
300-400mg glycinate daily. Give it 3-4 weeks - magnesium takes time to replenish intracellular stores. Consistency matters more than timing.
Daily
With food
Take with food to minimize any digestive discomfort. Splitting into two smaller doses (morning and evening) also improves tolerance.
Recommended

Best magnesium products - available globally

All products below are available on iHerb (180+ countries) and Amazon. Selected for form quality, elemental magnesium content, and value for money.

Best Overall

Magnesium Glycinate 400mg

Doctor's Best

400mg elemental magnesium as bisglycinate chelate. One of the best-studied glycinate products globally with excellent absorption and tolerability.

Best for Brain & Sleep

Magnesium L-Threonate

Life Extension

Patented Magtein form - the only type proven to raise brain magnesium levels. Best for cognitive function, anxiety, and sleep quality.

Best Value

Magnesium Citrate 400mg

NOW Foods

Well-absorbed citrate form at a very affordable price. Good general-use option for people starting out or on a tighter budget. 180 capsules per bottle.

Frequently asked questions

Can I take magnesium every day long-term?
Yes. Magnesium is a mineral your body requires daily and excretes what it doesn't need. Long-term supplementation at normal doses (200-400mg) is considered safe for healthy individuals. No evidence of toxicity from oral supplementation at these levels.
Will magnesium cause diarrhea?
Certain forms - particularly oxide, citrate at high doses, and sulfate - can have a laxative effect. Glycinate and malate are much gentler. If you experience loose stools, switch to glycinate or reduce your dose and split it across two meals.
How long until I notice effects?
Some people notice improved sleep within a few days of taking glycinate before bed. Muscle cramps and energy improvements typically take 2-4 weeks, as it takes time to replenish intracellular stores. Be consistent and give it at least a month.
Can magnesium help with headaches and migraines?
Yes - there is good evidence for this. Several studies show regular magnesium supplementation reduces migraine frequency, particularly in deficient people. The American Academy of Neurology considers magnesium a probably effective migraine prevention strategy.
Should I take magnesium with calcium or separately?
Calcium and magnesium compete for absorption at high doses. If you take both, separate them by a few hours. Magnesium before bed and calcium with a meal works well for most people.
Is there too much magnesium?
At very high doses (above 350mg of supplemental magnesium), some people experience digestive symptoms. Toxicity from supplementation is very rare but possible in people with kidney disease, who should consult a doctor before supplementing.