😩 Struggling to sleep?  ShutEye® might be the answer! 👍

Top 10 Foods High in Magnesium for Sleep

Published: May 04, 2025
Updated: May 04, 2025
10 Foods High In Magnesium for Better Sleep and Heart Health
In this article
    Reading time
    11 min
    icon-linksocial-instagram-darksocial-facebook-darksocial-x-dark

    Struggling to fall asleep or manage stress levels? You may be missing a key ingredient in your diet. Magnesium is an essential mineral that is crucial in regulating sleep, supporting heart health, and calming the nervous system. In this guide, we’ll explore 10 magnesium-rich foods that not only help you catch better Zzzs but also keep your heart in top shape.

    Key Takeaways
    Magnesium is an essential mineral that helps us to carry out important bodily functions.
    One of the key functions of magnesium is ensuring better sleep health as it regulates GABA levels.
    For males, the daily recommended intake is between 400 to 420 mg and 310 to 320 mg for adult females.
    10 foods that are rich in magnesium include almonds, avocados, banana, black bean, dark chocolate, pumpkin seeds, spinach, kale, tofu, and whole grains.

    What is Magnesium

    Magnesium is a mineral that is found in many foods, certain medications, and available as a dietary supplement. It is an essential mineral that helps more than 300 enzymes carry out the necessary bodily functions, including energy production, nerve function, and blood pressure and blood sugar regulation [1], [2].

    Magnesium as a supplement can come in many forms with the most common being magnesium oxide, magnesium citrate and magnesium chloride

    Importance of Magnesium in the Body

    As mentioned, magnesium plays an important role in ensuring that over 300 biochemical reactions take place in our body, and it also acts as an electrical conductor so that our muscles can contract and our heart to beat steadily [1].

    Besides the regulation of our bodily functions and energy production, it helps to reduce high blood pressure and lower the risk of heart disease as well as ensure good sleep health.

    One of the ways that magnesium can help promote better sleep health, according to research, is that it helps to regulate gamma-aminobutyric acid (GABA) levels. GABA is a neurotransmitter that plays a role in calming the nervous system down. Additionally, it also helps to promote melatonin production and reduce cortisol levels, which can disrupt sleep [3].

    shuteye logo
    Discover ways to sleep peacefully with ShutEye App! 
    Try For Free

    Recommended intake of magnesium

    The recommended dietary allowance of magnesium differs for both males and females. For adult males between the ages of 19 to 50+ years old, it is recommended to get up to 400-420 mg of magnesium daily, and 310-320 mg of magnesium daily for adult females.

    For women who are pregnant, the recommended intake is 350-360 mg daily, and if you are lactating, 310-320 mg daily.

    Here is a detailed table of the recommended dietary allowance of magnesium for reference [2]:

    AgeMaleFemalePregnancyLactation
    Birth – 6 months30 mg30 mg
    7 – 12 months75 mg75 mg
    1 – 3 years80 mg80 mg
    4 – 8 years130 mg130 mg
    9 -13 years240 mg240 mg
    14 – 18 years410 mg360 mg400 mg360 mg
    19 – 30 years400 mg310 mg350 mg310 mg
    31 – 50 years420 mg320 mg360 mg320 mg
    51+ years420 mg320 mg

    10 Magnesium-Rich Foods

    an overview of foods that are rich in magnesium including banana, spinach, dark chocolate, whole grains, chia seeds, avocados

    One of the best ways to ensure that you are meeting the daily magnesium requirement that you need is by taking magnesium supplements. That being said, not everyone may be comfortable with the idea of taking dietary supplements. But worry not, another way to ensure that you are getting adequate magnesium is by consuming magnesium-rich foods.

    1. Almonds

    close up shot of a bunch of almonds which is high in magnesium

    Almonds are a healthy snack that is also packed with a high amount of magnesium. For instance, 30g of almonds contains around 80 mg of magnesium. While it may not be enough to fulfill the daily intake that you need, snacking on them could still help to supplement your needs, especially if you are dealing with magnesium deficiency [4].

    2. Avocados

    Avocados are known to be a good source of healthy fats and are also rich in essential vitamins to support a healthier heart and overall well-being. Each avocado has roughly 58 mg of magnesium content, which makes up a good portion of what we need in a day.

    Avocados are also high in Vitamin B and Vitamin K, which are essential for energy production and bone health [4].

    shuteye logo
    Discover ways to sleep peacefully with ShutEye App! 
    Try For Free

    3. Banana

    close up shot of multiple banana fruits that are high in magnesium

    Banana is a fruit that is often praised for its high potassium content but did you know that they are also a good source of magnesium? A medium banana contains about 32 mg of magnesium, which makes it a great snack to consume to improve your dietary magnesium intake and support muscle and nerve function as well as your energy level [5].

    4. Black bean

    Black beans are an excellent source of fiber and protein, offering around 15 g of protein and 15 g of fiber for 1 cup of cooked serving. Aside from this, they also pack quite a punch, offering 120 mg of magnesium per 1 cup of cooked black bean, supporting good heart health and digestion [6].

    Don’t skip it the next time you order a salad or burrito bowl!

    5. Dark chocolate

    Great news for all you chocolate lovers out there— dark chocolate provides several benefits for your health. For one, dark chocolate is known for its anti-inflammatory, anti-diabetic and anti-microbial properties [7].

    Consuming dark chocolate also helps to reduce the stress hormone, cortisol, so that you feel less stressed and more relaxed [8]. At the same time, it also contains an excellent amount of magnesium. According to the U.S. Department of Agriculture, a 100 g chocolate bar with 70-85% cacao solids contain 228 mg of magnesium. This is nearly half the daily magnesium requirement for an average adult [9].

    6. Pumpkin seeds

    Pumpkin seeds also makes a great snack to consume. They are rich in antioxidants, healthy fats and other minerals that help to enhance your bone mineral density and heart health. Additionally, pumpkin seeds are rich in the amino acid, tryptophan, which can be used to treat chronic insomnia. So for those who are struggling with insomnia and are looking to implement changes to their diet, this could be a good addition.

    1 oz of serving of pumpkin seeds also contains a high amount of magnesium (156 mg) [10].

    7. Spinach

    close up shot of spinach leaves

    I’m sure that for many of us, the first thing that comes to mind when we think of spinach is Popeye the sailor. Popeye the sailor is a cartoon character who is famously known to consume a can of spinach to gain immense strength instantly.

    Well, the truth is that this leafy green is loaded with a ton of nutrients. Consuming spinach is good for bone health, eyesight, immunity, supports good bowel health, and heart health [11].

    It also contains a lot more minerals like magnesium, potassium, and iron compared to cabbage, lettuce, or broccoli.

    8. Kale

    Kale is also another vegetable that provides a good amount of nutrients. It is rich in fiber, antioxidants, calcium, iron, and essential vitamins like vitamin C and vitamin K [12].

    While it may not offer as much magnesium as spinach does, it does offer a decent amount at 22.78 mg for 1 cup of raw kale [13]. So, kale is also a good option to add to your diet as a form of magnesium supplementation.

    9. Tofu

    Tofu are also a great source of protein and nutrient-rich. It offers a solid plant-based source of magnesium—about 73 mg per 1 cup. It also provides protein and calcium, making it a fantastic option for vegetarians and vegans [14].

    10. Whole grains

    Whole grains like quinoa, brown rice, oats, and whole wheat bread are great magnesium sources. For example, 1 cup of raw quinoa contains about 357 mg of magnesium. Incorporating these into meals helps support overall heart and bone health [15].

    shuteye logo
    Discover ways to sleep peacefully with ShutEye App! 
    Try For Free

    Other Foods High in Magnesium

    Besides these 10 foods, there are also a variety of other food sources that are rich in magnesium, such as fatty fish ( e.g. salmon, mackerel, etc.), chickpeas, edamame, figs, cashews and lima beans. The list goes on!

    Tips for Increasing Magnesium Intake

    Boosting your magnesium intake doesn’t have to be complicated — small, simple changes to your daily habits can make a big difference. Here are some easy tips to help you out:

    1. Choose whole grains whenever possible

    Next time you’re at the store, reach for whole wheat bread, brown rice, oats, or quinoa instead of their refined versions. Whole grains are not just more nutritious — they also naturally carry more magnesium.

    2. Snack smart

    Instead of reaching for chips or candy, keep magnesium-friendly snacks like roasted pumpkin seeds, dark chocolate (yes, chocolate!), or trail mix handy. They’re delicious and good for you.

    3. Be aware of what depletes magnesium levels

    Be careful of drinking alcohol, caffeine, or eating processed foods, as it can lower your magnesium levels over time. Cutting back a little here and there can help you hang on to the magnesium you’re already getting.

    4. Consider taking supplements

    If you find it hard to get enough magnesium through food alone, try taking magnesium supplements instead. Magnesium citrate and magnesium glycinate are usually easier on the stomach.

    Before starting on any new supplements, you just want to make sure that you are checking with your doctor to ensure that it is safe for you to take. This is especially important if you are currently taking any other medications for an existing medical condition.

    Conclusion

    All in all, we need to get enough magnesium each day to ensure that we will have enough energy to get through the day, regulate our blood pressure and get better sleep. One of the ways to meet our daily magnesium needs is to consume foods that are rich in magnesium.

    Alternatively, we can also achieve better sleep by using the ShutEye® app to track our sleep. By monitoring our sleep patterns, we can receive personalized insights that will help us to make informed decisions on improving it. Try it today for FREE!

    shuteye logo
    Discover ways to sleep peacefully with ShutEye App!
    Try for Free
    FAQ

    The signs of low magnesium levels include muscle cramps, weakness, fatigue and abnormal heart rhythms.

    The fastest way to increase magnesium levels would be to consume magnesium supplements or consume foods that are rich in magnesium such as almonds, tofu, black bean and more.

    Mineral water, cacao-based drinks or juices that contain a blend of whole fruits and vegetables can help to increase magnesium.
    About authors
    Amirah is a content writer passionate about topics related to mental health and wellness. Recently, she delved into the realm of sleep health, spurred by a personal recognition of her subpar sleep habits and a desire for improvement. Amirah holds a Bachelor’s Degree in International Communication Studies from the University of Nottingham.

    Albakri, M. (n.d.) Spinach: Nutrition Facts and Health Benefits [online]. Available at: https://www.healthxchange.sg/food-nutrition/food-tips/spinach-nutrition-facts-and-health-benefits

    Geng, C. (2023) Does magnesium help you sleep? [online]. Available at: https://www.medicalnewstoday.com/articles/magnesium-for-sleep

    Goldman, R. (2024) 10 foods high in magnesium [online]. Available at: https://www.medicalnewstoday.com/articles/318595

    John Hopkins Medicine (2025) The Benefits of Having a Healthy Relationship with Chocolate [online]. Available at: https://www.hopkinsmedicine.org/health/wellness-and-prevention/the-benefits-of-having-a-healthy-relationship-with-chocolate

    National Institute of Health (2022) Magnesium [online]. Available at: https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/

    Samanta, S., Sarkar, T., Chakraborty, R., Rebezov, M., Shariati, M. A., Thiruvengadam, M., and Rengasamy, K. R. (2022) Dark chocolate: An overview of its biological activity, processing, and fortification approaches. Current Research in Food Science, 5, 1916 [online]. Available at: https://doi.org/10.1016/j.crfs.2022.10.017

    The Nutrition Source (2023) Magnesium [online]. Available at: https://nutritionsource.hsph.harvard.edu/magnesium/

    University of Rochester Medical Center (n.d.) Nutrition Facts- Bananas, raw, 1 medium [online]. Available at:  https://www.urmc.rochester.edu/encyclopedia/content?contenttypeid=76&contentid=09040-5

    University of Rochester Medical Center (n.d.) Nutrition Facts- Beans, black, mature seeds, cooked, boiled, without salt, 1 cup [online]. Available at: https://www.urmc.rochester.edu/encyclopedia/content?contenttypeid=76&contentid=16015-1

    University of Rochester Medical Center (n.d.) Nutrition Facts- Kale, raw, 1 cup, chopped [online]. Available at: https://www.urmc.rochester.edu/encyclopedia/content?contenttypeid=76&contentid=11233-1

    University of Rochester Medical Center (n.d.) Nutrition Facts- Tofu, raw, firm, prepared with calcium sulfate, 1 cup [online]. Available at: https://www.urmc.rochester.edu/encyclopedia/content?contenttypeid=76&contentid=16426-1

    University of Rochester Medical Center (n.d.) Nutrition Facts- Quinoa, 1 cup [online]. Available at: https://www.urmc.rochester.edu/encyclopedia/content?contenttypeid=76&contentid=16426-1

    USDA (2019) Chocolate, dark, 70-85% cacao solids [online]. Available at: https://fdc.nal.usda.gov/food-details/170273/nutrients

    Ware, M. (2023) What are the health benefits of pumpkin seeds? [online]. Available at: https://www.medicalnewstoday.com/articles/303864

    Ware, M. (2024) What are the health benefits of kale? [online]. Available at: https://www.medicalnewstoday.com/articles/270435

    phone
    phone
    A smarter way to sleep

    When using ShutEye, participants reported a moderate to significant growth in sleep quality and mental well-being.

    Apple Store
    Google Play