VitMode

OTC Sleep Aids — Overview and Comparison

Melatonin, valerian, diphenhydramine, magnesium, glycine, L-theanine — the six most popular over-the-counter sleep aids work on completely different principles and have completely different levels of evidence behind them. Choosing the right one depends on exactly which sleep problem you're trying to solve, not on which product has the loudest marketing.

JWJulia WiśniewskaReviewed by Michał NowakUpdated: September 24, 2026
Moderate evidence
4.5

Number of studies

2

Safety

Requires caution

Time to effects

Depends on the substance — melatonin and diphenhydramine usually work on the first night of use (30–60 minutes after taking them), while magnesium and glycine, with an actual deficiency, may take a few days to two weeks of regular use for a clearly noticeable effect.

Who it's for

People with occasional, mild difficulty falling or staying asleep looking for an informed choice suited to their problemTravelers crossing multiple time zones or working shift schedules, for whom circadian-rhythm disruption is the key issuePeople with mild muscle tension or mental arousal that hinders winding down in the eveningPeople who want to avoid unnecessarily combining several sedating agents at once
Table of contents

TL;DR

Melatonin, valerian, diphenhydramine, magnesium, glycine, L-theanine — the six most popular over-the-counter sleep aids work on completely different principles and have completely different levels of evidence behind them. Choosing the right one depends on exactly which sleep problem you're trying to solve, not on which product has the loudest marketing.

  • Allows you to match a substance's mechanism of action to a specific, identified sleep problem instead of choosing at random
  • Melatonin has well-documented efficacy for circadian-rhythm disorders and in older adults with insomnia
  • Magnesium, glycine, and L-theanine offer a gentler, safer profile with lower tolerance risk than antihistamines
Type of comparisonSix popular over-the-counter sleep substances: melatonin, valerian, diphenhydramine/doxylamine, magnesium, glycine, L-theanine
Evidence levelModerate and varied — strongest for melatonin, weakest for valerian and diphenhydramine
Target groupPeople with occasional, mild difficulty falling or staying asleep
Best-documented choiceExtended-release melatonin — the most consistent data, especially in older adults
Weakest evidenceDiphenhydramine and valerian — widely used despite limited efficacy data
StatusDoes not replace CBT-I or diagnosis for chronic insomnia lasting more than a few weeks

Understand

Overview

Pharmacy and supplement-store shelves groan under the weight of products promising better sleep, but the diversity of active ingredients hiding behind those boxes is enormous — from a hormone (melatonin), through an herbal extract (valerian), a first-generation antihistamine (diphenhydramine, doxylamine), to amino acids and minerals (glycine, magnesium, L-theanine). Each of these substances works through a different mechanism, targets a different stage of falling asleep or staying asleep, and has a completely different level of scientific evidence supporting its effectiveness — treating them as interchangeable 'sleep pills' leads to disappointment and unnecessary risk.

The importance of this topic stems from how common it is to reach for an over-the-counter remedy before anyone consults a doctor about a sleep problem. Large systematic reviews evaluating the efficacy and safety of popular over-the-counter agents consistently show that the evidence favoring individual substances is markedly uneven — melatonin, especially in extended-release forms, has the most consistent data confirming shorter time to fall asleep and better sleep quality, while diphenhydramine and valerian have considerably weaker evidence, despite how widely used they are and their status as 'classics' in this category.

This overview is genuinely useful for people with occasional, mild difficulty falling or staying asleep who want to make a deliberate choice suited to their specific problem — a different choice makes sense for trouble falling asleep itself (e.g. with a circadian-rhythm disorder) than for frequent nighttime waking, and a different one again when co-occurring anxiety makes it hard to wind down in the evening. People with chronic, clinical insomnia (lasting more than three months, several times a week) are the group for whom over-the-counter agents are least suited as a definitive solution — here, cognitive behavioral therapy for insomnia (CBT-I) remains the gold standard, and supplements are at most a supportive aid.

