Can You Take Magnesium and Caffeine Together?

Dose or timing may matter

The short answer

Caffeine increases urinary magnesium excretion and counteracts magnesium's relaxation effects. High caffeine intake can deplete magnesium over time.

How to arrange timing

Space these at least 2 hours apart. Consider increasing magnesium if caffeine intake is high.

Reference

Reference noted for this combination: Examine.com

Important context

Whether supplements suit you together also depends on dose, product formulation, health conditions, and medication use. Ask a doctor or pharmacist first if you take medication, are pregnant or breastfeeding, or have a chronic condition.