What Medications Cause Brain Fog and Memory Loss?

Dozens of commonly prescribed medications can cause brain fog, from allergy pills to blood pressure drugs. The most frequent culprits are drugs with anticholinergic properties (including many sleep aids, bladder medications, and older antidepressants), benzodiazepines, opioids, certain anti-seizure medications, and statins. Some of these are available over the counter, which means you may be experiencing medication-related cognitive symptoms without realizing the cause.

Anticholinergic Drugs: The Biggest Category

Your brain relies on a chemical messenger called acetylcholine to form memories, maintain attention, and process information quickly. A surprisingly large number of medications block this chemical as either their main action or a side effect. When that happens, you can experience fuzzy thinking, forgetfulness, slower reaction times, and difficulty concentrating.

Drugs with strong anticholinergic effects include older antihistamines like diphenhydramine (the active ingredient in Benadryl and many PM sleep aids), bladder medications for overactive bladder, older tricyclic antidepressants, and certain muscle relaxants. Researchers use a scoring system called the Anticholinergic Cognitive Burden scale to rate drugs from 0 (no anticholinergic activity) to 3 (severe). Taking multiple medications that each score a 1 or 2 can add up to a significant cognitive load, even if no single drug seems problematic on its own.

Older adults are particularly vulnerable. Age-related changes make the brain’s protective barrier more permeable, allowing more of the drug to reach brain tissue. Acetylcholine transmission in the brain also naturally declines with age, so blocking what remains has a more noticeable effect. A large prospective study published in JAMA Internal Medicine found that cumulative use of strong anticholinergic medications was associated with an increased risk of dementia, not just temporary fogginess. In animal models, reduced acetylcholine transmission has even been linked to increases in amyloid beta, the protein associated with Alzheimer’s disease.

Over-the-Counter Antihistamines

Diphenhydramine deserves special attention because it appears in more than 300 over-the-counter formulations, including allergy medicines, cold remedies, and sleep aids. Unlike newer antihistamines, first-generation versions like diphenhydramine cross freely into the brain and block histamine receptors there, causing sedation, poor concentration, reduced memory, and impaired motor performance. Because of its long elimination time, these effects often persist into the next day, well beyond the night of sleep you took it for.

Second-generation antihistamines are a meaningful improvement. Options like loratadine and fexofenadine have reduced or absent cognitive effects because they don’t easily cross into the brain. If you take antihistamines regularly and notice brain fog, switching generations is one of the simplest changes you can make.

Benzodiazepines and Sleep Medications

Benzodiazepines, prescribed for anxiety and insomnia, are well-established causes of cognitive impairment. In the short term, they can cause anterograde amnesia, meaning difficulty forming new memories after taking a dose. With long-term use, research has documented impairment in visuospatial ability, processing speed, and verbal learning. Some studies have also linked chronic use to an increased risk of dementia, though there is ongoing debate about whether the drugs themselves cause lasting damage or whether the cognitive effects are primarily tied to sedation and resolve after stopping.

The closely related “Z-drugs” prescribed for sleep (such as zolpidem) carry similar risks. Both categories reduce vigilance and psychomotor ability, which can feel like a persistent mental haze during waking hours.

Opioid Pain Medications

Opioids slow down many brain processes. Both short-term and long-term use are associated with reduced attention, slower reaction times, impaired psychomotor abilities, and confusion. Chronic opioid use can cause what researchers call opioid-induced amnestic syndrome, a persistent pattern of memory difficulty. Long-term use has also been linked to increased dementia risk.

Antidepressants

Not all antidepressants affect cognition equally. Tricyclic antidepressants, an older class, have the strongest anticholinergic activity and are the most likely to cause confusion, impaired learning, and memory problems. Long-term tricyclic use has been associated with increased risk of mild cognitive impairment and dementia. Newer classes like SSRIs and SNRIs are generally better tolerated cognitively, though they can still cause some mental sluggishness, particularly during the first weeks of treatment or dose changes.

Anti-Seizure Medications

Medications prescribed for epilepsy, and sometimes for nerve pain or migraines, frequently affect thinking. As a class, anti-seizure drugs can impair attention, executive function, and processing speed. Topiramate stands out as one of the worst offenders, commonly causing problems with memory and word-finding that patients often describe as feeling noticeably “dumber.” These effects can be significant enough that some people discontinue the medication.

Statins

In 2012, the FDA added a safety label change to all statin cholesterol drugs noting reports of memory loss, confusion, and forgetfulness. The agency characterized these cognitive effects as “generally not serious and reversible” once the drug was stopped. The time from starting a statin to noticing symptoms varied widely, from as little as one day to years of use. When people did stop the medication, cognitive symptoms typically resolved within about three weeks.

These reports remain relatively rare, and statins provide substantial cardiovascular benefits for many people. But if you’ve started a statin and notice new mental cloudiness, the connection is worth discussing with your prescriber.

Other Common Offenders

Several other medication categories can contribute to brain fog:

  • Proton pump inhibitors (used for acid reflux) have been linked to confusion in the short term and increased dementia risk with long-term use.
  • Corticosteroids like prednisone can impair attention, memory, and executive function, particularly at higher doses or with prolonged courses.
  • Blood pressure medications can cause confusion and cognitive deficits, mainly affecting memory and executive function. This is partly because excessively low blood pressure reduces blood flow to the brain.
  • Antipsychotics can reduce processing speed, verbal memory, working memory, and attention with long-term use.
  • NSAIDs like ibuprofen and naproxen have rare acute cognitive effects, though chronic use has been associated with increased dementia risk.

Chemotherapy and “Chemo Brain”

Chemotherapy-related cognitive impairment affects a significant number of cancer patients during and after treatment. The mechanism involves inflammatory signaling molecules released in response to chemotherapy agents. These molecules cross the blood-brain barrier and trigger inflammation in brain tissue, generating harmful reactive oxygen species and suppressing a key protein (BDNF) that normally protects neurons and supports the brain’s ability to form new connections. A longitudinal study of young adult cancer patients found that specific inflammatory markers were associated with worse multitasking, slower response speed, and reduced attention during and after chemotherapy.

Why Multiple Medications Multiply the Risk

Taking several medications that each mildly affect cognition can produce noticeable brain fog even when no single drug would cause problems alone. This cumulative effect is especially relevant for older adults, who are more likely to be on multiple prescriptions. A person taking a bladder medication, a sleep aid, and an antidepressant might be stacking three separate sources of anticholinergic activity without realizing it.

If you suspect one or more of your medications is affecting your thinking, the most useful step is a comprehensive medication review with your pharmacist or prescriber. They can assess your total anticholinergic burden, identify drugs that might be substituted with less cognitively impairing alternatives, and adjust timing or dosing. In many cases, simply switching to a different drug in the same class, like moving from an older antihistamine to a newer one, can make a real difference.

How Quickly Brain Fog Clears After Stopping

Recovery timelines depend heavily on the medication. Statin-related cognitive symptoms typically resolve within about three weeks of discontinuation. Benzodiazepine-related cognitive impairment can take much longer: acute effects may last two to eight weeks after stopping, and some people experience lingering symptoms for six to twelve months, particularly after long-term use. SSRI and SNRI withdrawal symptoms, which can include cognitive difficulties, may last up to six weeks acutely, with protracted effects sometimes persisting for months.

In general, the longer you’ve been on a medication and the higher the dose, the longer cognitive recovery takes. Abruptly stopping many of these drugs is not safe, so any changes should be made gradually and with medical guidance.