The practical nuance is that 'stronger' doesn't mean 'better' when it comes to sleep. Diphenhydramine and doxylamine, as first-generation antihistamines, produce a pronounced, subjectively noticeable sedation — hence their popularity — but pharmacological tolerance develops with them considerably faster than with melatonin, and next-day grogginess, dry mouth, and, in older adults, the risk of cognitive impairment are a real cost of that potency. Magnesium, glycine, and L-theanine, by contrast, work more subtly and indirectly — they don't 'knock you out' in a pharmacological sense, but rather lower physiological arousal and ease natural sleep onset, making them a safer, if less dramatic, choice for mild difficulties.

A common mistake is combining several agents at once 'to be safe' — for instance melatonin with diphenhydramine and magnesium in a single night — which doesn't so much add up the benefits as increase the risk of excessive sedation, next-day drowsiness, and harder-to-predict interactions, without evidence of a proportionally better effect. Another mistake is expecting an over-the-counter supplement to solve a sleep problem it doesn't actually address — for example, reaching for melatonin for insomnia driven by anxiety and rumination, when it's that mechanism, not a circadian-rhythm disorder, that's the real obstacle here.

It's also worth remembering the regulatory inconsistency of this product category. In Poland, melatonin doses above 1 mg require a prescription, while in many other countries it's available without restriction at considerably higher doses — the same applies to differences in the standardization of valerian extracts between manufacturers, which makes it hard to directly compare results of clinical trials conducted on different preparations of the same plant. Magnesium, glycine, and L-theanine, as dietary supplements, are subject to looser regulation than medications, meaning less certainty about the actual active-ingredient content of the finished product.

Choosing the right over-the-counter sleep aid is, in practice, a decision about matching a mechanism of action to a specific, identified problem, rather than a search for one universally 'best' product. Melatonin works best for circadian-rhythm disorders, magnesium and glycine for muscle tension and mild physiological restlessness, L-theanine for excessive mental arousal without daytime sedation, and diphenhydramine is justified only as an occasional, not long-term, solution. None of these agents replaces diagnosis and treatment of chronic insomnia when the problem persists for more than a few weeks.

Mechanism of action

Substances sold as 'sleep aids' represent at least four distinct pharmacological categories worth distinguishing when choosing among them. The first is chronobiological signaling — melatonin binds to MT1/MT2 receptors in the hypothalamic suprachiasmatic nucleus, synchronizing the body clock with the light-dark cycle without producing direct pharmacological sedation. It therefore works best where the problem is a mismatch between sleep phase and environment (jet lag, shift work, delayed sleep phase), and considerably less well for insomnia unrelated to circadian rhythm.

The second category is substances that modulate the GABAergic and glutamatergic systems, lowering overall central nervous system arousal. Valerian extracts contain compounds (including valerenic acid) thought to have weak, indirect effects on GABA-A receptors, though the mechanism isn't fully understood, and inconsistent extract standardization makes clear conclusions hard to draw. L-theanine works differently — as a structural analog of glutamate, it partly blocks its excitatory receptors and increases alpha-wave activity on EEG, which correlates with a state of calm alertness rather than sedation, which is why it mainly helps with excessive mental arousal, not with difficulty falling asleep for physiological reasons.

The third category is first-generation antihistamines — diphenhydramine and doxylamine — which block H1 histamine receptors in the central nervous system; histamine is one of the key neurotransmitters that sustain wakefulness, so blocking it produces pronounced drowsiness. This is the most 'forceful,' pharmacologically direct mechanism among the substances described here, but also the one with the fastest-developing tolerance and the broadest side-effect profile (anticholinergic effects: dry mouth, constipation, cognitive impairment, especially in older adults).

The fourth category covers glycine and magnesium, which act peripherally and partly centrally through muscle relaxation and lowered neuromuscular excitability. Glycine, an inhibitory amino acid, binds to glycine receptors in the spinal cord and brainstem, lowering body temperature through a mechanism that eases sleep onset, while magnesium modulates NMDA receptors and enhances GABAergic transmission, providing a benefit mainly where an actual deficiency of this mineral underlies the problem, rather than for everyone regardless of mineral status.

