Sleep Stages and Your Body Clock

Two things decide when you sleep. Process S is sleep pressure — adenosine piling up in your brain every hour you are awake. Process C is your body clock, a cluster of about 20,000 neurons in the suprachiasmatic nucleus that is set each morning by light hitting your eyes. Sleep happens when S is high and C has let go. Watch a whole 24 hours run: the clock turns, melatonin rises from the pineal gland as darkness falls, and the night plays out as a real hypnogram — deep sleep front-loaded, REM saving its longest run for just before your alarm.

Try this: run one Healthy night through to morning, then hit Afternoon caffeine and watch the green sleep-pressure curve keep climbing behind the blockade while the dashed “felt” curve sags — the pressure never went away, you just stopped feeling it. Then try Alcohol before bed. It is not the result most people expect.

Diagram is illustrative — not to scale.
BODY CLOCK · 24 H 00:00 06:00 12:00 18:00 biological night 17:00 LIGHT → CLOCK → MELATONIN eye melanopsin ipRGCs SCN master clock Pineal melatonin light hippocampus cortex AWAKE fast, low-amplitude beta activity EEG · BRAIN WAVES THE TWO-PROCESS MODEL — SLEEP PRESSURE vs THE CLOCK high low SLEEP Process S = adenosine sleep pressure · Process C = circadian wake signal from the SCN · shaded gap = sleep is possible

Live sleep readout

Current stage · 17:00
AWAKE
Time asleep: 0 h 00 m · before bed
Deep sleep · N3
0 min
0% of sleep
REM sleep
0 min
0% of sleep
Sleep pressure · adenosine 57%
What you actually feel: 57%
Melatonin 0 pg/mL
Light at the eye: 500 lux · daylight — pineal off
Core body temperature 37.1 °C
range 36.4–37.2 °C · nadir ~2 h before you wake
Caffeine on board 0 mg
No caffeine or alcohol in this scenario.
Hypnogram — tonight
W REM N1 N2 N3 23:00 07:00

What's happening

Mid-afternoon. You have been awake for hours and adenosine has been building the whole time. The green curve below is that pressure. Keep watching — sleep starts when it climbs above the cyan clock line.
Wake N1 N2 N3 deep REM adenosine / Process S Process C (clock) melatonin & light
melatonin released by the pineal glymphatic CSF flush (N3) memory replay, hippocampus → cortex (REM) caffeine blocking adenosine receptors

The Science in Plain Language

Two forces, not one — the two-process model

Sleep scientists explain almost everything about when you sleep with two overlapping forces. Process S is sleep pressure. From the moment you wake, your brain cells burn energy, and a by-product called adenosine accumulates in the brain, binding to A1 and A2A receptors and quietly damping down the wake-promoting circuits. The longer you are awake, the more there is, and the heavier you feel. Sleep clears it — that is the green curve on the chart, rising all day and draining away overnight.

Process C is your body clock: about 20,000 neurons in the suprachiasmatic nucleus (SCN) of the hypothalamus, sitting directly above the optic chiasm. The SCN produces a wake-promoting signal (the cyan curve) that does not care how long you have been awake. It follows a near-24-hour rhythm of its own — in humans the free-running period averages about 24.2 hours, so it must be nudged back into line every single day.

Here is the part that surprises people: the SCN's wake signal peaks in the evening, roughly two to three hours before your usual bedtime. Sleep researchers call this the wake-maintenance zone. It is why you can be flattened with tiredness at 6 pm, get a “second wind” at 9 pm, and then crash at 11. Sleep happens when S is high AND C has let go — the shaded purple gap in the chart. Watch the two curves cross and you are watching the moment sleep becomes possible.

Morning light sets the clock. Evening light moves it the wrong way.

The clock is reset by light, but not through the rods and cones you see with. A tiny separate population of retinal cells — intrinsically photosensitive retinal ganglion cells (ipRGCs), containing the pigment melanopsin — is tuned to short-wavelength blue light near 480 nm. They send a direct line to the SCN called the retinohypothalamic tract. That is the pathway lighting up in the head panel.

Timing is everything. Light in the morning pulls your clock earlier (a phase advance): melatonin will rise earlier that evening, and you get sleepy at a sensible hour. Light in the late evening pushes your clock later (a phase delay) and blocks the melatonin rise outright. Dose matters less than most people assume — classic laboratory work found that roughly 100 lux, about the level of ordinary indoor room lighting, is already enough to cut melatonin by about half, with the response saturating near 1,000 lux. For scale: a dim living room is 50–100 lux, a bright kitchen 300–500, an overcast morning outdoors is 1,000–10,000, and direct sun exceeds 50,000. Stepping outside for ten minutes in the morning delivers a signal your ceiling lights cannot match.

Melatonin is a darkness signal, not a sedative

When the SCN sees darkness, it releases the brake on a relay that runs from the hypothalamus down through the spinal cord and back up to the pineal gland, which starts secreting melatonin. Its rise in dim light — dim-light melatonin onset (DLMO) — happens about 2–3 hours before habitual sleep onset, and secretion continues for roughly 9–10 hours, peaking in the small hours of the morning.

