News

11 Magnesium-Rich Foods That Combat Insomnia (And 3 Evening Drinks That Keep You Tossing), According to Sleep Specialists

Disclosure: Every piece of content is reviewed, fact-checked, and edited by these editors to confirm that all quality standards are met. Read Our Editorial Guidelines Policy.

Tossing and turning at night, unable to drift off? You know the frustration, staring at the ceiling while the clock ticks away. Magnesium could be your missing sleep link.

This essential mineral regulates the neurotransmitters that help your brain and body relax, yet most adults don’t get enough.

The solution? Specific foods can boost your magnesium levels naturally, improving how quickly you fall asleep and how soundly you stay there.

Sleep specialists recommend 11 key magnesium-rich foods that can transform your nights. But watch out—3 common evening drinks might be sabotaging your sleep without you realizing it.

11 Magnesium-Rich Foods That Combat Insomnia

Can’t sleep? Your diet might be missing a key mineral. Magnesium helps regulate neurotransmitters that calm your nervous system and prepare your body for rest.

These 11 foods pack a significant magnesium punch and could help you finally get those peaceful nights you’ve been missing.

1. Pumpkin Seeds

Pumpkin Seeds
Photo Credit: Depositphotos

These small powerhouses contain an impressive 150 mg of magnesium per ounce when roasted. Sprinkling just a handful on your evening salad or yogurt might make a real difference in your sleep quality.

Pumpkin seeds work through multiple pathways to improve rest. They support the production of GABA, a neurotransmitter that calms brain activity.

The zinc content works alongside magnesium to boost melatonin production – your body’s natural sleep hormone. Many people notice that incorporating them into evening meals helps them fall asleep faster.

For best results, keep a small container of roasted, unsalted pumpkin seeds in your pantry. They store well and make an excellent pre-bedtime snack.

The combination of healthy fats, protein, and magnesium creates a triple benefit for steady, restful sleep throughout the night.

2. Chia Seeds

Chia Seeds
Photo Credit: Depositphotos

With 111 mg of magnesium per ounce, chia seeds rank high on the list of sleep-supporting foods. These tiny seeds expand in liquid, making them versatile additions to many evening recipes.

Chia seeds offer more than just magnesium. They contain omega-3 fatty acids that help reduce inflammation, which can interfere with quality sleep.

The fiber content helps stabilize blood sugar levels throughout the night, preventing those 3 AM awakenings caused by sudden drops in glucose.

Most nutrition experts recommend soaking chia seeds before consumption to make their nutrients more bioavailable.

Try adding a tablespoon to herbal tea an hour before bed, or prepare chia pudding as an evening snack. The slow-digesting properties mean the magnesium releases gradually, supporting your sleep cycle through the night. Many people report deeper, more consistent sleep after adding chia to their regular diet.

3. Spinach (Cooked)

Spinach (Cooked)
Photo Credit: Depositphotos

A half-cup serving of cooked spinach delivers 78 mg of magnesium, making this leafy green an excellent sleep supporter. Cooking spinach significantly increases the bioavailability of its nutrients compared to eating it raw.

Spinach brings additional sleep benefits through its tryptophan content. This amino acid converts to serotonin and eventually melatonin in the body, creating a natural sleep-inducing effect.

The folate in spinach also plays a role in sleep regulation and mood balance. People who consume spinach regularly often report falling asleep more quickly and waking less frequently during the night.

Adding spinach to your dinner can be simple. Sauté it with garlic as a side dish, blend it into pasta sauce, or mix it into grain bowls.

The mild flavor makes it easy to incorporate without overwhelming other ingredients. For maximum benefits, eat spinach a few hours before bedtime to allow digestion and nutrient absorption.

4. Almonds

Almonds
Photo Credit: Depositphotos

These nuts contain 80 mg of magnesium per ounce, making them a convenient and tasty sleep aid. A small handful provides nearly 20% of your daily magnesium needs.

The healthy fats in almonds work to keep your blood sugar steady all night long. Their protein content provides the amino acid tryptophan, which helps your body produce melatonin.

The combination of protein, fat, and fiber creates a slow-releasing source of nutrients that supports consistent sleep patterns. Many people notice improved sleep quality after eating almonds regularly for several weeks.

Consider establishing a bedtime ritual with almonds. A small portion (about 10-12 nuts) consumed 30 minutes before bed can create the perfect nutritional environment for sound sleep.

Raw almonds provide the most benefits, though lightly toasted versions still contain significant magnesium. Some people soak them overnight to increase nutrient absorption and make them easier to digest.

5. Quinoa

Quinoa
Photo Credit: Depositphotos

This ancient grain provides 60 mg of magnesium per half-cup cooked serving. As a complex carbohydrate, quinoa encourages serotonin production, which transforms into sleep-regulating melatonin.

A 2025 study published in the National Health and Nutrition Examination Survey found compelling connections between dietary magnesium intake and normal sleep duration.

