Supplement Interactions

Vitamin D and Magnesium

The enzymes that turn vitamin D into something usable are magnesium dependent.

Evidence: Human clinical evidence

The enzymes that synthesise and metabolise vitamin D are magnesium dependent, which means magnesium status affects what your body can do with the vitamin D it has. A 2018 randomized trial in the American Journal of Clinical Nutrition found magnesium supplementation changed vitamin D metabolism differently depending on baseline vitamin D level, raising 25-hydroxyvitamin D3 when baseline was near 30 ng/mL and lowering it when baseline was higher.

The mechanism, in plain terms

Vitamin D does not arrive ready to use. It goes through a chain of conversions before it does anything.

What you make in your skin or swallow in a capsule is the inactive form. Your liver converts it into 25-hydroxyvitamin D, which is the storage form and the one a blood test measures. Your kidneys then convert that into the active hormone form when it is needed.

Each of those steps runs on an enzyme. And the enzymes that synthesise and metabolise vitamin D are magnesium dependent, which is the entire basis of this pairing.

Magnesium also matters for the protein that transports vitamin D in your blood.

So the logic is straightforward: you can have adequate raw material and still be limited at the conversion steps if the cofactor those steps need is short.

That matters more than it might sound, because magnesium shortfall is not rare. The 2018 trial below noted that according to NHANES, 79 percent of US adults do not meet their recommended dietary allowance of magnesium.

What actually happens to people

This has been tested in a randomized trial, and the result is more interesting than a simple more is better story.

A 2018 study in the American Journal of Clinical Nutrition, nested within the Personalized Prevention of Colorectal Cancer Trial at Vanderbilt, included 180 participants aged 40 to 85 in a double-blind two by two factorial randomized design. Magnesium and placebo doses were customised based on each person's baseline dietary intake, and vitamin D metabolites were measured by liquid chromatography mass spectrometry.

What it found is that the effect of magnesium on vitamin D metabolism depended on where your vitamin D started.

Magnesium supplementation increased 25-hydroxyvitamin D3 when baseline 25-hydroxyvitamin D was close to 30 ng/mL, and decreased it when baseline was higher. Those interactions remained significant after Bonferroni correction.

Read that carefully, because it is a genuinely unusual finding. Magnesium did not simply push vitamin D up. It appeared to move it toward a middle, raising it in people who were lower and lowering it in people who were higher.

The authors framed it as magnesium influencing vitamin D metabolism rather than merely its level, which is a meaningfully different claim from magnesium boosts your vitamin D.

What that supports is treating magnesium as something that helps the vitamin D system work properly, rather than as a lever for raising a number.

The doses and durations that show up

The trial customised magnesium doses to each participant's baseline dietary intake, which is a more thoughtful design than a fixed dose and also means it does not hand you a number to copy.

What is worth knowing is the food side, since magnesium is one of the more achievable nutrients from diet. Leafy greens, nuts and seeds particularly pumpkin seeds, legumes, whole grains and dark chocolate are the practical sources.

Forms differ in how well they are absorbed and in their side effects. Magnesium oxide is poorly absorbed and is the most likely to cause loose stools, which is why it is common in laxatives. Citrate, glycinate and malate are generally better tolerated. Which suits you is worth deciding with a provider rather than from a marketing page.

Duration matters because both nutrients move slowly. Vitamin D is fat soluble with a storage form measured in weeks, and magnesium repletion into tissue takes longer than the blood level suggests. Three months is a reasonable interval before re-measuring anything.

The honest hedge

I am not a doctor and I am not diagnosing anyone.

The thing I most want you to take from this page is about testing rather than dosing. Standard serum magnesium, which is what a normal panel measures if it measures magnesium at all, tells you remarkably little about your status. Your body holds serum magnesium in a tight range by pulling it from bone and tissue, so it can read normal while tissue stores are genuinely depleted. Magnesium RBC is the better question to ask.

On the vitamin D side, I want to stay honest about the target too. The Endocrine Society stated in 2024 that it no longer endorses its previously proposed sufficiency threshold at or above 30 ng/mL, because trial evidence does not support specific thresholds predicting who benefits from supplementation in generally healthy people. That does not mean vitamin D is unimportant. It means a confident number deserves less certainty than it usually gets.

Which makes the magnesium finding above more interesting rather than less. If magnesium moves vitamin D metabolism toward a middle rather than upward, chasing a specific vitamin D number with magnesium was never the right frame anyway.

One practical caution: if you have significantly reduced kidney function, magnesium supplementation needs medical supervision, since your kidneys are what clear it.

So. What to actually do.

