The link was more pronounced among girls and teenagers.
Children and teenagers who report frequent or severe headaches tend to have lower vitamin D levels.
The link was modest overall but stronger among girls and among teenagers.
Body mass index, or BMI, accounted for about a fifth of the association in the researchers’ statistical model.
One possibility is that vitamin D and body weight are both related to inflammation, which can affect how sensitive the nervous system is to pain.
Another is that young people who get frequent headaches spend less time outdoors, where sunlight helps the skin produce vitamin D.
Headaches and vitamin D levels
The researchers analysed data collected between 2001 and 2004 as part of a US national health and nutrition survey.
The final analysis included just over 5,000 children and teenagers aged six to 19 who had the measurements needed for the study.
The researchers compared blood vitamin D levels with questionnaire reports of frequent or severe headaches, including migraines, in the previous year.
Almost a quarter had experienced headaches that met the survey’s description.
Because the survey grouped several types of headache together, it could not show whether the link was stronger for migraine.
What might explain the link?
The researchers suggest that inflammation could make pain-sensing nerves more sensitive, making mild discomfort feel more intense.
Low vitamin D and higher BMI can both occur alongside increased inflammation, which could help explain why the three measures were related.
For example, a teenager who regularly misses outdoor activities because of headaches may get less sun.
Diet is another possibility, since vitamin D can come from foods as well as sunlight.
The survey gave researchers a snapshot, so it could not show whether lower vitamin D preceded the headaches or followed them.
Related
The study was published in the journal Medicine (Zhang et al., 2026).

