Module 22: Sleep

Cycles, stages, hygiene, and circadian rhythms

Part A · the architecture of a night's sleep — the 90-minute cycle
A typical 8-hour night contains 4–5 complete cycles
Each cycle lasts roughly 90 minutes. The composition changes across the night: early cycles are dominated by deep sleep (N3); later cycles contain more REM. This is why the last 2 hours of sleep are disproportionately rich in dreaming — and why cutting sleep short costs you mostly REM, not deep sleep.
A single 90-minute cycle — stages in order
N1 (5 min)
N2 (20–25 min)
N3 deep (20–40 min)
N2 brief
REM (10–60 min)
N1 light N2 true sleep N3 deep/slow-wave REM (dreaming)
How the cycle composition shifts across a full night
Cycle 1 (~11pm–12:30am)
Heavy deep sleep, minimal REM
Cycle 2 (~12:30–2am)
Still substantial deep sleep, more REM
Cycle 3 (~2–3:30am)
Deep sleep diminishing, REM growing
Cycle 4–5 (~3:30–7am)
Almost entirely REM — the dream-heavy second half of sleep
The alarm clock problem: Most people set an alarm that cuts off the final 1–2 cycles. This disproportionately removes REM sleep — the stage most critical for emotional regulation, creativity, and memory consolidation. Waking up mid-REM (when you were dreaming) produces the grogginess called sleep inertia. The 90-minute rule: if you need to wake at 7am, count back in 90-minute increments — bedtimes of 11:30pm, 10pm, or 8:30pm all align with cycle boundaries and produce gentler waking.
Bedtime calculator — align with 90-min cycle boundaries
Wake-up time
Cycles wanted
Enter your wake time and click calculate.
Part B · the four sleep stages — what happens in each
Stage N1 — light sleep / hypnagogic state1–7 min, ~5% of sleep

Brain waves

Alpha waves slow to theta waves. Easily awakened — "not really asleep yet."

What happens

Muscle tone decreases. Eyes move slowly. Hypnic jerks (that sudden falling sensation) are common — a muscle twitch as the body releases tension.

Hypnagogia

The border state between waking and sleep. Vivid, dreamlike images, sounds, or sensations that are not yet full dreams. Salvador Dalí deliberately induced this state for creative inspiration.

N1 is the twilight zone of consciousness. Woken from N1, most people deny having been asleep at all. This is why "I was just resting my eyes" is often literally true — the person was in N1, barely unconscious.

Stage N2 — true sleep20–30 min per cycle, ~45–50% of total sleep

Brain waves

Sleep spindles (bursts of 12–14 Hz oscillations, 0.5–2 sec) and K-complexes (sharp negative waves). Both are unique to N2.

What happens

Heart rate and body temperature drop. Sensory processing significantly reduced. Sleep spindles are thought to be the brain "gating" sensory input to maintain sleep.

Memory function

Sleep spindles correlate strongly with motor memory consolidation. Learning a new physical skill (playing piano, typing) improves after N2-rich sleep.

A 20-minute "power nap" that stays in N2 (not reaching N3) leaves you refreshed, not groggy. The groggy nap problem is when you enter N3 and wake mid-cycle. The 20-minute cap is the practical application of this.

Stage N3 — deep sleep / slow-wave sleep (SWS)20–40 min early, near zero later, ~20% of total

Brain waves

Delta waves — the slowest, highest-amplitude brain waves. Less than 1 Hz. The brain is maximally synchronised and "quiet."

Physical repair

Growth hormone (GH) is secreted in its largest pulse of the day. Tissue repair, muscle growth, and immune strengthening all peak here. The body physically heals itself.

Brain cleaning

