provider image
Welcome! You’re in GoodRx for healthcare professionals. Now, you’ll enjoy a streamlined experience created specifically for healthcare professionals.
Skip to main content
HomeHealth ConditionsDementia

A List of Drugs Linked to Dementia

Nicole Rowe, MDKaren Hovav, MD, FAAP
Written by Nicole Rowe, MD | Reviewed by Karen Hovav, MD, FAAP
Updated on February 11, 2025

Key takeaways:

  • Certain medications are linked to an increased risk of dementia. But that doesn’t mean they necessarily cause dementia.

  • Medications that have been associated with increased risk of dementia include overactive bladder medications, pain medications, heartburn medications, and certain anxiety medications.

  • The risk of dementia with these medications increases when you take higher doses over longer periods of time.

A senior woman looks unhappy at home.
Armand Burger/E+ via Getty Images

Dementia is a growing concern among many aging people in the U.S. — especially Alzheimer’s disease. And since treatment options for dementia are limited, prevention is key

Dementia risk is tied to common things like diabetes, high blood pressure, and physical inactivity. But some common medications are associated with dementia risk, too. Here are four common drug classes linked to dementia, and what the research says about your risk.

1. Anticholinergic medications

Anticholinergic medications block a chemical called acetylcholine in the body. Acetylcholine works like a chemical messenger in the nervous system. It affects learning, memory, movement, and even emotions. And people with Alzheimer’s disease often have low levels of acetylcholine in their bodies. 

Search and compare options

Search is powered by a third party. By clicking a topic in the advertisement above, you agree that you will visit a landing page with search results generated by a third party, and that your personal identifiers and engagement on this page and the landing page may be shared with such third party. GoodRx may receive compensation in relation to your search.

In one large study of almost 300,000 people, the risk of dementia was significantly higher in those who had taken the highest cumulative doses of strong anticholinergic medications.  Another large study in adults over 65 years old confirmed these findings. Other studies have shown that the use of an anticholinergic medication can worsen dementia in people who are already experiencing cognitive decline.  

But not all studies have such clear-cut findings. For example, even though diphenhydramine (Benadryl) has strong anticholinergic activity, current research isn’t clear on whether diphenhydramine increases the risk of dementia. 

Some common anticholinergic medications include antihistamines, tricyclic antidepressants, medications for irritable bowel syndrome (IBS), and overactive bladder medications. You may want to take this risk into account if you’re deciding whether to take these medications.

GoodRx icon
  • Supplements and brain health: Find out which supplements can help boost memory and cognition. 

  • Ways to help prevent dementia: From brain games to social activity, there are some surprising ways to keep your brain healthy as you age. 

  • Sleep problems and dementia: People with dementia are more likely to have had problems with sleep. Learn about the link between sleep and brain health.

Antihistamine medications include: 

Tricyclic antidepressants include: 

IBS medications include: 

Overactive bladder medications include:

2. Proton pump inhibitors

Studies suggest that men and women with dementia are more likely to be taking proton pump inhibitors (PPIs) — 1.5 and 1.4 times, respectively. This doesn’t necessarily mean that PPIs directly cause dementia — only that there appears to be an association between the two. There are a couple of theories about how these medications could increase dementia risk:

  • PPIs have been shown to cause proteins, called β-amyloid plaques, to build up in the brains of mice. This is similar to the way someone’s brain changes with Alzheimer’s. 

  • Long-term use of PPIs could affect absorption of vitamin B12, which could also increase your risk for dementia.

PPIs include:

3. Pain medications

Many people are aware that the use of opioid pain medications can lead to dependence, overdose, and even death. But in addition to these concerns, studies show that people with heavy, long-term use of opioid medications have a slightly higher risk of getting dementia. Even people taking nonsteroidal anti-inflammatory drugs (NSAIDs) for pain had a high risk of developing dementia. 

It’s unclear whether the risk of dementia is related to taking pain medication or to the effects of chronic pain on the brain, or both. One newer study showed that older adults with chronic pain had a higher risk of developing dementia. This study didn’t measure how many of these adults were taking pain medications, so additional research is needed. 

Opioid medications include: 

NSAIDs include:

4. Benzodiazepines

Benzodiazepines (benzos) have been linked to dementia — especially in older adults. But not all research supports this link. 

Regardless, older adults should be cautious with these medications. Benzodiazepines can cause many other concerning side effects, including long-term dependence, breathing problems, confusion, drowsiness, problems with cognition, and even death. The risk for impaired brain functioning is increased with higher doses over an extended period of time.

Benzodiazepine medications include:

