How Sleep Works
Part one was about why sleep decides everything. Now we look under the hood: what actually happens while you sleep? Once you understand the mechanism, every tip about the evening routine suddenly makes sense.
Sleep series · Part 2
You're reading How Sleep Works. Before: Why Sleep Decides Everything. Next: In Sync with the Sun — how your day builds your sleep, Good sleep starts two hours before bed and Food and Sleep.
Most people picture sleep like a light switch: you lie down, the light goes off, and a few hours later it comes back on. In fact sleep is the opposite of standstill — it's a highly ordered sequence that plays out in a particular order every night. Once you understand that sequence, you stop leaving sleep to chance.
Sleep isn't an on-off state but a process in waves — alternating deep sleep and REM sleep, in cycles of about 90 minutes. When it begins and how deep it gets is steered by two forces: your sleep pressure and your body clock.
1. Sleep runs in waves
The moment you fall asleep, your brain doesn't enter one uniform state but a succession of phases. Roughly, they fall into two families: non-REM sleep (from light drifting-off to deep sleep) and REM sleep, where most vivid dreams arise. One complete run — from light sleep into deep sleep and back up into REM — takes about 90 minutes. In a normal night this cycle repeats four to six times.
This order is no accident but a division of labour. Deep sleep sits mostly in the first half of the night — and that's the phase of physical repair. Here your body releases the bulk of its growth hormone.
Growth-hormone release is closely tied to deep sleep (slow-wave sleep). As deep sleep declines over the years, nocturnal growth-hormone production falls markedly too.
Van Cauter E et al. (2000). Age-Related Changes in Slow Wave Sleep and REM Sleep and Relationship With Growth Hormone and Cortisol Levels. JAMA 284(7):861–868. DOI: 10.1001/jama.284.7.861 · Observational study (healthy men)
REM sleep increases toward morning — and it's mainly responsible for head and heart: here your brain processes experience, links what you've learned and sorts emotions. Both phases consolidate memory, but in different ways.
Sleep both before and after learning is crucial for memory formation — different sleep phases consolidate different kinds of memory content.
Stickgold R (2005). Sleep-dependent memory consolidation. Nature 437(7063):1272–1278. DOI: 10.1038/nature04286 · Review article
From this follows something practical: a night cut too short doesn't trim "a little of everything". If you have to get up early, you mainly cut off the REM-rich morning sleep. If you fall asleep late and restless, you lose the early deep sleep. The architecture explains why seven unbroken hours are worth more than eight fragmented ones.
2. Two forces decide when you get tired
Why do you get tired in the evening at all — and awake again in the morning? Behind it stand two systems working together. Sleep research calls this the two-process model.
The established model of sleep regulation describes two forces: a homeostatic sleep pressure (Process S) that rises with every waking hour, and a circadian rhythm (Process C), the body clock. Their interplay determines when and how deeply you sleep.
Borbély AA (1982). A two process model of sleep regulation. Human Neurobiology 1(3):195–204. · Theoretical model (established state of research)
The first force is sleep pressure. Picture it as a bucket that fills over the day: the longer you're awake, the fuller it gets, the stronger the need to sleep. The substance filling that bucket is adenosine — a by-product of your brain cells burning energy all day. The more of it accumulates, the sleepier you become. During sleep, the bucket empties again.
This, by the way, is exactly where caffeine acts: it blocks the docking sites for adenosine — the bucket is full, but your brain no longer gets the message. That's why coffee works, and why it keeps you awake so long.
In the brain, caffeine acts above all as an antagonist of adenosine: it occupies its receptors and so prevents the sleepiness signal.
Fredholm BB et al. (1999). Actions of Caffeine in the Brain with Special Reference to Factors That Contribute to Its Widespread Use. Pharmacological Reviews 51(1):83–133. · Review article
The second force is your body clock. It makes sure sleep pressure doesn't simply floor you in the afternoon, but that tiredness and alertness follow the day-night cycle. This clock is set by light — and that's exactly the focus of the next part of the series, In Sync with the Sun. For here it's enough: good sleep happens when both forces line up — high sleep pressure and a body clock that says "now it's night".
3. The hormones that set the beat
The body clock talks to the body through hormones. Two of them are worth knowing, because they carry the back-and-forth of being awake and asleep.
Melatonin is the signal "night is coming". It's released in darkness and tunes the body for sleep — it's not a sleeping pill but a timekeeper.
Melatonin is produced by the pineal gland in darkness and is regarded as a central mediator of the circadian control of sleep and the body clock.
Brzezinski A (1997). Melatonin in Humans. New England Journal of Medicine 336(3):186–195. DOI: 10.1056/NEJM199701163360306 · Review article
Cortisol is the counterpart — the wake signal. It rises in the early morning hours, makes you awake and capable, and ebbs across the day. Evening stress keeps cortisol high and so works against sleep.
The hypothalamic-pituitary-adrenal (HPA) axis and sleep influence each other; the cortisol course follows a pronounced daily rhythm with a peak in the morning.
Buckley TM, Schatzberg AF (2005). On the Interactions of the HPA Axis and Sleep. J Clin Endocrinol Metab 90(5):3106–3114. DOI: 10.1210/jc.2004-1056 · Review article
The precise daily course of both hormones — and why the morning light sets it — you'll see in In Sync with the Sun. What matters here is the principle: melatonin and cortisol are two sides of the same beat.
4. The nightly clean-up
There's a task your brain does almost only during sleep — and that was long overlooked: tidying up. During the day, thinking produces metabolic waste products. At night, they get flushed away.
In mice, the space between brain cells expanded by about 60% during sleep, so that the brain fluid could flush out waste products — including beta-amyloid, which is linked to Alzheimer's — far faster. This "cleaning system" works far more actively during sleep than while awake.
Xie L et al. (2013). Sleep Drives Metabolite Clearance from the Adult Brain. Science 342(6156):373–377. DOI: 10.1126/science.1241224 · Animal experiment (mice) — transfer to humans is plausible but not yet conclusively established
An important note on interpretation: this is a finding from an animal model. That exactly the same happens in humans at the same strength is not yet finally proven — but the direction is convincing and fits everything else we know about sleep's protective function. It's one of the reasons good sleep pays into your brain over the years.
If you take one thing away: sleep is work, not standstill. Your body repairs, your brain sorts and tidies up — in a fixed order. Your job isn't to "make" sleep happen, but to stay out of its way.
And that's exactly the bridge to the next part: if two forces — sleep pressure and body clock — decide when you get tired, then you can influence both across the day. How your behaviour in daylight builds your night's sleep, you'll read in In Sync with the Sun. And how to shape the evening in concrete terms, in Good sleep starts two hours before bed.
New lessons every two weeks, straight to your inbox
You're reading Part 2 of the Sleep series. In the next parts we look at how your day sets your sleep — and how to build your evening so that falling asleep happens on its own.
Join the newsletterSources
Borbély AA (1982). Human Neurobiology, 1(3):195–204. — theoretical model (two-process model of sleep regulation)
Fredholm BB et al. (1999). Pharmacological Reviews, 51(1):83–133. — review article (caffeine/adenosine)
Brzezinski A (1997). New England Journal of Medicine, 336(3):186–195. DOI: 10.1056/NEJM199701163360306 — review article (melatonin)
Buckley TM, Schatzberg AF (2005). J Clin Endocrinol Metab, 90(5):3106–3114. DOI: 10.1210/jc.2004-1056 — review article (cortisol/HPA)
Van Cauter E et al. (2000). JAMA, 284(7):861–868. DOI: 10.1001/jama.284.7.861 — observational study (growth hormone & deep sleep)
Stickgold R (2005). Nature, 437(7063):1272–1278. DOI: 10.1038/nature04286 — review article (memory)
Xie L et al. (2013). Science, 342(6156):373–377. DOI: 10.1126/science.1241224 — animal experiment (mice, glymphatic clearance)
Sleep stages (NREM/REM) and cycle length (~90 min, 4–6 cycles/night): established textbook and guideline knowledge (incl. AASM) — labelled as such, no individual-study citations.
A note on interpretation: the glymphatic finding (Xie 2013) comes from an animal model — transfer to humans is plausible but not yet conclusively proven. Correlations are flagged as associations, not proof of cause and effect.