Skip to content
Cansu's ADHD Diary
All articles

Should Vitamin D and Magnesium Be Taken Together for ADHD?

The only trial testing vitamin D and magnesium together in children with ADHD, its two publications, its limits, and who this pair might suit.

Cansu11 min readLong

Türkçe okuShare on Reddit

Short answer

The evidence is limited.

Longer answer

There is a single randomized trial testing vitamin D and magnesium together in children with ADHD. Done in Iran, it lasted eight weeks with 66 children who were deficient in both and were taking methylphenidate. The results were published as two separate papers. Improvements in behavior and emotional problems were reported on parent questionnaires, but there was no difference in hyperactivity. Because the two supplements were always given together, it is also unknown which one worked. No other team has repeated the trial. It is true that magnesium is needed for vitamin D to be processed in the body, but this is not evidence for ADHD. If you are thinking of taking both, get tested first and talk to your doctor.

The benefit of taking vitamin D and magnesium together for ADHD rests on a single small trial. In that trial, in children who were deficient in both and were taking ADHD medication, some behavior and emotional problems improved on questionnaires filled in by parents. There was no difference in hyperactivity. The trial lasted only eight weeks, and no other team has repeated it.

It is understandable why we always hear about this pair together. On supplement shelves, "vitamin D plus magnesium" boxes sit side by side, and online the sentence "vitamin D does not work on its own, you cannot take it without magnesium" keeps circulating. This sentence has a true side, which I explain below. But when it comes to ADHD, the evidence we have consists of two papers from a single study. I wrote about the overall picture for vitamin D in ADHD in the article on vitamin D and ADHD, and about magnesium on its own in the article on magnesium, zinc and iron. Here I look at the two together.

Why are vitamin D and magnesium mentioned together?

Because they really do work together in the body. According to a 2018 review by Uwitonze and Razzaque, all the enzymes that process vitamin D in the liver and kidneys seem to need magnesium. Magnesium acts as a helper substance (cofactor) in these reactions. The authors write that taking the recommended amount of magnesium is necessary to get the full benefit of vitamin D.

There is also a randomized study testing this in humans. In a trial with 180 adults aged 40 to 85 in the USA (Dai et al., 2018), the effect of magnesium supplementation on blood vitamin D levels varied with the person's starting vitamin D level. In those whose starting level was around 30 ng/mL, magnesium raised vitamin D levels. In those with higher levels (roughly between 30 and 50 ng/mL), it lowered them. The authors write that magnesium status may be important for keeping vitamin D levels in an optimal range.

This information is interesting and confirms the sentence "vitamin D and magnesium are linked". But two points need to be kept apart. First, these studies are about bone health and how vitamin D is processed in the body in general, not about ADHD symptoms. Second, there is no data in these studies showing that giving extra magnesium to someone whose magnesium is adequate makes vitamin D "more effective". The existence of a mechanism does not prove that the supplement works in ADHD.

Which study tested the two together in ADHD?

The only study I could find was done at Isfahan University of Medical Sciences. The study came out of a master's thesis and was funded by the university. The authors report no conflict of interest.

From what I read in the full texts, 74 children were screened at a clinic in Isfahan between March and May 2016. The children were between 6 and 12 years old, had been diagnosed with ADHD according to DSM-IV criteria, and had both vitamin D and magnesium levels below the set thresholds. Despite the researchers' warning, eight children were using a multivitamin containing vitamin D, so they were excluded before allocation. The remaining 66 children were divided into two groups, balanced by sex. 33 children received vitamin D and magnesium, and 33 received placebos for both. The placebos were made to resemble the real ones in appearance, color and taste, and the study was run double-blind.

In the study, vitamin D was given at 50,000 IU a week and magnesium at 6 mg per kilogram a day. The study chose these amounts; they are not a recommendation. The duration was eight weeks. All the children continued taking methylphenidate. No child dropped out of the study, and all 66 children were included in the analysis. At the end of eight weeks, blood vitamin D and magnesium levels in the supplement group rose clearly compared with placebo. No side effects were reported in either paper.

What did the first publication find?

The first paper, published in 2020 in the International Journal of Preventive Medicine, looked at the 48-item short form of the Conners parent scale and reported four areas. In the supplement group, the conduct problems score decreased by an average of 3.30 points, while it increased by 0.24 points in the placebo group. The social problems score decreased by 2.21 points in the supplement group, while it increased by 0.18 points in the placebo group. On the anxiety-shyness score, too, there was a 1.42-point decrease against a 0.03-point increase. All three of these differences were statistically significant. On the psychosomatic complaints score, however, there was no difference between the groups.

