Skip to content
ppharmaranks
Menu

Best over-the-counter options for trouble sleeping (occasional insomnia)

Over-the-counter only — nothing here needs a prescription. Want the prescription options too? Every trouble sleeping (occasional insomnia) option we rate, prescription included →

By the pharmaranks editorial teamReviewed against FDA, CDC, NHS & MedlinePlus sourcesUpdated Jul 3, 2026How we research

OTC sleep aids are meant only for the occasional bad night, not for insomnia that keeps coming back. The honest lead is that behavioral change is the real treatment: the American College of Physicians makes a strong recommendation that all adults with chronic insomnia get cognitive behavioral therapy for insomnia (CBT-I) as the first-line treatment, before any drug. Nearly every OTC "sleep" pill relies on a single ingredient, a sedating antihistamine (diphenhydramine or doxylamine), and your body builds tolerance to its sedative effect within about 1 to 2 weeks, so it stops working with regular use. The AASM's pharmacologic guideline actually recommends against using diphenhydramine, melatonin, or valerian for chronic insomnia because the evidence is weak. Use these products for a few nights at most, and treat a recurring sleep problem as a reason to see a clinician, not to keep refilling the box.

Your OTC options, honestly rated

Sleep hygiene + CBT-I (behavioral, non-drug)

Effective first-line OTC

A set of behavioral steps (consistent wake time, cutting caffeine/alcohol/screens, getting out of bed when awake) plus the structured program CBT-I, which combines stimulus control, sleep restriction, and cognitive work. No pill involved.

This is the only approach with a strong, first-line recommendation. The ACP guideline gives CBT-I a strong recommendation (moderate-quality evidence) as initial treatment for chronic insomnia, noting it 'resolves or attenuates chronic insomnia in 70% to 80% of treated persons, often without supplemental medication,' and works in older adults too. The NHS agrees: 'Insomnia usually gets better by changing your sleeping habits.'

Caution: It takes effort and a few weeks to work rather than acting the same night, and access to a trained CBT-I therapist can be limited. There is no safety downside, which is exactly why the guidelines put it first.

Check price on Amazon ↗

Diphenhydramine (ZzzQuil, Benadryl, Sominex, store-brand nighttime aids)

Relieves symptoms

A first-generation (sedating) antihistamine. It crosses into the brain and blocks histamine, producing drowsiness, which is why it is the most common active ingredient in OTC sleep products.

Effect is modest and short-lived. MedlinePlus and clinical reviews note that any sleep benefit is moderate and that tolerance develops after about 1 to 2 weeks of nightly use, after which the same dose no longer helps. The AASM guideline explicitly recommends clinicians NOT use diphenhydramine for sleep-onset or sleep-maintenance insomnia.

Caution: Strongly anticholinergic: next-day grogginess, dry mouth, constipation, urinary retention, and blurred vision are common. The AGS Beers Criteria list first-generation antihistamines like diphenhydramine among medications older adults should avoid, because of confusion, sedation, and fall risk. Not for nightly or long-term use, and not a treatment for chronic insomnia.

Doxylamine succinate (Unisom SleepTabs, store-brand)

Relieves symptoms

Another sedating (first-generation) antihistamine, pharmacologically very similar to diphenhydramine, sold specifically as a nighttime sleep aid. Also the antihistamine paired with vitamin B6 in prescription morning-sickness products.

Same class, same limits: modest sedation, rapid tolerance, and no support for ongoing use. The NHS describes OTC sleep tablets generally as products that 'cannot cure insomnia but may help you sleep better for 1 to 2 weeks. They should not be taken for any longer.'

Caution: Shares the anticholinergic burden and next-morning hangover of diphenhydramine and carries the same Beers Criteria warning to avoid in older adults. Interacts with alcohol and other sedatives; not for people with glaucoma, enlarged prostate, or urinary retention without clinician advice.

Melatonin

Limited evidence

A hormone your body makes to signal night; supplemental melatonin can shift the timing of the sleep clock. It is best understood as a circadian-rhythm cue, not a sedative.

Most useful for circadian problems such as jet lag and shift work, where it can help realign sleep timing; it is weak for ordinary or chronic insomnia. The AASM guideline recommends against melatonin for sleep-onset or sleep-maintenance insomnia. Sold as a dietary supplement in the US, so it is not regulated by the FDA as a drug, and actual pill content and purity can vary between brands.

Caution: Because it is a supplement, dose and quality are inconsistent, and it is not standardized the way an approved medicine is. Effects on chronic insomnia are small; timing and dose matter more than size. Discuss before use in children, in pregnancy, or with other medicines.

Valerian and other herbal sleep products (chamomile, hops, 'sleep' blends)

Limited evidence

Botanical supplements marketed to promote relaxation and sleep, often combined in proprietary blends.

Evidence is weak and inconsistent; trials are small and conflicting, and no reliable benefit is established. The AASM guideline recommends against valerian for sleep-onset or sleep-maintenance insomnia.

Caution: As unregulated supplements, contents and dose are not standardized and blends may include undisclosed ingredients. Not a substitute for evaluation of a persistent sleep problem; tell your clinician what you are taking, especially alongside other sedating drugs or alcohol.

Advertising disclosure: Some links are affiliate links. We may earn a commission at no extra cost to you. This never affects our independent ratings.

