Skip to main content

When Is the Best Time to Take Magnesium?

Updated April 8, 2026

The best time to take magnesium depends entirely on why you’re taking it. If your goal is better sleep, take magnesium glycinate or L-threonate 30-60 minutes before bed — the calming effect of these forms works best as part of a wind-down routine. For general health or heart support, take magnesium with a meal to reduce stomach upset, and consider splitting your dose between morning and evening for more consistent levels. For nighttime muscle cramps, an evening dose before bed targets the problem when it’s most likely to occur.

Last Updated: April 8, 2026

This article contains affiliate links. See our affiliate disclosure for details. This is not medical advice. Always consult your doctor before starting any supplement, especially if you take prescription medications.

Why Timing Matters for Magnesium

Magnesium is involved in more than 300 enzymatic reactions in your body, including muscle contraction, nerve signaling, blood pressure regulation, and energy production. When you take it affects which of these functions benefits most.

Unlike some supplements where timing is mostly about absorption, magnesium timing is about matching the supplement’s effects to your daily rhythm. The calming, muscle-relaxing properties of certain magnesium forms make evening dosing ideal for sleep and cramp relief. But those same properties make high doses less ideal first thing in the morning if you need to be alert.

The form of magnesium also matters as much as the timing. For a detailed comparison of magnesium glycinate vs. citrate vs. oxide, see our full breakdown.

For Sleep: Take It Before Bed

If you take magnesium to improve sleep quality, the evidence points clearly to evening dosing.

When: 30-60 minutes before your target bedtime.

Which form: Magnesium glycinate is the most popular choice for sleep. The glycine amino acid attached to the magnesium has its own calming properties — a 2015 study in Neuropsychopharmacology found that glycine supplementation improved subjective sleep quality in participants with mild sleep complaints. Magnesium L-threonate is another strong option, as it crosses the blood-brain barrier more effectively than other forms, according to research published in Neuron by MIT researchers.

Why it works: Magnesium activates the parasympathetic nervous system — the “rest and digest” mode. It regulates neurotransmitters that quiet nerve activity and binds to GABA receptors, the same receptors targeted by prescription sleep medications (though with a much gentler effect). A 2012 study in the Journal of Research in Medical Sciences found that 500mg of magnesium daily improved sleep time, sleep efficiency, and melatonin levels in elderly participants with insomnia.

Practical tip: You don’t need a full meal before bed — a small snack with some fat (a few almonds, a spoonful of peanut butter) is enough to aid absorption and prevent any stomach discomfort. For our full guide on magnesium for sleep, see our review of the best magnesium for sleep.

For Heart Health: Split the Dose

If you take magnesium for blood pressure support or general cardiovascular health, splitting the dose provides more consistent levels throughout the day.

When: Half with breakfast, half with dinner.

Which form: Magnesium citrate, glycinate, or taurate. Magnesium taurate is particularly interesting for heart health — taurine (the attached amino acid) has its own cardiovascular benefits, including support for healthy blood pressure and heart rhythm. See our guide to the best magnesium for heart health.

Why split dosing works: Your body can only absorb so much magnesium at once. A study in the Journal of the American College of Nutrition showed that magnesium absorption decreases as single-dose size increases. Taking 200mg twice daily typically provides better absorption than 400mg all at once. It also maintains more stable blood levels — important for blood pressure regulation, which fluctuates throughout the day.

Important note: Magnesium may lower blood pressure slightly. If you take blood pressure medication, this can enhance the drug’s effect and potentially cause your pressure to drop too low. This is manageable, but your doctor needs to know so they can monitor and adjust your medication dose if needed.

For Muscle Cramps: Evening Dosing

Nighttime leg cramps are extremely common in adults over 50 — the American Academy of Family Physicians estimates that up to 60% of adults experience nocturnal leg cramps at some point. While the evidence for magnesium as a cramp remedy is mixed, many people report significant improvement.

When: With dinner or 1-2 hours before bed.

Which form: Magnesium glycinate or citrate. Glycinate is gentler on the stomach. Citrate is fine for most people but can cause loose stools at higher doses.

