What Time of Day to Take Magnesium for Best Results

The best time to take magnesium depends on why you’re taking it. If you’re using it for sleep, take it at bedtime. If you’re taking it for general health or energy, morning or afternoon with a meal works well. And if you’re splitting doses for steady levels throughout the day, one capsule in the morning and one in the evening is a common approach. Here’s how to dial in the timing based on your specific goal.

For Sleep: Take It at Bedtime

Magnesium helps shift your nervous system toward its calming neurotransmitters and away from the excitatory ones that keep your brain wired. If anxiety or racing thoughts interfere with falling asleep, this rebalancing effect is exactly what you want happening as you settle in for the night. A Mayo Clinic sleep specialist recommends 250 to 500 milligrams in a single dose at bedtime for this purpose.

Magnesium glycinate is the form most commonly recommended for sleep because it’s gentle on the stomach and less likely to cause digestive issues. You don’t need to take it hours in advance. Right at bedtime, with a small snack if you’re prone to stomach sensitivity, is sufficient.

For Brain Health: Split It Into Two Doses

Magnesium L-threonate is the form most studied for cognitive function, and it’s typically taken differently than other forms. In a clinical trial published in Frontiers in Nutrition, participants took one capsule in the morning and one in the evening, about two hours before bedtime, for six weeks. The split dosing keeps magnesium levels more stable throughout the day rather than creating one big spike and a gradual decline. If your supplement label suggests two capsules daily, morning and evening is the standard approach.

For Exercise Recovery: Two Hours Before

If you’re taking magnesium to support workouts, timing it about two hours before intense exercise appears to be the most useful window. Pre-workout magnesium may help delay muscle fatigue by supporting how your body regulates glucose and manages the buildup of lactic acid. It also shows promise for easing post-exercise soreness. Taking it after a workout is fine too, but the evidence for pre-exercise timing is stronger at this point.

For Constipation: Morning on Its Own

Magnesium citrate works as a mild laxative and typically produces a bowel movement within 30 minutes to 6 hours. For this reason, morning is usually the most practical time. You’ll want to be near a bathroom and not heading into a meeting or a long commute. Taking it at night could disrupt your sleep with an urgent trip to the bathroom at 3 a.m.

Always Take It With Food

Regardless of when you take magnesium, pairing it with a meal improves absorption and reduces the chance of stomach trouble. One study found that magnesium absorption increased from about 46% to 52% when taken with food. That difference adds up over weeks and months. Food slows the transit through your digestive tract, giving your body more time to pull magnesium into the bloodstream.

Taking magnesium on an empty stomach raises the risk of diarrhea, nausea, and abdominal cramping, especially at higher doses. This is particularly true for magnesium oxide, carbonate, and chloride, which are the forms most likely to cause digestive side effects. If your schedule makes it hard to take a supplement with a full meal, even a handful of nuts or a piece of toast helps.

Watch the Timing With Other Supplements

Calcium, magnesium, and zinc all compete for the same absorption pathways in your gut. If you’re taking high doses of any combination of these, separating them by a couple of hours can prevent one from crowding out the others. A practical approach: take calcium in the morning, magnesium in the evening, or vice versa.

If you take antibiotics, space them at least two hours before or four to six hours after your magnesium supplement. Magnesium can bind to certain antibiotics in the gut and prevent them from being absorbed properly. The same principle applies to osteoporosis medications (bisphosphonates), which should be taken at least two hours apart from magnesium in either direction.

How Much Is Too Much

The tolerable upper limit for supplemental magnesium in adults is 350 milligrams per day. This cap applies only to magnesium from supplements and medications, not from food. Going above 350 mg doesn’t necessarily cause harm in everyone, but it increases the likelihood of diarrhea and cramping. If a sleep specialist recommends up to 500 mg at bedtime, that’s a clinical judgment based on your individual situation, but staying at or below 350 mg is the general safety guideline for self-directed supplementation.

If you’re splitting doses, the total across all your daily doses is what matters. Two capsules of 150 mg each keeps you at 300 mg for the day, well within the safe range.