Sleep isn't a single flat state β it's a journey. Across a night your brain descends through light sleep into deep slow-wave sleep, then climbs back up into REM, repeating the whole loop roughly every 90 minutes. Deep sleep dominates the first cycles; dreaming REM stretches longer toward dawn. Scroll through to watch a night unfold, see which brain waves mark each stage, and learn why when your alarm goes off matters as much as how long you slept.
This is a hypnogram: sleep stage (vertical) versus time (horizontal). After lights-out you drop quickly through N1 and N2 into deep N3, then rise back toward REM β one full ~90-minute cycle. Notice how the deep N3 valleys are deepest early in the night, while the REM plateaus grow longer toward morning. The moving line is the playhead; the panel on the right shows the characteristic EEG squiggle for whichever stage it's currently in.
Wake during deep N3 and you get sleep inertia: foggy, heavy, disoriented for many minutes. Wake at the end of a cycle β in light sleep or just after REM β and you feel refreshed. That's why a 7.5-hour sleep (five cycles) can beat an 8-hour one that's cut mid-N3. Drag the alarm and watch which stage you'd surface from; aim it at a cycle boundary.
Underneath, two clocks decide when you're sleepy: a steady homeostatic sleep pressure (the chemical adenosine piling up the longer you're awake) and the circadian rhythm (your ~24-hour body clock dipping at night and again mid-afternoon). You fall asleep when pressure is high and the clock says "night." Caffeine doesn't remove the pressure β it just blocks adenosine's receptors, masking the tiredness until it wears off and the backlog hits.
Everything above, distilled:
The single most actionable takeaway: protect a regular schedule and give yourself enough complete ~90-minute cycles. Quality is architecture, not just hours.