See a clinician if…

  • Trouble falling or staying asleep on most nights for 3 months or longer, which meets the definition of chronic insomnia and warrants CBT-I rather than OTC pills.
  • Daytime impairment from poor sleep: fatigue, trouble concentrating, mood changes, or dozing off during the day.
  • Loud snoring, gasping, choking, or witnessed pauses in breathing during sleep, which can signal sleep apnea and needs medical evaluation, not a sedative.
  • You feel you need a sleep aid every night to sleep at all, or you keep increasing the dose because it stopped working (tolerance).
  • Sleep problems accompanied by depression, anxiety, or thoughts of self-harm, where the underlying condition, not the sleep, is the target of treatment.
  • Restless, creeping leg sensations at night, or acting out dreams, which point to specific disorders (restless legs, REM behavior disorder) that OTC aids will not fix.
  • You are an older adult, pregnant, or taking other sedating or anticholinergic medicines, where OTC antihistamine sleep aids carry added risk and a clinician should guide any use.

Bottom line

OTC antihistamine sleep aids (diphenhydramine, doxylamine) are a short-term band-aid for the occasional rough night, not a treatment for insomnia: they lose their punch within a week or two and carry next-day grogginess and anticholinergic risks that make them a poor choice, especially for older adults. Melatonin helps mainly with jet lag and shifted sleep timing, and valerian and herbal blends have weak, unreliable evidence. The real first-line is behavioral: sleep-hygiene changes and CBT-I, which the ACP strongly recommends and which actually resolves insomnia for most people. If poor sleep persists most nights for three months or more, or comes with snoring, daytime impairment, or low mood, see a clinician instead of reaching for another box.

Frequently asked

What is the best over-the-counter medicine for trouble sleeping (occasional insomnia)?
OTC sleep aids are meant only for the occasional bad night, not for insomnia that keeps coming back. The honest lead is that behavioral change is the real treatment: the American College of Physicians makes a strong recommendation that all adults with chronic insomnia get cognitive behavioral therapy for insomnia (CBT-I) as the first-line treatment, before any drug. Nearly every OTC "sleep" pill relies on a single ingredient, a sedating antihistamine (diphenhydramine or doxylamine), and your body builds tolerance to its sedative effect within about 1 to 2 weeks, so it stops working with regular use. The AASM's pharmacologic guideline actually recommends against using diphenhydramine, melatonin, or valerian for chronic insomnia because the evidence is weak. Use these products for a few nights at most, and treat a recurring sleep problem as a reason to see a clinician, not to keep refilling the box.
Does Sleep hygiene + CBT-I help with trouble sleeping (occasional insomnia)?
A set of behavioral steps (consistent wake time, cutting caffeine/alcohol/screens, getting out of bed when awake) plus the structured program CBT-I, which combines stimulus control, sleep restriction, and cognitive work. No pill involved. This is the only approach with a strong, first-line recommendation. The ACP guideline gives CBT-I a strong recommendation (moderate-quality evidence) as initial treatment for chronic insomnia, noting it 'resolves or attenuates chronic insomnia in 70% to 80% of treated persons, often without supplemental medication,' and works in older adults too. The NHS agrees: 'Insomnia usually gets better by changing your sleeping habits.'
Does Diphenhydramine help with trouble sleeping (occasional insomnia)?
A first-generation (sedating) antihistamine. It crosses into the brain and blocks histamine, producing drowsiness, which is why it is the most common active ingredient in OTC sleep products. Effect is modest and short-lived. MedlinePlus and clinical reviews note that any sleep benefit is moderate and that tolerance develops after about 1 to 2 weeks of nightly use, after which the same dose no longer helps. The AASM guideline explicitly recommends clinicians NOT use diphenhydramine for sleep-onset or sleep-maintenance insomnia.
Does Doxylamine succinate help with trouble sleeping (occasional insomnia)?
Another sedating (first-generation) antihistamine, pharmacologically very similar to diphenhydramine, sold specifically as a nighttime sleep aid. Also the antihistamine paired with vitamin B6 in prescription morning-sickness products. Same class, same limits: modest sedation, rapid tolerance, and no support for ongoing use. The NHS describes OTC sleep tablets generally as products that 'cannot cure insomnia but may help you sleep better for 1 to 2 weeks. They should not be taken for any longer.'
When should I see a doctor for trouble sleeping (occasional insomnia)?
See a clinician if: Trouble falling or staying asleep on most nights for 3 months or longer, which meets the definition of chronic insomnia and warrants CBT-I rather than OTC pills.; Daytime impairment from poor sleep: fatigue, trouble concentrating, mood changes, or dozing off during the day.; Loud snoring, gasping, choking, or witnessed pauses in breathing during sleep, which can signal sleep apnea and needs medical evaluation, not a sedative.; You feel you need a sleep aid every night to sleep at all, or you keep increasing the dose because it stopped working (tolerance).; Sleep problems accompanied by depression, anxiety, or thoughts of self-harm, where the underlying condition, not the sleep, is the target of treatment.; Restless, creeping leg sensations at night, or acting out dreams, which point to specific disorders (restless legs, REM behavior disorder) that OTC aids will not fix.; You are an older adult, pregnant, or taking other sedating or anticholinergic medicines, where OTC antihistamine sleep aids carry added risk and a clinician should guide any use..

Need the prescription options too?

This page covers what you can buy over the counter. Our guide to every treatment for insomnia adds the prescription options a clinician can offer, each with our FDA recall-safety rating.

OTC options for other conditions

Sources

General information, not medical advice, and not a substitute for your clinician or pharmacist. Follow the label on any OTC product, mind interactions with your other medicines, and seek care for any red-flag symptom.