Researchers tracked participants’ magnesium consumption and sleep patterns, discovering that those with higher magnesium intake from sources like quinoa consistently reported sleeping 7-8 hours nightly.

The study didn’t establish direct links to sleep disorders but showed clear associations between magnesium consumption and sleep quality.

Quinoa works best as part of your evening meal routine. Try it as a dinner side dish or add it to soups and stews. The combination of complex carbs and magnesium creates a gentle, sleep-supporting effect.

Many people find that replacing refined grains with quinoa at dinner leads to more restful nights and less middle-of-night waking. Its relatively quick cooking time (about 15 minutes) makes it practical for evening meals.

6. Dark Chocolate (70–85% Cocoa)

Dark Chocolate (70–85% Cocoa)
Photo Credit: Depositphotos

A square of dark chocolate contains about 64 mg of magnesium per ounce. This makes it a satisfying way to boost your magnesium intake while enjoying a small treat before bed.

The rich cocoa content does more than just taste good. It contains theobromine, which promotes calmness when consumed in small amounts.

Many sleep experts note that the slight bitterness activates relaxation responses in the brain. The fat content helps slow absorption, allowing the magnesium to release gradually through the night hours.

Some people find that a small piece after dinner creates the right balance of satisfaction and sleep support. For best results, stick with varieties containing at least 70% cocoa.

Lower percentages have less magnesium and more sugar, which can disrupt sleep. Limit your portion to one or two small squares since larger amounts might have the opposite effect due to the stimulating properties of chocolate.

Enjoying this treat earlier in the evening rather than right before bed gives your body time to process the minimal caffeine content.

7. Black Beans

Black Beans
Photo Credit: Depositphotos

Just half a cup of boiled black beans provides 60 mg of magnesium. These humble legumes pack serious nutritional benefits for those struggling with sleep issues.

Black beans combine their magnesium content with ample fiber, creating a powerful sleep-supporting duo. Thanks to their fiber content, your blood sugar stays balanced while you sleep, avoiding those sudden dips that can snap you awake in the middle of the night.

Many nutritionists recommend them as an evening meal component because they digest slowly, providing sustained nutrients through the night.

Their protein content also contributes to stable energy levels, helping you stay asleep once you’ve drifted off. Adding these beans to your dinner rotation is simple.

They work well in soup, as a side dish, or blended into dips. For easier digestion, soak dried beans before cooking or rinse canned varieties thoroughly to reduce sodium.

The combination of complex carbs, protein, and magnesium makes black beans an excellent addition to any sleep-supporting diet. Their versatility in various cuisines means you can enjoy them frequently without getting bored.

8. Avocado

Avocados
Photo Credit: Depositphotos

One whole avocado delivers approximately 58 mg of magnesium. This creamy fruit offers multiple sleep benefits beyond just its magnesium content.

Avocados contain potassium that works together with magnesium to relax muscles and reduce nighttime cramping.

The healthy monounsaturated fats help stabilize blood sugar, preventing middle-of-night awakenings caused by hunger or energy crashes.

Many sleep specialists note that the B vitamins in avocados support the production of serotonin and melatonin, key hormones that regulate sleep cycles.

The combination of nutrients creates a powerful sleep-supporting package. Try adding avocado to your evening meal routine.

Half an avocado with dinner or as part of a light evening snack can help prepare your body for rest. The natural oils can also help your body absorb fat-soluble vitamins from other foods in your meal.

For maximum benefits, choose avocados that yield slightly to gentle pressure, indicating they’re ripe and their nutrients are at peak bioavailability.

9. Cashews

Cashews
Photo Credit: Depositphotos

A single ounce of cashews provides 72 mg of magnesium. These creamy nuts make an excellent evening snack for anyone seeking better sleep.

Cashews supply important iron alongside their magnesium content. This combination helps combat restless legs syndrome, a common condition that interferes with falling asleep.

Many sleep researchers point out that cashews contain tryptophan, which converts to sleep-regulating melatonin in the body. The healthy fats in cashews slow digestion, allowing for sustained nutrient release throughout the night.

Consider incorporating a small handful into your evening routine. About 18 cashews (one ounce) provide enough magnesium to support relaxation without being too heavy before bed.

Raw, unsalted varieties offer the most benefits. Some people find that soaking cashews improves digestibility and nutrient absorption.

Their mild flavor pairs well with a small piece of fruit as a balanced pre-bed snack that supports consistent, quality sleep.

10. Edamame

Edamame
Photo Credit: Depositphotos.

Half a cup of edamame delivers 50 mg of magnesium. These young soybeans offer a unique combination of sleep-supporting nutrients.

Edamame provides both protein and fiber alongside its magnesium content. This nutritional trio helps maintain steady blood sugar levels throughout the night, preventing the spikes and crashes that can disrupt sleep.

