Skip to content
MediBilbao Salud

Sleep MediBilbao Salud

Over-the-Counter Sleep Aids: Types, Risks and Better Options

Pharmacy shelves are full of products promising a good night’s sleep. Most work only modestly, some carry real risks, and none treats the cause of insomnia, which is why they are best used briefly and with care.

Topic
Psychology
Updated
Reading time
5 minutes
Reviewed by
Dr. Itziar Gotxi Erezuma · Medical doctor (ENT) · Bizkaia Medical Association no. 48/4809228

The main types

  • Sedating antihistamines: diphenhydramine and doxylamine (found in many “PM” cold and pain products).
  • Melatonin: a hormone supplement.
  • Herbal remedies: valerian, chamomile, passionflower, lavender, lemon balm and combinations.
  • Minerals and amino acids: magnesium, L-theanine, glycine and others.
  • CBD and other cannabis-derived products, with limited evidence.
  • All are sold as over-the-counter or supplement products in many countries, but regulation varies; prescription sleep medicines are separate.

Sedating antihistamines

Diphenhydramine and doxylamine make you drowsy because they block histamine and other receptors in the brain. Trials suggest a small benefit for sleep onset, with tolerance developing within 3–4 days, so effect fades with repeated use. Side effects include next-day sedation and impaired driving, dry mouth, constipation, blurred vision, urinary retention, dizziness and, in older adults, confusion, falls and cognitive problems; the American Geriatrics Society advises avoiding them in older people. They also add to the effects of alcohol and other sedatives. They are not suitable for children as sleep aids.

Melatonin

Melatonin is a hormone that signals night to the body. Reviews show it modestly reduces the time to fall asleep (around 7 minutes on average) and increases total sleep time slightly in some people, and is most useful for jet lag, shift work, delayed sleep phase and some sleep problems in children with neurodevelopmental conditions. Doses of 0.5–3 mg taken 1–2 hours before the desired bedtime are as effective as higher doses for many people. Side effects include headache, dizziness, nausea and daytime drowsiness, and strong vivid dreams. Quality and dose vary between supplements, and some contain far more than stated; choose products with independent verification. Check with a doctor before use in pregnancy, breastfeeding, autoimmune conditions, epilepsy or when on blood thinners or other medicines. See no puedo dormir (Spanish).

Herbal products and supplements

  • Valerian: uncertain benefit; see valerian root for sleep.
  • Chamomile, lavender, lemon balm and passionflower: limited evidence; generally mild effects as tea or capsules.
  • Magnesium: some small studies show benefit in older adults or those with low levels; high doses can cause diarrhoea and are unsafe in kidney disease.
  • L-theanine and glycine: small studies suggest modest benefit; more research is needed.
  • Kava is associated with liver toxicity and is best avoided.
  • Supplements can interact with medicines and vary in quality.

Risks and who should avoid them

  • Older adults: avoid sedating antihistamines because of confusion, falls and urinary problems.
  • Glaucoma, enlarged prostate, urinary retention, dementia, asthma or COPD: sedating antihistamines may worsen these.
  • Pregnancy and breastfeeding: ask your doctor or midwife before using any product.
  • Children: do not give sedating antihistamines for sleep; seek paediatric advice for sleep problems.
  • Alcohol, opioids, benzodiazepines and other sedatives: combination can dangerously slow breathing and impair alertness.
  • Driving and machinery: avoid until you know how a product affects you the next day.
  • Sleep apnoea: sedatives can worsen breathing during sleep.

How long can I use them?

Most over-the-counter sleep aids are intended for occasional, short-term use of up to two weeks. Using them every night builds tolerance, masks conditions that need treatment (such as depression, anxiety, sleep apnoea or restless legs) and keeps the problem going. If you need them for more than two weeks, see a doctor.

Safer and more effective alternatives

  • CBT for insomnia (CBT-I): first-line, effective and long-lasting, with no side effects. See insomnia.
  • Consistent sleep and wake times, morning light and daily exercise.
  • A wind-down routine: dim lights, no screens, relaxation, reading.
  • Caffeine and alcohol limits, particularly after midday and near bedtime.
  • A cool, dark and quiet bedroom.
  • Treat contributing conditions: pain, reflux, anxiety, depression, sleep apnoea.
  • Prescription medicines for selected cases and short periods under supervision.

When to see a doctor

  • Insomnia lasting more than 3–4 weeks.
  • Need for sleep aids most nights.
  • Snoring with breathing pauses, daytime sleepiness or morning headaches.
  • Low mood, anxiety or thoughts of self-harm.
  • Legs that feel restless or jerk at night.
  • Side effects from sleep aids or concerns about interactions.

Three common situations

A traveller crossing several time zones: melatonin at the destination bedtime, plus daylight, can help.

An older adult using a “PM” painkiller every night: ask a doctor about safer alternatives because of confusion and fall risk.

Someone sleeping badly for months: a behavioural approach is more effective than another product.

Key points to remember

Over-the-counter sleep aids have modest benefits and real risks. Use them only briefly, avoid sedating antihistamines if you are older or have certain conditions and never combine them with alcohol. CBT-I and good sleep habits are the best long-term solution. Our psychology team can help.

This guide is for general information and does not replace an assessment by a qualified health professional.

Questions about over-the-counter sleep aids

These answers are general information and do not replace an examination or individual medical advice.

What is the safest over-the-counter sleep aid?

No product is risk-free; low-dose melatonin for specific situations (like jet lag) is generally well tolerated, and non-drug measures are safest.

Is it safe to take diphenhydramine every night?

Not recommended: tolerance develops quickly and risks include next-day impairment, and it is not advised for older adults.

Does melatonin work for insomnia?

It has a small effect in common insomnia and works best for circadian rhythm problems and jet lag.

How long can I use sleep aids?

Generally up to two weeks; see a doctor if you need them longer.

Can I combine sleep aids with alcohol?

No. Alcohol adds to sedation and can be dangerous.

What works better than sleep aids?

CBT for insomnia and consistent sleep habits.

Sources

  1. Qaseem A et al. · Management of chronic insomnia disorder in adults: ACP guideline. Ann Intern Med, 2016
  2. NCCIH · Melatonin: what you need to know
  3. American Geriatrics Society · 2023 updated AGS Beers Criteria for potentially inappropriate medication use in older adults
  4. NHS · Insomnia

This guide is for general information and does not replace medical advice. How a problem is diagnosed and treated depends on your examination and medical history. If you think you have an emergency, contact your local emergency services.