*Last reviewed: *
Magnesium can be taken in the morning or at night. The best time is when you can take it consistently without stomach upset.
If you are taking magnesium for sleep or relaxation, try taking it about 30 minutes before bed. Research on magnesium as a sleep aid is still limited.
Magnesium Timing at a Glance
| Reason for taking magnesium | Practical timing |
|---|---|
| General supplementation | Morning or night |
| Sleep or evening relaxation | About 30 minutes before bed |
| Stomach sensitivity | With a meal |
| Diarrhea after taking magnesium | Take less, change the form, or ask a pharmacist |
| Magnesium prescribed for a medical condition | Follow your clinician's instructions |
Should I Take Magnesium in the Morning?
Morning magnesium may work best if you:
- Remember supplements more easily with breakfast.
- Feel more alert after taking magnesium.
- Develop stomach discomfort when you take it at night.
- Take medicines at bedtime and need to avoid absorption problems.
There is no established rule that magnesium must be taken at night. For general supplementation, taking it consistently matters more than choosing a particular hour.
Should Magnesium Be Taken at Night?
Night-time magnesium makes sense if you are trying it for sleep, evening relaxation or muscle cramps that happen overnight. Cleveland Clinic suggests taking a sleep-focused magnesium supplement about 30 minutes before bed, while also noting that research on its effect on sleep is limited.
Magnesium does not work like a sedative for everyone. Some people find it relaxing, while others notice no difference. If it causes loose stools, nausea or stomach cramps, take it earlier or take it with food. High amounts of supplemental magnesium can cause these digestive effects.
Should Magnesium Be Taken With Food?
Take magnesium with food if it upsets your stomach. Follow the directions for your specific product because different magnesium forms and products may have different instructions. Cleveland Clinic medication guidance recommends taking magnesium with food to reduce stomach upset.
Magnesium oxide is also used as a laxative and can cause diarrhea. If you take it for constipation, follow the product or prescription directions instead of using general supplement timing advice. MedlinePlus advises against taking magnesium oxide late in the day on an empty stomach when it is being used as a laxative.
How Much Magnesium Is Safe?
For adults, the upper limit for magnesium from supplements and medications is 350 milligrams per day, unless a healthcare professional recommends more. This limit does not include magnesium from food.
Check the Supplement Facts label for the amount of magnesium in each serving. If you use more than one magnesium-containing product, add the amounts together before taking them.
Magnesium and Medication Interactions
Magnesium can reduce the absorption of some medicines, including:
- Certain antibiotics, such as doxycycline, ciprofloxacin and levofloxacin.
- Oral bisphosphonates, such as alendronate, which is used to treat osteoporosis.
- Some diuretics and long-term acid-reducing medicines, which can affect magnesium levels.
The National Institutes of Health advises separating magnesium from oral bisphosphonates by at least two hours. Take certain antibiotics at least two hours before magnesium or four to six hours after it. Ask a pharmacist for the correct schedule for your medicine.
Who Should Ask a Healthcare Professional First?
Speak with a healthcare professional before taking magnesium supplements if you:
- Have kidney disease or reduced kidney function.
- Are pregnant or breastfeeding.
- Take prescription medicines regularly.
- Need magnesium to treat a diagnosed deficiency.
- Plan to take more than 350 milligrams per day from supplements or medications.
Reduced kidney function raises the risk of magnesium toxicity because the kidneys remove excess magnesium from the body.
Bottom Line
Take magnesium in the morning or at night, whichever fits your routine. If you are trying it for sleep, take it about 30 minutes before bed. Take it with food if it causes stomach upset, and ask a healthcare professional before exceeding 350 milligrams per day from supplements or medications.