The short answer
Take magnesium whenever you will remember it, unless you take one of the medicines it interferes with, in which case the spacing rules below decide the time for you. We searched PubMed on November 3, 2026 for randomized trials comparing morning and evening magnesium and found none. Advice that one time of day works better is not based on a trial.
When the clock really matters: medicine spacing
The NIH Office of Dietary Supplements gives specific intervals, and these are the only timing rules with a documented reason behind them.
| If you take | Why it matters | Spacing, per NIH |
|---|---|---|
| An oral bisphosphonate for osteoporosis, such as alendronate (Fosamax) | Magnesium can reduce how much of the drug you absorb | Magnesium at least 2 hours before or after |
| A tetracycline antibiotic, such as doxycycline | Magnesium binds the drug into a form that is not absorbed | Antibiotic at least 2 hours before, or 4 to 6 hours after, magnesium |
| A quinolone antibiotic, such as ciprofloxacin or levofloxacin | Same binding problem | Antibiotic at least 2 hours before, or 4 to 6 hours after, magnesium |
Two more cases where magnesium and medicine interact, though not through timing. Long-term proton pump inhibitors, such as esomeprazole, can cause low magnesium, and FDA has advised clinicians to consider checking levels. Loop and thiazide diuretics can raise magnesium loss in urine, while potassium-sparing diuretics reduce it. In those situations, ask for a level check rather than guessing.
If you take magnesium for sleep
The best-designed sleep trial of magnesium gave 155 adults with poor sleep 250 mg of magnesium a day as bisglycinate, or placebo, for four weeks, and told them to take it 30 to 60 minutes before bed. Insomnia scores improved slightly more than with placebo, a small effect the authors called modest. The capsules also delivered about 1.5 g of glycine a day.
That trial tested magnesium versus placebo, not bedtime versus morning, so it shows a bedtime dose can help a little, not that bedtime is the best time. Our guide does magnesium help you sleep? covers the weaker trials too.
One dose or two?
The body absorbs a smaller share of a bigger dose. In a classic study of magnesium taken with a standard meal, the fraction absorbed fell from 65% at the lowest amount to 11% at the highest. The unabsorbed remainder is what causes diarrhea, which NIH lists as the usual effect of too much supplemental magnesium.
That is the reasoning for splitting a larger dose into two. It is our inference from the absorption study, and no trial has tested split dosing for a health outcome. If one dose upsets your stomach, splitting it is a sensible thing to try.
With food or without?
No trial we found compares magnesium taken with food against magnesium taken on an empty stomach. The absorption study above gave magnesium with a meal, and it also found magnesium from almonds as well absorbed as a soluble supplement salt. If magnesium bothers your stomach, taking it with food is a reasonable first step.
Sponsored option
Vetted Aug 19, 2026Affiliate link, we may earn a commission at no extra cost to you.
Everlywell Our score 4.0/5
At-home lab tests
Pricing as of Aug 19, 2026
HbA1c $49; cholesterol and lipids $49; heart health panel $99
The rules that matter more than timing
Keep supplements at or under 350 mg of elemental magnesium a day, the adult upper limit for magnesium from pills and medicines. Read the Supplement Facts panel, which states elemental magnesium; the front label often gives the compound weight. If you have reduced kidney function, ask a clinician first. Our magnesium buyer's guide lists NSF-certified products with their label doses, and glycinate vs citrate vs oxide compares the forms.
Frequently asked questions
Is it better to take magnesium at night or in the morning?
No trial has compared them. If you take it for sleep, the best sleep trial dosed it 30 to 60 minutes before bed. Otherwise, choose a time you will remember and that respects any medicine spacing.
How far apart should magnesium and antibiotics be?
For tetracycline and quinolone antibiotics, take the antibiotic at least 2 hours before or 4 to 6 hours after magnesium, per NIH.
Can I take magnesium with alendronate (Fosamax)?
Not at the same time. NIH advises taking magnesium at least 2 hours before or after an oral bisphosphonate.
Should I take magnesium with food?
If it upsets your stomach, yes. No trial we found shows food changes how well it works.
Can I take magnesium every day?
Yes, within the 350 mg a day upper limit for supplements, if your kidneys work normally. Ask a clinician first if you have kidney disease.