The glymphatic system (the brain's waste clearance network) is most active during N3. Cerebrospinal fluid flushes metabolic waste including amyloid-beta proteins associated with Alzheimer's disease.

N3 is the hardest stage to wake from — if woken, severe disorientation (sleep inertia) lasts 15–30 minutes. Sleepwalking and sleep talking occur in N3, not REM, explaining why sleepwalkers have no memory and are hard to rouse. Children spend proportionally more time in N3, explaining the depth of childhood sleep and growth hormone peaks.

REM — Rapid Eye Movement sleep10–60 min per cycle, ~20–25% of total — dreams here

Brain waves

Almost identical to waking brain — fast, low-amplitude, desynchronised. The brain is as active as when awake. Eyes dart rapidly (hence the name). Body is in voluntary muscle paralysis (atonia).

Dreaming

90–95% of vivid, narrative dreams occur in REM. Muscle atonia prevents acting out dreams. REM sleep behaviour disorder: atonia fails — people physically act out their dreams.

Functions

Emotional memory processing — reactivating memories but stripping the emotional charge: "overnight therapy." Creativity and insight through novel connections. Social and emotional learning.

REM is the most psychologically active stage. Norepinephrine (the stress chemical) is almost completely absent during REM — the only time in the 24-hour cycle when this happens. This is why REM is thought to provide emotional "overnight therapy": distressing memories are reprocessed in a neurochemically calm state.

Stage comparison at a glance
Stage % of night Primary function Brain state If disrupted
N1 ~5% Transition, hypnagogia Theta waves, relaxed Easily re-entered; minimal impact
N2 ~45–50% Motor memory, sensory gating Spindles, K-complexes Impaired skill learning, lighter sleep
N3 ~20% Physical repair, glymphatic flush Delta waves, near-silent Poor immunity, impaired tissue repair, Alzheimer's risk
REM ~20–25% Emotional processing, creativity Near-waking activity Depression, emotional dysregulation, impaired learning
Part C · dreams — why we have them, why we forget them, why we get nightmares

Why do we dream?

No single agreed theory — several plausible ones

Threat simulation theory (Antti Revonsuo): dreaming evolved to simulate threatening situations and rehearse responses. Memory consolidation theory: the sleeping brain replays and integrates experiences. Emotional processing (Matthew Walker): dreams allow safe processing of emotional memories. Default mode hypothesis: dreaming is simply the activated brain generating narrative from memory fragments. All are probably partly true.

Why do we forget dreams?

Memory requires norepinephrine — absent in REM

Dream memories are encoded only briefly. The same absence of norepinephrine that makes REM neurochemically calming also prevents strong memory encoding. You remember a dream only if you wake during or immediately after REM — within about 2 minutes. This is why late-morning alarm interruptions often produce vivid dream recall: you were woken mid-REM, which dominates the final cycles.

Why nightmares?

Emotional processing gone incomplete or overwhelmed

Nightmares occur when the REM emotional processing system can't adequately resolve distressing material. Causes: stress (unresolved daily anxiety reactivates), trauma (PTSD involves a hyperactivated amygdala flooding REM), certain medications (beta-blockers, some antidepressants), alcohol (suppresses REM, causing intense rebound dreaming on withdrawal nights), and fever (heightened brain activity during REM).

Lucid dreaming

Awareness that you're dreaming, during REM

Occurs when the prefrontal cortex — normally very inactive during REM — becomes activated enough for self-awareness while the rest of the brain remains in the dream state. About 55% of people have had at least one spontaneous lucid dream. Can be trained through reality-testing habits or the MILD technique. Used therapeutically for nightmare reduction in PTSD patients.

Sleep paralysis

Waking while muscle atonia is still active

The REM muscle paralysis persists briefly after the mind wakes. The person is conscious but cannot move, often accompanied by vivid hallucinations (a presence in the room, pressure on the chest). Terrifying but physically harmless. Occurs most often when sleeping on your back, sleep-deprived, or with disrupted sleep. Historically explained as demons, incubi, and the "old hag" across many cultures.

Insight and the sleeping brain

Documented creative breakthroughs from sleep

The prefrontal cortex (rational, inhibitory) is less active during REM, allowing the limbic system (emotional, associative) to dominate — producing unconstrained, cross-domain connections. The "incubation" effect is documented: deliberately thinking about a problem before sleep and waking with insight. Reported examples include the structure of the benzene ring (Kekulé), the melody of "Yesterday" (McCartney), and Mendeleev's periodic table arrangement.

Part D · the sleep hormones — your body's chemical clock
Interactive hormone timeline — drag to explore the 24-hour cycle
Melatonin
The "darkness hormone." Produced by the pineal gland when light fades (~2 hours before natural sleep time). Tells the body it's night. Does not cause sleep — signals its appropriateness. Peaks ~2–3am, fades as light returns. Suppressed by blue light (phone screens) — equivalent to a miniature sunrise signal.
Adenosine
The "sleep pressure" chemical. Produced as a by-product of brain activity — it accumulates steadily from the moment you wake. After ~16 hours, high adenosine creates overwhelming sleepiness. Sleep clears it. Caffeine works by blocking adenosine receptors (not reducing it) — when caffeine wears off, the accumulated adenosine floods in (the "crash").
Cortisol
The "wake-up" hormone. Rises sharply in the last 2 hours of sleep and peaks ~30 min after waking (the "cortisol awakening response"). This is what enables alertness on waking. Chronic sleep deprivation keeps cortisol elevated, causing chronic stress responses, impaired immunity, and metabolic disruption. Cortisol follows the opposite arc to melatonin across the 24-hour cycle.
Growth hormone (GH)
~70–80% of daily GH secretion occurs during the first slow-wave (N3) sleep episode — typically within 1 hour of falling asleep. GH drives tissue repair, muscle growth, fat metabolism, and immune function. This is why "sleep for gains" is physiologically real — skipping sleep cuts the primary GH pulse. Children and teenagers have dramatically higher GH secretion, explaining deep sleep and physical growth.
Caffeine half-life calculator — when is it safe to drink coffee?
Caffeine's half-life is ~5–6 hours. If you drink coffee at 3pm, about 25% remains in your system at midnight — blocking adenosine receptors and degrading sleep quality even if you fall asleep normally.
Coffee time
Mg of caffeine
Bedtime
Part E · sleep deprivation — what actually breaks, and when
Cognitive impairment vs. equivalent blood alcohol — the parallel that justifies concern
Hours awake 17 hrs 21 hrs 24 hrs 28 hrs BAC equivalent 0.05% — mildly impaired (under legal limit) 0.08% — legally drunk (US limit) 0.10% — clearly impaired 0.15%+ — severely impaired
Sources: Williamson & Feyer (2000), Dawson & Reid (1997). Impairment measured via psychomotor vigilance tasks — reaction time, sustained attention, and cognitive throughput.
Part F · chronotypes and daydreaming

Chronotype — your natural sleep timing

Partly genetic, age-dependent

Morning types ("larks") naturally wake early and feel alert in the morning. Evening types ("owls") naturally feel tired late and alert at night. Chronotype is ~50% heritable, encoded in clock genes (PER3, CLOCK). Teenagers' chronotypes shift dramatically later due to hormonal changes — a 16-year-old's biological night is genuinely 2 hours later than an adult's. "Just go to bed earlier" does not work against a biological clock.

The social jet lag problem

Work schedules misaligned with biology

When your chronotype requires sleeping until 8am but work demands 7am waking, you experience "social jet lag" every weekday — the equivalent of flying 1–2 time zones west each day. ~70% of people are not morning types. School start times before 8:30am impair academic performance, increase accident rates, and harm mental health in adolescents, whose biology makes early rising genuinely difficult.

Daydreaming — the default mode network

A specific brain state, not idleness

The Default Mode Network (DMN) — regions including the medial prefrontal cortex and posterior cingulate — activates when the brain is not focused on a task. Daydreaming, mind-wandering, self-reflection, and imagining the future all engage the DMN. It is the functional opposite of the task-positive network. The DMN was long considered "neural noise" until fMRI revealed it to be highly organised and metabolically expensive.

Why daydreaming is valuable

Incubation, creativity, and self-knowledge

The DMN integrates autobiographical memory, social cognition, and future planning. "Incubation" — a solution appearing after you stop consciously working on a problem — is thought to be the DMN making novel associations during mind-wandering. The creative insight that arrives in the shower is the DMN working while the task-positive network is inactive. Constant task-focus and constant phone-checking may suppress this integration process.

Chronotype distribution across the population
Extreme lark Moderate lark Intermediate (~50%) Moderate owl Strong owl Extreme owl ~5% ~20% ~50% ~18% ~7% Most people cluster near the middle
Approximate distribution based on Munich Chronotype Questionnaire (MCTQ) population data (Roenneberg et al.). Teenager chronotypes shift significantly toward the owl end and return toward intermediate in the mid-twenties.
Part G · sleep hygiene — the evidence behind each rule
Sleep hygiene checklist — tick what you already do
0 / 10

Light exposure timing

Morning light: the master reset

Getting bright natural light within 30–60 minutes of waking is the single most effective way to anchor your circadian rhythm. Sunlight activates the suprachiasmatic nucleus (SCN), suppresses residual melatonin, and sets a timer ~16 hours later for melatonin to rise again. Even an overcast day (~10,000 lux) is many times brighter than indoor lighting (~100–500 lux). Conversely, avoiding bright/blue light for 1–2 hours before bed preserves the melatonin signal.

Temperature — the overlooked variable

Core body temp must fall ~1°C to initiate sleep

The body sheds heat through the hands, feet, and face to cool core temperature — one reason warm hands and feet are associated with faster sleep onset. A bedroom temperature of 18–19°C (65–67°F) is consistently optimal in sleep research. A warm bath 1–2 hours before bed paradoxically helps sleep: it draws blood to the extremities, facilitating the core cooling that sleep requires. Cold bedrooms, not warm ones, are the correct target.

Consistency over duration

Same wake time every day — even weekends

A consistent wake time is more important than consistent bedtime, because waking sets the circadian clock. Variable wake times (sleeping in on weekends) shift your circadian phase, producing Monday morning grogginess equivalent to mild jet lag. "Sleep debt" is real but cannot be fully recovered in a single long sleep — it requires multiple nights of consistent adequate sleep. Weekend lie-ins provide short-term relief but perpetuate the cycle.

Exercise timing

Helps sleep — but timing matters less than often claimed

Regular exercise is one of the most effective non-pharmaceutical treatments for insomnia and poor sleep quality. It increases N3 slow-wave sleep and reduces sleep onset time. The concern about evening exercise disrupting sleep is overstated for most people — vigorous exercise within 1 hour of bed may delay sleep onset for some, but for many, the adenosine-building effect and temperature normalisation after exercise aids sleep. Individual response varies; track your own pattern.

Part H · the science of napping — types, timing, and the nappuccino
Interactive nap guide — choose a nap type
Select a nap type above to learn about it.

Are naps a sign of laziness?

No — they are biologically programmed

The post-lunch alertness dip (~1–3pm) is not caused by food; it is a hard-wired circadian feature present even in people who haven't eaten. Many cultures have historically incorporated an afternoon rest (siesta) in response to this biology. NASA research on sleepy military pilots found that a 40-minute nap improved performance by 34% and alertness by 100%. The stigma around napping is cultural, not scientific.

Napping and night sleep

Timing is critical — naps after 3pm bleed into night sleep

Napping reduces adenosine (sleep pressure). A nap after 3pm lowers sleep pressure so much that falling asleep at a normal time becomes difficult, and night sleep is lighter and shorter. The ideal nap window is 1–3pm — early enough to preserve night sleep pressure, late enough that you're past the post-morning alertness peak. Duration matters too: 10–20 minutes stays in N2; beyond 30 minutes risks N3 and sleep inertia on waking.

Cultures with afternoon rest

The biology is universal; the stigma is not

The siesta tradition (Spain, Mexico, Mediterranean, Middle East) aligns with the post-lunch biological dip. A 2007 Greek study found that people who took regular afternoon naps had a 37% lower risk of coronary death compared to non-nappers. Japan has "inemuri" — the practice of sleeping in public places during work or commuting — considered a sign of diligence (you worked so hard you needed rest), the complete opposite of western interpretations.

Part I · sleep across the lifespan — how needs and architecture change
Daily sleep needs and REM proportion by age group
18h 14h 10h 7h 5h Newborn 16h / 50% REM Infant 14h / 30% REM Child (6) 10h / 25% REM Teen 9h / 22% REM Adult 7.5h / 22% REM 65+ 6.5h / 18% REM Total sleep REM portion
Based on NSF and AASM guidelines. REM % is approximate and varies between individuals and measurement methods. The dramatic decline in REM from infancy to adulthood (50% → 20%) may reflect the role of REM in the developing brain's synaptic consolidation during early neural growth.

Why newborns sleep so much — and 50% is REM

REM drives brain development in infants

Newborns spend ~16 hours a day asleep, with roughly half in REM (called "active sleep" in infants because their eyes and body twitch visibly). This extreme REM proportion is not accidental: research suggests REM sleep in early life drives synaptogenesis — the formation of connections between neurons. The human brain is dramatically underdeveloped at birth compared to other mammals; REM sleep may be the mechanism completing that development postnatally.

Aging and sleep architecture

Deep sleep declines steeply after 40

Adults over 40 lose roughly 2% of N3 (deep slow-wave sleep) per decade. By the mid-60s, N3 may be half what it was at 25. This is not "needing less sleep" — it is the architecture degrading. Older adults often wake earlier (phase advance), sleep more lightly, and wake more frequently at night. The perception that older people need less sleep is partly a misreading of this phenomenon: they struggle to get deep sleep, not that they've stopped needing it.

Sleep during pregnancy

Architecture shifts dramatically across trimesters

First trimester: progesterone surges drive extreme sleepiness and REM disruption. Second trimester: often the best sleep window. Third trimester: N3 decreases sharply, waking increases (physical discomfort, urination, fetal movement). REM also decreases in late pregnancy. Postpartum sleep is profoundly fragmented — 6 months of repeated night wakings effectively produces the equivalent of chronic moderate sleep deprivation, with real cognitive and emotional consequences.

Part J · test yourself

1. You have an important exam at 9am tomorrow. Should you stay up until 2am studying, or sleep 8 hours and accept having studied less?

Sleep 8 hours — it is not even close. Sleep is not just rest; it is when learning is physically encoded into long-term memory. During waking, experiences are held in the hippocampus (short-term store). During N2 sleep spindles and N3 slow oscillations, these memories are transferred to the neocortex for long-term storage — a process called sleep-dependent memory consolidation. Staying up until 2am and sleeping 5 hours cuts this process roughly in half. You would be better off studying less but sleeping fully. Additionally, sleep deprivation impairs working memory, attention, and processing speed on the day of the exam — the very skills needed to perform. Experiments by Matthew Walker's lab showed that students who slept the night after learning retained 20–40% more than those who stayed awake.

2. Why does alcohol feel like it helps you sleep but actually makes sleep worse?

Alcohol is a sedative — it suppresses neural activity and does help you fall asleep faster. This is the genuine benefit. The damage comes in two ways. First, alcohol directly suppresses REM sleep in the first half of the night. The brain senses REM deprivation and triggers REM rebound in the second half — but this rebound REM is more intense, more emotionally vivid, and more likely to produce disturbing dreams. This is why drinking produces a night that feels fragmented and unrefreshing. Second, alcohol is a diuretic and disrupts body temperature regulation — both fragment sleep continuity. It also suppresses N3 in some studies. The net effect: alcohol-induced sleep provides less restorative benefit, less memory consolidation, and more emotional disturbance than natural sleep, even if you fell asleep faster.

3. What is the difference between sleepwalking and acting out a dream, and which stage of sleep does each occur in?

Sleepwalking (somnambulism) occurs during N3 deep sleep — when the brain is in its slowest wave state. The motor system activates partially while the brain remains largely in deep sleep. The person has no memory of the event, cannot be reasoned with, and appears blank if woken. Their eyes may be open but they are not conscious in any meaningful sense. Acting out dreams (REM Sleep Behaviour Disorder, RBD) is the opposite: it occurs during REM when the normal muscle paralysis (atonia) fails. The person physically performs the actions of their dream — punching, running, shouting — and may cause injury to themselves or a partner. Unlike sleepwalkers, RBD patients often recall what they were dreaming. RBD is clinically significant: it is a strong early predictor of Parkinson's disease and Lewy body dementia, appearing 5–15 years before neurological symptoms.

4. Why do teenagers genuinely struggle to sleep early, and is forcing them to wake at 7am for school harmful?

Teenagers experience a biological circadian phase delay — their internal clocks genuinely shift 2–3 hours later during puberty due to hormonal changes affecting melatonin timing. A teenager's melatonin does not rise until ~11pm–midnight and suppresses later in the morning. Telling a 15-year-old to fall asleep at 10pm is asking their body to sleep at what it perceives as 7–8pm. School start times of 7–8am mean most teenagers are waking in the middle of their biological night. The research is consistent: delaying school start times to 8:30–9am improves academic performance, reduces car accidents among teen drivers, decreases depression rates, and improves physical health. The American Academy of Pediatrics formally recommends no school start before 8:30am for middle and high schools. The teenagers are not lazy — they are biologically different from adults.

5. What happens to the brain during the transition between waking and sleep — and why do some people experience falling sensations or vivid images just before sleeping?

This is the hypnagogic state — the N1 threshold zone. As the brain begins downregulating sensory processing and shifting from alpha to theta waves, the prefrontal cortex loses executive control while sensory and memory systems remain partially active. Internally generated images, sounds, and sensations are perceived as real because the brain's reality-checking mechanisms are no longer fully engaged. The falling sensation and hypnic jerk (sudden muscle contraction) is thought to result from the brainstem misinterpreting the sudden relaxation of muscle tone as a genuine loss of balance — triggering a reflexive startle response. Whether this is a vestigial reflex from tree-dwelling ancestors is speculative, though popular. The vivid images are memory fragments accessed without the conscious editor that governs waking thought. Edison reportedly napped holding steel balls over a metal plate — as he fell asleep, the balls would drop and wake him, capturing the hypnagogic state's creativity without crossing into full sleep.

6. A friend says they "only need 5 hours of sleep" and feel completely fine. Are they right?

Almost certainly not. True "short sleepers" — people with a genetic variant (DEC2 mutation, and others) that enables full function on 5–6 hours — exist, but are extremely rare: estimated at 1–3% of the population. The vast majority of people who claim to function fine on 5 hours have adapted to their impaired state. The critical problem: chronic sleep deprivation impairs the ability to accurately self-assess impairment. In Walker's research, participants on 6-hour sleep schedules for two weeks performed as poorly as those who had been awake for 24 hours straight — but rated themselves as only "slightly sleepy." The subjective feeling of "being fine" diverges from objective cognitive performance after just a few days of restriction. There is also a difference between surviving on 5 hours (managing basic functioning) and thriving (optimal cognitive performance, emotional regulation, immune function, and long-term health). For 97–99% of people, 5 hours is not enough — they have simply stopped noticing what they're missing.