Reviewed by the Help Dementia Editorial Team — our editors review every article for accuracy against guidance from the National Institute on Aging, the Alzheimer’s Association, and peer-reviewed sources.
When someone complains of memory problems, the instinct is often to assume the worst—that it might be Alzheimer’s disease or another progressive dementia. But before that diagnosis sticks, a doctor needs to rule out a number of conditions that cause memory loss but can actually be reversed. Vitamin B12 deficiency, thyroid disease, depression, medication side effects, sleep disorders, and infections top the list of treatable causes that masquerade as permanent cognitive decline. A 75-year-old woman became confused and forgetful over six months, worried she had early dementia.
Blood tests revealed severe B12 deficiency from pernicious anemia. After treatment with B12 injections, her memory and mental clarity returned to baseline within weeks. The difference between a reversible and irreversible cause can mean the difference between a patient getting their life back or being placed on a path toward progressive decline. This is why checking for reversible causes is not optional—it’s the foundation of any responsible workup for memory complaints. Some of these conditions are common enough that they affect millions of older adults every year, yet they’re often overlooked because symptoms can look so much like dementia that families and even physicians dismiss the early signs.
Table of Contents
- Why B12 Deficiency Causes Cognitive Decline
- Thyroid Dysfunction and Cognitive Impairment
- Depression as a Cause of Pseudodementia
- How Common Medications Impair Memory
- Sleep Apnea and Nocturnal Oxygen Deprivation
- Metabolic Causes Including Diabetes and Liver Disease
- Infections and Inflammatory Conditions
Why B12 Deficiency Causes Cognitive Decline
Vitamin B12 is essential for maintaining the myelin sheath that insulates nerve fibers in the brain and spinal cord. Without adequate B12, this protective coating breaks down, and neurons cannot communicate properly. memory problems from B12 deficiency can develop slowly or suddenly, depending on whether the deficiency stems from dietary insufficiency, malabsorption, or pernicious anemia—an autoimmune condition where the stomach fails to produce intrinsic factor, the protein needed to absorb B12 from food.
B12 deficiency is more common than many people realize, particularly in adults over 65 who may have reduced stomach acid, those on metformin for diabetes, and people who follow strict vegetarian or vegan diets. The tricky part is that B12 deficiency can cause memory problems for years before anyone checks a serum B12 level, and during that time, the neurological damage can become partially permanent. One warning sign is that memory problems may be accompanied by peripheral neuropathy—tingling or numbness in the hands and feet—which should immediately prompt a B12 test. If caught early, B12 supplementation (usually through injections for better absorption) can halt progression and often reverse cognitive symptoms entirely.
Thyroid Dysfunction and Cognitive Impairment
The thyroid regulates metabolic rate throughout the entire body, including the brain. When thyroid hormone levels drop (hypothyroidism), the brain literally runs in slow motion. Patients develop what feels like dementia: forgetfulness, difficulty concentrating, slowed thinking, and mood changes like depression. The symptoms can be profound enough that family members worry about a serious neurological disease, yet the problem is a simple hormone imbalance.
Hypothyroidism affects roughly 5 percent of the population, but the rate climbs sharply with age, especially in women over 60. A standard blood panel catching TSH (thyroid-stimulating hormone) and free T4 levels should be part of any memory evaluation, but some doctors skip it because they assume thyroid problems wouldn’t cause cognitive symptoms—a dangerous assumption. Another complication: subclinical hypothyroidism, where TSH is mildly elevated but free T4 is still normal, can still produce cognitive and mood symptoms in some patients. The limitation here is that even knowing someone has hypothyroidism doesn’t automatically mean treating it will fix their memory problems if dementia is also present. But if hypothyroidism is the sole cause, levothyroxine replacement can restore full cognitive function, sometimes taking weeks to months as hormone levels stabilize.
Depression as a Cause of Pseudodementia
Depression in older adults often wears a disguise. Instead of obvious sadness, an older person with depression may show up to a doctor’s office complaining of memory loss, difficulty concentrating, and what they describe as “cognitive fog.” They forget appointments, lose their train of thought, and struggle to make decisions. Neuropsychologists call this pseudodementia—it looks like dementia, performs like dementia on cognitive tests, but it isn’t degenerative. The underlying problem is depression, and treating the depression fixes the cognition. What makes pseudodementia particularly dangerous is that both the patient and the doctor can mistake it for the real thing. A 68-year-old man whose wife died became withdrawn, stopped going out, lost interest in hobbies, and started complaining that his memory was shot.
His adult daughter pushed for a dementia workup. Cognitive testing was equivocal—he performed below average, but the pattern looked more consistent with depression than with Alzheimer’s disease. A psychiatrist prescribed an SSRI, and over the next eight weeks, his memory complaints largely resolved as his mood improved. He was never demented. The key diagnostic feature of pseudodementia is that depression came first—the person was sad, anxious, or hopeless before the memory problems began—whereas in true dementia, memory loss is usually the first symptom and mood changes come later. One limitation: some older adults have both depression and early-stage dementia, making it harder to know how much of the cognitive impairment will improve with antidepressant treatment.
How Common Medications Impair Memory
Many medications prescribed for legitimate health conditions can fog memory and slow thinking. Anticholinergic drugs—used for urinary incontinence, Parkinson’s disease, and allergies—are notorious for cognitive side effects. Benzodiazepines like lorazepam (Ativan) and diazepam (Valium), prescribed for anxiety or sleep, are sedating and impair memory consolidation. Statins, commonly prescribed to lower cholesterol, cause cognitive complaints in a subset of patients. Sleeping pills like zolpidem (Ambien) can create morning fogginess and contribute to confusion in older adults. Even opioids, prescribed for chronic pain, impair concentration and memory, particularly at higher doses. The practical problem is that many older adults take multiple medications, making it difficult to know which one is causing problems.
A 72-year-old on an anticholinergic for overactive bladder, a statin for heart disease, and a benzodiazepine for nighttime anxiety was experiencing significant memory loss and confusion. His family worried he had dementia. When his primary care doctor audited his medications with deprescribing in mind, they stopped the benzodiazepine first. Within two weeks, his alertness and memory improved markedly. Months later, after a slow taper of the anticholinergic as alternatives were introduced, further improvement followed. This illustrates an important limitation: deprescribing takes time and careful planning, especially for medications someone has taken for years. Stopping certain drugs abruptly (like benzodiazepines) can be dangerous, causing withdrawal symptoms or rebound anxiety. But the comparison to continue-as-is is stark: years of cognitive impairment from preventable medication side effects.
Sleep Apnea and Nocturnal Oxygen Deprivation
Sleep apnea—where a person’s breathing repeatedly stops and starts during sleep—deprives the brain of oxygen throughout the night. Even when apnea episodes are not severe enough to cause the patient to fully wake, the disruption fragments sleep and prevents the restorative stages where memory consolidation happens. Over time, people with untreated sleep apnea report memory loss, difficulty concentrating, daytime somnolence, and irritability. Because these symptoms develop gradually and the person may not even realize they have apnea (their bed partner notices the loud snoring and pauses in breathing), the problem can go undiagnosed for years, with the patient believing they are developing dementia. Sleep apnea is extremely common in older adults—affecting perhaps 50 percent of men over 65—and it is highly treatable with continuous positive airway pressure (CPAP) machines. A 70-year-old man complained to his doctor that he was forgetting names, struggling to follow conversations, and feeling mentally foggy all day.
His wife mentioned he snored loudly and often seemed to stop breathing. A sleep study confirmed moderate obstructive sleep apnea. After three months of using a CPAP machine nightly, his cognitive symptoms largely resolved. He was more alert, remembered things better, and felt like himself again. One warning: CPAP requires consistent use—patients who only use the machine sporadically will not see full cognitive benefits. Another limitation is that even with CPAP, some patients develop central sleep apnea or upper airway resistance syndrome, which require different treatments. But for people with straightforward obstructive sleep apnea, treating the sleep disorder often reverses or significantly improves memory complaints.
Metabolic Causes Including Diabetes and Liver Disease
Uncontrolled diabetes damages blood vessels throughout the body, including in the brain, leading to reduced blood flow and cognitive decline. Liver disease impairs the organ’s ability to clear metabolic waste products, allowing toxins to accumulate and damage brain cells—a condition called hepatic encephalopathy. Both are reversible if caught and treated before permanent scarring occurs. Similarly, kidney disease allows waste products normally filtered out to build up in the bloodstream, causing uremia, which manifests as confusion, memory loss, and altered consciousness. A 66-year-old with poorly controlled type 2 diabetes (HbA1c over 10) developed memory problems and cognitive slowing that he attributed to getting old.
Once his diabetes was brought under control through medication adjustment and dietary changes, his cognitive symptoms improved over several months. The mechanism is partly vascular—better blood sugar control improves blood vessel function—and partly metabolic, as high glucose levels are toxic to neurons. One important caveat: if vascular damage has already caused numerous small strokes, reversing the metabolic problem won’t undo those strokes. But stopping further damage prevents further cognitive decline. Liver disease from hepatitis C or alcohol use disorder can cause hepatic encephalopathy, with symptoms ranging from subtle personality changes to severe confusion and coma. Treating the underlying liver disease—either with antivirals for hepatitis or through abstinence and supportive care—can reverse encephalopathy if the liver hasn’t already cirrhosed beyond repair.
Infections and Inflammatory Conditions
Infections that reach the brain or spinal cord—such as meningitis, encephalitis, or neurosyphilis—produce acute confusion, memory loss, and cognitive dysfunction. Bacterial meningitis is a medical emergency, but other infections can have a slower onset. Neurosyphilis, now rare but still seen, causes cognitive decline, behavior changes, and memory loss years after the original infection. Urinary tract infections, seemingly trivial, can cause acute confusion and memory problems in older adults, particularly those living in nursing homes. The mechanism is not entirely understood, but endotoxins from gram-negative bacteria can trigger systemic inflammation that affects cognition. Even non-infectious inflammation can impair memory.
Autoimmune conditions like systemic lupus erythematosus (SLE) can attack the central nervous system directly, causing “lupus fog”—cognitive impairment, difficulty concentrating, and memory problems. Treating the autoimmune condition with immunosuppressants can reverse these symptoms. A 72-year-old woman presented with progressive memory loss and confusion. Tests revealed a chronic urinary tract infection with no urinary symptoms—a “silent” UTI. After antibiotic treatment, her confusion resolved within days. Older adults, particularly those with dementia already, are prone to silent UTIs, and checking urine culture should be routine in any new-onset cognitive change. The practical lesson is that infections and inflammatory diseases must be ruled out through blood tests and, if indicated, cerebrospinal fluid analysis or imaging, because treating the infection or inflammation can halt or reverse cognitive decline.
- —





