Vitamin D and magnesium are a package deal

Magnesium is what your body needs to actually activate vitamin D — but the relationship is not simply "more magnesium, more vitamin D."

Vitamin D and magnesium supplements

Before you try this. Vitamin D is fat-soluble and stored in the body, unlike water-soluble vitamins, so taking too much for too long is a real risk, not a theoretical one. Levels above 220 nmol/L can cause hypercalcemia. Don't exceed 100 µg (4,000 IU) a day without medical supervision, and get tested rather than guessing if you have kidney disease, sarcoidosis, hyperparathyroidism, or take thiazide diuretics or calcium supplements. Don't attribute fatigue, low mood, or muscle aches to vitamin D deficiency without a blood test — those symptoms have many other common causes.

One mindvestment

If you supplement vitamin D through autumn and winter, make sure your magnesium intake is adequate too — not instead of testing, alongside it

Costs
1 min a day
Effort
Low
Gives you
A vitamin D supplement your body can actually use, and a more stable level rather than a swinging one
Felt after
8–12 weeks to see it reflected in a blood test

If you take a vitamin D supplement through the darker months, check that your magnesium intake is adequate alongside it. Not because more magnesium means more vitamin D — the relationship is more interesting than that — but because without enough magnesium, your body cannot properly activate the vitamin D you are taking.

Why this works

Vitamin D from sun, food, or a supplement arrives in an inactive form. It has to pass through two separate hydroxylation steps — one in the liver (via an enzyme called CYP2R1), one in the kidneys (via CYP27B1) — before it becomes the active hormone your cells can actually use. Every one of those enzymes, along with the enzyme that clears excess vitamin D and the protein that transports it through the blood, requires magnesium as a cofactor. Reviews of this pathway describe magnesium as necessary at essentially every step of vitamin D’s journey from inactive to active and back to cleared. If magnesium is running low, the pathway slows down regardless of how much vitamin D you swallow.

This matters more in the Nordic countries than almost anywhere else. Sweden sits at a latitude where the sun’s angle is too low for the skin to produce any vitamin D at all for a large part of the year — roughly October to March, depending on how far north you are. During those months, blood levels depend entirely on diet, stores, and supplements, which is exactly when a magnesium bottleneck would matter most.

Here is the part most articles on this topic get wrong: the only proper randomized trial testing this directly did not find a simple “more magnesium, more vitamin D” effect. In that study, magnesium supplementation raised vitamin D levels in people who started low — but lowered them in people whose levels were already adequate to high. The most sensible reading is that magnesium doesn’t just push vitamin D activation up; it also drives the enzyme that clears vitamin D, so it works to keep the whole system within a working range rather than simply maximising one number. A separate trial in adults with overweight, giving magnesium and vitamin D together, did outperform vitamin D alone at raising blood levels — but that result is specific to a population known to metabolise vitamin D less efficiently, not necessarily everyone.

One more honest note, since this pairing is often sold with a bigger promise attached: the popular claim that correcting vitamin D fixes fatigue and low mood is weaker than it sounds. Recent meta-analyses of vitamin D and depression find a real but inconsistent effect — some benefit in people who already have depressive symptoms, essentially no measurable benefit in general or older populations. If your main reason for testing is “I’m tired all the time,” it is worth remembering that low vitamin D is one of many ordinary explanations, not a diagnosis you can make from how you feel.

How to do it

  1. Get tested before you assume anything. A 25-hydroxyvitamin D blood test is inexpensive and is the only way to know whether you are actually low, adequate, or already sufficient — guessing in either direction wastes money at best.
  2. If you supplement, match the Nordic guidance rather than a wellness-brand number. The current Nordic Nutrition Recommendations set 10 µg (400 IU) a day as the general adult intake, rising to 20 µg (800 IU) for adults over 75 or anyone with very little sun exposure. The upper limit for ordinary use is 100 µg (4,000 IU) a day.
  3. Take it with a meal that contains some fat. Vitamin D is fat-soluble, and absorption is measurably better taken alongside food rather than on an empty stomach.
  4. Cover magnesium through food first. Pumpkin seeds, almonds, spinach, black beans, dark chocolate, and wholegrains are the main dietary sources — the same list that covers magnesium for sleep, since it’s the same nutrient doing more than one job.
  5. Re-test after 8–12 weeks rather than judging it by how you feel. Blood levels move slowly and predictably; symptoms are a much noisier signal.

Vitamin D and magnesium summary

Common mistakes

  • Taking a high-dose vitamin D supplement for months without ever testing. This is how people end up either wasting money on a supplement doing nothing, or, less commonly but more seriously, pushing levels high enough to matter.
  • Assuming more magnesium will keep raising vitamin D indefinitely. The trial evidence says otherwise once you’re already in a healthy range.
  • Stacking vitamin D, magnesium, calcium and a handful of other supplements at once. If something changes on a re-test, you won’t know which change caused it.
  • Treating vitamin D as a mood or energy fix. Worth correcting if you’re genuinely deficient, but the evidence for a mood benefit in someone who isn’t deficient, or who is deficient but not depressed, is thin.
  • Ignoring the upper limit because “it’s just a vitamin.” Vitamin D is fat-soluble and accumulates in the body over time in a way water-soluble vitamins like C or the B vitamins do not.

What should change

A blood test 8–12 weeks after starting or adjusting a supplement is the honest way to see whether anything changed — expect levels to move from insufficient (below 50 nmol/L) toward the sufficient range over that window if the dose and magnesium status are both adequate. Symptom changes, if any, are far less predictable and shouldn’t be the main thing you’re tracking.

Your next step

If the reason you’re looking at this is disrupted sleep rather than general winter fatigue, magnesium’s better-supported role is there directly — read the dedicated article on magnesium and sleep rather than treating vitamin D as the fix for a sleep problem it wasn’t shown to solve.

Sources (5)
  1. Role of magnesium in vitamin D activation and function Journal of Osteopathic Medicine 2018
  2. Nordic Nutrition Recommendations 2023, vitamin D chapter Nordic Council of Ministers 2023
  3. Magnesium status and supplementation influence vitamin D status and metabolism, randomized trial The American Journal of Clinical Nutrition 2018
  4. Combined magnesium and vitamin D supplementation on vitamin D status, randomized controlled trial Clinical Nutrition ESPEN 2022
  5. Vitamin D supplementation and depressive symptoms, dose-response meta-analysis Psychological Medicine 2024

Read next