1

Chronobiological signaling (melatonin)

Synchronizes the body clock via MT1/MT2 receptors in the SCN, without direct pharmacological sedation.

2

GABA/glutamate modulation (valerian, L-theanine)

Lowers overall central nervous system arousal or blocks excitatory receptors, supporting calm alertness.

3

H1 histamine receptor blockade (diphenhydramine, doxylamine)

Directly inhibits the neurotransmitter that sustains wakefulness, producing pronounced but quickly tolerance-prone sedation.

4

Neuromuscular relaxation (glycine, magnesium)

Acts peripherally and partly centrally, lowering body temperature and neuromuscular excitability, strongest with an actual deficiency.

Evidence: moderate — based on 2 studies in this database.

Benefits

Allows you to match a substance's mechanism of action to a specific, identified sleep problem instead of choosing at random
Melatonin has well-documented efficacy for circadian-rhythm disorders and in older adults with insomnia
Magnesium, glycine, and L-theanine offer a gentler, safer profile with lower tolerance risk than antihistamines
An informed choice reduces the risk of unnecessarily combining several agents at once 'to be safe'
Helps identify situations where no over-the-counter agent is the right solution and medical consultation or CBT-I is needed instead

Common myths

MythAll sleep supplements basically work the same way, so price is what matters most.

FactThese substances represent at least four distinct pharmacological mechanisms — from a chronobiological signal, to histamine blockade, to neuromuscular relaxation — and have completely different levels of evidence and uses.

MythStronger sedation right after taking it means better, healthier sleep.

FactDiphenhydramine produces the strongest, most immediate sedation among these substances, but also has the most side effects and the fastest-developing tolerance — strong, immediate action isn't the same as the best sleep-architecture quality.

MythCombining several sleep supplements at once gives a cumulative, better effect.

FactCombining sedating agents mainly increases the risk of excessive sedation, next-day drowsiness, and unpredictable interactions, without evidence of a proportionally better effect on sleep quality.

MythOver-the-counter agents are enough to solve any sleep problem.

FactFor chronic insomnia lasting more than three months, cognitive behavioral therapy for insomnia (CBT-I) is the gold standard, and over-the-counter supplements are at most a supportive aid, not a definitive solution.

Forms & variants

OTC Sleep Aids — Overview and Comparison comes in several forms that differ in bioavailability and use case — the form you pick genuinely matters for how effective the supplementation is.

Melatonin

A chronobiological signal that synchronizes the body clock — the best-documented efficacy for circadian-rhythm disorders and in older adults.

Best for: Jet lag, shift work, delayed sleep phase, insomnia in older adults

Valerian

An herbal extract with a weak, inconsistent effect on GABA-A receptors — one of the most commonly used but least well-documented agents in this category.

Best for: People who prefer herbal remedies and are aware of the limited evidence for efficacy

Diphenhydramine / doxylamine

First-generation antihistamines producing pronounced sedation via H1 histamine receptor blockade — potent, but with quickly developing tolerance and a broader side-effect profile.

Best for: Occasional, one-off sleep support, not long-term use

Magnesium

A mineral supporting GABAergic transmission and muscle relaxation — the benefit is seen mainly with an actual deficiency.

Best for: People with a magnesium-poor diet, muscle tension, or nighttime cramps

Glycine

An inhibitory amino acid that lowers body temperature and eases sleep onset, with a mild safety profile.

Best for: People looking for gentle sleep-onset support without a risk of next-day drowsiness

L-theanine

An amino acid from tea that supports calm alertness without sedation, helpful for excessive mental arousal that makes it hard to wind down in the evening.

Best for: People with racing thoughts and mental tension that hinder falling asleep, without needing daytime sedation

Personalized for you

Struggling with sleep?

Answer a few questions about your sleep, stress, diet, and lifestyle. VitMode will show you which areas might need the most attention and which supplements could be worth considering.

