You can take magnesium either before sleep or after dinner, and the best timing depends on your personal goals, schedule, and how your body tolerates it. Magnesium is known to support relaxation and nervous system balance, which can help some people unwind if taken about half an hour before bed. However, it also plays a role in energy production, so taking it in the morning or after meals is also appropriate and can be beneficial depending on your needs[1].
From an absorption standpoint, magnesium can be taken at any time of day, but consistency is key. Many experts recommend taking magnesium in the evening or before bed because it may promote relaxation, healthy sleep, and muscle recovery overnight. If you prefer taking it after dinner, waiting about an hour after eating can be a good practice to optimize absorption. Alternatively, if you take it in the morning, it is best to take it after breakfast and avoid coffee, which can interfere with magnesium absorption[2].
Splitting magnesium doses throughout the day can improve absorption and reduce digestive side effects. For example, if you need 400 mg daily, taking 200 mg in the morning and 200 mg at night is often recommended. Smaller doses are absorbed more efficiently, and this approach avoids overwhelming the gut’s transport mechanisms, which can limit absorption if too much magnesium is taken at once[2].
Regarding sleep specifically, some studies suggest magnesium supplementation can reduce the time it takes to fall asleep by about 17 minutes and increase total sleep time by a similar margin. However, the evidence is mixed, and magnesium’s effect on sleep may be more pronounced in people who have a deficiency or certain sleep disturbances. Magnesium glycinate, a form combined with glycine, is sometimes preferred for sleep support because glycine itself may have calming effects[3][5][6].
It is important to note that magnesium deficiency can affect sleep quality, but taking supplements will not necessarily improve sleep if you are not deficient. Testing for magnesium deficiency is difficult because most magnesium is stored in bones and tissues, not blood. Therefore, focusing on a magnesium-rich diet including seeds, nuts, whole grains, leafy greens, and fruits is advisable before relying solely on supplements[5].
Magnesium supplements are generally safe but can cause gastrointestinal discomfort such as diarrhea, nausea, or abdominal cramping, especially at high doses. Excess magnesium is usually excreted by the kidneys if kidney function is normal, but very large doses (around 5,000 mg per day) can lead to toxicity. Topical magnesium products like bath salts or sprays are unlikely to provide significant systemic magnesium because the skin is a strong barrier to absorption[1][6].
In summary, whether you take magnesium before sleep or after dinner depends on your personal routine and goals. Taking it before bed may help with relaxation and sleep for some, while taking it after dinner or in the morning can support overall magnesium levels and energy metabolism. Consistency, dose splitting, and avoiding interactions with substances like coffee are practical strategies to maximize benefits and absorption.
Sources:
[1] Times of India – Magnesium myths and misinformation
[2] NFO – Magnesium absorption guide
[3] DrOracle – Magnesium for sleep
[5] AOL – Magnesium and sleep
[6] UNSW – Magnesium supplements and sleep





