SLEEP LAB · NIGHT SESSION ACTIVE · TOPIC: INSOMNIA & SLEEP MEDICATION · REF: AASM / NHLBI / FDA
Sleep medicine · Chronic condition

Insomnia is not a failure of will. It is a disorder of the sleep system — and it has a first-line treatment that is not a pill.

Roughly one in three American adults reports difficulty sleeping, and about 10 percent meet criteria for chronic insomnia. What separates the people who recover from those who stay stuck is rarely the sleeping pill they choose. It is whether they understand how sleep is structured, and whether they try CBT-I before (or alongside) medication.

15 min read
AASM-aligned guidance
Hypnogram · 5 drug classes
1 in 3
U.S. adults report difficulty falling or staying asleep on most nights.
10%
Meet criteria for chronic insomnia disorder — three months or longer, 3+ nights per week.
4–8
Sessions of CBT-I — the first-line treatment, with effects that outlast any medication.
90 min
Sleep cycle length — roughly five cycles per night, with REM dominating the second half.
Section 01 · The architecture

Sleep is not one state. It is four stages cycling through the night.

Sleep is not the absence of wakefulness. It is an active, highly organized process in which the brain passes through distinct stages in a predictable pattern — each with its own brainwave signature, its own purpose, and its own role in memory, immunity, metabolism, and mood. Disruption of any stage produces measurable consequences, which is why the "sleep is sleep" assumption misses most of what sleep medicine actually cares about.

A normal night contains four to six cycles of about 90 minutes each. Each cycle begins in light sleep, descends into deep sleep, and ends in REM. Deep sleep dominates the first half of the night; REM dominates the second half. This is why going to bed late — even if the total hours are preserved — produces a night that is short on REM, and why waking up early cuts REM disproportionately.

STAGE · N1

Light transition

The brief passage from wake to sleep. Muscle tone begins to relax, breathing slows, and the brain produces slow theta waves. Most people do not perceive N1 as "sleep" — this is the stage in which the sensation of falling occurs.

STAGE · N2

Core sleep

The largest single block of the night. The brain produces characteristic sleep spindles and K-complexes — brief bursts of activity that are thought to play a role in memory consolidation and in shielding sleep from outside noise.

STAGE · N3

Deep / slow-wave sleep

The most restorative stage. High-amplitude delta waves, lowest heart rate and blood pressure of the night. Growth hormone is released, tissue repair occurs, and declarative memory is consolidated. Concentrated in the first hours of the night.

STAGE · REM

Rapid eye movement sleep

The dreaming stage. The brain is as active as in wakefulness but the body is atonic — a temporary paralysis that prevents acting out dreams. Emotional memory is processed and creativity is supported. Dominates the last third of the night.

Section 02 · Reading the hypnogram

The single graph that tells the whole story — and what each disruption looks like.

A hypnogram charts which stage of sleep a person is in throughout the night. Reading one reveals the shape of a person's sleep — and where the problems live.

Pattern What it looks like What it means clinically
Sleep-onset insomnia Long flat line at "Wake" Difficulty falling asleep. Often linked to anxiety, conditioned arousal, or circadian misalignment. CBT-I with sleep restriction is highly effective.
Sleep-maintenance insomnia Multiple rises to Wake Fragmented sleep with awakenings through the night. Frequently associated with nocturia, pain, or obstructive sleep apnea.
Early-morning awakening Final Wake at 03:00–04:00 Waking hours before the target and unable to return to sleep. A classic symptom of major depression — always worth screening.
Reduced deep sleep Shallow N3 descent Low slow-wave sleep is common in older adults and in chronic pain, and is linked to impaired glucose tolerance and fatigue.
Reduced REM Few REM blocks Often caused by SSRIs, SNRIs, alcohol, and some sleep medications. Relevant for emotional regulation and memory processing.
Sleep apnea pattern Repeated sawtooth rises Recurrent awakenings followed by abrupt return to N2. Suggests obstructive sleep apnea — requires a sleep study, not a sedative.
Section 03 · Medication classes

Five drug classes used for sleep — and what each one actually does.

Sleep medications differ more than most patients expect. Some are designed for short-term use only; others are approved for longer. The class matters far more than the specific brand.

Orexin receptor antagonists
DORAs · "night-orexin" pathway

Block orexin — the brain's wake-promoting neuropeptide. Rather than sedating the central nervous system, these drugs turn down the wake signal itself, which produces a sleep architecture that more closely resembles natural sleep than older hypnotics.

Approved for long-term use in chronic insomnia — the first class ever approved for that indication. Common side effects include next-day somnolence and, rarely, sleep paralysis or complex sleep behaviors. Schedule IV controlled substances.

Examplessuvorexant · lemborexant · daridorexant
Z-drugs — non-benzodiazepine hypnotics
"Z-class" · short-term use

Act on the same GABA-A receptor as benzodiazepines but with more selectivity for sleep-promoting subtypes. Onset is fast (15–30 minutes) and the effect is reliable — which is why they have been so widely prescribed.

Concerns include tolerance, next-day impairment, sleepwalking, and complex sleep behaviors (rare but serious). FDA requires a boxed warning for these. Approved for short-term use; not intended for nightly use beyond a few weeks.

