If you’ve noticed your sleep getting worse through autumn and winter, vitamin D deficiency may be part of the reason. Research has identified vitamin D receptors in the areas of the brain that regulate sleep, and low levels have been associated with shorter sleep duration, poorer sleep quality, and higher rates of sleep disorders.
The relationship isn’t simple, but the evidence is stronger than most people realise.
How vitamin D affects sleep biology
Vitamin D receptors (VDRs) are found in several brain regions involved in sleep regulation, including the hypothalamus — which controls circadian rhythm — and the brainstem areas that manage the transition between sleep stages. This suggests vitamin D has a direct role in sleep architecture, not merely an indirect one through other health effects.
Two specific mechanisms are proposed. First, vitamin D appears to influence melatonin production through its effects on enzymes involved in melatonin synthesis — though this pathway is still being characterised. Second, vitamin D modulates the immune system’s production of cytokines — inflammatory signalling proteins that, in excess, disrupt sleep and are associated with the kind of non-restorative, fragmented sleep that many people with deficiency describe.
What the research shows
A large cross-sectional study using data from the National Health and Nutrition Examination Survey (NHANES) found that vitamin D deficiency was significantly associated with shorter sleep duration and higher rates of excessive daytime sleepiness. People with serum 25(OH)D below 50 nmol/L had nearly double the odds of short sleep compared to those with adequate levels.
The intervention evidence — where people are given vitamin D and sleep is tracked — is smaller but encouraging. A randomised controlled trial published in Nutritional Neuroscience (2018) gave 89 adults aged 20–50 with sleep disorders 50,000 IU of vitamin D every two weeks for eight weeks, and found significant improvements in PSQI sleep score, sleep latency, sleep duration, and sleep efficiency compared to placebo.
Two 2022 meta-analyses — one published in Nutrients and one in Nutritional Health — both concluded that vitamin D supplementation produces a statistically significant improvement in PSQI sleep quality scores, with average reductions of roughly one to two points across the pooled trials. Both reviews caution that the evidence for an effect on sleep duration and on specific sleep disorders is weaker and needs further study. The included studies generally reported associations that persisted after adjusting for common confounders such as depression, obesity, and physical activity, though the strength of adjustment varied between studies.
A 2025 study in the American Journal of Physiology added a different angle. Rather than just measuring average sleep quality, the researchers used wrist actigraphy on 130 adults to track night-to-night consistency. People with deficient or insufficient vitamin D (below 30 ng/mL) showed significantly more variability in sleep onset timing and sleep duration than those with sufficient levels. In other words, low vitamin D may not only shorten or worsen sleep — it may make it less predictable from night to night, which is itself associated with poor health outcomes.
As with most vitamin D research, the effect is most pronounced in people who were deficient at baseline. Supplementing vitamin D in people who already have adequate levels is unlikely to further improve sleep.
Vitamin D and sleepiness during the day
Excessive daytime sleepiness — feeling unreasonably tired and drowsy despite adequate time in bed — is one of the most commonly reported symptoms of vitamin D deficiency. The mechanism likely involves both the direct sleep-regulatory effects described above and the broader fatigue that deficiency produces through its effects on mitochondrial energy production.
If you’re sleeping a normal amount but waking unrefreshed, or feeling drowsy in the afternoons during winter, low vitamin D is worth investigating alongside other possible causes (anaemia, thyroid dysfunction, sleep apnoea).
Vitamin D and sleep apnoea
Several studies have found an association between vitamin D deficiency and obstructive sleep apnoea (OSA). The proposed mechanism involves vitamin D’s anti-inflammatory effects on the upper airway muscles and its role in respiratory muscle function.
Whether correcting deficiency improves OSA symptoms is not yet established — the evidence at this stage is primarily observational. OSA requires formal diagnosis and, typically, CPAP therapy or other clinical intervention. Vitamin D supplementation may be a useful adjunct but not a primary treatment.
Vitamin D and magnesium for sleep: the combination
Vitamin D and magnesium work together in sleep regulation, and both are commonly deficient in the UK population. Magnesium is needed to activate vitamin D — without it, supplemental D3 cannot be converted to its active form. But magnesium also has independent sleep benefits: it binds GABA receptors in the brain, reducing nervous system excitation and supporting the transition to sleep.
If you’re addressing sleep quality through supplementation, covering both nutrients makes more sense than either alone. Our Vitamin D3 K2 supplement taken in the morning alongside our Magnesium Glycinate in the evening is a practical and well-reasoned combination. The D3 formula uses an MCT oil base for consistent absorption without a meal; the magnesium glycinate form is well-tolerated and easy on the stomach. For a full breakdown of how vitamin D, zinc, and magnesium work together — including timing recommendations — see our article on vitamin D with zinc and magnesium.
What dose did the research use?
The trials showing sleep benefits typically used moderate-to-high doses in adults who were already deficient or insufficient. The 2018 Nutritional Neuroscience trial, for example, used the equivalent of around 3,500 IU per day for eight weeks. UK NHS guidance recommends 400 IU (10 µg) daily as a general maintenance dose during autumn and winter, while clinicians often use higher doses to correct an established deficiency confirmed by a blood test. If you suspect low vitamin D, the most useful starting point is to test your 25(OH)D level rather than guess at a dose.
When to take vitamin D for sleep
There’s an ongoing debate about whether vitamin D is better taken in the morning or evening. Some practitioners suggest morning to align with the natural pattern of sun-derived D3 synthesis. Others note that vitamin D appears to influence melatonin production and that evening dosing may interfere with sleep in some individuals.
The honest answer is that individual responses vary and the evidence is insufficient to make a firm recommendation. If you notice that taking vitamin D in the evening appears to affect your sleep onset, switch to morning dosing. Most people appear to tolerate either without issue.
Frequently asked questions
Does vitamin D help with sleep?
Research suggests vitamin D may support sleep quality and duration, particularly in people who are deficient. Vitamin D receptors are present in brain areas that regulate sleep, and low vitamin D is associated with shorter sleep duration and poorer sleep quality in multiple studies. Two 2022 meta-analyses also found that supplementation produced a small but statistically significant improvement in PSQI sleep quality scores. The effect appears most pronounced in people who start with deficient levels.
Can vitamin D deficiency cause sleep problems?
Yes. Studies consistently find that people with low vitamin D are more likely to experience poor sleep quality, shorter sleep duration, and daytime sleepiness. A 2025 actigraphy study also found that people with insufficient or deficient vitamin D had more night-to-night variability in sleep timing and duration than people with sufficient levels.
Should I take vitamin D in the morning or at night for sleep?
The evidence is insufficient to make a firm recommendation either way. Some people find evening vitamin D supplementation disrupts their sleep; if that applies to you, switch to morning dosing. Most people tolerate either without noticeable effect. Consistency of timing matters more than the specific time of day.
Does vitamin D and magnesium help with sleep?
Taking both together addresses two separate but complementary pathways. Magnesium is needed to activate vitamin D in the body, and also has independent sleep benefits through GABA receptor modulation. For people deficient in both — which is common in the UK — addressing both nutrients together is more effective than either alone.
Can vitamin D help with sleepiness during the day?
Excessive daytime sleepiness is one of the most commonly reported symptoms of vitamin D deficiency. Correcting a deficiency may reduce daytime fatigue in people whose sleepiness is related to low vitamin D. Other causes — including anaemia, thyroid dysfunction, and sleep apnoea — should also be ruled out if the problem is persistent.
How long does it take for vitamin D to improve sleep?
Improvements in sleep quality after starting vitamin D supplementation are generally reported within 4–8 weeks in studies, though this varies depending on starting levels and the degree of deficiency. More severely deficient individuals may take longer to notice changes, as correction of the deficiency itself takes time.
References
- McCarty DE, et al. Vitamin D, race, and excessive daytime sleepiness. Journal of Clinical Sleep Medicine. 2012;8(6):693–697. doi:10.5664/jcsm.2266
- Gao Q, et al. The association between vitamin D deficiency and sleep disorders: a systematic review and meta-analysis. Nutrients. 2018;10(10):1395. doi:10.3390/nu10101395
- Majid MS, et al. The effect of vitamin D supplement on the score and quality of sleep in 20–50-year-old people with sleep disorders compared with the control group. Nutritional Neuroscience. 2018;21(7):511–519. doi:10.1080/1028415X.2017.1317395
- Muscogiuri G, et al. Vitamin D and sleep: emerging evidence. European Journal of Clinical Nutrition. 2022;76(12):1609–1619. doi:10.1038/s41430-022-01134-x
- Uwitonze AM, Razzaque MS. Role of Magnesium in Vitamin D Activation and Function. The Journal of the American Osteopathic Association. 2018;118(3):181–189. doi:10.7556/jaoa.2018.037
- Mirzaei-Azandaryani Z, Abdolalipour S, Mirghafourvand M. The effect of vitamin D on sleep quality: a systematic review and meta-analysis. Nutritional Health. 2022. doi:10.1177/02601060221082367
- Abboud M. Vitamin D supplementation and sleep: a systematic review and meta-analysis of intervention studies. Nutrients. 2022;14(5):1076. doi:10.3390/nu14051076
- Culver MN, Linder BA, Lyons DE, Hutchison ZJ, Garrett CL, McNeil JN, Robinson AT. Do not sleep on vitamin D: vitamin D is associated with sleep variability in apparently healthy adults. American Journal of Physiology-Regulatory, Integrative and Comparative Physiology. 2025;328(3). doi:10.1152/ajpregu.00168.2024
This article is for informational purposes only and does not constitute medical advice. If you are experiencing persistent sleep difficulties, speak with your GP to rule out underlying conditions, including sleep apnoea, anaemia, and thyroid dysfunction.