Takes about 2 minutesBased on scientific evidence

Recommendations take your answers and the strength of the scientific evidence into account. A supplement's popularity has no bearing on whether it gets recommended.

Practice

Frequently asked questions

There's no single universally best choice — it depends on the specific problem. Melatonin works well for circadian-rhythm disorders, magnesium and glycine for muscle tension, L-theanine for excessive mental arousal, and diphenhydramine is justified only occasionally, not long term.

This isn't recommended without consulting a doctor or pharmacist — combining several sedating substances increases the risk of excessive sedation and next-day drowsiness, without evidence of a proportionally better effect on sleep quality.

This isn't recommended — diphenhydramine develops pharmacological tolerance relatively quickly, and regular use carries a risk of anticholinergic effects, especially in older adults, where observational data link long-term anticholinergic medication use to worse cognitive function.

Valerian extracts vary significantly in standardization and active-ingredient content between manufacturers, which makes it hard to compare clinical-trial results and leads to inconsistent findings in meta-analyses, despite the plant's long tradition of use.

When sleep difficulties persist for more than three months, occur several times a week, and clearly worsen daytime functioning — at that point, cognitive behavioral therapy for insomnia (CBT-I) or medical consultation is the gold standard, not another supplement.

What to combine with

Good combinations

MelatoninMelatonin's full profile — mechanism, dosing, and release variants — is covered in detail in a dedicated entry

MagnesiumMagnesium's full profile as a supplement, including the highest-bioavailability forms, is covered in detail in a dedicated entry

Sleep Hygiene — PrinciplesNo supplement replaces the basic principles of sleep hygiene — those should be the first step before reaching for an over-the-counter agent

Use caution with

MelatoninDo not combine with diphenhydramine or other sedating agents without consultation — risk of excessive sedation without added benefit

Safety

Side effects & contraindications

Possible side effects

Diphenhydramine and doxylamine: next-day grogginess, dry mouth, constipation; in older adults, risk of cognitive impairment and falls

Valerian: rarely headaches, gastrointestinal upset, and in some people paradoxical stimulation instead of calming

Melatonin: next-day drowsiness at excessively high doses, rarely headaches and vivid dreams

Magnesium at higher doses: diarrhea and gastrointestinal discomfort, especially with lower-bioavailability forms

Contraindications

Diphenhydramine and doxylamine: narrow-angle glaucoma, prostatic enlargement with urinary outflow obstruction, severe liver disease

Valerian: planned surgery under general anesthesia in the coming days — possible interaction with anesthetic agents

Melatonin: pregnancy and breastfeeding without medical consultation, autoimmune diseases requiring caution

Interactions

Combining several sedating agents at once (e.g. melatonin with diphenhydramine) increases the risk of excessive sedation without a proportionally better effect on sleep

Alcohol enhances the sedative effect of all the substances described here and worsens sleep architecture regardless of which agent is used

Anticoagulants and immunosuppressants may interact with melatonin, warranting medical consultation

Anticholinergic medications (some allergy medications, some overactive-bladder drugs) add to diphenhydramine's effect, worsening dry mouth and cognitive-impairment risk

Antihypertensive medications may theoretically enhance L-theanine's mild blood-pressure-lowering effect

Caffeine consumed later in the day weakens the effectiveness of each of these agents, since it blocks adenosine receptors and keeps central nervous system arousal high

Is it worth taking?

Who it's for

  • People with occasional, mild difficulty falling or staying asleep looking for an informed choice suited to their problem
  • Travelers crossing multiple time zones or working shift schedules, for whom circadian-rhythm disruption is the key issue
  • People with mild muscle tension or mental arousal that hinders winding down in the evening
  • People who want to avoid unnecessarily combining several sedating agents at once

Not for

  • Diphenhydramine and doxylamine: narrow-angle glaucoma, prostatic enlargement with urinary outflow obstruction, severe liver disease
  • Valerian: planned surgery under general anesthesia in the coming days — possible interaction with anesthetic agents
  • Melatonin: pregnancy and breastfeeding without medical consultation, autoimmune diseases requiring caution