Exampleszolpidem · zaleplon · eszopiclone
Benzodiazepines — rarely for sleep now
Long-acting · high dependence risk

Historically the standard sleep aid but now largely avoided for insomnia. They reduce sleep latency but suppress deep sleep and REM, and produce tolerance within weeks. Long-term use creates physiological dependence with difficult withdrawal.

Still appropriate for short-term use in specific situations — acute anxiety, certain medical procedures, alcohol withdrawal. Not appropriate as chronic insomnia treatment.

Examplestemazepam · lorazepam · diazepam · clonazepam
Sedating antidepressants
Off-label · common in practice

Low-dose trazodone, mirtazapine, and doxepin are widely prescribed for insomnia, especially when depression or anxiety is also present. Trazodone at 25–100 mg is the single most-prescribed off-label sleep aid in U.S. outpatient practice.

They do not carry the dependence risk of benzodiazepines. Side effects include morning grogginess, dry mouth, and orthostatic hypotension. Not FDA-approved for insomnia except low-dose doxepin (Silenor).

Examplestrazodone · mirtazapine · doxepin (low-dose)
Melatonin & melatonin agonists
Circadian · low dependence

Melatonin is a hormone, not a sedative. Its primary role is shifting circadian timing, which is why it works best for jet lag and shift work — and why the evidence for general insomnia is modest.

Ramelteon is an FDA-approved prescription melatonin receptor agonist with minimal dependence risk. Over-the-counter melatonin varies widely in actual content between brands. Typical effective doses are 0.5–3 mg, taken 30–60 minutes before target bedtime.

Examplesmelatonin (OTC) · ramelteon (Rx)

A practical note that comes up at nearly every sleep clinic visit: antihistamines like diphenhydramine (Benadryl) are not good sleep aids. They are commonly sold as "PM" formulations, but tolerance to their sedative effect develops within days, they cause significant next-day impairment, and long-term use is associated with cognitive effects in older adults. They are not recommended for chronic insomnia by any major guideline.

Section 04 · First-line treatment

CBT-I: the treatment that outperforms every sleep medication.

Cognitive Behavioral Therapy for Insomnia is recommended as first-line treatment for chronic insomnia by both the American College of Physicians and the American Academy of Sleep Medicine. It is not relaxation advice. It is a structured program with specific components, each targeting a mechanism that maintains insomnia.

The five components of CBT-I
First-line
COMPONENT · 01

Sleep restriction

Limiting time in bed to the actual hours slept. Counterintuitive but central. Consolidates sleep and rebuilds sleep drive. Time in bed is then gradually extended as sleep improves.

COMPONENT · 02

Stimulus control

The bed is reserved for sleep and sex only. No reading, scrolling, working, or watching TV in bed. Retrains the brain to associate the bed with sleep rather than with wakefulness and frustration.

COMPONENT · 03

Cognitive restructuring

Identifying and reframing the catastrophic thoughts that accompany insomnia — "I will fail tomorrow," "I will never sleep again." Reduces the arousal that maintains the insomnia.

COMPONENT · 04

Relaxation training

Progressive muscle relaxation, diaphragmatic breathing, and guided imagery — taught as skills, not as one-off techniques. Useful in the wind-down period before bed.

COMPONENT · 05

Sleep hygiene

Environmental and behavioral basics — consistent wake time, dark cool room, no caffeine after noon, no alcohol near bedtime. Necessary but not sufficient on their own; hygiene alone rarely resolves chronic insomnia.

What distinguishes CBT-I from medication is durability. Randomized trials consistently show that CBT-I produces larger and longer-lasting improvement than hypnotics, with benefits that persist after treatment ends. Medication typically works while it is being taken and stops when it is stopped. CBT-I changes the underlying behavior pattern.

Access used to be the primary barrier — trained CBT-I providers are not available in every community. In recent years that has changed substantially: digital CBT-I programs delivered through apps and telehealth platforms have been validated in randomized trials, and several are covered by insurance. For many patients, a structured digital program is now a reasonable first-line option rather than a fallback.

Section 05 · Sleep hygiene

Six habits that reliably improve sleep — and are worth doing alongside treatment.

Consistent wake time

Anchoring wake time — same time every day, weekends included — is the single most powerful habit for the circadian system. It matters more than bedtime.

Morning light exposure

Bright light within the first hour of waking stabilizes the circadian rhythm. 10–30 minutes outdoors works better than indoor lighting.

Caffeine cutoff

Caffeine has a half-life of 5–6 hours. A cup at 3 p.m. leaves half of it in the system at 9 p.m. Cutting off caffeine by noon improves sleep depth noticeably for many people.

Alcohol: less is more

Alcohol shortens time to fall asleep but fragments sleep in the second half of the night and suppresses REM. Even one drink in the evening can measurably reduce sleep quality.

Cool, dark room

The core body temperature must drop for sleep to begin. A room at 65–68°F (18–20°C) is comfortable for most people. Blackout curtains help if light wakes you.

Don't lie awake in bed

If you are awake more than 20 minutes, get up. Do something calm in dim light until sleepy, then return. Lying awake teaches the brain that bed is for frustration.