Talk with a healthcare professional if you or a loved one takes these medications. You may be able to take the lowest dose possible and still treat your symptoms.

Frequently asked questions

Does metformin cause dementia?

Metformin doesn’t cause dementia. In fact, people with diabetes who use metformin are less likely to develop dementia. And some studies suggest that when people stop taking metformin, their risk for dementia goes up. 

Does Ambien cause dementia?

Ambien has been linked to dementia. Older adults who take Ambien more often are more likely to develop dementia. And the risk adds up over time — the more doses a person has used in a lifetime, the higher the risk for dementia. One study also found that white adults who took Ambien were more likely to develop dementia than Black adults.

Does melatonin cause dementia?

Melatonin doesn’t cause dementia. Some research suggests that taking melatonin regularly can actually lower symptoms of dementia in people with Alzheimer’s disease. But studies are mixed and more research is needed.

The bottom line

Many medications have been associated with an increased risk of dementia — especially if you take them for a long time. As with any medication, it’s important to weigh the pros and cons to figure out what’s best for you and your long-term health. 

If you rely on any of these medications to stay healthy, work with a healthcare professional to determine the lowest dose that will still treat your symptoms. This will decrease your risk of any associated side effect, including dementia.  

why trust our exports reliability shield

Why trust our experts?

Nicole Rowe, MD
Written by:
Nicole Rowe, MD
Dr. Nicole Rowe, MD, is a telehealth family practice physician. She received her medical degree from the University of North Carolina School of Medicine and completed her residency in family medicine at University of Colorado’s Swedish Medical Center.
Katie E. Golden, MD
Katie E. Golden, MD, is a board-certified emergency medicine physician and a medical editor at GoodRx.
Karen Hovav, MD, FAAP
Karen Hovav, MD, FAAP, has more than 15 years of experience as an attending pediatrician in a variety of clinical settings. She has worked in a large academic center in an urban city, a small community hospital, a private practice, and an urgent care clinic.

References

Alzheimer’s Drug Discovery Foundation. (2016). Melatonin

Badiola, N., et al. (2016). The proton-pump inhibitor lansoprazole enhances amyloid beta production. PLoS One.

View All References (16)

Campbell, J. M., et al. (2018). Metformin use associated with reduced risk of dementia in patients with diabetes: A systematic review and meta-analysis. Journal of Alzheimer’s Disease.

Coupland, C. A. C., et al. (2019). Anticholinergic drug exposure and the risk of dementia. JAMA Internal Medicine.

Dublin, S., et al. (2015). Prescription opioids and risk of dementia or cognitive decline: A prospective cohort study. Journal of the American Geriatrics Society.

Edinoff, A. N., et al. (2021). Benzodiazepines: Uses, dangers, and clinical considerations. Neurology International.

Gomm, W., et al. (2016). Association of proton pump inhibitors with risk of dementia: A pharmacoepidemiological claims data analysis. JAMA Neurology.

Gray, S. L., et al. (2015). Cumulative use of strong anticholinergics and incident dementia. JAMA Internal Medicine.

He, Q., et al. (2018). Risk of dementia in long-term benzodiazepine users: Evidence from a meta-analysis of observational studies. Journal of Clinical Neurology.

Jatoi, S., et al. (2020). Low vitamin B12 levels: An underestimated cause of minimal cognitive impairment and dementia. Cureus.

Joyce, G., et al. (2022). Benzodiazepine use and the risk of dementia. Alzheimer's & Dementia: Translational Research & Clinical Interventions.

Lam, J. R., et al. (2013). Proton pump inhibitor and histamine 2 receptor antagonist use and vitamin B12 deficiency. JAMA.

Leng, Y., et al. (2023). Race differences in the association between sleep medication use and risk of dementia. Journal of Alzheimer’s Disease.

Shih, H., et al. (2015). An increased risk of reversible dementia may occur after Zolpidem derivative use in the elderly population. Medicine.

Whitlock, E. L., et al. (2017). Association between persistent pain and memory decline and dementia in a longitudinal cohort of elders. JAMA Internal Medicine.

Zhang, Z., et al. (2024). Melatonin: A potential nighttime guardian against Alzheimer’s. Molecular Psychiatry.

Ziadeh, H. (2024). Risk of dementia associated with the use of anticholinergic medications: A review of recent literature. Current Opinion in Urology.

Zimmerman, S. C., et al. (2023). Metformin cessation and dementia incidence. JAMA.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Get the facts on Dementia.

Sign up for our newsletter to get expert tips on condition management and prescription savings.

By signing up, I agree to GoodRx's Terms and Privacy Policy, and to receive marketing messages from GoodRx.

Related Articles