Risk Factor

How Vitamin Deficiencies Affect Your Cognitive Health

Several vitamin deficiencies — particularly B12, vitamin D, and folate — cause measurable cognitive impairment that is largely reversible with treatment. Here is what to know.

7 min read
Medical note: Keel is a personal wellness tracker, not a medical device or diagnostic tool. The information on this page is for educational purposes only. If you have concerns about your cognitive health, please consult a qualified healthcare professional.

What the research says

Vitamin B12 deficiency is among the most common reversible causes of cognitive impairment in adults. B12 is essential for myelin production (the insulating sheath around nerve fibers) and for the conversion of homocysteine to methionine. B12 deficiency causes demyelination, elevated homocysteine (itself associated with cognitive decline and dementia risk), and direct neurological damage that may be irreversible if not treated.

B12 absorption declines with age due to reduced gastric acid production and changes in intrinsic factor availability — making B12 deficiency more prevalent in older adults, particularly those on medications that reduce stomach acid (PPIs, metformin). Strict vegetarians and vegans are at risk at any age due to low dietary B12.

Vitamin D deficiency — which is highly prevalent, affecting an estimated 40-50% of adults — has been associated with increased dementia risk in multiple observational studies. A 2023 study in Alzheimer's and Dementia found that vitamin D supplementation was associated with 40% reduced dementia incidence in a large cohort. Vitamin D receptors are distributed throughout the brain; vitamin D influences neuroinflammation, clearance of amyloid, and neurogenesis.

Which cognitive domains are most affected

B12 deficiency most prominently affects memory, processing speed, and executive function — producing a clinical picture that can closely resemble early dementia or Alzheimer's disease. Neurological symptoms (peripheral neuropathy, balance problems) often accompany the cognitive effects.

Vitamin D deficiency is associated with impaired attention, working memory, and executive function in observational research, with mechanisms related to neuroinflammation and reduced neurotrophic support.

What you can do

Get tested. Serum B12, folate, and vitamin D levels are all measurable with routine blood tests and should be included in any cognitive evaluation. Identifying a deficiency is clinically significant because treatment is straightforward and cognitive improvement is often dramatic.

B12 deficiency is treated with B12 supplementation (oral at lower doses; intramuscular injection if absorption is the problem). Vitamin D deficiency responds to supplementation. Folate deficiency responds to folic acid supplementation. Follow-up testing after supplementation confirms that levels have normalized.

Why tracking your baseline matters

For people with known or suspected vitamin deficiencies, daily cognitive tracking captures whether treatment is producing measurable improvement over weeks to months. This provides objective evidence of treatment effectiveness.

Cognitive tracking also provides a baseline for people starting supplementation, making it possible to see whether the intervention is producing the expected improvement — and flagging cases where improvement does not occur despite adequate blood level correction, which would warrant further evaluation.

Frequently asked questions

Can B12 deficiency cause permanent brain damage?

Yes, if severe and prolonged. B12 deficiency causes demyelination that, if untreated for years, can produce permanent neurological damage. This is why identifying and treating B12 deficiency promptly matters — early treatment typically produces significant cognitive recovery, while delayed treatment may leave residual deficits. The earlier the intervention, the more complete the recovery.

Should I take B12 supplements preventively?

Adults over 50 are often advised to take B12 supplementation or ensure dietary adequacy, given the increasing prevalence of reduced B12 absorption with age. Vegans and strict vegetarians should supplement regardless of age. Whether routine supplementation prevents cognitive decline in people with normal B12 levels is not established — the benefit is clearest for people who are actually deficient.

What vitamin D level is optimal for brain health?

There is no established consensus on the optimal vitamin D level specifically for brain health. Most clinical guidelines target serum 25-hydroxyvitamin D levels of 50-100 nmol/L (20-40 ng/mL). Supplementation in deficient individuals is clearly beneficial; the benefit of supplementation in people who are already replete is less established. Testing current levels and treating deficiency is the evidence-based approach.

Start tracking your cognitive baseline

Four minutes a day. Five short tests. One trend line that builds over weeks and months so you can see where you stand — and separate a bad day from a real change.

Free to start. No account required. Not a diagnostic tool.

Keel is a personal wellness tracker. It is not a medical device, diagnostic tool, or substitute for professional medical advice. If you have concerns about your cognitive health, consult a qualified healthcare professional. The information on this page is for educational purposes and should not be used to self-diagnose or self-treat any condition.