It's in the allergy aisle, the cold-medicine aisle, and the sleep-aid aisle, often under a different brand name each time. Diphenhydramine is one of the most familiar over-the-counter drugs there is — and also one of the most commonly questioned when it comes to memory and thinking.
Diphenhydramine (the active ingredient in Benadryl and most "PM" products) is a first-generation antihistamine with strong anticholinergic effects. It can cloud thinking and memory in the hours after a dose, and guidelines advise adults 65 and older to avoid it. Studies linking higher cumulative anticholinergic use to dementia include this drug class, but they don't isolate diphenhydramine on its own, and they can't prove cause and effect. As a sleep aid, the evidence for benefit is also modest. Occasional use for a real allergic reaction is a different situation from taking it every night for sleep.
Why Diphenhydramine Affects the Brain
Diphenhydramine is a first-generation antihistamine, which means it crosses easily into the brain. That's what makes it sedating, and it's also why it's sold as a sleep aid. It also blocks acetylcholine, a chemical messenger involved in memory and attention, which is the "anticholinergic" effect behind most of the concern about memory. A review of over-the-counter sleep products used by older adults notes that the Beers Criteria recommend people 65 and older avoid diphenhydramine and doxylamine, and that these anticholinergic effects can cause cognitive impairment, next-day grogginess, dizziness, and falls.
What Studies Show About Short-Term Effects
A systematic review of over-the-counter sleep aids looked at the trials of diphenhydramine specifically. In one crossover trial of healthy volunteers, a single 50 mg dose was followed by measurable next-day impairment on psychomotor testing, including more errors on a working-memory task. The same review found the sleep benefit itself was thin: in people with occasional insomnia, diphenhydramine had only a mild effect and didn't significantly improve sleep as measured by overnight monitoring, and a small trial in adults 70 and older found no improvement in sleep quality.
The Long-Term Question
The bigger worry is what years of regular use might do. The best-known evidence comes from a large cohort that tracked medication use through pharmacy records. It found that three drug categories made up most of the anticholinergic use, and one of them was first-generation antihistamines like diphenhydramine. Dementia risk rose with cumulative anticholinergic exposure, reaching about 54% higher in the group with the highest use. We cover that study in more detail in our guide to anticholinergic drugs and dementia.
An honest limitation: that long-term evidence is about anticholinergic medications as a whole, not diphenhydramine on its own, so it can't tell us how much risk comes from this one drug. It's also observational, so it can show an association but not prove cause, and it may partly reflect people who already had early memory or sleep changes reaching for a sleep aid. The evidence on short-term effects is also mixed: in the small trial of older adults with insomnia mentioned above, a memory task didn't change with diphenhydramine. And none of this is a reason to avoid diphenhydramine in an emergency allergic reaction, where its benefits are clear. Follow emergency medical advice in that situation.
What This Means for You
The practical difference is between occasional use for a genuine allergic problem and a nightly habit for sleep. The second is where the research raises the most questions, and where the benefit is smallest.
- Check the label for "PM" products Many nighttime pain relievers, cold remedies, and sleep aids contain diphenhydramine or the related doxylamine, even when the front of the box talks about something else.
- Avoid making it a nightly sleep habit If you rely on a "PM" product most nights, mention it to your doctor or pharmacist. Persistent sleep trouble deserves its own look, and there are non-drug approaches to insomnia worth asking about.
- If it's for allergies, ask about newer options Newer "non-drowsy" antihistamines generally cross into the brain less readily and are less sedating, though they can still cause drowsiness in some people. A pharmacist can help you choose.
- If you're 65 or older, be especially cautious Guidelines advise avoiding it, and it's worth reviewing every over-the-counter product you use with a pharmacist.
The Bottom Line
Diphenhydramine can dull memory and attention in the hours after a dose, guidelines advise older adults to avoid it, and as a sleep aid its benefit looks modest. Whether regular use raises dementia risk remains uncertain, because the best evidence covers anticholinergic drugs as a group and can't prove cause and effect. The simple takeaway: don't make it a nightly habit, check labels for hidden diphenhydramine, and ask a pharmacist about gentler options for allergies and for sleep.
Want a Simple Starting Point?
The free Brain Health Mastery Bundle includes a plain-language ebook, a 5-second morning ritual, a 30-day daily-habit calendar, and an anti-fog smoothie collection — practical starting points that pair with the medication-and-brain research covered in this series. No cost, delivered instantly to your inbox.
Get the Free Brain Health Mastery BundleFrequently Asked Questions
Does Benadryl affect memory?
It can. Diphenhydramine blocks acetylcholine, a chemical messenger involved in memory and attention, and a crossover trial in healthy volunteers found next-day impairment on psychomotor testing, including a working-memory task, after a single 50 mg dose. Effects tend to be more noticeable in older adults.
Does diphenhydramine cause dementia?
That hasn't been shown. Large studies link higher cumulative use of anticholinergic medications, a class that includes diphenhydramine, to a higher risk of dementia, but they don't isolate this one drug and they can't prove that the medication itself causes dementia.
Is diphenhydramine a good sleep aid?
The evidence is modest. A systematic review of over-the-counter sleep aids found only a mild effect in people with occasional insomnia, without a significant improvement on overnight sleep monitoring, and no improvement in sleep quality in a small trial of adults 70 and older. Guidelines also advise adults 65 and over to avoid it.
What can I use instead for allergies or sleep?
For allergies, newer non-drowsy antihistamines are generally less sedating, and a pharmacist can help you choose one. For sleep, persistent trouble is worth discussing with a doctor, since there are non-drug approaches to insomnia. Don't skip emergency care for a severe allergic reaction.
This site and the emails you may receive from us can contain affiliate links. If you make a purchase through one, we may earn a commission at no extra cost to you — see our Affiliate & Medical Disclaimer for details. This content is for general educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. If you're concerned about a medication you're taking, talk to your doctor or pharmacist before changing it.