NutriSeek

Do you need magnesium to use vitamin D?

General nutrition researchAnswered by NutriSeek AI · October 4, 2026

Yes — magnesium is required at several steps of vitamin D metabolism, so very low magnesium intake can blunt how well your body activates and uses vitamin D. That said, for most people with a reasonable diet, magnesium isn't the thing holding their vitamin D back.

Why magnesium matters for vitamin D

Vitamin D from sun or food isn't active yet. It has to be converted twice: first in the liver to 25-hydroxyvitamin D (the form measured in blood tests), then in the kidneys to the active hormone, calcitriol. The enzymes that do both conversions are magnesium-dependent, as is the protein that carries vitamin D around in the blood and the enzyme that breaks it down.

What the research shows:

  • Severe magnesium deficiency is associated with lower active vitamin D and with "vitamin D resistance" — cases where supplementing doesn't raise levels until magnesium is corrected. This is well documented but comes mostly from small clinical reports and metabolic studies.
  • Observational studies link higher magnesium intake with better vitamin D status, and one small randomized trial suggested magnesium supplements nudged vitamin D levels toward the middle of the normal range.
  • Evidence that adding magnesium helps people with ordinary, adequate magnesium intake is weak. The effect is real at the deficiency end, not a guaranteed boost for everyone.

So the honest summary: magnesium is a genuine cofactor, but it is a bottleneck mainly when you're actually short on it.

Foods that supply magnesium

Magnesium is widespread in plants, nuts, seeds and whole grains. From USDA data (per 100 g unless noted):

Food Magnesium Per typical serving
Pumpkin seed kernels, dried 592 mg ~166 mg per 1 oz (28 g)
Almonds 270 mg ~76 mg per 1 oz (28 g, 23 kernels)
Spinach, raw 79 mg ~24 mg per cup (30 g)
Salmon, Atlantic, farmed, raw 27 mg ~23 mg per 3 oz (85 g)

Adult recommended intakes sit around 310–420 mg a day depending on age and sex, so a handful of pumpkin seeds covers a sizeable chunk. Cooked spinach concentrates down a lot, making it a better source by the plateful than the raw cup suggests.

Worth noting: salmon is one of the few foods with meaningful vitamin D — USDA lists 11 µg per 100 g, about 9 µg in a 3 oz portion — but it's a modest magnesium source.

Practical takeaways

  • If you're supplementing vitamin D and your level isn't budging, poor magnesium status is one plausible explanation worth raising with your doctor — alongside dosing, absorption problems, obesity and medication effects.
  • Eating nuts, seeds, legumes, leafy greens and whole grains regularly makes magnesium deficiency unlikely.
  • People at higher risk of low magnesium include those with type 2 diabetes, chronic alcohol use, gut disorders like Crohn's or coeliac disease, and long-term users of proton pump inhibitors or some diuretics.
  • Magnesium supplements can cause diarrhoea at higher doses and can interact with certain antibiotics, bisphosphonates and thyroid medication. People with reduced kidney function should not take them without medical advice.

If you're pregnant, on regular medication, or considering high-dose vitamin D, check the plan with a doctor, pharmacist or registered dietitian rather than self-treating.

Further reading from the NIH

Ask next

More in this topic

Absorption & Interactions

Foods in this answer

Full nutrition facts