You changed the timing again last week. An article said before bed for sleep, so the bottle moved to the nightstand. Then a gym account posted about recovery, and it moved back to the kitchen counter for post-workout. The bottle has had more addresses than a college student, and your magnesium schedule still feels like guesswork.
Nobody mentions this part: the studies everyone cites for magnesium timing did not test the timing everyone recommends.
When to Take Magnesium Before Bed or After Your Workout
The most popular magnesium timing advice, before bed for sleep and after workout for recovery, is based on study protocols that tested neither. Sleep research used morning-noon-evening dosing, not bedtime. The only recovery review recommends before training, not after. No head-to-head timing comparison exists. Consistency matters more than the clock.
— Mah & Pitre 2021 · Nutrients · n=151; Tarsitano et al. 2024 · Nutrients · 4 studies
Take magnesium before bed for better sleep. That is the internet's most popular timing advice, and it traces back to a meta-analysis of three small trials. Participants fell asleep 17 minutes faster on magnesium than placebo. Solid number. But the dosing protocol was not a single bedtime pill. Participants took magnesium two to three times per day, morning, noon, and evening. The faster sleep onset came from an all-day protocol, not a bedtime ritual.
Every article telling you to take magnesium one to two hours before bed is referencing research where participants also took it at breakfast and lunch.
Flip to the workout side. The only systematic review on magnesium and muscle soreness does not recommend taking it after training. It recommends two hours before. The reasoning comes from absorption kinetics: magnesium absorption begins roughly one hour after you swallow it, reaches peak concentration between two and two-and-a-half hours, holds steady until four or five hours, then drops off. If peak blood levels at exercise time matter, the math points forward, not backward.
Post-workout recovery dosing, the version that fills every supplement guide? Not one of the studies in that review actually timed doses around exercise. Three of four gave magnesium in the morning, at night, or at breakfast, and the participants who showed less soreness did so regardless of when the pill landed relative to their session.
Two confident recommendations. Two protocols their sources never used.
Even the evidence admits the gap. Printed in the same research the internet condenses into confident timing rules: the information regarding timing and dosage of magnesium intake is poor. Not uncertain. Not emerging. Poor.
What the absorption data supports is simpler than any timing hack. Magnesium builds its effect through consistent daily levels, not acute doses timed to the minute. The absorption curve (onset at one hour, plateau at two-and-a-half, sustained past four) means a reliable daily habit produces roughly the same steady-state concentrations as a carefully orchestrated schedule.
If bedtime works for your routine, bedtime works, not because the sleep studies proved bedtime is special, but because a habit you keep matters more than a schedule you abandon. If your goal is exercise recovery and you want the one recommendation with actual pharmacokinetic logic behind it, two hours before training makes the most sense. Even that, though, extrapolates from absorption curves rather than head-to-head timing trials that do not exist yet.
Behind all the timing advice sits a harder question: does magnesium help sleep enough to optimize around in the first place? The improvement was 17 minutes from 151 people across three small trials, and the researchers described the true effect as somewhere between positive and nothing.
Wherever the bottle sits when you wake up tomorrow, the absorption curve will not have changed overnight.