Magnesium may improve your sleep quality and help you sleep longer. Magnesium does not work instantly, especially if you are using it for the first time.
Some people may notice improvements in sleep within a few weeks of starting magnesium supplementation. However, evidence is mixed, results are not guaranteed, and individual outcomes and timelines vary.
That said, depending on the form, the body begins to absorb magnesium about one hour after intake, which is why taking it just before bedtime may be best to improve sleep.
Taking magnesium consistently may help if low magnesium levels are contributing to sleep problems.
Studies suggest that people with magnesium deficiency may notice more immediate improvements in their sleep with magnesium supplements compared to those without a deficiency.
The types of magnesium used in studies to improve sleep include magnesium glycinate, magnesium threonate, magnesium oxide, magnesium lactate, and magnesium L-aspartate.
The body absorbs inorganic formulations of magnesium, such as magnesium oxide and magnesium sulphate, less than the organic formulations (magnesium glycinate, magnesium threonate, and magnesium taurate). Better absorption may help improve magnesium status, which could contribute to sleep benefits in some people.
Magnesium supplementation has been shown to improve sleep quality in some adults:
- Magnesium glycinate is commonly used for sleep due to its good tolerability and absorption, though evidence supporting sleep benefits is limited.
- Magnesium threonate has been shown to improve sleep quality in adults with self-reported sleep problems. Animal studies suggest magnesium threonate may increase brain magnesium levels, but the mechanism underlying its sleep effects in humans hasn’t been fully established.
Your diet can affect how much magnesium your body absorbs:
- Soft drinks high in phosphoric acid (such as cola) and foods high in phytates (such as some grains and legumes) may reduce magnesium absorption. Some polyphenols have been shown to interact with magnesium in experimental settings, but their impact on magnesium absorption in humans is less clear.
- Incorporating magnesium-rich foods such as green leafy vegetables (such as spinach), legumes, and whole grains into your diet can enhance the effectiveness of magnesium supplements.
Certain health conditions can affect how well your body absorbs magnesium and may influence how quickly magnesium works for sleep.
You may observe a slower effect when using magnesium to improve your sleep quality if you:
Medications that can reduce the amount of magnesium your body absorbs include:
- Antacids such as Prilosec (omeprazole)
- Some antibiotics (such as tetracyclines or fluoroquinolones)
- Oral contraceptives
- Diuretics such as Lasix (furosemide)
If you have difficulty falling asleep for many nights in a row or find yourself constantly waking up due to restlessness, discuss your concerns with your healthcare provider. They will analyze your sleep habits, consider underlying conditions that may be triggering your poor sleep patterns, and recommend appropriate treatment.

