Sleeping Pills: OTC vs Prescription Compared (2026)

A clear British-English guide to over-the-counter and prescription sleeping pills: how they differ, when each is appropriate, risks, and safer alternatives for insomnia.

Order an e-prescription - from 59 zł

If you have ever lain awake at 3 a.m. wondering whether a pharmacy sleep aid would help, you are far from alone. Insomnia is one of the most common health complaints, and the choice between an over-the-counter (OTC) sleeping pill and a prescription medicine can be confusing. They are not interchangeable: they work in different ways, suit different situations and carry different risks. This guide explains the practical differences so you can have a more informed conversation with a clinician.

Need a prescription? Start an online consultation - e-prescription in as little as 15 minutes. For residents of Poland.

What counts as an OTC sleeping pill?

Over-the-counter sleep aids are products you can buy from a pharmacy without seeing a doctor. In practice, most fall into two groups.

The first relies on sedating antihistamines such as diphenhydramine and doxylamine, or promethazine. These were originally developed for allergies, but drowsiness is a well-known side effect that some products repurpose as a short-term sleep aid. The second group is plant-based and supplement options - valerian, lemon balm, passionflower and, in some countries, melatonin sold over the counter.

OTC products are generally intended for occasional, short-term sleeplessness rather than long-standing insomnia. They are easy to obtain, but "available without a prescription" does not mean "suitable for everyone" or "free of side effects."

How prescription sleeping pills differ

Prescription sleep medicines are issued by a doctor after assessing your symptoms, history and other medicines. They tend to be more potent and more tightly regulated.

The best-known group is the Z-drugs (such as zolpidem and zopiclone), which act on the same brain receptors as benzodiazepines and are licensed specifically for insomnia. Benzodiazepines themselves are sometimes used short term. A doctor may also consider prescription melatonin (often for adults over 55 or for specific sleep-wake problems) or, in selected cases, a sedating antidepressant prescribed off-licence for sleep.

The defining feature is medical oversight: a clinician decides whether a sleeping pill is justified at all, chooses the most appropriate option, sets the dose and reviews how things are going. National guidance, including from the National Institute for Health and Care Excellence (NICE), generally positions hypnotic medicines as a short-term measure rather than a long-term solution.

Comparing effectiveness and onset

OTC antihistamines can make you feel drowsy, but tolerance - where the same dose has less effect - can develop quickly, sometimes within days. That makes them poorly suited to ongoing use.

Prescription hypnotics such as the Z-drugs are typically faster-acting and more reliably sedating, which is part of why they require a prescription. However, "stronger" is not automatically "better." More sedation also means a greater chance of next-day grogginess, and these medicines are intended for the shortest effective period. For most people, no sleeping pill addresses the underlying cause of insomnia; it manages the symptom while that cause is explored.

Side effects and safety considerations

Both categories carry risks, and they are not always obvious.

Sedating antihistamines commonly cause a dry mouth, blurred vision, constipation and a "hungover" feeling the next morning. Their anticholinergic effects make them a particular concern in older adults, where they have been linked to confusion and falls, so they are often best avoided in this group.

Prescription hypnotics can cause drowsiness, dizziness, impaired coordination and, with some, complex behaviours during sleep such as walking or eating without full awareness. Crucially, they carry a recognised risk of dependence and tolerance, which is why courses are usually kept short.

Across both groups, key safety points include: never combining sleeping pills with alcohol or other sedatives; taking care with driving and machinery while you may still be affected; and being cautious if you have liver, kidney or breathing problems. Sleeping pills are generally not recommended in pregnancy or breastfeeding unless a doctor advises otherwise. Always read the patient information leaflet and check for interactions with your other medicines.

When to see a doctor instead of self-medicating

Reaching for a pharmacy product can be reasonable for the occasional bad night, but some signs point to a proper assessment instead. Consider speaking to a clinician if your insomnia has lasted more than a few weeks, is affecting your daytime functioning, mood or safety, or keeps returning whenever you stop a sleep aid.

A doctor can look for treatable contributors - such as anxiety, depression, pain, restless legs, sleep apnoea, shift work or another medicine - that no sleeping pill will fix on its own. They can also advise whether a prescription option is appropriate or, just as importantly, whether it is not.

Alternatives worth trying first

For long-term insomnia, the recommended first-line treatment is usually not a tablet at all. Cognitive behavioural therapy for insomnia (CBT-I) is widely endorsed by guidelines, including NICE, as the preferred approach because it addresses the patterns that keep insomnia going and its benefits tend to last.

Practical sleep-hygiene steps support any treatment: keep consistent wake and sleep times, limit caffeine and alcohol later in the day, reduce screen use before bed, keep the bedroom cool and dark, and get up rather than lying awake frustrated for long periods. These measures are unglamorous, but for many people they reduce or remove the need for medication.

How to get an e-prescription online

If a clinician decides that a prescription sleep medicine is appropriate for you, an online consultation can be a convenient route. The process is straightforward:

  1. Complete the medical questionnaire - describe your sleep problem, how long it has lasted, relevant health conditions and any medicines you take.
  2. A doctor reviews your case - they assess whether treatment is medically justified and which option, if any, is suitable for you.
  3. Receive your e-prescription - if appropriate, the prescription is issued electronically, often within minutes, and you can collect your medicine at a pharmacy.

A prescription is issued only when it is clinically justified, and the doctor may instead recommend non-drug measures or further assessment.

Frequently asked questions

Are over-the-counter sleeping pills safe for regular use? They are designed for occasional, short-term use. Tolerance to sedating antihistamines can develop quickly, and ongoing use without medical advice is not recommended. Persistent insomnia should be assessed by a clinician.

Are prescription sleeping pills stronger than OTC ones? Prescription hypnotics are generally more potent and faster-acting, which is partly why they require medical oversight. Greater strength also means greater potential for side effects and dependence, so they are intended for short courses.

Can I take a sleeping pill with alcohol? No. Combining sleeping pills with alcohol can dangerously increase sedation and the risk of breathing problems. Avoid alcohol while taking any sleep medicine.

Is melatonin available without a prescription? This depends on the country and the product. In some places certain melatonin products are sold over the counter, while prescription melatonin is used for specific situations, such as some adults over 55. Check the rules and product details locally.

What should I try before taking sleeping pills? Sleep-hygiene improvements and, for longer-term insomnia, cognitive behavioural therapy for insomnia (CBT-I), which guidelines recommend as a first-line approach. Many people improve without medication.

Can older adults take OTC antihistamine sleep aids? They are often best avoided in older adults because of anticholinergic effects linked to confusion and falls. An older person with insomnia should seek individual medical advice.

Sources

  • National Institute for Health and Care Excellence (NICE)
  • National Health Service (NHS)
  • European Medicines Agency (EMA)
  • World Health Organization (WHO)

--- This article is for general information and does not replace a medical consultation. Prescriptions are issued only when medically justified, at the doctor's discretion.

Author: MEDINOW Sp. z o.o. editorial team · Medical review: Damian Wojno, MD (OIL Olsztyn, PWZ 3211301) · Updated: June 2026

More articles