
It's 11:40 PM, you have a 7 AM meeting, and your brain will not shut off. So you do what millions of people do: you dig the ZzzQuil or the Unisom out of the medicine cabinet, take a dose, and wait. Sometimes it works. Sometimes you sleep and still wake up feeling like you got hit with a tranquilizer dart. And sometimes "just tonight" quietly turns into every night for the last six months.
Over-the-counter sleep aids are some of the most-used sleep products in the country, and they're sold right next to the cough drops like they're harmless. They're not dangerous for most healthy adults used occasionally. But they're also far weaker than most people assume, they stop working fast, and the long-term trade-offs are real, especially after 60.
Here's what's actually in the box, what the research says it does, and how to use it (or quit it) without wrecking your sleep.
Almost every over-the-counter sleep aid in the U.S. uses one of two active ingredients. Both are old-school, first-generation antihistamines, the same family as allergy pills from the 1940s.
Diphenhydramine (usually 25 to 50 mg):
Doxylamine succinate (usually 25 mg):
Note the naming trap: Unisom SleepTabs and Unisom SleepGels contain different drugs. Read the active ingredient line, not the brand name.
Histamine isn't just an allergy chemical. In the brain, histamine-producing neurons are a major part of the wake-promoting system. They fire during the day and go quiet at night. First-generation antihistamines cross the blood-brain barrier and block histamine H1 receptors, which turns down that wake signal. Drowsiness is technically a side effect that got rebranded as the main event.
The problem is that these drugs aren't precise. They also block acetylcholine receptors throughout the body. That "anticholinergic" action is where most of the downsides come from: dry mouth, constipation, trouble urinating, blurred vision, and next-day mental fog.
Less well than the marketing implies.
When the American Academy of Sleep Medicine reviewed the evidence for its 2017 guideline on chronic insomnia medications, it recommended against using diphenhydramine for chronic insomnia. The trials it reviewed showed small effects: diphenhydramine shortened time to fall asleep by only a few minutes on average and added roughly 10 to 15 minutes of total sleep compared with placebo. The quality of that evidence was rated low. Doxylamine has even less modern research behind it as an insomnia treatment.
That doesn't mean nobody benefits. Some people clearly get knocked out by 25 mg of diphenhydramine. But on average, the measurable gain is modest, and much of what people feel is sedation, not better sleep.
This is the part most people don't know. A controlled study published in the Journal of Clinical Psychopharmacology gave healthy adults diphenhydramine twice daily and found that by the fourth day, its sedating effect was no longer distinguishable from placebo.
So if you've been taking ZzzQuil nightly for weeks and feel like it "stopped working," you're probably right. Your brain adapted. What's left is mostly the side effects and the habit.
Diphenhydramine's half-life in healthy adults runs roughly 4 to 9 hours, and longer in older adults. Doxylamine's is longer still, often around 10 hours or more. Take either at midnight, and a meaningful amount is still in your system when your alarm goes off.
That shows up as grogginess, slower reaction time, and worse focus. In a well-known driving-simulator study in the Annals of Internal Medicine, a 50 mg dose of diphenhydramine impaired driving performance more than alcohol at roughly the legal limit. People often don't feel how impaired they are, which is exactly what makes it risky.
For a healthy adult taking a dose a few nights a year, the risk is low. The risk climbs with frequency, age, and certain health conditions.
The American Geriatrics Society Beers Criteria, the standard reference for medications to avoid in older adults, lists first-generation antihistamines like diphenhydramine and doxylamine as drugs to avoid in people 65 and older. Older bodies clear them more slowly, and the anticholinergic effects raise the risk of confusion, falls, constipation, and urinary retention.
There's also the dementia question. A 2015 study in JAMA Internal Medicine followed more than 3,400 adults 65 and older and found that those with the highest cumulative use of anticholinergic drugs (roughly the equivalent of a daily dose for three years or more) had about a 54% higher risk of developing dementia. Diphenhydramine and doxylamine were among the drugs counted.
That's an association, not proof of cause. People who take sleep aids for years may differ in other ways. But it's consistent enough across studies that if you're over 60 and taking a "PM" product nightly, it's worth a conversation with your doctor. Our guide to sleep for seniors covers what actually changes with age and what helps instead.
Alcohol plus a sedating antihistamine is a stronger combination than either alone, with more impairment and more next-day fog. Alcohol already fragments the second half of your night (see alcohol and sleep), so stacking it with a sleep aid buys you heavier sedation and worse sleep at the same time.
Tylenol PM and Advil PM pair diphenhydramine with a pain reliever. If you're not in pain, you're taking acetaminophen or ibuprofen every night for no reason. That means extra load on your liver (acetaminophen) or your stomach and kidneys (ibuprofen). If sleep is the only problem, the combo product is the wrong tool.
Stuck in the pill-every-night loop? The Sleep Reset is a structured, step-by-step plan to rebuild your schedule, wind-down routine, and bedroom setup, so your sleep runs on a system instead of whatever's in the medicine cabinet.
There's a reasonable, narrow use case here. The FDA labeling itself frames these products for occasional sleeplessness and tells you to see a doctor if sleeplessness lasts more than two weeks.
Reasonable situations:
If you use one, do it right:
If OTC sleep aids have become part of your nightly routine, here's the honest picture: the sedating benefit has probably faded, and what you're getting is mostly habit and side effects. The good news is that coming off antihistamines is usually much easier than coming off prescription sleeping pills.
Some people do notice a few rougher nights when they stop. That's normal, temporary, and not proof that you "need" the drug. Our guide to rebound insomnia explains why the first few nights off can feel worse and how to ride them out.
Check with your doctor or pharmacist first, especially if you take other medications. A typical approach looks like this:
While you taper, start fixing the reason you needed it in the first place. That's where the real gains are.
Cognitive behavioral therapy for insomnia (CBT-I) is the first-line treatment recommended by major medical guidelines, ahead of any medication. It works by rebuilding the link between your bed and sleep, tightening your sleep window so sleep gets deeper, and breaking the anxious "will I sleep tonight?" loop. In head-to-head studies, the benefits of CBT-I hold up after treatment ends, while medication benefits tend to fade when you stop.
The core rules are simple, even if they're uncomfortable for the first couple of weeks:
Start with our full breakdown of CBT-I for insomnia. If your sleep fell apart recently, our explainer on what insomnia actually is helps you figure out whether you're dealing with a rough patch or a chronic pattern.
A lot of people reach for a sleep aid because their mind won't stop, not because their body isn't tired. Sedating that with an antihistamine is a blunt fix. Better options:
None of these are knockout pills, and that's the point. They support sleep without the anticholinergic baggage. For the full comparison, see our guide to natural sleep aids.
If you take prescription medications, are pregnant, or have kidney disease, check with your doctor before adding any supplement.
Sometimes the "I can't sleep" problem is really an environment problem. Light, noise, and heat wake you up in ways a sleep aid only partially covers up.
Our guide to sleep environment optimization walks through the full setup.
OTC sleep aids are designed to cover a bad night, not a sleep disorder. Talk to a doctor if:
Ask specifically about CBT-I. It's often available through sleep clinics, therapists, telehealth programs, and digital apps.
OTC sleep aids like ZzzQuil, Unisom, and Benadryl are sedating antihistamines, not true sleep medicines. For an occasional rough night, a low dose taken with enough time to sleep it off is reasonable for most healthy adults under 65. Used nightly, they lose most of their effect within days, leave a hangover you may not notice, and carry real long-term concerns, especially for older adults.
If you're taking one most nights, the box isn't the solution. It's a signal. Taper off, fix your schedule and wind-down routine, tune up your bedroom, and use CBT-I to rebuild sleep that works on its own. That's the path to nights you don't have to medicate your way through.
Not as a long-term habit. Diphenhydramine and doxylamine lose most of their sedating effect within about four days of nightly use, leave next-day grogginess, and carry anticholinergic side effects. They are labeled for occasional sleeplessness, and the label says to see a doctor if trouble sleeping lasts more than two weeks.
Unisom SleepTabs contain doxylamine succinate, while ZzzQuil and Unisom SleepGels contain diphenhydramine. Both are first-generation antihistamines, but doxylamine has a longer half-life, so it is more likely to cause a next-morning hangover.
A 2015 JAMA Internal Medicine study linked heavy, long-term use of anticholinergic drugs, including diphenhydramine and doxylamine, to about a 54% higher dementia risk in adults 65 and older. That is an association, not proof of cause, but it is one reason the Beers Criteria advise older adults to avoid these drugs.
Check with your doctor or pharmacist first, then step down gradually: drop to the lowest dose, move to every other night, use it only as a backup, then stop. Expect a few rougher nights. Pair the taper with CBT-I basics like a fixed wake time and getting out of bed when you cannot sleep.
CBT-I is the first-line treatment for chronic insomnia, and its benefits last after treatment ends. Gentler supports include low-dose melatonin for timing problems, magnesium glycinate, glycine, and a dark, quiet, cool bedroom.
Sleep Smarter Editorial Team
Our editorial team researches and writes evidence-based sleep content grounded in peer-reviewed science. All articles reference established sleep research from sources including the NIH, AASM, and Sleep Foundation.