Tonight, at no cost. Look at what you ate today and count the magnesium sources. Leafy greens, nuts, seeds, legumes, whole grains. For most people the honest answer is not many, and food is the easiest fix here.

Check which magnesium test you have had, if any. A standard serum magnesium is close to uninformative. Magnesium RBC is the one worth asking about.

Do not take magnesium to raise a vitamin D number. The trial evidence suggests it moves metabolism rather than simply pushing the level up, so that is the wrong goal even where the pairing is right.

Measure the vitamin D properly. A vitamin D test measures 25-hydroxy vitamin D, which is the storage form and the correct one for status.

Pick a form you tolerate. Oxide is poorly absorbed and most likely to loosen stools. Citrate, glycinate or malate are generally kinder, and the choice is worth making with a provider.

If your kidney function is reduced, involve a doctor before supplementing magnesium.

None of this has to happen this week. But tonight you can count the magnesium on today's plate.

You are not simply low or not low in a vitamin. You are a chain of conversions, each one running on a cofactor, and the raw material at the front of the chain is only as useful as the steps behind it.

Your body is not broken. It is blocked. And sometimes the block is not the vitamin you have been taking for years, it is the mineral the enzymes needed to do anything with it.

Go count what was on your plate.

Read these alongside it

Magnesium RBC

Why the standard serum magnesium test tells you very little.

Vitamin D3

The marker whose official threshold was withdrawn in 2024.

Vitamin D and K2

The other half of the vitamin D pairing question.

Vitamin D test

Measures the storage form, which is the right one for status.

All supplement interactions

Every pairing, each with an evidence tier.

Know what interacts with what

Occasional notes on the pairings worth knowing about, the mechanisms behind them, and how strong the evidence actually is.

The gift arrives by email, so the box has to stay ticked to send it. After that you get what Jess is actually testing that week, and one click stops it forever.

Questions

Does magnesium help vitamin D work?
The enzymes that synthesise and metabolise vitamin D are magnesium dependent, so magnesium status affects what your body can do with the vitamin D it has. A 2018 randomized trial found magnesium supplementation changed vitamin D metabolism, and notably the direction depended on baseline vitamin D, raising 25-hydroxyvitamin D3 when baseline was near 30 ng/mL and lowering it when baseline was higher.
Should I take magnesium with vitamin D?
Adequate magnesium supports the system that handles vitamin D, and most people fall short on magnesium from diet, so it is a reasonable pairing. What the evidence does not support is taking magnesium specifically to push a vitamin D number upward, since the randomized data suggests it moves metabolism toward a middle rather than simply raising the level.
How much magnesium do most people get?
Less than recommended. The 2018 trial noted that according to NHANES, 79 percent of US adults do not meet their recommended dietary allowance of magnesium. That is one reason this pairing gets attention: the cofactor is commonly short in exactly the population being told to supplement vitamin D.
Why does a normal magnesium blood test not tell me much?
Because your body holds serum magnesium in a tight range by drawing it from bone and tissue, so the blood level stays normal while tissue stores deplete. Standard serum magnesium is therefore a poor measure of status. Magnesium RBC, which measures the amount inside red blood cells, is the more informative question to ask.
Which form of magnesium is best?
It depends on tolerance and purpose rather than there being one answer. Magnesium oxide is poorly absorbed and most likely to cause loose stools, which is why it appears in laxatives. Citrate, glycinate and malate are generally better tolerated. Which suits you is worth deciding with a provider rather than from a label.
Can I take too much magnesium?
In someone with normal kidney function, excess from supplements usually shows up as loose stools before anything more serious, since the gut limits absorption. The important exception is reduced kidney function, where clearance is impaired and supplementation genuinely needs medical supervision.
How long before I see a difference?
Both nutrients move slowly. Vitamin D is fat soluble with a storage form measured in weeks, and magnesium repletion into tissue takes longer than a blood level suggests. Three months is a reasonable interval before re-measuring, and testing sooner mostly captures noise rather than change.

References

  1. Dai Q, et al. Magnesium status and supplementation influence vitamin D status and metabolism: results from a randomized trial. The American Journal of Clinical Nutrition. 2018. PMID 30541089
  2. DiNicolantonio JJ, O'Keefe JH, Wilson W. Subclinical magnesium deficiency: a principal driver of cardiovascular disease and a public health crisis. Open Heart. 2018. PMID 29387426
  3. Razzaque MS. Magnesium: Are We Consuming Enough? Nutrients. 2018. PMID 30513803
  4. McCartney CR, et al. Vitamin D Insufficiency and Epistemic Humility: An Endocrine Society Guideline Communication. The Journal of Clinical Endocrinology and Metabolism. 2024. PMID 38828961