Section 06 · When it is not insomnia

Some sleep problems are not treated with a sleeping pill.

Several serious conditions masquerade as insomnia. Screening for them — before reaching for medication — is what separates good sleep medicine from the alternative.

Rule out these first

If any of these apply, tell a clinician before starting sleep medication.

Loud snoring with pauses in breathing, or waking up gasping. Suggests obstructive sleep apnea, which requires a sleep study — not a sedative, which can worsen it.
Excessive daytime sleepiness despite adequate time in bed. May indicate narcolepsy, idiopathic hypersomnia, or severe sleep apnea.
Uncontrollable urge to move the legs at night, relieved by movement. Suggests restless legs syndrome — treatable with iron studies and specific medications.
Acting out dreams — talking, kicking, or jumping out of bed. Suggests REM sleep behavior disorder, which warrants neurological evaluation.
Waking 2–3 hours early with low mood, loss of interest, or persistent sadness. Depression is a leading cause of insomnia and requires its own treatment.
Frequent nighttime urination (2+ times). May signal diabetes, prostate enlargement, heart failure, or a diuretic that needs timing adjustment.
Section 07 · Access & affordability

Sleep medication is not expensive — but the price varies more than it should.

Several sleep medications are available as low-cost generics in the United States. Trazodone, zolpidem, and low-dose doxepin all have widely available generics priced well below their original brand versions. Melatonin is inexpensive over the counter. Newer orexin antagonists (suvorexant, lemborexant, daridorexant) remain brand-only and are considerably more expensive, though they are increasingly covered by insurance when documented as continuing therapy for chronic insomnia.

Where the price still varies widely is at the pharmacy counter. The same generic tablet can cost several times more at one licensed seller than another. A live prescription price comparison shows the current range in about two minutes, and the same logic applies to every generic on a patient's list. If you are filling an online refill for the first time, the process is documented step by step in this how to order prescriptions online guide — prescription first, licensed seller second, small first order third.

One practical warning specific to sleep medication: do not skip nights to stretch a prescription. Z-drugs and orexin antagonists are not effective when taken intermittently against chronic insomnia, and stopping them abruptly can cause rebound insomnia. If the medication is unaffordable, tell the prescriber — there is almost always a lower-cost generic alternative or a CBT-I program that could replace it entirely.

Before filling from any seller — online or local — verify them. A working VIPPS seal that resolves to a live NABP record, a real U.S. street address, and a prescription requirement that cannot be waived. A transparency page like this one about Metformin4You is a reasonable example of the standard to expect.

Section 08 · Questions

Five asked most often at the sleep clinic.

Q·01 What is the difference between acute and chronic insomnia? +
Acute insomnia lasts less than three months and is usually triggered by a stressor, travel, or illness; it often resolves on its own. Chronic insomnia lasts three months or longer, occurring at least three nights per week, and usually requires treatment — with cognitive behavioral therapy for insomnia (CBT-I) as the first-line approach.
Q·02 Are sleeping pills safe for long-term use? +
Most prescription sleep medications are approved for short-term use only. Benzodiazepines and Z-drugs carry risks of tolerance, dependence, and next-day impairment, and are not recommended for long-term nightly use in most patients. Melatonin receptor agonists and orexin antagonists have more favorable long-term profiles but still require medical supervision.
Q·03 What is CBT-I and why is it first-line treatment? +
Cognitive Behavioral Therapy for Insomnia (CBT-I) is a structured, typically 4–8 session program combining sleep restriction, stimulus control, cognitive restructuring, and relaxation training. It is recommended as first-line treatment for chronic insomnia by the American College of Physicians and the American Academy of Sleep Medicine because it produces durable improvement without medication side effects.
Q·04 Does melatonin actually work? +
Melatonin is most effective for circadian rhythm disorders — jet lag and shift work — where it shifts the timing of sleep. Evidence for general insomnia is modest. Typical doses of 0.5 to 3 mg taken 30–60 minutes before target bedtime are as effective as higher doses and cause fewer next-day effects.
Q·05 When should I see a doctor about sleep problems? +
See a clinician if insomnia lasts more than three months, if you snore heavily or wake gasping, if you experience excessive daytime sleepiness despite adequate time in bed, or if sleep problems interfere with work, driving, or mood. Snoring with pauses in breathing suggests obstructive sleep apnea, which requires evaluation — not a sleeping pill.
◆ Sources & Verification
This reference is aligned with public clinical guidance from the American Academy of Sleep Medicine, the National Heart, Lung, and Blood Institute (NIH), and the U.S. Food and Drug Administration's BeSafeRx program. Drug-label information draws on the National Library of Medicine's DailyMed database and MedlinePlus. Pharmacy verification follows the NABP VIPPS program.
◆ Before the next refill

Sleep is a system. So is prescription pricing.

Most sleep medications are available as low-cost generics, and the same tablet can cost several times more at one licensed pharmacy than another. A two-minute comparison across licensed U.S. sellers is a useful habit to build before your next refill. Begin with the current Metformin price comparison as a live demonstration of how wide the spread runs.

Open the price comparison