What actually happens in a night of sleep
Sleep is not a switch that turns off at eleven and on at seven. It is a sequence of states with different chemistry, different brain rhythms and different work to do. Once you can see the shape of a night, the strange timing of your dreams stops being random.
6 min read · updated September 2, 2026
Ask most people what sleep is for and they will say rest. That is true and also almost useless, like saying a kitchen is for food. The night is a factory with several shifts. Some of them repair tissue and clear metabolic waste from the brain. Some of them sort the day’s experiences into memories that will last. And one of them, running mostly in the small hours, generates the vivid, story-shaped experiences we call dreams.
The framework researchers use is called sleep architecture. A healthy adult night is built from four to six cycles, each around ninety minutes long, and each cycle passes through the same stages in roughly the same order. What changes across the night is the proportion: early cycles are heavy with deep sleep, late cycles are heavy with dreaming. That single fact explains why the dream you remember on waking is almost always from the last hour of the night.
The four stages
Sleep is divided into non-REM and REM. Non-REM has three stages of increasing depth; REM is the fourth state, named for the rapid eye movements that accompany it. Here is what each one does.
One cycle, start to finish
- 01
N1 — the doorway
A few minutes at most. Muscles loosen, thoughts drift, and you may feel a sudden jerk or a brief image. People woken here often insist they were not asleep. This is where hypnagogic imagery lives — the flashes of faces and shapes as you fall.
- 02
N2 — light sleep
About half of the night in total. Heart rate and temperature drop. The brain produces sleep spindles, short bursts of activity now linked with memory consolidation and with keeping you asleep through noise. Dreams here are thin: fragments, thoughts, a single scene.
- 03
N3 — deep sleep
Slow-wave sleep. Brain rhythms slow to one or two cycles a second and it becomes very hard to wake you. This is the restorative shift — growth hormone, immune signalling, and the glymphatic flushing that clears the brain. Deep sleep dominates the first two cycles and nearly vanishes by dawn.
- 04
REM — the dreaming state
The brain lights up to near-waking levels, the eyes dart under the lids, and the body is paralysed from the neck down so that you do not act out what you see. REM periods are short at first — ten minutes — and stretch to forty or fifty minutes in the final cycle.
Why the alarm ruins dreams
The longest, richest REM period of the night is usually the one right before you naturally wake. An alarm that goes off in the middle of it cuts the dream in half and jolts you into a state where recall collapses within seconds. If you want to remember more, the cheapest change is a gentler, later wake.
What REM sleep is doing
For a long time REM was described simply as the dream stage, as if dreaming were its purpose. The modern picture is more interesting. During REM the brain replays and recombines the day’s experiences, weakens the emotional charge attached to difficult memories, and strengthens connections between things that were not obviously related. Matthew Walker’s lab has called this overnight therapy: you go to sleep with an experience that stings and wake with the memory intact but the sting reduced.
This is also the mechanism behind the creative feel of dreams. Because REM is loosening the usual filters and connecting distant material, the scenes it generates are associative rather than logical. A stairwell from your childhood home leads to your current office. A colleague speaks with your mother’s voice. This is not noise. It is the brain doing exactly what REM is for, and it is why a dream can be read as a map of what your mind is currently trying to connect.
- Emotional memories are replayed with the stress chemistry turned down, which softens them.
- New information is linked to older knowledge, which is why sleeping on a problem helps.
- Procedural skills — an instrument, a sport — improve overnight without further practice.
- Dreams appear in every stage, but REM dreams are longer, stranger and more emotional.
We dream so that we may remember, and we dream so that we may forget.
The chemistry of the night
Two systems run the show. The circadian clock, set by light, decides when the body is ready for sleep and pushes the deepest sleep to the early night. Sleep pressure, driven by a molecule called adenosine, builds every hour you are awake and is cleared during sleep. Caffeine works by blocking adenosine receptors, which is why an afternoon coffee does not just delay sleep; it can shave deep sleep off the first cycle even if you fall asleep on time.
Alcohol is the other common saboteur. It sedates, so it feels like it helps, but it suppresses REM in the first half of the night. When it wears off, REM rebounds with unusual intensity — the vivid, often unpleasant dreams that come after a few drinks are a withdrawal effect. Cannabis does something similar. Anyone trying to work with their dreams will find both substances working against them.
| Stage | What you dream |
|---|---|
| N1 | Brief images and sensations, often a feeling of falling |
| N2 | Thought-like fragments, single scenes, rarely a story |
| N3 | Very little; occasional confusional episodes or night terrors |
| REM | Long, vivid, emotional narratives — the dreams you remember |
The rest of this is for members.
The practice section, the prompts and the night ritual open with the 21-Night Reset — along with the full decoder and the journal.
Bring a dream.
Three free decodes a day. The decoder reads what you actually dreamed, not a general symbol.
For self-reflection and entertainment. Not medical, psychological or predictive advice. Disclaimer.