If you have been lying awake at night with your mind racing or feeling on edge for no clear reason, your diet might be part of the picture. Magnesium is involved in over 300 enzymatic reactions in your body, and two of its most important roles are regulating your nervous system and supporting the quality of your sleep. Yet an estimated 50% of adults are not getting enough of it.
A 2024 systematic review in Cureus examined the clinical evidence on magnesium supplementation for anxiety and sleep and found that most included trials reported improvements in both. Magnesium acts on the GABA system (your brain’s calming mechanism) and helps regulate the HPA axis, which controls your stress response. When levels are low, both sleep and mood take a hit. The good news? Many of the best magnesium-rich foods for sleep and anxiety are simple, everyday ingredients you can easily add to your meals.
Why Magnesium Matters for Sleep and Anxiety
Magnesium calms your nervous system through several pathways. It modulates the NMDA receptor (reducing excitatory signalling), supports GABA-A receptor activity (promoting relaxation), and helps produce melatonin, the hormone that signals your body it is time to sleep. When magnesium levels drop, the HPA axis can become overactive, raising cortisol and making you feel wired, anxious, or unable to wind down. For women going through perimenopause or menopause, this matters even more, since declining oestrogen already puts pressure on these same calming systems.
10 Magnesium-Rich Foods for Sleep and Anxiety
The recommended daily magnesium intake for women is 310 to 320 mg. These magnesium-rich foods can help you reach that target through your plate, which is always the best starting point.
Pumpkin Seeds
A 30 g serving of pumpkin seeds delivers roughly 156 mg of magnesium, nearly half your daily requirement. Sprinkle them on porridge, salads, or yoghurt for a simple boost. They are also a good source of zinc and tryptophan, both of which support sleep.
Dark Chocolate (70%+ Cocoa)
A 30 g square of dark chocolate contains around 65 mg of magnesium. It also provides iron and antioxidants. Choose varieties with 70% cocoa or higher and enjoy a small amount in the evening as a guilt-free way to top up your magnesium-rich foods intake.
Spinach
One cup of cooked spinach provides about 157 mg of magnesium. It is also rich in folate, iron, and vitamin K. Adding it to soups, stir-fries, or smoothies is one of the easiest ways to increase your daily intake without changing your routine much.
Almonds
A 30 g handful of almonds gives you roughly 80 mg of magnesium alongside vitamin E and healthy fats. Keep a small bag in your desk drawer or car for an afternoon snack that supports both your blood sugar and your nervous system.
Avocado
One medium avocado contains around 58 mg of magnesium, plus potassium, healthy monounsaturated fats, and fibre. It is a satisfying addition to meals that helps keep blood sugar stable, which in turn supports better sleep and calmer mood.
Black Beans
One cup of cooked black beans provides approximately 120 mg of magnesium along with fibre, protein, and iron. They work well in chilli, wraps, salads, or as a simple side dish. Beans are also excellent for gut health, which is closely linked to both mood and sleep quality.
Bananas
A medium banana provides around 32 mg of magnesium, plus potassium and vitamin B6, which your body needs to produce both serotonin and melatonin. Eating a banana in the evening can support the natural wind-down process before bed.
Oats
A 40 g serving of rolled oats contains about 71 mg of magnesium. Oats also provide beta-glucan fibre, which supports stable blood sugar and sustained energy. A warm bowl of porridge in the evening can be a comforting ritual that promotes better sleep.
Salmon
A 170 g fillet of salmon delivers around 53 mg of magnesium alongside omega-3 fatty acids, which have their own anti-anxiety and anti-inflammatory benefits. Omega-3s and magnesium work well together to support a calm nervous system and healthy sleep.
Cashews
A 30 g serving of cashews contains about 77 mg of magnesium, along with copper and phosphorus. Cashew butter stirred into a smoothie or spread on toast makes for a simple, magnesium-rich snack that tastes far better than a supplement tablet.
Boosting Your Magnesium Beyond Food
Even with a magnesium-focused diet, some women still fall short, especially during high-stress periods or hormonal transitions when the body uses magnesium faster than usual. Topical magnesium offers a complementary route. Super Rich Magnesium Body Lotion delivers Zechstein magnesium through the skin, bypassing the digestive system entirely. Applied to the shoulders, legs, or abdomen before bed, it supports muscle relaxation and calmer sleep as part of a nightly wind-down routine, working alongside the magnesium-rich foods you are eating during the day.
Small Shifts, Better Nights
You do not need to overhaul your diet. Adding a handful of pumpkin seeds to your breakfast, choosing spinach over iceberg lettuce, or having a square of dark chocolate after dinner can meaningfully increase your magnesium intake over time. Pair those dietary shifts with topical magnesium support in the evening, and you are covering both internal and external pathways. Visit Glow by Hormone University for more evidence-based resources on nutrition and hormonal wellbeing.
Frequently Asked Questions
Q1: How much magnesium do women need daily?
The recommended daily intake for adult women is 310 to 320 mg. Women over 50, those under chronic stress, or those going through perimenopause may benefit from the higher end of that range or slightly above, ideally guided by a GP or nutritionist.
Q2: Can magnesium really help with anxiety?
Preclinical evidence strongly supports a link between magnesium status and anxiety. A 2024 systematic review found that most clinical trials reported improvements in anxiety symptoms with magnesium supplementation, though more large-scale studies are needed. The mechanism is well understood: magnesium supports GABA activity and regulates the HPA axis, both of which are central to your stress response.
Q3: Which form of magnesium is best for sleep?
Magnesium glycinate and magnesium L-threonate are the forms most commonly recommended for sleep. Glycinate is well absorbed and gentle on the stomach. L-threonate has shown promise for crossing the blood-brain barrier and improving sleep architecture. Topical magnesium is another effective option, particularly for women who experience digestive sensitivity with oral supplements.
Q4: Is it better to get magnesium from food or supplements?
Food should always be your foundation. Magnesium from food comes packaged with other nutrients that support absorption and overall health. Supplements and topical magnesium are useful for closing the gap when dietary intake alone is not enough, which is common during periods of stress, hormonal change, or heavy exercise.
Q5: When should I eat magnesium-rich foods for better sleep?
Including magnesium-rich foods throughout the day is ideal, but having a magnesium-containing evening meal or snack (such as oats, a banana, or dark chocolate) can support the natural rise in melatonin that happens before sleep. Pairing this with a calming bedtime routine amplifies the benefit.

