On this page
Quick answer
Take them together — magnesium is a required cofactor in the enzymes that convert vitamin D into its active form, so low magnesium can blunt your response to D supplementation. Practical version: 2,000–5,000 IU D3 with K2 alongside your fattiest meal, 200–400 mg magnesium glycinate in the evening.
Magnesium is a cofactor in vitamin D metabolism
This is one of the few supplement pairings with a genuine mechanistic reason behind it rather than a marketing one. Vitamin D does not work in the form you swallow. It has to be converted in the liver, then again in the kidneys, into the active hormone your body actually uses — and the enzymes running those conversions are magnesium-dependent.
The binding protein that transports vitamin D through the bloodstream also relies on magnesium. So magnesium is not a nice-to-have alongside vitamin D; it is part of the machinery that turns a capsule into a physiological effect.
The practical implication is uncomfortable for anyone supplementing D in isolation: if your magnesium status is poor, you may be taking vitamin D and converting less of it than you assume. Given how common low magnesium intake is, that is not a rare edge case.
If your vitamin D level is not budging
The most common version of this problem: someone takes 2,000 IU daily for six months, retests, and finds their level barely moved. Magnesium status is one of several underrated explanations, and it is the cheapest one to address.
The others are worth ruling out in the same breath. Dose may simply be too low for your body size — requirements scale with weight, and a person at 250 lb often needs meaningfully more than a person at 130 lb to reach the same level. Taking D without any fat in the meal reduces absorption of a fat-soluble vitamin. And genuine adherence, as always, is not the same as intention.
The honest sequence is: take D3 with a fatty meal, make sure magnesium intake is adequate, give it three months, then retest. Testing rather than guessing is the entire point — vitamin D is one of the few nutrients where a cheap blood test tells you exactly whether your protocol is working.
The practical schedule
Vitamin D3 with K2, 2,000–5,000 IU, taken with the fattiest meal of your day. D3 is fat-soluble and absorption improves substantially with dietary fat, so a capsule with black coffee is a partially wasted capsule. K2 belongs in the same capsule because it supports calcium going where you want it — into bone rather than soft tissue.
Magnesium glycinate, 200–400 mg elemental, in the evening 1–2 hours before bed. The timing is for the sleep and wind-down benefits, not for the vitamin D interaction — the cofactor relationship is about your overall magnesium status across days and weeks, not about the two supplements meeting in your stomach.
Which means you genuinely cannot get this wrong. Same time, different times, morning, evening: what matters is that both are adequate on a daily basis. There is no absorption competition to schedule around.
Doses, testing, and honest limits
For most adults, 2,000–5,000 IU of D3 daily is the sensible range, aimed at reaching sufficiency rather than at a big number. Very high doses are not a shortcut, and vitamin D is fat-soluble, which means excess accumulates rather than washing out. Test after about three months and adjust from the result rather than from a forum post.
For magnesium, 200–400 mg of elemental magnesium covers the gap most diets leave. Serum magnesium testing is a notoriously poor reflection of total body status, so unlike vitamin D, this is a case where sensible supplementation beats waiting for a lab number to justify it.
What this pairing does not do: it does not make vitamin D an answer for fatigue, and it does not mean more of either is better. It means that if you are going to bother supplementing vitamin D, having adequate magnesium alongside it is how you give the D a fair chance to do its job.
Relevant stacks
Frequently asked questions
Should I take magnesium with vitamin D?
Yes. Magnesium is a required cofactor for the enzymes that convert vitamin D into its active form and for the protein that transports it, so poor magnesium status can blunt your response to supplemental D. It is one of the few pairings with a real mechanism rather than a marketing story behind it.
Can you take magnesium and vitamin D at the same time?
Yes, and there is no absorption competition between them. Most people take D3 with K2 alongside their fattiest meal for absorption, and magnesium in the evening for the sleep benefit. Taking both at dinner is equally fine — the cofactor relationship depends on overall magnesium status, not on same-stomach timing.
Why is my vitamin D level still low after supplementing?
Common reasons: a dose too low for your body weight, taking it without dietary fat, inconsistent use, or inadequate magnesium status limiting conversion. Take D3 with your fattiest meal, keep magnesium intake adequate at 200–400 mg elemental, give it three months, and retest rather than guess.
What is the best time to take vitamin D and magnesium?
Vitamin D3 with K2 goes with your largest or fattiest meal — absorption of a fat-soluble vitamin depends on it. Magnesium goes in the evening, 1–2 hours before bed, for the wind-down and sleep-quality benefits. If your fattiest meal is dinner, both land in the same window anyway.
How much magnesium should I take with vitamin D?
200–400 mg of elemental magnesium daily is the usual range, and bisglycinate chelate is the form worth using for evening dosing. There is no special ratio to hit against your vitamin D dose. The goal is simply adequate magnesium status, which most modern diets do not reliably deliver.
Written for adults aged 18 and over. This content is for education only and is not medical advice. Supplements are not intended to diagnose, treat, cure, or prevent any disease. Talk with your clinician before starting any supplement, especially if you are pregnant, nursing, taking medication, or managing a health condition. Supplements for children are a pediatric clinician's decision — keep all supplements out of reach of children.
Our medical advisor is Dr. Garrett Wdowin, NMD, ABAAHP, FAARM, naturopathic doctor. This page has not been medically reviewed.