There is no single best time to take magnesium β the right time depends on why you are taking it. For sleep, take it 30 to 60 minutes before bed. For constipation, a morning dose on an empty stomach works fastest. For muscle cramps after exercise, take it post-workout. If your only goal is to correct a deficiency, consistency matters more than timing, so pick a time you will reliably remember and stick with it.
Key Takeaways
- No clinical trial has proven morning is better than night, or vice versa, for general magnesium supplementation.
- For sleep: take glycinate 30 to 60 minutes before bed.
- For constipation: take citrate in the morning, ideally on an empty stomach or with water.
- For post-workout muscle recovery: take it shortly after exercise.
- Always separate magnesium from antibiotics, bisphosphonates and thyroid medicines by at least 2 hours.
- Taking magnesium with a small meal reduces the risk of stomach upset.
Does Timing Actually Matter?
Magnesium is not like a stimulant or a sleep drug where timing produces a strong, predictable effect. It is a mineral that your body uses continuously for hundreds of enzyme reactions, nerve signaling and muscle function. The NIH Office of Dietary Supplements notes that magnesium is stored largely in bone and muscle, so missing a dose by a few hours is not going to cause a deficiency spike.
Where timing does matter is in practical terms: taking it at the right time can help you remember it, make the specific benefit you want more likely, and avoid interactions with medicines or other supplements.
Best Time for Sleep: 30 to 60 Minutes Before Bed
Most clinical trials that showed a benefit for sleep used an evening dose taken before bed. This makes biological sense because magnesium supports GABA receptors (the calming receptors in the brain) and helps regulate melatonin, both of which are relevant at bedtime.
Magnesium glycinate is the best form for sleep because the glycine component has additional calming properties. Take 200 to 400 mg of elemental magnesium 30 to 60 minutes before you want to sleep. It will not knock you out the way a sleep medication does, and it will not feel sedating during the day if you accidentally take it at the wrong time.
For a full comparison of magnesium forms for sleep, see our guide on the best magnesium supplement for sleep.
Best Time for Constipation: Morning, Empty Stomach
Magnesium citrate draws water into the bowel and works fastest when taken on an empty stomach in the morning. Drinking a full glass of water alongside helps. This timing means the laxative effect is active during the day rather than disrupting sleep.
Avoid high doses of citrate at night if constipation is your goal β the bathroom trips will interrupt sleep. Our article on whether vitamin D causes constipation explains how calcium carbonate often plays a role in gut sluggishness and why citrate is gentler.
Best Time for Muscle Recovery: After Exercise
Sweat contains magnesium, and hard exercise can deplete stores. Taking magnesium shortly after a workout helps replenish what was lost and supports muscle relaxation and recovery. Either glycinate or citrate works well for this purpose. You can take it with a post-workout meal.
Best Time for General Deficiency: Whenever You Will Remember
If your only goal is to correct low magnesium or ensure you meet your daily needs, the exact time is less important than taking it consistently. Morning with breakfast, afternoon with lunch, or evening with dinner all work equally well for raising your blood magnesium level over time. Pick a time that fits your routine.
Should You Take Magnesium With Food?
For most people, taking magnesium with a small meal or snack reduces the chance of nausea or an upset stomach, particularly with citrate. Glycinate is generally well tolerated even on an empty stomach. A large fatty meal is not needed β a few crackers or a light snack is enough to buffer the stomach.
One exception: if you are taking magnesium citrate for constipation, an empty stomach speeds up the effect.
What Not to Take Magnesium With
Magnesium can bind to certain medicines in the gut and reduce their absorption. Spacing is more important than the time of day:
- Antibiotics (quinolones and tetracyclines): take magnesium at least 2 hours before or 4 to 6 hours after the antibiotic dose.
- Bisphosphonates (osteoporosis medicines such as alendronate): take at least 2 hours apart.
- Levothyroxine (thyroid medicine): take magnesium at least 4 hours away from thyroid medication.
- Calcium supplements: very large combined doses may compete for absorption. Spacing them a few hours apart is practical if you take both in large amounts.
If you take any prescription medicine, confirm timing with a pharmacist rather than guessing.
Can You Take Magnesium in the Morning and at Night?
Yes. Splitting your daily dose between morning and evening is fine and may actually reduce the chance of digestive side effects compared to taking the full dose at once. Keep the total elemental magnesium from supplements at or below the NIH upper limit of 350 mg per day for adults.
For more on how magnesium and calcium interact and optimal daily amounts, see our guide on calcium and magnesium supplement benefits. If you are choosing between glycinate and citrate forms, our glycinate vs citrate comparison has the full breakdown.
Frequently Asked Questions
Is it better to take magnesium at night or in the morning?
Night is slightly preferable if your goal is sleep support, since the sleep trials dosed in the evening. For all other goals, morning or daytime is equally effective. The most important factor is consistency, not the exact hour.
Should I take magnesium on an empty stomach?
It depends on the form and goal. Citrate for constipation works fastest on an empty stomach. Glycinate for sleep is fine with or without food. If any form upsets your stomach, take it with a light meal.
How long does magnesium take to work?
For constipation, citrate can act within a few hours. For sleep and muscle cramp benefits, most people need two to four weeks of consistent use to notice a meaningful difference.
Can I take magnesium with my other supplements?
Yes, in most cases. The main ones to space apart are prescription medicines (antibiotics, bisphosphonates, thyroid drugs) rather than other supplements. Taking magnesium with vitamin D is fine and commonly recommended since both support bone health.
Final Thoughts
Timing your magnesium supplement is straightforward once you know your goal. Sleep: take glycinate 30 to 60 minutes before bed. Constipation: take citrate in the morning on an empty stomach. Muscle recovery: take it post-workout. For everything else, any consistent time with food works well. Keep the dose at or below 350 mg of elemental magnesium from supplements per day, separate it from prescription medicines that interact with it, and give it two to four weeks before judging whether it is working.
This article is for educational purposes only and is not a substitute for professional medical advice, diagnosis or treatment.