Medication & supplements
OTC Sleep Aids: What They Are and How They Work
By Angus Munro, Clinical Psychologist (AHPRA PSY0001626434) · Last clinically reviewed 2026-07-10 · 9 min read
Over-the-counter (OTC) sleep aids are the sleep medicines you can buy without a prescription. Most of them, including Unisom, ZzzQuil and the store-brand "nighttime" formulas, work by borrowing a sedating antihistamine such as diphenhydramine or doxylamine, with melatonin and herbal products like valerian filling out the rest of the shelf. They can make you feel drowsy. Whether that drowsiness is the same thing as treating your insomnia is a very different question, and it is the one worth answering before you reach for the box again.
What actually goes into an over-the-counter sleep aid
Walk down the sleep aisle and most of the variety is marketing. Underneath the branding, OTC sleep aids come from a short list of ingredients.
The most common is a sedating antihistamine: diphenhydramine (the active ingredient in ZzzQuil and many "PM" painkillers) or doxylamine (the antihistamine behind the Unisom sleep aid tablets). These drugs were designed to treat allergies. The drowsiness was a side effect that got repackaged as the main event.
Then there is melatonin, a hormone your body already makes to signal night-time to the brain. And a long tail of herbal products, valerian and chamomile and passionflower, often blended together and sold as a "smart sleep aid," sometimes stacked with magnesium or L-theanine. If you have read anything about magnesium for sleep, you have already met this end of the category.
None of this is dangerous in the way the word "drug" might imply. But "available without a prescription" is not the same as "shown to treat insomnia," and that gap is where most of the disappointment lives.
What the evidence actually says
Here is the part the packaging leaves out.
When the American Academy of Sleep Medicine reviewed the evidence for chronic insomnia, it recommended against using diphenhydramine, valerian, tryptophan and melatonin as treatments (Sateia et al., 2017). Not because they are hazardous, but because the evidence that they meaningfully treat ongoing insomnia is not there. The same guideline could only offer weak, conditional recommendations even for the prescription sleeping tablets, because the quality of the evidence was low and the benefit over placebo was small.
Read that twice. The strongest sleep medicines available to a doctor cleared the bar only weakly. The ones you can buy off the shelf did not clear it at all for chronic insomnia.
That does not mean an antihistamine never makes anyone drowsy. It does. It means drowsiness and treated insomnia are not the same outcome, and the thing that feels like it is working is often just sedation stacked on your own expectation.
Sleeping pills for flights and other one-off nights
Situational use is a fair question, and it deserves a straight answer. A single unavoidable night, a red-eye or a time-zone jump, is a genuinely different situation from months of lying awake in your own bed.
People search for the best sleeping pills for flights hoping there is a clean answer. There isn't a universal one, and here is the honest problem with airplane sleeping pills specifically: a plane at 38,000 feet is close to the worst possible place to try a sedative for the first time. You don't know how you'll react, alcohol and cabin dehydration both amplify the effect, and grogginess on arrival can cost you the very day you were trying to protect.
If a one-off is genuinely warranted, taking sleeping pills for a flight is a conversation to have with your prescriber or pharmacist before you travel, not a box grabbed at the airport and taken on a plane for the first time. And if the real issue is jet lag rather than sleeplessness, that is a timing problem. Melatonin is sometimes used as a circadian tool to help shift the body clock, which is a different job from sedation; your circadian rhythm is what is actually being nudged there.
One flat safety line, because it matters. A night-time antihistamine can leave you genuinely impaired the next morning. Do not drive or operate anything that matters while you still feel it. "I only took it last night" is not a defence your reflexes recognise.
If you are considering prescription sleeping tablets
Sometimes the OTC option fails and people ask their doctor about something stronger. It is worth knowing what "stronger" actually buys.
A BMJ meta-analysis of the trial data drug companies submitted to the FDA found the newer "z-drugs" reduced the time to fall asleep, measured in a sleep lab, by roughly 22 minutes versus placebo, and that a large share of even that modest gain was itself a placebo response (Huedo-Medina et al., 2012). A larger network analysis of 154 trials found that among the options, eszopiclone and lemborexant had the most favourable balance of benefit and tolerability, while older benzodiazepines and some z-drugs fared worse, and that usable long-term data were thin across almost every drug (De Crescenzo et al., 2022).
The cost side is real too. In adults over sixty, sedative hypnotics produced only a small improvement in sleep while roughly doubling to quadrupling next-day cognitive and psychomotor problems, the kind that lead to foggy mornings and falls (Glass et al., 2005).
This is why the major guidelines put CBT-I first and treat sleeping tablets as a short-term, adjunct option, generally for no more than about four weeks, noting that tolerance can build within days to weeks (Riemann et al., 2023). None of that makes medication wrong. It makes it a tool with a narrow job, best chosen with your prescriber, rather than a foundation to build your nights on.
Already taking them? What a deprescribing conversation looks like
If you are reading this already on a nightly tablet and quietly uneasy about it, I want to be careful, because this is where fear does its worst work.
First, the reassurance. This is not an anti-medication lecture, and you should not change or stop anything on your own. Coming off a sleeping tablet is a prescriber-led process, and doing it abruptly can backfire. There are no doses or schedules in this article for a reason: that plan belongs to you and your doctor.
What the evidence shows is genuinely hopeful. Deprescribing guidelines recommend that people who have used these tablets for more than a few weeks be offered a slow, supervised taper, because tapering improves the odds of stopping without serious harm (Pottie et al., 2018). Even simple patient education helps. In one trial, mailing long-term users a plain-language brochure led to about 27% stopping within six months, against 5% who got usual care (Tannenbaum et al., 2014). People are rarely as stuck as they feel.
And this is where the approach matters most. In a trial of older adults who had relied on sleeping tablets for years, pairing a supervised taper with CBT-I produced the highest drug-free rate, around 85%, against roughly half for tapering alone (Morin et al., 2004). The behavioural work is not a consolation prize you do instead of the taper. It is what makes the taper hold.
What the pill was never going to fix
Step back and the pattern is clear. Every one of these tablets targets the last link in the chain, sedation at bedtime, and none of them touches the thing generating the wakefulness in the first place.
That thing is arousal: a wired, over-activated nervous system that treats lying in bed as a problem to be solved. And the cruel joke of insomnia is that effort feeds it. The harder you work at sleep, the further it retreats. It is like drinking seawater when you are thirsty; every sip feels like it should help, and every sip makes it worse. Sedating that system for a night does not retrain it, which is why the tablet that worked in week one so often does less by week six.
Good sleep hygiene, a dark room and a steady schedule, is worth having, but it is the floor, not the treatment. It was never designed to switch off a hyperaroused threat system, and blaming yourself when it doesn't is misplaced effort.
This is the mechanism CBT-I was built to address, and it remains the strongest evidence base in the field. Insomnia Reset is grounded in that foundation and then adapts it for the specific problem of a sleep-anxious, hypervigilant mind, which is why it does not ask you to keep a nightly sleep diary; for many people that nightly scorekeeping quietly feeds the very vigilance we are trying to settle. The reason most sleep advice fails is that it hands you one tool and expects it to work at every level of arousal. A calm-minute strategy is useless the moment you're wired, so the program matches the tool to how activated you already are. That matching is the part no pill can do.
If some of this is landing, a good place to start is the Sleep Clarity quiz. It is a self-assessment, not a diagnosis, and it will show you which part of the loop is doing the most work.
One more thing, said plainly as care rather than fine print. If you are reaching for pills because you are exhausted despite spending hours in bed, or a partner notices loud snoring and gasping, or your legs are restless every night, see your GP first so you are not medicating the wrong problem. And if the sleeplessness is tangled up with a darker mental state, that is worth raising with your doctor too.
Frequently asked questions
Are over-the-counter sleep aids safe to take every night?
Occasional use of an OTC antihistamine is generally low-risk for most healthy adults, but nightly use is a different matter. The sleep-medicine guideline recommends against relying on these ingredients as a treatment for ongoing insomnia (Sateia et al., 2017), tolerance to the drowsy effect tends to build, and next-day grogginess accumulates. If you are taking something every night in order to sleep, that is a signal the underlying pattern needs attention rather than more sedation, and one worth raising with your GP or pharmacist.
What are the best sleeping pills for flights?
There is no single "best" answer, and be wary of any list that offers one. The honest position on good sleeping pills for flights is that a long flight is a poor place to trial a sedative you have never taken, especially alongside alcohol and dehydration. If a one-off genuinely helps, decide it with your prescriber or pharmacist before you travel, and if jet lag is the real issue, remember you are dealing with a body-clock problem, not a sedation one.
Does Unisom actually treat insomnia?
The Unisom sleep aid range is built on sedating antihistamines (doxylamine or diphenhydramine). They can make you feel sleepy, but the evidence that they treat chronic insomnia specifically did not meet the bar in the AASM review (Sateia et al., 2017). Feeling drowsy and resolving insomnia are not the same outcome.
Is melatonin a better option than an antihistamine?
Melatonin is a timing signal, not a sedative, so it is doing a different job. For shifting a body clock, as with jet lag or shift work, it is used as a circadian tool. As a treatment for chronic insomnia, though, the same guideline recommended against relying on it (Sateia et al., 2017). Useful for timing, not a fix for a hyperaroused mind at 3am.
Do I have to stop my sleeping tablets to sleep well?
Not on your own, and not abruptly. Coming off is a prescriber-led decision, and the evidence shows it goes best when a supervised taper is paired with the behavioural approach that treats the underlying arousal (Morin et al., 2004). The goal is not to shame the pill out of your hand. It is to build the thing that makes it unnecessary.
Frequently asked questions
Are over-the-counter sleep aids safe to take every night?
Occasional use of an OTC antihistamine is generally low-risk for most healthy adults, but nightly use is a different matter. The sleep-medicine guideline recommends against relying on these ingredients as a treatment for ongoing insomnia (Sateia et al., 2017), tolerance to the drowsy effect tends to build, and next-day grogginess accumulates. If you are taking something every night in order to sleep, that is a signal the underlying pattern needs attention rather than more sedation, and one worth raising with your GP or pharmacist.
What are the best sleeping pills for flights?
There is no single "best" answer, and be wary of any list that offers one. The honest position on good sleeping pills for flights is that a long flight is a poor place to trial a sedative you have never taken, especially alongside alcohol and dehydration. If a one-off genuinely helps, decide it with your prescriber or pharmacist before you travel, and if jet lag is the real issue, remember you are dealing with a body-clock problem, not a sedation one.
Does Unisom actually treat insomnia?
The Unisom sleep aid range is built on sedating antihistamines (doxylamine or diphenhydramine). They can make you feel sleepy, but the evidence that they treat chronic insomnia specifically did not meet the bar in the AASM review (Sateia et al., 2017). Feeling drowsy and resolving insomnia are not the same outcome.
Is melatonin a better option than an antihistamine?
Melatonin is a timing signal, not a sedative, so it is doing a different job. For shifting a body clock, as with jet lag or shift work, it is used as a circadian tool. As a treatment for chronic insomnia, though, the same guideline recommended against relying on it (Sateia et al., 2017). Useful for timing, not a fix for a hyperaroused mind at 3am.
Do I have to stop my sleeping tablets to sleep well?
Not on your own, and not abruptly. Coming off is a prescriber-led decision, and the evidence shows it goes best when a supervised taper is paired with the behavioural approach that treats the underlying arousal (Morin et al., 2004). The goal is not to shame the pill out of your hand. It is to build the thing that makes it unnecessary.
Work on the mechanism, not another tip
Insomnia Reset is a structured, psychologist-designed program for exactly this pattern. If you're ready to work on the mechanism rather than chase another tip, that's what it's for.
Explore Insomnia Reset →