The best time to take magnesium is the time you can stick to every day. Your body absorbs it at any time of day, and research has not shown that morning or night works better for general health. Timing matters in three cases: take it in the evening if you use it for sleep, with food if it upsets your stomach, and well apart from certain medicines that magnesium blocks.

Here is a simple guide by form, goal and medicine.

Best time to take magnesium: quick answer

Your goal or formBest timeWhy
General health or low intakeAny consistent time, with a mealConsistency matters more than the clock
Sleep30–60 minutes before bedFits a wind-down routine, and any calming effect comes when you want it
Magnesium glycinateEvening, or split morning and eveningGentle on the stomach; often used for sleep and calm
Magnesium citrateEvening or as the label saysCan loosen stools, so avoid taking it before travel or a long meeting
Magnesium for constipationAs directed on the label, often at bedtimeWorks as a laxative within hours
Muscle cramps or trainingAny consistent timeNo good evidence that timing around workouts matters
With other medicinesAt least 2 hours apart from certain drugs (see below)Magnesium can block their absorption

Morning or night?

For most people, night is slightly more practical. Many take magnesium for sleep or relaxation, and an evening dose with dinner is easy to remember. It also keeps any laxative effect overnight rather than during your workday.

Morning is fine too. If you take other supplements at breakfast and remember them better that way, take your magnesium then. The exception is if you take it with medicines that need spacing (below).

Daily magnesium works by keeping your levels topped up over weeks, not by acting like a sleeping pill on the night you take it. That is why taking it every day matters more than the exact hour.

With or without food?

Magnesium capsules next to a dinner plate of dal, rice and vegetables

Take magnesium with a meal or snack if it upsets your stomach or gives you loose stools. Splitting a larger dose into two smaller ones, for example half at lunch and half at dinner, also helps your gut tolerate it.

Forms that dissolve well in liquid, such as citrate, glycinate, lactate and chloride, are generally absorbed better than magnesium oxide (NIH Office of Dietary Supplements).

Best time to take magnesium for sleep

Take it 30–60 minutes before bed, as part of your wind-down routine. Give it at least two to four weeks before deciding whether it helps. Trials that found small sleep benefits ran for four to eight weeks.

For dose, the best form, and what the trials actually showed, read our full guide to magnesium for sleep.

Best time to take magnesium glycinate

Magnesium glycinate (bisglycinate) is the form most people choose for sleep and anxiety because it is gentle on the stomach. Evening suits most people. If you take more than one capsule a day, splitting them between morning and evening is also fine.

Best time to take magnesium citrate

Magnesium citrate is well absorbed but has a stronger laxative effect at higher doses. Take it with your evening meal so any effect happens at home. For constipation, follow the product label, which usually gives a bedtime dose with a full glass of water.

Magnesium and other medicines: timing rules

MedicineTiming rule
Bisphosphonates for osteoporosis (e.g. alendronate)Separate by at least 2 hours before or after magnesium
Tetracycline antibiotics (e.g. doxycycline) and quinolones (e.g. ciprofloxacin, levofloxacin)Take the antibiotic at least 2 hours before, or 4–6 hours after magnesium
Levothyroxine (thyroid medicine)Take your thyroid tablet first thing on an empty stomach and keep minerals well apart. Labels advise separating it from magnesium-containing antacids by about 4 hours; ask your pharmacist about supplements

Antibiotic and bisphosphonate rules are from the NIH Office of Dietary Supplements.

Also talk to your doctor if you take: diuretics (which change how much magnesium you lose), long-term acid reflux medicines such as PPIs (which can lower magnesium), or if you have kidney disease.

Can you take magnesium with other supplements?

  • Zinc: fine at normal doses. Very high zinc intakes (around 142 mg a day in one study) interfered with magnesium balance, so avoid megadoses or take them at different meals. See which form of zinc is best absorbed.
  • Calcium: large calcium doses compete with other minerals. If you take both, split them across meals.
  • Vitamin D: fine together. Vitamin D is best taken with a meal that contains some fat. Read about vitamin D deficiency.
  • Iron: take iron separately, ideally away from other minerals, as your doctor advises.

How much magnesium per day?

The upper limit for magnesium from supplements is 350 mg a day for adults, according to the NIH. Magnesium from food doesn’t count toward that limit. Read the label for elemental magnesium, not the total compound weight. If you are not sure whether you are low, see signs of magnesium deficiency.

Frequently asked questions

Should I take magnesium in the morning or at night?

Either works for general health. Choose night if you take it for sleep or if it loosens your stools.

Can I take magnesium on an empty stomach?

You can, but it is more likely to upset your stomach. Taking it with food is easier on most people.

Can I take magnesium every day?

Most healthy adults can take up to 350 mg of supplemental magnesium a day. Ask your doctor first if you have kidney disease.

How long does magnesium take to work?

For sleep, trials ran for four to eight weeks. As a laxative, magnesium citrate can work within hours.

Can I take magnesium with coffee or tea?

Yes. There is no strong evidence that a normal cup of coffee or tea stops magnesium from working. If you take it for sleep, an evening dose away from caffeine makes more sense anyway.

Sources

  1. National Institutes of Health, Office of Dietary Supplements. Magnesium fact sheet for health professionals.
  2. Levothyroxine product labelling (drug interactions with magnesium-containing antacids).

This article is for general information and is not medical advice. Ask your doctor or pharmacist about timing if you take prescription medicines. See our medical disclaimer.

Frequently Asked Questions