Yes, you can take magnesium and vitamin D together, and the pairing makes biological sense: the enzymes that process vitamin D appear to rely on magnesium. Neither NIH's vitamin D fact sheet nor its magnesium fact sheet lists the other nutrient as an interaction. The real rules are simpler than the "vitamin D won't work without magnesium" posts suggest: stay within both upper limits, take vitamin D with a meal and check a short list of medicines.
The short answer
- Magnesium and vitamin D can be taken together, even with the same meal.
- The enzymes that process vitamin D in the liver and kidneys appear to need magnesium.
- In a 12-week trial of 180 adults, magnesium nudged vitamin D levels up from a starting point near 30 ng/mL and down from near 50 ng/mL: a balancing act, not an on switch.
- Adult limits: vitamin D 4,000 IU a day from all sources; supplemental magnesium 350 mg a day.
- Kidney disease, thiazides, blood thinners and some antibiotics and bone drugs mean checking with a clinician first.
Can you take magnesium and vitamin D together?
Yes. For healthy adults, magnesium and vitamin D3 can go down with the same breakfast. The NIH interaction lists for vitamin D (orlistat, statins, steroids, thiazide diuretics) and for magnesium (bisphosphonates, certain antibiotics, diuretics, proton pump inhibitors) don't mention each other. They are coworkers, not rivals for cabinet space.
The better question is whether the amounts fit your diet, other supplements and medicines, since both nutrients have upper limits and a few medicines need spacing.
How magnesium and vitamin D work together
Vitamin D is not active when you swallow it. According to the NIH Office of Dietary Supplements (ODS), vitamin D from sunlight, food or supplements is inert until the body converts it:
- Liver: vitamin D becomes 25-hydroxyvitamin D, or 25(OH)D, the form blood tests measure.
- Kidneys: 25(OH)D becomes 1,25-dihydroxyvitamin D (calcitriol), the active form.
- Clean-up: the enzyme 24-hydroxylase turns both into inactive forms (Dai 2018, below).
Magnesium appears at each step. A 2018 review in the Journal of the American Osteopathic Association concluded that all of the enzymes that metabolize vitamin D seem to require magnesium as a cofactor in their liver and kidney reactions. The researchers behind the trial below add that lab and in vivo studies show 1α-hydroxylase (the kidney enzyme that makes active vitamin D) and 24-hydroxylase are magnesium dependent. Magnesium is less a side character here and more the stage crew keeping the show running.
Meanwhile, according to ODS, vitamin D promotes calcium absorption in the gut, and magnesium affects the concentrations of both parathyroid hormone and active vitamin D, two major regulators of bone. Here is more on what magnesium does in the body.
Does vitamin D need magnesium to work?
Not in the on-off way the hype claims. Adequate magnesium helps your body handle vitamin D, but vitamin D doesn't simply fail without a magnesium supplement. The main trial on this question is a 2018 double-blind randomized trial in the American Journal of Clinical Nutrition by Dai and colleagues. Its 180 adults, aged 40 to 85, were recruited through a colorectal cancer prevention trial (most had a history of colon polyps) and took magnesium (87 people) or a placebo (93) for 12 weeks. Doses were customized to each person's diet: 77 to 390 mg a day, about 206 mg on average.
The effect on 25(OH)D3 depended on where people started:
- Starting near 30 ng/mL: magnesium raised 25(OH)D3 by 2.79 ng/mL compared with placebo (p = 0.03).
- Starting near 50 ng/mL: magnesium lowered it by 6.87 ng/mL (p = 0.002).
- Starting near 20 or 40 ng/mL: no significant change.
For context, the Food and Nutrition Board considers 20 ng/mL or more sufficient for most people. The authors offer a proposed explanation: magnesium-dependent enzymes both build and break down vitamin D, so which effect wins may depend on your starting level. Their conclusion is that optimal magnesium status "may be important for optimizing 25(OH)D status." Less volume knob, more thermostat.
A second trial looked at one direction only, in a different group: does adding magnesium help vitamin D levels rise? In a 12-week double-blind trial of 95 adults with overweight or obesity (Cheung 2022), people took 360 mg of magnesium glycinate plus 1,000 IU of vitamin D3, vitamin D3 alone, or a placebo. The combination group had the largest rise in 25(OH)D, 6.3 ng/mL on average, and the authors concluded the pairing may raise levels more effectively than vitamin D alone in this group.
The practical reading: enough magnesium is part of a good vitamin D routine, and many people fall short. In 2013–2016 survey data, 48% of Americans got less magnesium from food and drinks than their estimated requirement.
How much magnesium and vitamin D should you take?
Most adults need 600 IU of vitamin D a day (800 IU from age 71) and 310 to 420 mg of magnesium. The ceilings work differently: the vitamin D limit counts food, beverages and supplements together, while the magnesium limit counts only supplements and medicines. Two different rules, and the supplement aisle rarely mentions it.
| Nutrient | Recommended daily amount (adults) | Upper limit (adults) | One serving supplies |
|---|---|---|---|
| Vitamin D | 600 IU (15 mcg) ages 19–70; 800 IU (20 mcg) from 71 | 4,000 IU (100 mcg) a day from all sources | Vegan D3 + K2: 4,000 IU (100 mcg), the full upper limit |
| Magnesium | Men 400 mg (19–30), 420 mg (31+); women 310 mg (19–30), 320 mg (31+), from food and supplements | 350 mg a day from supplements and medicines; food not counted | Magnesium+: 200 mg per 10 mL, about 57% of the supplemental limit |
| Vitamin K | Adequate Intake: 120 mcg men, 90 mcg women (all forms) | None set | Vegan D3 + K2: 100 mcg K2 as MK-7 |
Two things follow. A 4,000 IU capsule already sits at the adult vitamin D upper limit, the maximum daily intake unlikely to cause adverse health effects, so make it your only high-dose vitamin D product and check your multivitamin. A 200 mg magnesium serving leaves 150 mg of supplemental headroom, and antacids, laxatives and multivitamins count against it; NIH notes that labels list elemental magnesium, so add up those numbers. NIH also says high vitamin D levels are almost always caused by supplements, not sunshine, so counting beats chasing the biggest number.
For the details, see how much vitamin D3 and K2 to take per day, how much magnesium to take a day and how much magnesium is too much.
When should you take magnesium and vitamin D?
Take vitamin D with a meal, and take magnesium whenever its label says; the same meal is fine. Vitamin D is fat-soluble, and fat in the gut enhances its absorption, although some is absorbed even without fat.
Two trials by Dawson-Hughes and colleagues show this. In a study of 50 healthy older adults given a single 50,000 IU dose of D3 with breakfast, blood D3 peaked significantly higher when the meal contained fat than when it was fat-free. In a 90-day trial of 62 older adults taking 50,000 IU a month, a low-fat breakfast gave the largest 12-hour rise in blood D3: 241.1 nmol/L, versus 207.4 with a high-fat meal and 200.9 with no meal. Yet 25(OH)D at 30 and 90 days did not differ. So an ordinary meal works, and no time of day has been shown to beat another. No sunrise ritual required.
No trial has compared taking magnesium and vitamin D together versus apart. High doses of supplemental magnesium can cause diarrhea, nausea and cramping, so if it loosens your stools, split the dose or lower it. For morning-or-night questions, see when to take vitamin D3 and K2.
Where does vitamin K2 fit in?
"Vitamin D3 K2 magnesium" shows up everywhere because it sounds like a premium stack, but the logic is straightforward. Vitamin D helps you absorb calcium, and vitamin K is a coenzyme for proteins involved in blood clotting and bone metabolism, including osteocalcin, one of the main proteins in bone. That is why many vitamin D products add K2, with magnesium alongside doing its own jobs. Here is more on why vitamin D3 and K2 are taken together.
The group that needs to plan around K2 is people on warfarin or a similar blood thinner. NIH warns that vitamin K can have a serious interaction with these anticoagulants, and people taking them need a consistent vitamin K intake, because sudden changes can raise or lower the drug's effect. Talk to your prescriber before adding K2.
Who should check with a clinician first?
Talk to your doctor or pharmacist first if any of these apply (cautions from the NIH magnesium and vitamin D fact sheets):
- Kidney disease. The risk of magnesium toxicity increases with impaired kidney function, because the kidneys can't clear the excess as well.
- Thiazide diuretics such as hydrochlorothiazide. They can increase magnesium loss in urine and reduce calcium loss, so combined with vitamin D supplements they might lead to high blood calcium, especially in older adults.
- Oral bisphosphonates such as alendronate: take magnesium at least 2 hours before or after. Tetracycline or quinolone antibiotics such as doxycycline or ciprofloxacin: take the antibiotic at least 2 hours before or 4 to 6 hours after magnesium.
- Loop diuretics or long-term proton pump inhibitors (typically more than a year). Both can lower magnesium, so your clinician may prefer to test rather than guess.
- Statins, corticosteroids or orlistat, which can interact with vitamin D (statins are covered below).
- Crohn's disease, celiac disease or ulcerative colitis. These can deplete magnesium or limit vitamin D absorption, so ask your gastroenterologist about amounts.
- Pregnancy or breastfeeding. Magnesium needs rise in pregnancy (350 to 360 mg for adults), and the 4,000 IU vitamin D limit still applies, so have your prenatal clinician review the plan.
Quick answers
What are the signs your body needs more magnesium?
The early signs NIH lists, loss of appetite, nausea, vomiting, fatigue and weakness, have plenty of other causes, and symptomatic deficiency is uncommon in healthy people because the kidneys limit how much magnesium leaves in urine. It is more likely with digestive conditions, type 2 diabetes, alcohol dependence, older age and some medicines. Concerned? Ask your clinician about a blood test rather than self-diagnosing.
Can I take vitamin D with a statin such as rosuvastatin?
Ask your pharmacist. NIH notes that high vitamin D intakes, especially from supplements, might reduce the potency of atorvastatin, lovastatin and simvastatin, because these drugs and vitamin D appear to compete for the same metabolizing enzyme. Rosuvastatin is not on that list, but that is not a green light, so have your full medicine list reviewed.
Can you take vitamin D3, K2 and magnesium together?
Yes, within the limits above. One D3 + K2 capsule with a meal and a measured serving of liquid magnesium can share the same routine. If you take warfarin or a similar blood thinner, get your prescriber's input on the K2 first.
How Infinite Labs D3 + K2 and Magnesium+ fit together
Want D3, K2 and magnesium covered without a cabinet full of bottles? These two fit side by side in one routine. Infinite Labs Vegan D3 + K2 is a strong pick for the vitamin side. Each veggie capsule delivers 4,000 IU (100 mcg) of vitamin D3 from lichen, a plant-based source, plus 100 mcg of vitamin K2 as MK-7, with 60 servings per bottle. Because both vitamins are fat-soluble and fat helps vitamin D absorb (see the 2015 meal study above), the formula pairs them with coconut MCT oil powder as its oil carrier. Directions: adults take 1 capsule daily with food, or as recommended by a qualified healthcare professional; don't combine it with other high-dose vitamin D supplements, and check with your healthcare professional if you take medication, especially blood thinners.
Infinite Labs Magnesium+ covers the mineral: a liposomal liquid with 200 mg of elemental magnesium from bisglycinate and gluconate per 10 mL (2 teaspoons), 18 servings per bottle, about 57% of the 350 mg supplemental limit. Take 10 mL daily in water or juice, or as directed by your healthcare professional; shake before use and use within 30 days of opening.
The D3 + K2 page offers the two as a bundle, a convenience pairing of separate products rather than a combined formula. Both are third-party tested and made in GMP-certified facilities, and certificates of analysis are available on request.
The practical takeaway
- Together is fine. Magnesium and vitamin D can share a routine, and the same meal works.
- Count every source. Vitamin D tops out at 4,000 IU a day from everything combined; supplemental magnesium at 350 mg.
- Check the medicine list. Kidney disease, thiazides, blood thinners, bisphosphonates and some antibiotics mean asking your clinician or pharmacist first.
Ready to set it up? Start with Vegan D3 + K2 with a meal and add Magnesium+ to the same routine.
Sources
- Dai Q et al. Magnesium status and supplementation influence vitamin D status and metabolism: results from a randomized trial. Am J Clin Nutr, 2018.
- Cheung MM et al. The effect of combined magnesium and vitamin D supplementation on vitamin D status, systemic inflammation, and blood pressure: a randomized double-blinded controlled trial. Nutrition, 2022.
- Uwitonze AM, Razzaque MS. Role of Magnesium in Vitamin D Activation and Function. J Am Osteopath Assoc, 2018.
- NIH Office of Dietary Supplements: Magnesium, Fact Sheet for Health Professionals (updated January 6, 2026).
- NIH Office of Dietary Supplements: Vitamin D, Fact Sheet for Health Professionals (updated June 27, 2025).
- NIH Office of Dietary Supplements: Vitamin D, Fact Sheet for Consumers (updated November 8, 2022).
- NIH Office of Dietary Supplements: Vitamin K, Fact Sheet for Health Professionals (updated March 29, 2021).
- Dawson-Hughes B et al. Dietary fat increases vitamin D-3 absorption. J Acad Nutr Diet, 2015.
- Dawson-Hughes B et al. Meal conditions affect the absorption of supplemental vitamin D3 but not the plasma 25-hydroxyvitamin D response to supplementation. J Bone Miner Res, 2013.
Educational information, not medical advice. Infinite Labs Vegan D3 + K2 and Magnesium+ are not intended to diagnose, treat, cure, or prevent any disease.




Keep it useful
Join the conversation