Foods rich in magnesium include the following:
Whole foodsare the best sources of magnesium.
Processed foods are typically low in magnesium, and cooking or boiling produce also reduces amounts.
Here are the specific recommendations.

Getty Images / vm
No supplement is intended to treat, cure, or prevent disease.
86% of those who took magnesium had at least a 50% decrease in cramp frequency.
Almost 70% had a 50% reduction in cramp intensity.
Muscle Recovery
Magnesium is essential for muscles to contract and relax and can improve exercise performance.
And magnesium bisglycinate was part of a combination that included vitamin D,curcumin, and potassium citrate.
That said, the combination helped the muscle cells during normal conditions and those that imitated strenuous exercise.
Some common ones include:
Other medications used for mood regulation, likelithiumand antidepressants, can increase magnesium levels.
Side effects, if any, occur most often in the gastrointestinal system.
These may be less frequent with magnesium bisglycinate than other forms of magnesium.
That means some supplement products may not contain what the label says.
Supakatisant C, Phupong V.Oral magnesium for relief in pregnancy-induced leg cramps: A randomised controlled trial.Matern Child Nutr.
2020;12(2):573.
Published 2020 Feb 22. doi:10.3390/nu12020573
National Institutes of Health.Magnesium.
National Center for Biotechnology Information.
PubChem Compound Summary for CID 75487596,Magnesium bisglycinate.
Grober U.Magnesium and drugs.Int J Mol Sci.
2023;9(8):e19042.
doi:10.1016/j.heliyon.2023.e19042
Dalton LM, Ni Fhloinn DM, Gaydadzhieva GT, et al.Magnesium in pregnancy.Nutr Rev.
2016;74(9):549-557. doi:10.1093/nutrit/nuw018
Allen MJ, Sharma S.Magnesium.
[Updated 2023 Feb 20].
In: StatPearls [Internet].
Treasure Island (FL): StatPearls Publishing; 2023 Jan-.
2017;96(11):e6352.
2021 May 12;21(1):230].BMC Pediatr.
2021;20(1):90. doi:10.1186/s12937-021-00747-9
Young G.Leg cramps.BMJ Clin Evid.
Luo L, Zhou K, Zhang J, et al.Interventions for leg cramps in pregnancy.Cochrane Database Syst Rev.
2020;12(12):CD010655.
2000;19(1):13-15. doi:10.1080/07315724.2000.10718908
Caballero-Garcia A, Cordova-Martinez A.Muscle recovery and nutrition.Nutrients.
2018;28(2):188-199. doi:10.1123/ijsnem.2017-0340