Educational information, not medical advice. See our Medical Disclaimer. Last updated: October 11, 2026.

Magnesium is involved in hundreds of processes in the body, including muscle and nerve function, blood sugar control, blood pressure regulation and the production of energy and protein. It is also one of the most heavily marketed supplements, promoted for sleep, stress, cramps, migraines and more. This guide separates what is well established from what is hype, and explains how to use magnesium safely.
How much you need
The US National Institutes of Health (NIH) Office of Dietary Supplements lists recommended intakes from all sources of about 400 to 420 mg per day for adult men and 310 to 320 mg per day for adult women, depending on age. Needs are slightly higher in pregnancy.
Food first
Most healthy people can reach their needs through diet. Good sources include:
- Legumes such as beans, lentils and chickpeas
- Nuts and seeds, such as almonds, cashews and pumpkin seeds
- Whole grains such as oats, brown rice and whole-wheat bread
- Leafy greens such as spinach
- Milk, yogurt and some fortified cereals
A varied diet like the one described in our balanced diet guide naturally provides magnesium.
Supplement forms
Magnesium is sold combined with other compounds, and the form affects absorption and side effects. According to the NIH, magnesium aspartate, citrate, lactate and chloride are more completely absorbed than some other forms such as oxide.
- Citrate: well absorbed; has a laxative effect at higher doses.
- Glycinate: often marketed as gentle on the stomach.
- Oxide: contains a lot of magnesium per tablet but is less well absorbed; commonly used as a laxative or antacid.
- Chloride, lactate, aspartate: other absorbed forms.
Magnesium also appears in some laxatives and heartburn or indigestion products, so check labels to avoid doubling up.
What the evidence supports
Correcting a true magnesium deficiency is clearly beneficial. Beyond that, the evidence is mixed and often limited by small studies:
- Blood pressure: some trials show small reductions, particularly when intake is low.
- Type 2 diabetes: higher dietary magnesium is linked with lower risk, but this does not prove supplements prevent it.
- Migraine: some guidelines mention magnesium as an option for prevention, to be discussed with a doctor.
- Sleep, anxiety and muscle cramps: evidence is inconsistent. It may help some people who are low in magnesium, but it is not a proven treatment for everyone.
If you are trying to improve sleep, habits matter more than any supplement. See our guide to how to sleep better.
Side effects and the upper limit
The magnesium naturally present in food is not considered harmful, because healthy kidneys remove excess. The NIH sets an upper limit of 350 mg per day for adults for magnesium from supplements and medicines (this figure does not include food). Above this, side effects are more likely:
- Diarrhea, nausea and abdominal cramping.
- In very high intakes, serious problems such as an irregular heartbeat and, in extreme cases, cardiac arrest.
People with kidney disease clear magnesium less effectively and should only use magnesium supplements, laxatives or antacids on medical advice.
Medicine interactions
Magnesium can interfere with how some medicines are absorbed, or be affected by them. Examples from the NIH include:
- Bisphosphonates for osteoporosis and some antibiotics: may be poorly absorbed if taken too close in time to magnesium. A pharmacist can advise on spacing doses.
- Diuretics: some increase and others decrease magnesium loss.
- Long-term acid-reducing medicines (such as proton pump inhibitors): can lower blood magnesium.
- Very high doses of zinc can interfere with magnesium absorption.
Who may need a supplement
People more likely to run low include those with poor diets or heavy alcohol use, certain digestive conditions that reduce absorption (such as Crohn’s disease or celiac disease), poorly controlled type 2 diabetes, long-term use of some medicines, and some older adults. Early signs of deficiency can include loss of appetite, nausea, fatigue and weakness. Severe deficiency can cause numbness, tingling, muscle cramps and abnormal heart rhythm. Because these symptoms are non-specific, ask a doctor about testing rather than self-diagnosing.
- Adults need roughly 310 to 420 mg a day from all sources; food usually covers it.
- Supplement forms differ in absorption and in how likely they are to cause diarrhea.
- The upper limit for supplements is 350 mg a day for adults.
- Benefits beyond correcting deficiency are modest or uncertain.
- Check with a doctor or pharmacist if you have kidney disease or take regular medicines.
Frequently asked questions
What is the best time of day to take magnesium?
There is no universally proven best time. Taking it with food can reduce stomach upset. Space it apart from medicines that interact, as advised by your pharmacist.
Does magnesium help you sleep?
The evidence is inconsistent. Some people report better sleep, particularly if they were low in magnesium, but it is not a proven sleep treatment.
Can I get too much from food?
Not in healthy people, because the kidneys remove the excess. Problems come mainly from supplements and medicines.
Is magnesium oil or a bath as effective as pills?
There is little reliable evidence that magnesium absorbed through the skin raises blood levels meaningfully.
Sources
Written by the nohas.es Editorial Team from the official sources listed above. Read our Editorial Policy and Fact Checking Policy. Found an error? Tell us.