Try our NEW Whole Family Size! Less than $1 a day with subscription🏡 SHOP NOW

What Magnesium Actually Does in a Kid’s Body: Sleep, Poop & More

Expert reviewed by Dana Peters, RD | Published July 02, 2025

share this article

Magnesium is an essential nutrient that supports optimal growth and development in kids. It’s found in a variety of foods, even foods picky eaters will enjoy, and plays many important roles in the body. 

Since magnesium is used so widely throughout the body, it’s important to include magnesium-rich foods in your kid’s diet every day. But don’t be intimidated! With careful planning, you can help ensure your kiddo is getting the right amount of magnesium in their diet. 

How much magnesium do kids need?

1-3 years = 80 mg

4-8 years = 130 mg

9-13 years = 240 mg

What foods contain magnesium?

Magnesium can be found in many different foods including leafy greens, beans, almonds, pumpkin seeds, chia seeds, bananas, apples, oats, peanut butter, whole grains, potatoes and dairy products. 

What does magnesium do in the body?

Magnesium helps maintain normal muscle function, build strong bones and teeth as well as may help improve sleep and relieve constipation. 

Maintains muscle function 

Magnesium works together with another important mineral, calcium, to help muscles to contract and relax properly. This is essential for kids who are constantly on-the-move, running, jumping and exploring wherever they go! When magnesium levels are low, muscles may contract too much resulting in cramps or spasms

Helps build strong bones

When it comes to building strong bones, many of us think of calcium. And while calcium is critical for bone health, other vitamins and minerals such as vitamin D, phosphorus and magnesium also play a role in building and maintaining strong bones. Since kiddos are rapidly growing (time to check to see if those clothes from last season still fit!), getting enough magnesium is crucial.  

May help improve sleep

Some studies show magnesium may help relax your little one’s body and mind, helping them fall asleep faster. Who wouldn’t want that? Another study, done in adults, showed improved sleep quality. While research is limited, doing your best to help your kiddo meet their daily magnesium needs might pay off at bedtime. 

May help relieve constipation 

Many magnesium-containing foods also contain fiber, which has many digestive benefits and may help manage constipation in little ones. Additionally, some forms of magnesium have been shown to have a laxative effect by softening stool via pulling water into the intestines. This helps make pooping easier! 

Summary

Magnesium is an important nutrient for kids’ growth and development. It helps maintain muscle function, build strong bones and may help improve sleep and constipation. Include a variety of magnesium-rich foods in your kiddo’s diet for optimal health. 

View Citation

[1]Bilbey, D. L., & Prabhakaran, V. M. (1996). Muscle cramps and magnesium deficiency: case reports. Canadian family physician Medecin de famille canadien, 42, 1348–1351.

[2]National Institutes of Health. “Magnesium.” National Institutes of Health, 2022, ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/.

[3]Wienecke, Elmar, and Claudia Nolden. “Long-Term HRV Analysis Shows Stress Reduction by Magnesium Intake.” MMW Fortschritte Der Medizin, vol. 158, no. Suppl 6, 2016, pp. 12–16, www.ncbi.nlm.nih.gov/pubmed/27933574, https://doi.org/10.1007/s15006-016-9054-7.

[4]Rajizadeh, Afsaneh, et al. “Effect of Magnesium Supplementation on Depression Status in Depressed Patients with Magnesium Deficiency: A Randomized, Double-Blind, Placebo-Controlled Trial.” Nutrition, vol. 35, Mar. 2017, pp. 56–60, https://doi.org/10.1016/j.nut.2016.10.014.

[5]Mori, Hideki, et al. “Magnesium Oxide in Constipation.” Nutrients, vol. 13, no. 2, 28 Jan. 2021, p. 421, www.ncbi.nlm.nih.gov/pmc/articles/PMC7911806/, https://doi.org/10.3390/nu13020421.