Evidence

Worth knowing

Among the over-the-counter agents evaluated, extended-release melatonin has the most consistent data confirming efficacy, especially in older adults.

Valerian and diphenhydramine, despite how widely they're used, have relatively weak efficacy evidence in systematic reviews.

Diphenhydramine, as a first-generation antihistamine, develops pharmacological tolerance considerably faster than melatonin.

Unlike the other substances described here, L-theanine doesn't cause sedation and can also be used during the day.

Studies

Among the over-the-counter agents evaluated, melatonin — especially in studies of older adults with diagnosed insomnia — showed the most consistent, statistically significant effect on sleep parameters with a good safety profile.

Almond SM et al., Senior Care Pharmacist, 2021 (systematic review)

Over-the-Counter Agents for the Treatment of Occasional Disturbed Sleep or Transient Insomnia: A Systematic Review of Efficacy and Safety

Moderate evidence

Culpepper L, Wingertzahn MA · The Primary Care Companion for CNS Disorders · 2015

A systematic review evaluating the efficacy and safety evidence for popular over-the-counter sleep agents (diphenhydramine, doxylamine, melatonin, valerian), finding markedly uneven evidence quality between substances.

View study

A Systematic Review of the Efficacy and Safety of Over-the-Counter Medications Used in Older People for the Treatment of Primary Insomnia

Moderate evidence

Almond SM, Warren MJ, Shealy KM, Threatt TB, Ward ED · Senior Care Pharmacist · 2021

A systematic review in older adults found that melatonin had the strongest evidence of a statistically significant improvement in sleep parameters without significant safety concerns, valerian showed no significant effect, and diphenhydramine improved sedation but without a clear safety advantage over other options.

View study

Sources & bibliography

Citations are illustrative for this demo version and require full bibliographic verification by the editorial team before production publication.

Compare with similar entries

About the authors of this entry

JW

Author

Julia Wiśniewska

Editor, Neurohacking & Sleep

Julia studied cognitive neuroscience planning an academic career, but partway through her PhD she realized she cared more about explaining research than running it. She started a podcast on sleep optimization — first for a handful of friends, now followed regularly by tens of thousands of listeners — and that podcast opened the door to writing for VitMode. She specializes in chronobiology, nootropics and recovery protocols, and her pieces often start from a question she asked herself during her own sleep experiments — including one memorable month living on a 28-hour "day," which she doesn't recommend anyone repeat. Off the clock, she sleeps surprisingly little for someone who writes about it professionally, and she's the first to laugh about it.

78 publications on this site

MN

Medical review

Michał Nowak

Clinical Dietitian

Michał started out as a long-distance runner, before an injury forced him to rethink his career. Looking for a faster way back into shape, he discovered sports nutrition and never left — fascinated by the gap between the research and what "everyone knows" at the gym. He completed a degree in clinical dietetics, earned a sports-nutrition coaching certification, and ran his own practice for several years before joining VitMode. His writing keeps returning to one theme: a supplement won't replace the basics, but the right one, at the right time, makes a real difference — and that's the difference he tries to describe precisely, with citations instead of slogans. He still runs, though these days, as he puts it, purely for the fun of it.

129 publications on this site

Published: September 24, 2026Updated: September 24, 2026

Related entries

Mężczyzna spokojnie śpiący w przytulnym, ciepłym pomieszczeniu4.6

Melatonin

The hormone that governs your circadian rhythm — as a supplement it works better at resetting the body clock than as a classic 'sleeping pill.'

SenStrong evidence
Kapsułki i tabletki suplementów na marmurowym blacie4.7

Magnesium

A cofactor for more than 300 enzymatic reactions — essential for neuromuscular function, sleep and energy metabolism.

SuplementyStrong evidence
Elegancka taca z dzbankiem herbaty i zielonymi liśćmi4.5

L-Theanine

