Sleep Cycle Simulator: NREM, REM, and Sleep Architecture

simulator beginner ~8 min
Loading simulation...
5.3 cycles — ~100 min REM, ~85 min SWS

In 8 hours of sleep with 90-minute cycles, you complete about 5 full cycles. Early cycles are dominated by deep slow-wave sleep (N3), while later cycles contain progressively longer REM episodes. Total REM time is approximately 100 minutes.

Formula

Cycles ≈ sleep_duration / cycle_period
SWS fraction ≈ SWS_drive × exp(−t / τ_sws) (exponential decay)
REM fraction ≈ REM_pressure × (1 − exp(−t / τ_rem)) (exponential rise)

The Architecture of a Night's Sleep

Sleep is not a uniform state. Throughout the night, the brain cycles through distinct stages in a predictable pattern called sleep architecture. A hypnogram — the standard visualization — shows these stages stacked vertically against time, revealing the ultradian rhythm that repeats approximately every 90 minutes from sleep onset to morning awakening.

NREM: The Restorative Foundation

Non-REM sleep progresses from drowsy N1 through intermediate N2 to deep N3 (slow-wave sleep). N3 is characterized by high-amplitude delta waves and is most abundant in the first third of the night. During N3, growth hormone surges, the immune system activates, and declarative memories transfer from hippocampus to cortex. Sleep deprivation causes intense N3 rebound on recovery nights, demonstrating its biological priority.

REM: The Dream Stage

REM sleep features rapid eye movements, muscle atonia, and vivid dreaming. REM episodes start short (10–15 minutes) in early cycles and grow longer (30–45 minutes) toward morning. REM is crucial for emotional processing, creative problem-solving, and procedural memory. Antidepressants that suppress REM often cause REM rebound upon discontinuation, with intense dreams and disrupted sleep.

Two-Process Model

Alexander Borbély's two-process model explains sleep architecture as the interaction of Process S (homeostatic sleep pressure, building during wakefulness) and Process C (circadian alerting signal from the SCN). Process S drives the deep SWS at the beginning of sleep, while Process C gates the REM propensity that peaks in the early morning hours.

FAQ

What are the stages of sleep?

Sleep alternates between non-REM (NREM) stages N1 (light), N2 (intermediate), N3 (deep slow-wave), and REM (rapid eye movement). A complete cycle through all stages takes about 90 minutes. NREM dominates early in the night; REM episodes grow longer toward morning.

Why do we cycle between NREM and REM?

The ultradian cycling reflects the interaction of two opponent processes: a homeostatic drive for slow-wave sleep (strongest at sleep onset, dissipating through the night) and a circadian-modulated REM drive (building across the night). Their interplay creates the characteristic hypnogram pattern.

How much deep sleep do we need?

Adults typically spend 15–20% of the night in N3 slow-wave sleep (60–90 minutes). SWS is critical for physical restoration, growth hormone secretion, immune function, and declarative memory consolidation. It's concentrated in the first half of the night.

What happens if you cut sleep short?

Cutting sleep from 8 to 6 hours primarily sacrifices the later REM-rich cycles. Since REM is critical for emotional processing, creativity, and procedural memory, chronic short sleep disproportionately impairs these functions even when you feel 'adjusted' to less sleep.

Sources

Embed

<iframe src="https://homo-deus.com/lab/chronobiology/sleep-cycle/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub