med study partner

Articles & Guides › Articles › Psychiatry & Behavioral Health

Sleep physiology and sleep disorders

The EEG stages of sleep and the brain systems that control sleep and waking, how insomnia and circadian rhythm disorders are treated, why loss of orexin causes narcolepsy, and how non-REM and REM parasomnias and restless legs syndrome differ.

Psychiatry & Behavioral Health · 6 min read · Reviewed 2026-11-09

Sleep is an active, tightly regulated state. A circadian clock in the hypothalamus decides when we sleep, a pressure that builds during waking decides how much, and a set of brain switches flips between waking, non-REM and REM sleep[1]. Most sleep disorders make sense once you know which part of this system has gone wrong: the clock in circadian disorders, the wake-promoting orexin system in narcolepsy, and the boundaries between sleep stages in the parasomnias. This article covers normal sleep and then each group of disorders.

Key points

  • Stage N2 makes up the largest share of adult sleep; N3 (delta waves) is deepest and hosts sleepwalking and night terrors; REM has a waking-like EEG, dreaming and paralysis of the skeletal muscles.
  • Deep sleep dominates early in the night and REM late. With age, deep sleep and REM decrease.
  • CBT for insomnia is first-line treatment for chronic insomnia; avoid diphenhydramine in older adults.
  • Narcolepsy type 1 is caused by loss of orexin neurons in the lateral hypothalamus, causing sleepiness, cataplexy, sleep paralysis and dream-like hallucinations at sleep onset.
  • REM sleep behavior disorder (acting out dreams) often precedes Parkinson disease or Lewy body dementia. Restless legs syndrome is linked to iron deficiency.

Sleep stages and sleep physiology

The stages

StageEEGShare of adult sleepFeatures
Awake, eyes openBeta—Alert
Awake, eyes closedAlpha—Relaxed
N1ThetaAbout 5%Lightest sleep; sudden jerks
N2Sleep spindles and K complexesAbout 45% to 50% (largest)Teeth grinding
N3Delta (slowest, largest waves)About 15% to 25%Hardest to wake; growth hormone peaks; sleepwalking, night terrors and bedwetting
REMLow-voltage, mixed, beta-like; sawtooth wavesAbout 20% to 25%Dreaming, rapid eye movements, paralysis of skeletal muscle except the eyes and diaphragm, variable pulse and blood pressure, genital engorgement

A cycle from N1 through N3 and back to REM lasts about 90 minutes, repeating four or five times a night. Deep sleep dominates the first half of the night, and REM periods lengthen toward morning.

What controls sleep

  • The suprachiasmatic nucleus of the hypothalamus is the circadian clock. Light reaching it through the retina sets the clock, and it signals the pineal gland to release melatonin at night.
  • Waking is maintained by orexin (hypocretin) neurons in the lateral hypothalamus, together with norepinephrine, serotonin, histamine, acetylcholine and dopamine.
  • Sleep is promoted by GABA neurons in the ventrolateral preoptic nucleus and by adenosine, which builds up while awake; caffeine blocks adenosine receptors.
  • REM sleep is generated by cholinergic neurons in the pons and suppressed by norepinephrine and serotonin[1].

Age and drugs

Infants spend about half their sleep in REM. With age, total sleep, deep sleep and REM all decrease[2]. Benzodiazepines reduce deep and REM sleep; alcohol helps people fall asleep but fragments the second half of the night; most antidepressants suppress REM; depression shortens the time to the first REM period.

Insomnia and circadian rhythm disorders

Insomnia disorder

Trouble falling asleep, staying asleep or waking too early on at least 3 nights a week for 3 months, despite enough opportunity to sleep, with daytime impairment[3]. Look for causes such as depression, anxiety, pain, sleep apnea, restless legs, caffeine, alcohol and medications.

Cognitive behavioral therapy for insomnia (CBT-I) is the recommended first-line treatment for chronic insomnia in adults[4]. It includes:

  • stimulus control: use the bed only for sleep and sex, and get up if not asleep after about 20 minutes;
  • sleep restriction: limit time in bed to build sleep pressure;
  • sleep hygiene: a regular wake time, no caffeine after midday and no screens in bed;
  • relaxation and work on worries about sleep.

Medicines are for short-term use or when CBT-I is not enough: Z-drugs such as zolpidem (which can cause sleepwalking and sleep driving), orexin receptor antagonists such as suvorexant, low-dose doxepin and ramelteon. Long-term benzodiazepines and sedating antihistamines such as diphenhydramine should be avoided in older adults because of confusion and falls.

Circadian rhythm disorders

DisorderPatternTypical personTreatment
Delayed sleep-wake phaseCannot fall asleep until very late, cannot wake for school or work; sleeps normally on own scheduleTeenagers and young adultsMorning bright light, evening melatonin
Advanced sleep-wake phaseSleepy early in the evening, wakes very earlyOlder adultsEvening bright light
Shift work typeInsomnia in the sleep period, sleepiness at workNight and rotating shift workersTimed light and naps, a dark bedroom, melatonin; modafinil for sleepiness
Jet lagMismatch after crossing time zones; worse flying eastTravelersTimed light and melatonin

Narcolepsy

Features

  • Excessive daytime sleepiness with irresistible sleep attacks; short naps are refreshing.
  • Cataplexy: sudden, brief, bilateral loss of muscle tone set off by strong emotion, usually laughter, with consciousness preserved.
  • Hallucinations while falling asleep or waking, and sleep paralysis.
  • Broken night-time sleep. Onset is usually in adolescence or young adulthood[5].

Cause

Narcolepsy type 1 is caused by loss of orexin-producing neurons in the lateral hypothalamus, probably through an autoimmune attack; it is strongly linked to the HLA-DQB1∗06:02 allele. Without orexin, the switch between waking and REM sleep becomes unstable, so pieces of REM, such as paralysis and dreaming, intrude into wakefulness[5].

Diagnosis and treatment

Overnight polysomnography excludes other causes, and the next day a multiple sleep latency test shows falling asleep in 8 minutes or less on average with two or more episodes of REM within 15 minutes of sleep onset. Low orexin in cerebrospinal fluid confirms type 1. Treatment combines scheduled naps with wake-promoting drugs (modafinil, solriamfetol, pitolisant or stimulants). Cataplexy responds to sodium oxybate, pitolisant or REM-suppressing antidepressants[5].

Parasomnias and restless legs syndrome

Non-REM versus REM parasomnias

Non-REM parasomniasREM parasomnias
ExamplesSleep terrors, sleepwalking, confusional arousalsNightmare disorder, REM sleep behavior disorder
TimingFirst third of the night, during deep sleepLast third of the night, during REM
On wakingHard to wake, confused, no memoryWakes fully and remembers the dream
Typical personChildrenNightmares: any age, common in PTSD. REM sleep behavior disorder: men over 50

Non-REM parasomnias are managed with reassurance, safety measures and avoiding sleep deprivation; most children outgrow them.

REM sleep behavior disorder

In REM sleep behavior disorder, the normal paralysis of REM sleep is lost, so people act out their dreams, punching, kicking or shouting and sometimes injuring a bed partner. Polysomnography shows REM sleep without paralysis. It is a strong early marker of synucleinopathies: most people later develop Parkinson disease, dementia with Lewy bodies or multiple system atrophy[6]. Melatonin or clonazepam and a safe sleep setting are the treatment.

Restless legs syndrome

An urge to move the legs, often with uncomfortable crawling feelings, that is worse at rest and in the evening and relieved by movement. It is linked to iron deficiency (check ferritin), kidney failure, pregnancy and neuropathy, and can be worsened by antihistamines, dopamine blockers and SSRIs. Treatment is iron replacement when ferritin is low, then gabapentin or pregabalin as first-line drugs. Dopamine agonists work but can cause augmentation, in which symptoms come earlier and grow worse[7].

Common confusions

  • REM sleep: the EEG looks awake but the body is paralyzed, which is why it is called paradoxical sleep.
  • Delayed sleep phase versus insomnia: people with delayed sleep phase sleep well on their own schedule; people with insomnia cannot.
  • Narcolepsy versus obstructive sleep apnea: in sleep apnea, naps are not refreshing and there is snoring and no cataplexy.
  • Cataplexy versus atonic seizures: cataplexy preserves consciousness and is triggered by emotion.

References

  1. Saper CB, Scammell TE, Lu J. Hypothalamic regulation of sleep and circadian rhythms. Nature. 2005;437(7063):1257-1263. doi:10.1038/nature04284 Link ↩
  2. Ohayon MM, Carskadon MA, Guilleminault C, Vitiello MV. Meta-analysis of quantitative sleep parameters from childhood to old age in healthy individuals: developing normative sleep values across the human lifespan. Sleep. 2004;27(7):1255-1273. doi:10.1093/sleep/27.7.1255 Link ↩
  3. American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders. 5th ed, text revision. American Psychiatric Association Publishing; 2022. doi:10.1176/appi.books.9780890425787 Link ↩
  4. Qaseem A, Kansagara D, Forciea MA, Cooke M, Denberg TD; Clinical Guidelines Committee of the American College of Physicians. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Ann Intern Med. 2016;165(2):125-133. doi:10.7326/M15-2175 Link ↩
  5. Scammell TE. Narcolepsy. N Engl J Med. 2015;373(27):2654-2662. doi:10.1056/NEJMra1500587 Link ↩
  6. Postuma RB, Iranzo A, Hu M, et al. Risk and predictors of dementia and parkinsonism in idiopathic REM sleep behaviour disorder: a multicentre study. Brain. 2019;142(3):744-759. doi:10.1093/brain/awz030 Link ↩
  7. Silber MH, Buchfuhrer MJ, Earley CJ, et al. The management of restless legs syndrome: an updated algorithm. Mayo Clin Proc. 2021;96(7):1921-1937. doi:10.1016/j.mayocp.2020.12.026 Link ↩

Test yourself in the Question Bank · Listen to the podcasts