Magnesium is involved in hundreds of reactions in the body. It helps produce energy and helps muscles contract and relax. It comes from leafy greens, beans, nuts, seeds, cocoa and whole grains.
At the gym, it’s sold as a fix for cramps, sleep and recovery. The evidence is simpler: if you’re low on magnesium, replenishing it helps. If you already eat enough, the extra gain for performance is uncertain. And for cramps, the best available review isn’t encouraging.
This is not medical advice. Kidney disease, or taking blood pressure medication, antibiotics, diuretics or osteoporosis medication: talk to your doctor first, because there are interactions.
Note: the guides and calculators linked in this article are currently available in Portuguese.
Do: Food first; if you supplement, a well-absorbed form and a dose stated as elemental magnesium.
Avoid: Oxide while expecting a miracle; blaming magnesium alone for cramps.
Quick facts
Effect
Helps people who are low on magnesium. The extra for people who are already fine is uncertain. Cramps: weak evidence; sleep: small effect and fragile evidence.
Dose
Food first. If you supplement: a well-absorbed form and a dose stated as elemental magnesium — common reference ceiling: up to 350 mg/day.
Safety
Oxide absorbs poorly — don’t expect a miracle. Don’t blame magnesium alone for cramps. If you have kidney disease or take ongoing medication: see a doctor.
What the science says:
Performance. The review by Zhang and colleagues (2017) shows that magnesium needs rise with physical activity level. Some studies saw improvements in strength and function with supplementation, mainly in people with low levels or in older adults. Limitation: more physiological markers than direct performance.
Athletes lose more. Nielsen and Lukaski (2006) describe that intense exercise increases magnesium loss through sweat and urine, and that marginal deficiency can worsen performance. Replenishing people who are low makes sense; giving more to people who are already fine hasn’t shown the same effect. Limitation: an old review based on small studies.
Cramps. The Cochrane review by Garrison and colleagues (2020), with 11 trials and 735 people, concluded that magnesium is unlikely to meaningfully prevent cramps in older adults with nighttime cramps. In pregnant women, the results are conflicting. And there were no trials on exercise-associated cramps. Limitation: population ≠ typical gym-goer.
Sleep. The meta-analysis by Mah and Pitre (2021), with 3 trials and 151 older adults with insomnia, showed that magnesium cut the time to fall asleep by about 17 minutes. Total sleep time didn’t change significantly. Limitation: low quality, mostly older adults, few studies.
How to take it in practice
- Daily target (food + supplement): about 400–420 mg for adult men and 310–320 mg for adult women (NIH reference).
- Food first: a handful of nuts, beans at lunch, leafy greens and a piece of dark chocolate already add up to a lot.
- If you supplement: 100–350 mg/day of elemental magnesium. The tolerable upper limit for supplements is 350 mg/day in adults; above that, the chance of diarrhea goes up.
- Read “elemental magnesium”: 1 g of “magnesium dimalate” doesn’t contain 1 g of magnesium. Check the amount of magnesium on the label.
- Timing: at night, if sleep is the goal; with a meal if your stomach complains.
- Interactions: space it a few hours away from antibiotics (tetracyclines, quinolones) and osteoporosis medication.
- Cramps during training: before blaming magnesium, look at hydration, sodium, fatigue and training volume.
Forms at a glance:
| Form | Absorption / stomach | When it makes sense |
|---|---|---|
| Glycinate / citrate | Good, gentler on the gut | Daily use, sleep, sensitive stomach |
| Dimalate | Good | Common alternative on labels |
| Oxide | Absorbs less; loosens the bowels more | Cheap; less ideal as a first choice |
Priorities for people who train: Creatine: the guide, Whey Protein: the guide and Caffeine and pre-workout have stronger evidence for performance.
Summary
- Magnesium helps people who are low; the extra for people who aren’t is uncertain
- Cramps: weak evidence (Cochrane)
- Sleep: small effect in older adults, low-quality evidence
- Supplement: up to 350 mg/day of elemental magnesium
- Glycinate or citrate tend to be well tolerated
Tip: before buying, see how much magnesium your food already provides. Nuts and beans do a lot of the work.
Not sure what makes sense for you? Take the quiz Which supplement fits your goal? (in Portuguese) — it takes 1 minute and promises no miracles.
Sponsored links
Other products mentioned in this article. The links go to Amazon.com.br (Brazil): prices in BRL, shipping only within Brazil.
Affiliate disclosure: This article contains affiliate links (sponsored) to Amazon.com.br, a Brazilian store: prices are in Brazilian reais (BRL) and products ship only within Brazil. If you buy through these links, Xalau. may earn a commission at no extra cost to you. This doesn’t change our analysis or the price. Details in our affiliate policy.

Sponsored link · Amazon.com.br (Brazil) · learn more
DUX MAG-3 Complex — 90 capsules
Bisglycinate + malate + taurate.
See price on Amazon.com.br
Sponsored link · Amazon.com.br (Brazil) · learn more
Bigens Magnesium Glycinate Chelate — 90 capsules
Check the label and the product page.
See price on Amazon.com.brReferences
- Zhang Y et al. Can magnesium enhance exercise performance? Nutrients. 2017;9(9):946. https://pmc.ncbi.nlm.nih.gov/articles/PMC5622706/
- Nielsen FH, Lukaski HC. Update on the relationship between magnesium and exercise. Magnes Res. 2006;19(3):180-9. https://pubmed.ncbi.nlm.nih.gov/17172008/
- Garrison SR et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;9:CD009402. https://pmc.ncbi.nlm.nih.gov/articles/PMC8094171/
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis. BMC Complement Med Ther. 2021;21(1):125. https://pmc.ncbi.nlm.nih.gov/articles/PMC8053283/
- NIH Office of Dietary Supplements. Magnesium — Fact Sheet for Health Professionals. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
Magnesium products with the form and elemental magnesium clearly on the label, commonly sold in Brazil (listed for reference only). Complexes (glycinate/malate/taurate) are practical; oxide usually has more “mg in the tub” and worse absorption. Check the elemental dose, not just the weight of the salt:
- DUX MAG-3 Complex — 90 capsules (bisglycinate + malate + taurate)
- Bigens Magnésio Glicinato Quelato — 90 capsules