What caught my attention here is that the paper has no result about ADHD itself. No result for an attention or hyperactivity subscale was reported. Behavior and anxiety problems are common and important in children with ADHD, but these results are not enough to say "ADHD symptoms decreased".

What did the second publication find?

The data from the same 66 children were published in 2021 as a second paper in BMC Pediatrics. This time the Strengths and Difficulties Questionnaire was used. Again, parents filled in the questionnaire at the start and at week eight.

According to the table in the full text, when age, sex, weight and medication dose were not taken into account, the supplement group did better than placebo on emotional problems, peer problems, total difficulties and internalizing scores. On the hyperactivity score, however, there was no difference. The difference in conduct problems and on the externalizing score was not significant either. When these factors were taken into account, the difference in peer problems, total difficulties and internalizing scores held, while the difference in emotional problems became borderline. The authors say this clearly in the discussion section too: the supplementation had no significant effect on conduct problems, prosocial behavior, externalizing and hyperactivity scores.

There is also an inconsistency. The paper's abstract says there was a significant decrease in conduct problems, prosocial behavior and the externalizing score. But the same paper's table and discussion show that no difference was found in these three areas. I would trust the full text. This also reminds us that reading a supplement study only from its abstract can mislead you.

Why do two publications of the same study matter?

Because someone looking from the outside might take them as two separate pieces of evidence. The sentence "two studies were done with vitamin D and magnesium, and both were positive" is not true. A single study was done, and its results were published with two different scales in two different journals. The second paper states this clearly and cites the first paper, so nothing was hidden. But if the two are counted separately in a review or in a list online, the evidence looks stronger than it is.

When many scales and subscales are used in the same trial, it also becomes easier for some of them to come out significant by chance. A total of twelve scores were reported across the two papers, and some came out significant while others did not. In a picture like this, highlighting the significant ones would mean ignoring the ones that were not significant (especially hyperactivity).

Two more small details caught my eye in the full texts. In the first table of both papers, the medication dose row carries almost the same numbers as the weight row (around 31 mg per kilogram on average). Since this cannot be a methylphenidate dose, it is most likely a table error. The vitamin D threshold in the inclusion criteria is also written as "ng/dL" in both papers, whereas this measurement is given in ng/mL. These do not invalidate the results on their own, but they give an idea of how carefully the study was reported.

Most importantly: I could not find any publication showing that another team has repeated this trial since 2016.

Was the effect from vitamin D or from magnesium?

It is not possible to learn this from this study. The authors list this as the first limitation too. The study did not set up four separate groups taking vitamin D alone, magnesium alone, both together and placebo. Only "both" was compared with "neither".

We have other studies on vitamin D alone. In a double-blind study with 62 children taking methylphenidate in Tehran (Mohammadpour et al., 2018), 2,000 IU of vitamin D a day gave no result different from placebo on the main ADHD scales. There was only a small improvement in evening symptoms. You can find a summary of the vitamin D-only studies in the article on vitamin D and ADHD. For magnesium alone, on the other hand, there are very few well-designed randomized studies in ADHD, and in most of them magnesium was given mixed with other substances.

The authors list one more limitation. The amount of vitamin D and magnesium the children got from food was not measured. We do not know whether there was any change in diet during the eight weeks.

In whom could this pair be considered?

Even if we wanted to generalize the results of this study, the scope is narrow. The results apply only to children aged 6 to 12 who were found to have low levels of both vitamin D and magnesium and who were taking ADHD medication. The authors also write that it is unclear whether the supplementation would work in children who are not deficient. I could not find a study testing this pair for ADHD in adults or adolescents.

As far as I am concerned, in practice the order should be this. First, check whether there really is a deficiency. I explained how to read a vitamin D test in the article on the vitamin D test. How magnesium shows up in a blood test and in whom it is requested is in the article on magnesium, zinc and iron. If there is a deficiency, the doctor decides how much to take and for how long; I am not recommending doses here. If there is no deficiency, there is no basis for taking both supplements for ADHD.

Then there is the nutrition side. According to the NHS, magnesium is found in many foods such as spinach, nuts and wholemeal bread, and someone with a varied diet can usually meet their needs from food. I wrote about the practical side of eating patterns in ADHD in the article on nutrition and ADHD.