An amino acid from tea leaves, most often paired with caffeine to smooth out its stimulating effect.

NootropyModerate evidence
Sproszkowany suplement w przezroczystej miarce na białym tle4.5

Glycine

The simplest protein-building amino acid, which also acts as an inhibitory neurotransmitter — taken as a supplement before bed, it shortens time to fall asleep and improves subjective sleep quality through a mild drop in body temperature, without the sedative action typical of classic sleep medication.

SenModerate evidence
Kobieta leżąca w łóżku w nocy, niemogąca zasnąć4.7

Insomnia

Chronic difficulty falling or staying asleep isn't just a matter of 'sleep hygiene' — the best-studied intervention, recommended as first-line treatment, is cognitive behavioral therapy for insomnia (CBT-I), not sleeping pills.

SenStrong evidence
Smartwatch wyświetlający zapis danych ze śledzenia snu4.6

Orthosomnia — Obsession with Sleep-Tracking Data

The harder you try to optimize your sleep based on your watch's data, the worse you might actually sleep — orthosomnia is a documented phenomenon in sleep medicine in which an obsessive pursuit of a 'perfect' tracker score becomes, by itself, a cause of insomnia.

SenEarly-stage evidence
Terapeuta i pacjentka podczas sesji rozmowy w gabinecie4.7

CBT-I (Cognitive Behavioral Therapy for Insomnia)

CBT-I is a structured, multi-component treatment program — not a single technique or a list of sleep-hygiene tips — that US and European clinical guidelines recommend as first-line treatment for chronic insomnia, ahead of sleep medication.

SenStrong evidence
Młoda kobieta ze smutkiem patrząca w bok, siedząc na łóżku4.7

Sleep and Mental Health

Insomnia isn't just a symptom accompanying depression or anxiety — the largest randomized intervention trial in psychiatric history showed that improving sleep directly reduces paranoia, hallucinations, anxiety, and low mood.

SenStrong evidence

Related articles

Pomarańczowe żelki witaminowe wysypujące się z butelki na białym tleAktualności

More Children Are Ending Up in the ER After Melatonin Poisoning — What the New Data Shows

US poison control centers have recorded a sharp rise in accidental melatonin poisonings among children over the past decade. We explain what's behind it and how to safely store this popular supplement at home.

AKdr Anna Kowalczyk6 min

August 4, 2026

Trzy brązowe butelki z tabletkami magnezu na jasnoróżowym tlePoradniki

Which Magnesium Should You Choose? Glycinate, Citrate or Lactate — Comparing the Forms

The supplement shelf can be overwhelming: glycinate, citrate, lactate, oxide, chelate... We compare the most popular forms of magnesium for absorption, price, and what each one is actually best suited for.

PZdr Piotr Zieliński10 min

August 18, 2026

Ciepło oświetlony stolik nocny z cyfrowym zegarem i lampkąPoradniki

Melatonin, Magnesium, or L-Theanine? Comparing Sleep Supplements

The three most popular over-the-counter options for better sleep — and each works through a completely different mechanism. We look at which situation calls for which one, instead of reaching for all three at once.

JWJulia Wiśniewska10 min

August 18, 2026

Widok zachodu słońca przez okno samolotuPoradniki

Melatonin and Jet Lag: What Do Clinical Trials Actually Say?

Melatonin is one of the few "jet lag" supplements to have earned its own Cochrane review — an organization regarded as the gold standard of rigor in evidence-based medicine. The conclusion from that review is surprisingly clear-cut by supplement-science standards, but comes with an honest caveat: it's an evidence base over two decades old, worth knowing precisely because newer, equally solid work rarely replaces it.

JWJulia Wiśniewska11 min

August 25, 2026

Comments (2)

  • KW

    Kasia W. 2 weeks ago

    Very clearly explained, especially the interactions section — I hadn't seen it laid out this well anywhere else.

  • MT

    Marek T. a month ago

    Are you planning to update this with the newest study from this year? I saw an interesting meta-analysis.