Best over the counter sleep aid for insomnia: what actually helps
There is no over-the-counter sleep aid that treats chronic insomnia. The common ones are antihistamines (diphenhydramine, doxylamine) and supplements such as melatonin, and the American Academy of Sleep Medicine's 2017 drug guideline suggests against diphenhydramine for insomnia. They are labelled for occasional sleeplessness only. If you need one for more than about two weeks, the label itself says to see a doctor. This is not medical advice and not a dosing guide.
If you want the part that does treat chronic insomnia, start with our free 2-minute sleep quiz: it gives you your minutes awake in bed and a starting sleep window, the numbers CBT-I begins with. Below: what each kind of over-the-counter sleep aid is, what the guidelines say, the risks, who should avoid them, and what to do for insomnia that lasts.
What counts as an over-the-counter sleep aid?
| Kind | Common examples | How it works | What guidelines say |
|---|---|---|---|
| Sedating antihistamine | Diphenhydramine (in Benadryl, ZzzQuil and "PM" pain relievers, Unisom SleepGels), doxylamine (Unisom SleepTabs) | Blocks histamine, which causes drowsiness | The AASM suggests against diphenhydramine for sleep onset and sleep maintenance insomnia (weak recommendation, 2017) |
| Melatonin | Many supplement brands | A hormone that signals night to the body clock | The AASM suggests against it for chronic insomnia; it can help shift a body clock (jet lag, delayed timing), see melatonin stopped working |
| Herbal and mineral | Valerian, magnesium, L-theanine, chamomile | Unclear | Evidence is weak or mixed; the AASM suggests against valerian; see sleep supplements: what the evidence says |
| Combination "PM" products | Pain relievers with diphenhydramine | A pain reliever plus an antihistamine | Sensible only if pain is the reason you cannot sleep, and not for regular use |
"Natural" does not mean tested. Supplements in the US are not approved by the Food and Drug Administration before sale in the way medicines are, so the amount in a pill can differ from the label. That is why many guidelines advise caution rather than a blanket yes.
Antihistamines: diphenhydramine and doxylamine
These are the "strongest" over-the-counter sleep aids people mean when they search for one. They make most people drowsy, which is why they are sold for sleep. But the evidence for insomnia is thin, and the downsides are real.
- The benefit is small. The AASM's pharmacologic guideline (Sateia and colleagues, 2017) found the evidence for diphenhydramine in insomnia too weak and the effects too small to recommend it.
- Tolerance comes quickly. In a small study (Richardson and colleagues, 2002), the sedating effect of diphenhydramine faded after a few days of nightly use. A pill that stops working in days is a poor answer for months of insomnia.
- Next-day effects. Grogginess, a dry mouth, blurred vision, constipation and trouble passing urine are common anticholinergic effects. Some people feel "hungover" and drowsy at the wheel the next morning.
- Older adults. The American Geriatrics Society's Beers Criteria list first-generation antihistamines as drugs to avoid in people 65 and over, because of confusion, falls and urinary problems. An observational study (Gray and colleagues, JAMA Internal Medicine, 2015) linked heavy long-term use of strong anticholinergic drugs to a higher risk of dementia. That kind of study cannot prove cause, but it adds weight to the caution.
- Mixing. Do not combine with alcohol, other sedatives or other products that contain the same ingredient. Many "PM" and cold products already contain diphenhydramine or doxylamine.
Read the Drug Facts label on any product you use: it lists who should not take it (for example people with glaucoma, an enlarged prostate, breathing conditions, or those on certain medicines) and the usual warning to ask a doctor if sleeplessness lasts more than two weeks. If you are unsure, a pharmacist can check your own medicines.
Melatonin
Melatonin is a timing signal more than a sedative. It is most useful when the problem is when you sleep: shift work, jet lag, a body clock running late. For ordinary chronic insomnia, the AASM suggests against it. Dose, timing and brand matter, and quality varies across supplements. Our post on what to do when melatonin stops working goes into the details, and the supplement review covers magnesium, valerian and the rest. Children, pregnant people and anyone on regular medicines should ask a clinician before using it.
Which is the best over the counter sleep aid for insomnia?
Honest answer: it depends on why you cannot sleep, and for a lasting problem, none of them. Here is how to think about it.
| Your situation | What may help | Skip or ask first |
|---|---|---|
| One bad night before a big day | A fixed wake time, a dim wind-down, patience; an antihistamine at the labelled dose is what the label allows for occasional use | Do not drive the next morning if you feel drowsy |
| Insomnia 3+ nights a week for 3+ months | CBT-I: fixed wake time, a matched sleep window, getting up when awake. See insomnia treatment without medication | A pill used nightly for months |
| Age 65 or over | Behavioural methods first | Diphenhydramine and doxylamine; ask a doctor or pharmacist |
| Jet lag or a late body clock | Light and timing; melatonin in a clinician-guided way | High doses |
| Pain, itch or reflux wakes you | Treat that cause with a clinician | A sleep pill that hides it |
| Snoring, gasping, restless legs | See a doctor; these need diagnosis | Any sedative before that check, because sedatives can worsen breathing problems |
| Pregnant, breastfeeding, or on regular medicines | Ask a clinician or pharmacist | Self-prescribing |
Why sleeping pills tend to stop working
Chronic insomnia is usually kept going by habits and by a body clock that has lost track of when to sleep: long time in bed, irregular wake times, lying awake worrying about sleep. A sedative can knock you out for a night, but it does not touch those habits. When the pill stops working or you stop taking it, the same habits are still there. That is why both the American College of Physicians (Qaseem and colleagues, 2016) and the AASM (Edinger and colleagues, 2021) put CBT-I first, before drugs. Compare how the two stack up in CBT-I vs medication.
What to do instead of reaching for a pill
- Fix the wake time. Pick one time you can keep every day, including weekends. It is the single strongest lever.
- Match the bed window to your real sleep. If you sleep about six hours but spend nine in bed, the extra three are awake time. The steps are in sleep restriction for insomnia. Do not go below about five hours.
- Get up when you cannot sleep. After about 20 minutes, leave the bed, keep the light dim, do something dull, and return when sleepy. See sleep restriction and stimulus control.
- Wind down for an hour. A 90-minute bedtime plan gives the order.
- Judge at week four to six, on minutes to fall asleep and minutes awake in the night, not on one bad night.
- Get help if you cannot do it alone. Options with prices: the best online CBT programs for insomnia and what CBT for insomnia costs.
When to see a doctor, not a pharmacy aisle
- You have had trouble sleeping three nights a week for three months.
- You need a sleep aid more than about two weeks in a row.
- You snore loudly, stop breathing or gasp at night, or feel very sleepy while driving.
- Low mood, constant worry, or thoughts of harming yourself come with the poor sleep. In the US, you can call or text 988 at any time.
- You take other medicines, are pregnant, or are 65 or older.
- You mix a sleep aid with alcohol or other sedatives, or feel you cannot sleep without it.
Frequently asked questions
What is the best over-the-counter sleep aid for chronic insomnia?
None treats chronic insomnia. The first-line treatment is CBT-I. Over-the-counter products are labelled for occasional sleeplessness, and the label advises a doctor if it lasts more than two weeks.
What is the strongest over-the-counter sleep aid?
Sedating antihistamines (diphenhydramine and doxylamine) are the strongest on the shelf, but the effect is small and fades with nightly use. "Strongest" does not mean best.
Is it safe to take a sleep aid every night?
The labels are for occasional use. Nightly use for weeks is a reason to speak to a doctor, and the effect of antihistamines usually fades. Adults 65 and over are advised to avoid them.
Is melatonin better than Benadryl for sleep?
They do different things. Melatonin shifts timing and the AASM suggests against it for chronic insomnia; diphenhydramine sedates and is also not recommended for it. Neither fixes the cause.
Are natural sleep aids safer?
Not automatically. Supplements are not tested for effect before sale in the way medicines are, and they can interact with other drugs. Ask a pharmacist.
What can I try tonight that is not a pill?
Set a wake time for tomorrow, dim lights an hour before bed, and get up if you are awake for about 20 minutes. Do not nap long tomorrow.
Start with the free part
If you are reaching for a sleep aid, take the free sleep quiz first: it shows how long you lie awake and the sleep window to start with. More on all sleep guides.
Sources: Sateia MJ et al., Clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults, AASM, J Clin Sleep Med, 2017; Edinger JD et al., AASM guideline for behavioral and psychological treatments for insomnia, J Clin Sleep Med, 2021; Qaseem A et al., ACP guideline on management of chronic insomnia, Annals of Internal Medicine, 2016; Richardson GS et al., "Tolerance to daytime sedative effects of H1 antihistamines", J Clin Psychopharmacol, 2002; 2023 American Geriatrics Society Beers Criteria update; Gray SL et al., "Cumulative use of strong anticholinergics and incident dementia", JAMA Internal Medicine, 2015; US FDA, Drug Facts labels for nighttime sleep aids. Not medical advice or a dosing guide.