[NOW Health, reported by Chen Yun-ju in Taipei] Have you ever had this experience: lying in bed counting sheep, only for your mind to become clearer and clearer; finally falling asleep, only to wake up frequently during the night, dragging a fatigued body to work the next day with a foggy head? According to the 2017–2020 National Nutrition and Health Survey, magnesium is a mineral that citizens generally underconsume. When facing insomnia, many people immediately think of melatonin, overlooking the possibility that their body is sending out a distress signal due to a lack of “magnesium.” Ms. Chen, a woman in her 30s who had suffered from chronic insomnia for years, was found to be severely magnesium-deficient upon testing. Within a week of supplementing with magnesium, her sleep significantly improved, and she was no longer a light sleeper who woke up easily.
The Brain Doesn’t Just “Shut Down” During Sleep—It Enters Repair Mode
Whether this mode can be successfully activated depends heavily on magnesium. Magnesium helps our brain “step on the brakes,” slowing down the body, which has been stimulated by the sympathetic nervous system all day. Additionally, magnesium can inhibit excitatory substances like glutamate—which keep people awake but anxious—while strengthening GABA, a signal that calms the nervous system. Therefore, the presence of magnesium allows us to transition smoothly from “daytime fight mode” to “nighttime repair mode.” Research has also found that magnesium supplementation can prolong deep sleep (also known as slow-wave sleep), giving the brain a chance to truly rest, allowing brain cells to clear out waste, and helping organize and consolidate memories.
To Improve Insomnia, Supplementing with Melatonin Alone Isn’t Enough Without “Magnesium”
Magnesium is involved in the synthesis of serotonin and the secretion of melatonin. In other words, if you supplement with melatonin directly while lacking sufficient magnesium, your body cannot effectively produce or utilize these sleep hormones. A double-blind clinical trial published in the Journal of Research in Medical Sciences found that elderly individuals with sleep disorders who supplemented with 500 mg of magnesium daily for eight consecutive weeks experienced significant improvements in sleep duration, sleep efficiency, blood melatonin concentration, and sleep onset latency (the time it takes to fall asleep).
Dr. Hsu Cheng-tien from the Psychosomatic Medicine Department at Taiwan Adventist Hospital points out that magnesium also regulates neurotransmitters, helping the body truly relax after a busy day. He suggests supplementing with 200 to 400 mg of magnesium one hour before bedtime. However, he notes that not all types of magnesium are suitable for aiding sleep. For example, magnesium oxide has an absorption rate of only about 4% and is primarily used as a laxative. In contrast, magnesium glycinate is the form with the highest absorption rate, has fewer side effects, and can effectively increase deep sleep duration.
Get Enough Magnesium from Natural Foods: Eat These for Best Results
Dr. Hsu Cheng-tien explains that many patients he sees are in a “chronic low-magnesium state” without realizing it. A high-stress lifestyle, heavy coffee consumption, lack of sleep, refined diets, and even a fondness for sugary hand-shaken drinks can cause magnesium to silently drain from the body. Other populations, such as those on long-term diuretics, the elderly, or people with poor gastrointestinal absorption, already have lower efficiency in absorbing magnesium. They can easily progress toward insomnia, anxiety, muscle soreness, and heart palpitations without showing obvious early symptoms. Magnesium ions assist in the synthesis of tryptophan, which is then converted into serotonin and melatonin—neurotransmitters that help regulate sleep.

Magnesium is naturally found in seaweed, dark green vegetables, nuts, legumes, pumpkin seeds, bananas, oats, and dark chocolate. Eating dark green vegetables at least once a day and one tablespoon of nuts can help alleviate stress and stabilize emotions. According to the Health Promotion Administration (HPA), the recommended daily intake for adults is about 1,000 mg of calcium and about 300 mg of magnesium; excessive intake can strain the kidneys or cause gastrointestinal discomfort. If life stress is so high that you experience loss of appetite, frequent diarrhea, nighttime leg cramps, or heart palpitations, you might consider taking magnesium supplements under a doctor’s guidance. Forms like magnesium glycinate or magnesium citrate are relatively gentle and highly absorbable, avoiding significant irritation to the stomach.
Insomnia itself can also reduce the body’s ability to absorb magnesium, creating a vicious cycle. Therefore, if you often feel “the more I want to sleep, the more awake I become,” or “I am clearly exhausted but cannot fall asleep,” do not rely solely on willpower to push through, and do not rush to rely on sleeping pills. First ask yourself: “Is it possible that I am deficient in magnesium?” Dr. Hsu Cheng-tien reminds us that individuals with poor kidney function must undergo a medical evaluation before taking magnesium supplements. Poor sleep is often the body’s way of saying: “I lack the resources to repair myself.” A good night’s sleep should not be a luxury; it is a right of self-restoration that everyone should have, and magnesium might be the key to reclaiming it. The root cause of sleep issues is rarely singular; in addition to magnesium supplementation, pay close attention to overall nutritional balance and a regular routine. If symptoms persist, seek professional medical assistance to identify the underlying cause.