Are the combined products on the shelf similar to this study?

Not really, and this detail is often overlooked. In the Isfahan study, the two supplements were given separately. Vitamin D was given once a week as a high-dose capsule, and magnesium every day as a tablet calculated according to the child's weight. The placebos were also prepared at the university's faculty of pharmacy. So the children in the study did not use a single "vitamin D plus magnesium" capsule bought off the shelf.

In combined products, the ratio of the two substances is fixed, the salt form of magnesium varies from product to product, and the amount is not adjusted for weight. Even if the study's result is correct, treating it as valid for a particular ready-made product would require separate evidence. I could not find such a study.

As an adult with ADHD, I also thought about what this study tells me. The participants were children aged 6 to 12, they were taking medication and they had both deficiencies at once. If none of these three conditions applies to me, the study has very little to tell me.

What to watch for with side effects and drug interactions?

No side effects were reported over eight weeks in the Isfahan study. But eight weeks is a short time, and 66 children is a small number for catching a rare problem.

On the magnesium side, the NHS writes that high doses of magnesium can cause diarrhea in the short term and that there is not enough evidence about the effects of taking high doses for a long time. Someone whose kidneys do not work well may have difficulty clearing magnesium from the body. If you have kidney disease, definitely talk to your doctor about this pair.

On the vitamin D side, the NHS colecalciferol page advises not adding another product containing calcium or vitamin D without talking to a doctor. This warning is especially important for this pair, because some "vitamin D plus magnesium" products also contain calcium, and multivitamins often contain vitamin D too. The fact that eight children in the study were excluded because they were already using a multivitamin with vitamin D shows how easily products can overlap. The same page also lists interactions with digoxin, some diuretics, epilepsy medications and cortisone-type medications.

There is one more detail regarding ADHD medication: magnesium is also found in some stomach medications, and products that affect stomach acid can change the release of some long-acting methylphenidate capsules. I explained this in the article on taking long-acting methylphenidate with food. You can also find how to add every supplement you use to your medication list in the article on ADHD medication and other medications. Supplements are not a substitute for medication. Talking to a doctor or pharmacist before starting is the shortest way both to find out whether there is a deficiency and to not overlook these interactions.

What stays with me

The sentence "you cannot take vitamin D without magnesium" has a biological basis, because magnesium really is needed to process vitamin D. But when it comes to ADHD, what we are left with is two papers from the same 66 children. There is no difference in hyperactivity, some of the results are written more strongly in the abstract than they are, it is unknown which supplement the effect came from, and the trial has not been repeated.

Personally, I would treat this pair not as an ADHD supplement, but as two separate deficiency questions. Is my vitamin D low? Is my magnesium low? Both are questions to be answered with a blood test and a doctor. If both are low, it may make sense to correct them together, and if that correction improves the child's general state, I would be glad. But I would not count it as a treatment for ADHD.

The main thing this study taught me is not to take every publication as a separate study when counting supplement evidence. There are two papers here, but only one trial. Knowing this helps you read the "backed by research" phrase on the box on the shelf more accurately.

Frequently asked questions

Do I have to take magnesium when taking vitamin D?
Magnesium is used in processing vitamin D in the body, so in someone whose magnesium is very low, the effect of vitamin D may be limited. But this does not show that everyone needs to take both as supplements. Most people get enough magnesium from leafy green vegetables, nuts and whole grains. If you suspect a deficiency, it is better to look at a blood test than to guess.
Does this study apply to children without a deficiency too?
No. Only children with low levels of both vitamin D and magnesium were included in the study. The authors also write that it is unclear whether this supplementation would work in children with ADHD who are not deficient.
Can vitamin D and magnesium replace ADHD medication?
No. All the children in the study continued taking methylphenidate, and the supplements were added on top of the medication. Whether the supplements could replace the medication was never tested.
Is too much magnesium harmful?
According to the NHS, high doses of magnesium can cause diarrhea in the short term, and there is not enough evidence to say what the effects of taking high doses for a long time are. Someone with kidney disease may have difficulty clearing magnesium from the body, so they should definitely make this decision with their doctor.
Do vitamin D and magnesium need to be taken at the same time?
In the study, both were given with lunch. But this is not a timing recommendation, just the routine the study chose. I could not find a study showing that taking them at the same time or at different times makes a difference for ADHD. If you take another medication, ask your pharmacist about timing, because magnesium can affect the absorption of some medications.