Many nutritionists recommend them as an evening snack because they create a feeling of satisfaction without heaviness. Their choline content supports neurotransmitter production, helping signal your brain that it’s time for rest.

Preparing edamame couldn’t be simpler. Steam frozen pods for a few minutes, sprinkle with a touch of sea salt, and enjoy. They store well in the refrigerator after cooking, making them convenient for busy evenings.

The act of shelling the beans can even become part of a calming pre-sleep ritual. Their slightly sweet, grassy flavor satisfies cravings without the sugar that might interfere with rest.

11. Bananas

Bananas
Photo Credit: Depositphotos

A medium banana contains 32 mg of magnesium. While this amount might seem modest compared to other foods on this list, bananas offer additional sleep benefits that make them worth including.

A groundbreaking 2012 double-blind study published in the Journal of Research in Medical Sciences found compelling evidence for magnesium’s impact on sleep.

Researchers gave elderly participants either magnesium supplements or placebos over eight weeks. Those receiving magnesium showed significant improvements in sleep efficiency, early morning awakening, and overall insomnia severity.

This suggests that even the moderate magnesium content in bananas may contribute to better sleep quality when consumed regularly.

Having a banana as an evening snack provides more than just magnesium. The potassium helps relax muscles and prevent cramping during the night.  The vitamin B6 content supports melatonin production, your body’s main sleep-regulating hormone.

Many sleep specialists suggest bananas as part of a bedtime routine because they’re gentle on the digestive system while providing sustained energy through the night. Their natural sugars, paired with fiber, help maintain blood sugar levels without disruptive spikes.

3 Evening Drinks That May Disrupt Sleep

While adding magnesium-rich foods to your diet can improve sleep quality, certain beverages can undo these benefits when consumed in the evening. These common drinks interfere with your body’s natural sleep mechanisms through various pathways.

1. Caffeinated Drinks (Coffee, Energy Drinks)

Coffee
Photo Credit: Depositphotos

That afternoon coffee might be the reason you’re staring at the ceiling at midnight. Caffeine blocks adenosine receptors in your brain, directly interfering with the chemical that naturally builds up during the day to make you sleepy.

Most people know coffee contains caffeine, but many underestimate how long it remains active in the body. A cup consumed at 3 PM can still affect sleep at 9 PM.

The half-life of caffeine ranges from 5-6 hours in most adults, meaning half the caffeine is still circulating in your bloodstream after this time.

Energy drinks often contain even higher caffeine doses plus additional stimulants that compound these effects.

Your sensitivity to caffeine increases with age, so what didn’t bother you in your twenties might now keep you awake. Some sleep experts recommend cutting off caffeine at noon, especially for those with existing sleep issues.

Switching to herbal teas or water in the afternoon can make a dramatic difference in how quickly you fall asleep and how deeply you stay under throughout the night.

2. Alcohol

Alcohol
Photo Credit: Depositphotos

Many people reach for a glass of wine to wind down, but alcohol’s sleep effects are misleading. While it initially makes you drowsy, it significantly disrupts your sleep architecture later in the night.

Alcohol might help you fall asleep faster, creating a false impression that it improves rest. What happens is the suppression of REM sleep during the first half of the night.

This stage is crucial for memory consolidation and emotional processing. As your body metabolizes alcohol during the night, you experience what sleep scientists call “rebound arousal” – lighter, more fragmented sleep with frequent awakenings.

This explains why you might fall asleep quickly after drinking but wake up at 3 AM unable to return to sleep. The more you drink, the worse these effects become.

Even moderate consumption – just one or two drinks – can reduce sleep quality by 20-30%. For better rest, try stopping alcohol consumption at least three hours before bedtime.

This gives your body time to metabolize much of the alcohol before you try to sleep, minimizing disruptions to your sleep cycles and helping you wake refreshed.

3. High-Sugar Beverages (Soda, Sweetened Juices)

High-Sugar Beverages (Soda, Sweetened Juices)
Photo Credit: Depositphotos

That evening glass of soda or sweetened juice comes with a sleep price tag. Sugar causes rapid spikes and subsequent crashes in blood glucose levels that can interfere with sound sleep throughout the night.

Consuming sugary drinks before bed triggers an immediate energy boost when your body wants to wind down.

The pancreas releases insulin to manage the sugar influx, often leading to blood sugar dropping too low hours later.

This can trigger midnight hunger, sweating, or adrenaline surges that wake you up. Your brain relies on stable blood sugar for proper sleep-wake regulation, making these fluctuations particularly problematic for rest.

Many fruit juices marketed as “healthy” contain as much sugar as soda, sometimes without the fiber that would slow absorption.

Water remains the best evening drink choice, with herbal teas like chamomile or valerian root offering additional sleep benefits.

If you crave something sweet, try a small banana – it provides natural sugars plus sleep-supporting magnesium and potassium for more restful nights.

DIVE DEEPER...