Vitamin D and the Brain — Why Deficiency Mimics Brain Fog
You are sitting at your desk at two in the afternoon and the day has already won. The email you need to reply to might as well be written in a foreign language. You read the first paragraph, then read it again, and somewhere between the second and third attempt your mind has gone somewhere soft and grey and unhelpful. You are not sleepy exactly. You are not anxious exactly. You are just fog.
You have blamed the weather, the workload, the screens, the sleep. You may not have considered that the problem could be arriving through your skin — or, more precisely, not arriving through it.
How Common Is Vitamin D Deficiency, Really?
More common than almost any other nutritional shortfall on the planet.
A 2023 pooled analysis published in Frontiers in Nutrition, drawing on 308 population-based studies and 7.9 million participants across 81 countries, found that 48% of the global population had serum 25-hydroxyvitamin D levels below 50 nmol/L — the threshold most researchers use for deficiency. Nearly 16% fell below 30 nmol/L, which constitutes severe deficiency. When the authors widened the lens to include insufficiency (below 75 nmol/L), the figure climbed to 77%.
In the United States, NHANES data from 2001 to 2018 covering more than 71,000 adults found a weighted prevalence of moderate vitamin D deficiency at 22%, with an additional 41% classified as insufficient. Only about a third of American adults had sufficient vitamin D status.
The burden falls unevenly. A systematic review of 71 studies across multiple countries found that 78% of indoor workers were vitamin D deficient, compared with 48% of outdoor workers. If you spend your working life behind glass — in an office, a classroom, a call centre — you are statistically likely to be running low on the one vitamin your body was designed to manufacture from sunlight.
Women are more vulnerable than men. People with darker skin tones synthesise less vitamin D at the same UV exposure. People living at higher latitudes face a winter-spring prevalence 1.7 times that of summer-autumn. And because vitamin D is fat-soluble, it gets sequestered in adipose tissue, meaning higher body fat correlates with lower circulating levels even at the same dietary intake.
The scale of this deficiency is not a curiosity. It is a backdrop against which every claim about vitamin D and brain function should be read.
What Vitamin D Actually Does Inside Your Brain
Vitamin D is not just a vitamin. It is a secosteroid hormone precursor, and its active form — 1,25-dihydroxyvitamin D, or calcitriol — acts through the vitamin D receptor (VDR), a nuclear receptor that regulates the expression of over a thousand genes. In 2021, researchers confirmed that VDRs are expressed throughout the human brain, with the highest density in the hippocampus, hypothalamus, thalamus, cortex, and substantia nigra — regions governing memory, mood, attention, and movement.
The brain does not just tolerate vitamin D. It depends on it through at least three mechanisms that matter for everyday cognitive function.
Neurotransmitter synthesis. In 2014, Rhonda Patrick and Bruce Ames published a landmark paper in The FASEB Journal demonstrating that calcitriol directly activates transcription of the gene for tryptophan hydroxylase 2 (TPH2) — the rate-limiting enzyme that converts tryptophan into serotonin inside the brain. Vitamin D does not just nudge serotonin production. It controls the on-switch. Patrick and Ames also showed that vitamin D regulates the serotonin reuptake transporter (SERT) and the enzyme responsible for serotonin breakdown (MAO-A), giving it multi-level control over how much serotonin is available in the brain at any given moment.
The dopaminergic system follows a parallel path. Vitamin D upregulates expression of tyrosine hydroxylase, the rate-limiting enzyme in dopamine biosynthesis. Animal studies have shown that vitamin D deficiency during development produces dysfunctional dopaminergic neurons — a finding that connects vitamin D status to the attentional and motivational systems dopamine governs.
Neuroprotection and inflammation. Vitamin D modulates neuroinflammation by suppressing pro-inflammatory cytokines and promoting anti-inflammatory states in microglia, the brain's resident immune cells. It reduces amyloid-beta oligomer formation and enhances activity of neprilysin, an amyloid-degrading enzyme. When vitamin D is low, the brain's inflammatory thermostat runs hotter, and the cleanup crews that clear metabolic debris work less efficiently.
Neurotrophic support. Calcitriol regulates the synthesis of nerve growth factor (NGF), glial-derived neurotrophic factor (GDNF), and neurotrophin 3 — proteins that support the survival, growth, and differentiation of neurons. These are not abstract developmental factors. They are the molecular machinery of synaptic plasticity — the brain's ability to form and strengthen the connections that underpin learning, memory, and adaptive thinking.
Why Vitamin D Deficiency Feels Like Brain Fog
Brain fog is not a clinical diagnosis. It is a description of experience — the sense that your thinking is slower, your recall less reliable, your attention less anchored than it should be. The mechanisms above explain why vitamin D deficiency produces exactly this experience.
When serotonin production drops because TPH2 is under-expressed, mood destabilises, sleep architecture suffers, and the downstream effects on cognitive function cascade. When dopamine synthesis falls because tyrosine hydroxylase is under-expressed, the motivational and attentional systems lose drive. When neuroinflammation rises unchecked, the metabolic cost of routine cognitive operations increases, and the brain spends more energy managing its own internal environment and less on the task in front of it.
The subjective result is fog. Not a dramatic failure. Not a sudden loss. Just the quiet, persistent sense that your brain is running on reduced power.
If you have read our piece on why iron deficiency impairs reading and cognition, the pattern will feel familiar. Nutritional deficiencies do not announce themselves with a specific symptom. They degrade the substrate that multiple cognitive systems share, producing a diffuse impairment that gets attributed to stress, ageing, or personality.
What the Observational Evidence Shows About Cognition and Dementia
The association between low vitamin D and cognitive decline is one of the more consistent findings in nutritional neuroscience.
A 2024 meta-analysis of 22 studies comprising over 53,000 participants found that people in the lowest vitamin D category had a 49% higher risk of developing dementia compared with those in the highest category. Vitamin D deficiency was associated with a 1.42-fold excess risk for all-cause dementia and a 1.57-fold excess risk for Alzheimer's disease specifically. A dose-response analysis showed that each 10 nmol/L increase in serum 25-hydroxyvitamin D was associated with a 1.2% lower dementia risk.
A nonlinear analysis from a 2022 UK Biobank study sharpened the picture further. The relationship between vitamin D and dementia risk was not linear — it followed a threshold curve. Participants with 25(OH)D levels at 25 nmol/L had a predicted dementia risk 54% higher than those at 50 nmol/L. The researchers estimated that raising vitamin D levels to 50 nmol/L across the population could prevent 17% of dementia cases.
In 2023, Ghahremani and colleagues published a study of 12,388 dementia-free older adults from the National Alzheimer's Coordinating Center dataset. Vitamin D supplementation was associated with a 40% lower incidence of dementia compared with no supplementation. The effect was significantly greater in women than in men, and in those with normal cognition at baseline compared with those who already had mild cognitive impairment. The finding fits the broader pattern across vitamin D research: intervention works best before damage is entrenched.
Perhaps the most striking recent study measured vitamin D directly in the brain rather than in the blood. In 2023, M. Kyla Shea and colleagues examined post-mortem brain tissue from 290 participants in the Rush Memory and Aging Project. Higher brain concentrations of 25-hydroxyvitamin D3 were associated with 25% to 33% lower odds of dementia or mild cognitive impairment at the last clinical visit before death. This was the first study to show that vitamin D levels in the brain itself — not just in circulation — track with cognitive function in humans.
Why Supplementation Trials Tell a More Complicated Story
If the observational data were the whole picture, the recommendation would be simple: take vitamin D, protect your brain. But randomised controlled trials have produced more nuanced results, and intellectual honesty requires sitting with that nuance.
The VITAL trial, led by JoAnn Manson at Brigham and Women's Hospital, randomised over 25,000 adults to receive 2,000 IU of vitamin D3 daily or placebo. In the cognitive substudy, published in Scientific Reports in 2021, vitamin D supplementation showed no significant benefit for cognitive decline over two to three years of follow-up in the overall population. A subgroup analysis found a significant benefit for Black participants, but the authors emphasised this needed confirmation.
The VitaMIND trial, the largest trial specifically designed to test vitamin D's effect on cognition, enrolled 620 adults aged 50 and older with mild to moderate vitamin D deficiency and early cognitive impairment. After 24 months of supplementation, there was no benefit to executive function or any secondary measure of cognition, function, or well-being.
A trial in healthy young adults — 128 participants randomised to vitamin D or placebo — found that despite significant increases in vitamin D status, there were no measurable changes in working memory, response inhibition, or cognitive flexibility.
How do we reconcile these null trial results with the strong observational signal?
Several explanations are plausible. First, most trial participants were not severely deficient. The cognitive cost of vitamin D deficiency may be most pronounced at the bottom of the distribution — below 25 or 30 nmol/L — and trials that recruit people with mild deficiency may miss the effect. Second, trial durations of one to three years may be too short to detect changes in a process that unfolds over decades. The Framingham cohort studies that show omega-3 benefits, for instance, followed participants for seven years or more. Third, cognitive decline in older adults is multifactorial, and a single nutritional intervention may not produce a signal large enough to detect against the noise of ageing, genetics, and comorbidities.
The honest summary: vitamin D deficiency is consistently associated with worse cognitive outcomes in observational research, and the biological mechanisms are plausible and well-characterised. But the evidence that supplementation reverses or prevents cognitive decline in people who are not severely deficient remains weak. This mirrors the pattern we described in our analysis of omega-3 and lifelong brain health: preventive nutrition works best when started early and sustained over decades, not when deployed as a short-term rescue.
Which Cognitive Dimensions Are Most Affected
The research consistently identifies specific cognitive domains that are most sensitive to vitamin D status. Viewed through the lens of dimensional cognitive profiling, the pattern becomes sharper.
Memory and sequencing — working memory and the ability to hold, order, and manipulate information in real time — is the dimension where vitamin D's effects are most consistent. The hippocampus, where new memories are encoded and where vitamin D receptors are most densely expressed, depends on the neurotrophic support that calcitriol provides. Neuroimaging studies have shown that low vitamin D levels correlate with reduced hippocampal volume. When hippocampal function degrades, the experience is not dramatic memory loss — it is the subtler frustration of reading something and having it slide off, of walking into a room and forgetting why, of losing the thread of a conversation two sentences in.
Attention and rhythm — attentional regulation — is the second dimension affected. Vitamin D's role in dopamine synthesis connects it directly to the prefrontal systems that govern sustained focus and task-switching. A 2024 dose-response meta-analysis found that the relationship between vitamin D status and cognitive performance was strongest for executive function, followed by memory and learning, with attention and processing speed showing a weaker but still measurable signal. A study using data from the Norwegian Cognitive Registry found that higher vitamin D levels were significantly associated with better attentional performance in adults referred for cognitive evaluation.
Emotional regulation — the third relevant dimension — connects through the serotonin pathway. A 2024 dose-response meta-analysis of randomised controlled trials found that vitamin D supplementation reduced depressive symptoms in a threshold-dependent manner: the effect was significant in people who were deficient at baseline, with the greatest reduction observed at higher doses. This aligns with Patrick and Ames's mechanistic work: when vitamin D is low, serotonin synthesis drops, and the brain's capacity to regulate mood and manage emotional transitions weakens. When emotional regulation is strained, the cognitive resources available for attention and memory get diverted — a cascading dynamic we explored in depth in our piece on emotional dysregulation.
What You Can Do About Your Vitamin D Status
Get tested. Ask for serum 25-hydroxyvitamin D. The threshold for deficiency varies by guideline, but most researchers studying cognitive outcomes use 50 nmol/L (20 ng/mL) as the floor for sufficiency. The Endocrine Society recommends 75 nmol/L (30 ng/mL) as the target. If your level is below 50 nmol/L, you are in the range where cognitive effects have been documented. If you are below 25 nmol/L, the urgency is higher.
Start with sunlight. The body produces vitamin D3 when UVB radiation hits exposed skin. For most light-skinned adults at mid-latitudes, 10 to 30 minutes of midday sun exposure on the arms and face, several times a week, is sufficient to maintain adequate levels during the summer months. Darker skin requires longer exposure for the same synthesis. Glass blocks UVB. Sunscreen with SPF 30 reduces vitamin D synthesis by over 95%. The modern indoor lifestyle, combined with justified skin cancer precautions, means that most adults cannot rely on sun exposure alone.
Supplement if needed. Vitamin D3 (cholecalciferol) is the preferred form. The Endocrine Society recommends 1,000 to 2,000 IU per day for most adults, with higher doses for those who are deficient. Vitamin D is fat-soluble and should be taken with a meal containing fat for optimal absorption. Because it accumulates in tissue, toxicity is possible at sustained doses above 10,000 IU per day, though it is rare. Supplementation should ideally be guided by blood testing to avoid both deficiency and excess.
Consider your cognitive baseline. If you already know that working memory, sustained attention, or emotional regulation are areas of relative difficulty for you, vitamin D status is worth investigating as a contributing factor — not as the sole explanation, but as one modifiable variable in a larger cognitive profile. CognitionType can help you map your cognitive strengths and vulnerabilities across dimensions including memory and sequencing, attention and rhythm, and emotional regulation, giving you a framework for understanding which nutritional levers are most likely to matter for your specific brain.
Do not treat vitamin D as a nootropic. If your levels are sufficient, taking more will not make you sharper. A Rutgers University study found that overweight older women taking more than three times the recommended dose showed improvements in memory but also slower reaction times — a reminder that more is not always better. The goal is sufficiency, not excess.
The Quiet Substrate
Vitamin D is not glamorous. It does not have the cultural cachet of omega-3 or the gym-floor credibility of creatine. It is a hormone precursor that your body makes from sunlight, that most people no longer get enough of, and that governs a surprisingly large number of the molecular processes your brain depends on to think clearly.
The research is clear that deficiency impairs the neurotransmitter systems behind mood and motivation, weakens the neurotrophic support behind memory and learning, and raises the neuroinflammatory baseline that makes every cognitive operation more expensive. The research is also clear that nearly half the world is deficient and most of them do not know it.
If your thinking has felt foggy, your concentration unreliable, your mood harder to regulate than it used to be — the answer may not be a productivity app or another cup of coffee. It may be a blood test, a few minutes of midday sun, and the recognition that your brain, like any other biological system, cannot run well on materials it does not have.
CognitionType is an informational assessment, not a clinical diagnosis. If you suspect a vitamin D deficiency, cognitive impairment, or mood disorder, we encourage you to seek formal evaluation from a qualified healthcare professional. A cognitive profile is a complement to clinical assessment, not a replacement.