What the evidence says: A 2017 Cochrane review found limited evidence that magnesium reduces leg cramp frequency or intensity in the general population. However, a 2020 study in Nutrients found that older adults with low magnesium status who supplemented experienced meaningful improvement. The takeaway: if your magnesium levels are low (common in adults over 50), supplementation may help. If your levels are adequate, it’s less likely to make a difference.

Practical tip: Cramps tend to be worst at night, so evening dosing targets the problem when it’s most likely to occur. Many people find relief within 1-2 weeks of consistent daily supplementation.

For General Wellness: With Your Largest Meal

If you take magnesium as part of a general wellness routine — not specifically for sleep, heart health, or cramps — the simplest approach is to take it with food.

When: With your largest meal of the day (usually lunch or dinner).

Which form: Any well-absorbed form — glycinate, citrate, or malate. Avoid magnesium oxide for supplementation purposes, as it has the lowest absorption rate (only about 4% according to research in the Journal of the American College of Nutrition).

Why with food: Taking magnesium with a meal reduces the chance of digestive side effects. Some forms — particularly citrate — have a well-known laxative effect at higher doses. Food buffers this. Additionally, the acids in food help dissolve magnesium tablets and capsules more completely, improving absorption.

When NOT to Take Magnesium

Timing also means knowing when to keep magnesium away from other things in your routine.

Not with calcium. As mentioned, calcium and magnesium compete for absorption. Separate them by at least 2 hours. If you take calcium with breakfast, take magnesium with dinner or before bed.

Not with certain medications. Magnesium binds to several common medications in the digestive tract, preventing their absorption:

  • Thyroid medication (levothyroxine): Separate by at least 4 hours
  • Antibiotics (tetracycline, ciprofloxacin): Separate by at least 2-4 hours
  • Bisphosphonates (alendronate/Fosamax): Separate by at least 2 hours

For a complete guide, see our article on supplement and medication interactions.

Not on a completely empty stomach if you’re sensitive. While magnesium glycinate is generally well-tolerated without food, magnesium citrate and oxide can cause cramping and loose stools on an empty stomach. Even a small snack helps.

How Much Magnesium to Take

The NIH recommended daily allowance for magnesium is 420mg for men over 50 and 320mg for women over 50. Most Americans fall short — the typical diet provides only 250-300mg daily.

A supplement dose of 200-400mg daily is common and well-tolerated for most adults. If you split the dose (200mg morning, 200mg evening), you stay within safe limits while maximizing absorption.

The tolerable upper intake level for supplemental magnesium (from supplements, not food) is 350mg, according to the NIH. Going above this level increases the risk of digestive side effects, though serious toxicity from oral magnesium is rare in people with normal kidney function.

People with kidney disease should be cautious. Impaired kidneys can’t excrete excess magnesium efficiently, and buildup can be dangerous. If you have kidney problems, talk to your doctor before taking any magnesium supplement.

When to Talk to Your Doctor

Check with your doctor before starting magnesium if you:

  • Take blood pressure medication (magnesium may enhance its effect)
  • Take thyroid medication, antibiotics, or bisphosphonates (timing conflicts)
  • Have kidney disease or reduced kidney function
  • Take prescription muscle relaxants (magnesium can amplify their effect)
  • Experience persistent cramps that don’t improve with supplementation (they may have a cause that magnesium won’t address)

Frequently Asked Questions

Should I take magnesium in the morning or at night? It depends on your primary goal. If you take magnesium for sleep, evening dosing (30-60 minutes before bed) is clearly better. If you take it for heart health or blood pressure support, splitting your dose — half in the morning, half in the evening — maintains more consistent blood levels throughout the day. If you take it purely for general wellness with no sleep concerns, morning with breakfast is perfectly fine.

Does magnesium need to be taken with food? Taking magnesium with food reduces the risk of digestive side effects like loose stools or stomach cramps, especially with magnesium citrate and oxide forms. Magnesium glycinate is gentler on the stomach and can be taken with or without food. If you take magnesium before bed for sleep, a small snack is enough — you don’t need a full meal.

