Vitamin D gets a lot of attention, but it doesn't work alone. The enzymes that turn vitamin D into its usable forms appear to depend on magnesium. Here's how the two connect, and what that does and doesn't mean for your supplement routine.
Written by Vita Globe Editorial Team | Reviewed against NIH guidance, a randomized trial and peer-reviewed reviews
Do magnesium and vitamin D work together?
Yes, at a biological level. All of the enzymes that metabolize vitamin D appear to require magnesium as a cofactor, in both the liver and kidneys[1]. The NIH notes that magnesium affects levels of parathyroid hormone and the active form of vitamin D[2]. In a randomized trial, magnesium supplementation raised vitamin D levels in people whose levels started near 30 ng/mL but lowered them in people whose levels started higher[3].
Caveat: The evidence is mostly biological plus one main trial. It doesn't show that taking the two together improves health outcomes.
Sources: Uwitonze 2018 · NIH ODS · Dai 2018 · Verified 2026-09-27
In this article
How are magnesium and vitamin D connected?
The vitamin D you get from sunlight, food or supplements isn't active right away. Your body converts it in two steps: first in the liver, then in the kidneys. A review in the Journal of the American Osteopathic Association explains that the enzymes involved in these steps appear to need magnesium to work[1].
The authors concluded that making sure you get the recommended amount of magnesium is essential to get the full benefits of vitamin D[1]. The NIH's magnesium fact sheet also notes that magnesium affects both parathyroid hormone and the active form of vitamin D[2].
In short: vitamin D depends on magnesium to do its job, and many people don't get enough magnesium. About 48% of Americans take in less than the estimated average requirement from food[2].
What does the research actually show?
A key human study is a randomized, double-blind trial published in the American Journal of Clinical Nutrition. It included 180 participants aged 40 to 85, drawn from a larger trial of 250 people. Magnesium and placebo doses were customized based on how much magnesium people already ate[3].
The results were interesting because they weren't one-directional. Magnesium supplementation increased vitamin D (25(OH)D) when starting levels were close to 30 ng/mL, but decreased it when starting levels were higher[3]. The researchers concluded that optimal magnesium status may be important for optimizing vitamin D status, not simply boosting it[3].
The honest summary
- The biological link is well described: vitamin D processing appears to rely on magnesium.
- One well-designed trial suggests magnesium helps regulate vitamin D levels, in both directions.
- There's no strong evidence yet that pairing them improves bones, immunity or other outcomes beyond getting enough of each.
How much of each do you need?
Here are the adult targets from the NIH:
| Adult RDA | Upper limit | |
|---|---|---|
| Magnesium | 310–420 mg/day, depending on age and sex[2] | 350 mg/day from supplements and medications[2] |
| Vitamin D | 15 mcg (600 IU) for ages 19–70; 20 mcg (800 IU) over 70[4] | 100 mcg (4,000 IU)/day[4] |
Vitamin D's main job is to promote calcium absorption and support normal bone mineralization[4]. If you're worried about low vitamin D, read our guide to vitamin D deficiency.
Should you take magnesium and vitamin D at the same time?
There's no evidence you need to take them at the same moment. They work together inside the body over time, not in your stomach. Take them whenever fits your routine; see Best Time to Take Magnesium for timing tips, including medications that need spacing from magnesium.
What matters more is that you're getting enough of both, from food and, if needed, supplements, without going over the upper limits.
Who might benefit from paying attention to both?
People with low magnesium intake who also take vitamin D may want to check that their magnesium needs are covered. Groups the NIH flags as more likely to run low on magnesium include people with gastrointestinal diseases, type 2 diabetes or alcohol dependence, and older adults[2].
If you've been told your vitamin D is low, ask your healthcare provider whether your magnesium intake is worth reviewing too.
Our option
Vita Globe Magnesium Citrate Gummies
If you're covering the magnesium side of the equation, our gummy is one simple option. The product is labeled 70 mg and comes 60 gummies to a bottle; the suggested use is 2 gummies once daily. The gummies are raspberry-flavored, vegan, gluten-free and non-GMO, made without artificial colors or flavors, and tested by an independent third-party lab.
Frequently asked questions
Does vitamin D deplete magnesium?
Vitamin D processing uses magnesium-dependent enzymes[1], which is why researchers stress getting enough magnesium. Whether typical vitamin D doses meaningfully lower magnesium in healthy people isn't well established.
Can I take magnesium and vitamin D together?
Yes, for most people. Just stay within the upper limits: 350 mg of supplemental magnesium and 4,000 IU of vitamin D for adults[2][4].
Do you need magnesium to absorb vitamin D?
Magnesium is needed for the enzymes that convert vitamin D into its active forms[1]. That's more about activation than absorption from the gut.
Does magnesium raise vitamin D levels?
In one randomized trial, it raised them in people starting near 30 ng/mL and lowered them in people starting higher[3].
Which should I take first, magnesium or vitamin D?
Order doesn't appear to matter. Focus on meeting your needs for both consistently.
Sources
- Uwitonze AM, Razzaque MS. Role of Magnesium in Vitamin D Activation and Function. J Am Osteopath Assoc. 2018;118(3):181-189. doi:10.7556/jaoa.2018.037
- Office of Dietary Supplements, National Institutes of Health. Magnesium: Fact Sheet for Health Professionals. Updated January 6, 2026. ods.od.nih.gov
- Dai Q, Zhu X, Manson JE, et al. Magnesium status and supplementation influence vitamin D status and metabolism: results from a randomized trial. Am J Clin Nutr. 2018;108(6):1249-1258. doi:10.1093/ajcn/nqy274
- Office of Dietary Supplements, National Institutes of Health. Vitamin D: Fact Sheet for Health Professionals. ods.od.nih.gov
About the Vita Globe Editorial Team
The Vita Globe Editorial Team researches and writes our wellness content, working from peer-reviewed research, systematic reviews and guidance from bodies such as the NIH and the FDA. We cite our sources inline and update articles when the evidence changes.
These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease. This article is for informational purposes only and is not a substitute for medical advice. Talk to your healthcare provider before starting any new supplement, particularly if you are pregnant, nursing, taking medication, or caring for a child.