Melatonin does not knock you out. It is a time signal: it tells every tissue in the body that biological night has begun, and it lowers your body's defence of core temperature so that heat can escape. Bright light at night silences it, which is why the animation shows a red block on the pineal pathway the moment the evening lux gets high.

Core body temperature: the other hand on the clock

Your core temperature swings about 0.5–1.0 °C across the day — peaking in the late afternoon (around 37.1–37.2 °C) and reaching its lowest point (~36.4 °C) roughly two hours before you naturally wake. Falling temperature is one of the strongest signals that sleep is coming; the body sheds heat by opening blood vessels in the hands and feet. That is the honest mechanism behind the old advice about a warm bath an hour or two before bed: it does not warm you up, it makes you dump heat faster afterwards, steepening the drop.

What a real night looks like: the hypnogram

Sleep is not a flat state. It runs in cycles of roughly 90 minutes (the range is about 70–120), four to six times a night, moving through:

The order is not random and this is the single most useful thing on this page: N3 is front-loaded and REM is back-loaded. Your first cycle may hold 40 minutes of deep sleep and barely any REM. By the last cycle before dawn, N3 has nearly vanished and REM may run 30–40 minutes straight. The night is two different jobs done in two different halves.

What the stages actually do

N3 — the repair shift. The largest growth-hormone pulse of the 24-hour day is released shortly after sleep onset, locked to that first slow-wave period; it drives tissue repair, protein synthesis and bone and muscle maintenance. Deep sleep is also when the brain does its housekeeping: during sleep the spaces between brain cells widen and cerebrospinal fluid washes through the tissue in what is called the glymphatic system, flushing out metabolic waste including amyloid-beta. (This was demonstrated most dramatically in mice; human imaging supports the same direction, though the exact size of the effect in people is still being measured.) Miss deep sleep and you miss the cleaning cycle.

REM — the filing and feelings shift. REM is when the hippocampus replays the day to the cortex, integrating new memories into old knowledge, and when emotional memories get processed with the brain's noradrenaline system switched almost completely off — you re-experience the event without the stress chemistry. That is why REM loss shows up as brittle mood and poor emotional regulation rather than simple tiredness.

Adenosine and caffeine — masking is not removing

Caffeine does not give you energy. It is a competitive antagonist at adenosine receptors: it parks in the receptor without activating it, so the adenosine that is already there cannot be felt. Behind the blockade, adenosine keeps piling up exactly as before — which is precisely what the solid green curve and the dashed yellow “felt” curve show you when you switch on the caffeine scenario. When the drug clears, everything you were owed arrives at once. That is the caffeine crash.

The half-life is the number that catches people out: roughly 5 hours in a typical adult (the range runs about 3–7 hours, longer in pregnancy or on oral contraceptives, shorter in smokers). One 8-oz brewed coffee is about 95 mg. Drink it at 3 pm and at an 11 pm bedtime roughly a third of it is still circulating — about 33 mg, the equivalent of a third of a fresh cup, poured into your brain at lights-out. Sleep studies consistently show caffeine lengthens the time it takes to fall asleep, cuts total sleep time and sleep efficiency, and specifically reduces N3 deep sleep and slow-wave activity. One well-known trial found that even a 400 mg dose taken a full six hours before bed measurably shortened objective sleep time. You may sleep and still not get the deep sleep.

Alcohol — the sedative that steals REM

This is the one that surprises people, so watch it carefully. Alcohol is a GABA-A agonist — it genuinely sedates, so you fall asleep faster, and it can even nudge deep sleep up in the first hour or two. Then it goes wrong. In the first half of the night alcohol suppresses REM, dose-dependently. Your body metabolises it at roughly one standard drink per hour, and as the blood level falls the brain rebounds out of sedation: the second half of the night becomes fragmented — frequent awakenings, light sleep, a compensatory REM rebound with vivid dreams, early-morning waking. Alcohol also relaxes the muscles of the upper airway, so it worsens snoring and obstructive sleep apnea. A nightcap buys a fast sleep onset and pays for it with the second half of the night.

Short sleep costs you REM first — and the debt carries over

Because REM is back-loaded, cutting a night short does not shave a little off every stage. It amputates the end of the night, where nearly all the long REM periods live. Run the Short sleep (5 h) scenario: N3 comes through almost intact because it was front-loaded, while REM collapses by more than half. You lose the memory-and-emotion shift almost entirely, and because adenosine has not had time to fully clear, sleep pressure at wake-up starts the next day already elevated — the sober arithmetic of “sleep debt”. Adult sleep-medicine consensus is 7 or more hours a night, regularly, at a consistent time.

The good news is in the last scenario. Consistent morning light — getting outdoors soon after waking — anchors the SCN, brings DLMO earlier, shortens how long you lie awake, and pulls the whole night into a better position. It costs nothing, and on this chart you can see exactly why it works.

↑ Back to the animation

Connections