Can I take magnesium and calcium at the same time? It’s better to separate them. Calcium and magnesium compete for absorption in the intestines, and calcium tends to win. Taking calcium in the morning or at lunch and magnesium in the evening gives each mineral its best chance at absorption. If you take magnesium for sleep, this separation happens naturally.

How long before bed should I take magnesium for sleep? Take it 30-60 minutes before you want to fall asleep. This gives the magnesium time to be absorbed and begin its calming effect. Magnesium glycinate and L-threonate are the best forms for sleep — glycinate has calming properties from the glycine amino acid, and L-threonate crosses the blood-brain barrier more effectively.

Can magnesium interact with my medications? Yes. Magnesium can reduce the absorption of certain antibiotics, bisphosphonates, and thyroid medication — separate them by 2-4 hours. Magnesium can also enhance the effect of blood pressure medications. Always tell your doctor or pharmacist if you take magnesium alongside prescription medications.

The Bottom Line

Match your magnesium timing to your goal. Before bed for sleep. Split doses for heart health. Evening for muscle cramps. With food for general wellness. And always separate magnesium from calcium and from medications that it can interfere with.

For more on choosing the right form, see our comparisons of magnesium glycinate vs. citrate vs. oxide, the best magnesium for sleep, and the best magnesium for heart health.


Sources:

  • Bannai M, et al. “The Effects of Glycine on Subjective Daytime Performance in Partially Sleep-Restricted Healthy Volunteers.” Frontiers in Neurology. 2012;3:61.
  • Slutsky I, et al. “Enhancement of Learning and Memory by Elevating Brain Magnesium.” Neuron. 2010;65(2):165-177.
  • Abbasi B, et al. “The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial.” Journal of Research in Medical Sciences. 2012;17(12):1161-1169.
  • Firoz M, Graber M. “Bioavailability of US commercial magnesium preparations.” Magnesium Research. 2001;14(4):257-262.
  • Garrison SR, et al. “Magnesium for skeletal muscle cramps.” Cochrane Database of Systematic Reviews. 2020;(9):CD009402.
  • National Institutes of Health Office of Dietary Supplements. Magnesium Fact Sheet. Updated 2024.

Always consult your doctor before starting any new supplement.

Frequently Asked Questions

Should I take magnesium in the morning or at night?

It depends on your primary goal. If you take magnesium for sleep, evening dosing (30-60 minutes before bed) is clearly better. If you take it for heart health or blood pressure support, splitting your dose — half in the morning, half in the evening — maintains more consistent blood levels throughout the day. If you take magnesium purely for general wellness and have no sleep issues, morning with breakfast is perfectly fine.

Does magnesium need to be taken with food?

Taking magnesium with food reduces the risk of digestive side effects like loose stools or stomach cramps, especially with magnesium citrate and oxide forms. Magnesium glycinate is gentler on the stomach and can be taken with or without food. If you take magnesium before bed for sleep, a small snack is enough — you don't need a full meal.

Can I take magnesium and calcium at the same time?

It's better to separate them. Calcium and magnesium compete for absorption in the intestines, and calcium tends to win. Taking calcium in the morning or at lunch and magnesium in the evening gives each mineral its best chance at absorption. If you take magnesium for sleep, this separation happens naturally.

How long before bed should I take magnesium for sleep?

Take it 30-60 minutes before you want to fall asleep. This gives the magnesium time to be absorbed and begin its calming effect. Magnesium glycinate and L-threonate are the best forms for sleep — glycinate has calming properties from the glycine amino acid, and L-threonate crosses the blood-brain barrier more effectively. Magnesium oxide and citrate are not ideal for sleep purposes.

Can magnesium interact with my medications?

Yes. Magnesium can reduce the absorption of certain antibiotics (tetracycline, ciprofloxacin), bisphosphonates (Fosamax), and thyroid medication (levothyroxine). Separate magnesium from these medications by at least 2-4 hours. Magnesium can also enhance the effect of blood pressure medications, potentially causing your pressure to drop too low. Always tell your doctor or pharmacist if you take magnesium alongside prescription medications.

Dr. Sarah Mitchell
PharmD, Certified Geriatric Pharmacist

Dr. Mitchell has spent 20 years helping adults over 50 navigate the supplement landscape with evidence-based guidance.

Back to top