Vitamin B12 is essential for healthy nerves and red blood cells. Deficiency — common in older adults and vegans — is a well-recognised, treatable cause of fatigue, memory problems and cognitive fog.
Correcting a true B12 deficiency can meaningfully improve symptoms. Per the NIH ODS, persistent fog warrants a B12 check with your doctor.