Sleep architecture in one page
Sleep is not one state you sink into for eight hours. It is a repeating cycle through four distinct stages, each doing different work, and the mix changes dramatically across the night.
- N1 (1–5 minutes) — the drift-off. Muscle twitches, the falling sensation, easy to wake from. Barely 5% of the night.
- N2 (~45–55% of the night) — true light sleep. Heart rate and body temperature drop. This is where sleep spindles fire and motor memory gets consolidated, and it is the best stage to wake from.
- N3, deep or slow-wave sleep (~15–25%) — the physically restorative stage. Growth hormone pulses, glymphatic clearance runs hardest, tissue repairs. Waking here is what produces the drugged feeling.
- REM (~20–25%) — dreaming, emotional processing and the consolidation of complex learning. The brain is nearly as active as when awake, but the body is paralysed.
The critical detail is the ordering. Deep sleep is front-loaded: most of your N3 arrives in the first two or three cycles, before roughly 2am on a normal schedule. REM is back-loaded: the first cycle may contain five minutes of it, the last thirty or more. This is why the two ends of the night are not interchangeable. Going to bed two hours late does not cost you two generic hours — it costs you REM specifically. Getting up two hours early costs the same thing.
Why waking mid-cycle feels so bad
Sleep inertia is the transitional grogginess between sleep and full wakefulness. Its severity depends almost entirely on which stage the alarm interrupted. Pulled out of N3, most people are measurably impaired for 15 to 30 minutes — in laboratory studies, reaction time and decision quality immediately on waking from deep sleep are worse than after moderate alcohol. Pulled out of N2 or the end of a REM period, the same person is functional in a couple of minutes.
That is the entire logic of this calculator. Six hours ending between cycles genuinely can feel better than seven hours ending inside one. What it cannot do is make six hours as good as eight — you still lost the sleep, you just avoided the worst way of ending it.
The honest caveat about 90 minutes
Ninety minutes is an average across people and across the night. Real cycles run roughly 70 to 110 minutes; your first cycle is usually the shortest and later ones stretch as REM lengthens. Add a sleep latency that varies with caffeine, stress and how tired you are, and by the sixth cycle a cycle-based prediction has drifted by half an hour or more. Use these times as good starting points, then adjust by 15 minutes at a time based on how you actually wake up. Anyone selling you minute-precise cycle timing from a formula is overselling it.
How much sleep, by age
| Age group | Recommended | Cycles |
|---|---|---|
| School age (6–13) | 9–11 h | 6–7 |
| Teenager (14–17) | 8–10 h | 5–7 |
| Young adult (18–25) | 7–9 h | 5–6 |
| Adult (26–64) | 7–9 h | 5–6 |
| Older adult (65+) | 7–8 h | 5–5.5 |
These are the National Sleep Foundation’s 2015 consensus ranges, reaffirmed after a decade-long review of the evidence. They are ranges for a reason — need varies by perhaps an hour between individuals, and rises temporarily with heavy training, illness or acute stress. If you routinely fall asleep within five minutes of lying down, or sleep three hours longer at weekends, you are under-slept regardless of what the table says.
Timing the things that wreck it
Caffeine. Half-life around five to six hours, so half the dose from a 3pm coffee is still circulating at 9pm. It works by blocking adenosine — the molecule whose build-up creates sleep pressure — so you do not feel tired even though you are. Cut it eight to ten hours before bed. If you are sensitive, make that twelve.
Alcohol. It sedates rather than sedatives you to sleep. You fall asleep faster, then REM is suppressed in the first half of the night and the second half fragments as it metabolises — which is why two drinks reliably show up as a wrecked HRV and an elevated resting heart rate the next morning. Finish at least three hours before bed, and expect a visible cost regardless.
Late hard training. Intense exercise within about two hours of bed raises core temperature and sympathetic drive, both of which delay sleep onset. Easy movement is fine and often helps.
Consistency. Boringly, a fixed wake time is the highest leverage change available. Your circadian system anchors on light and wake time, not bedtime — hold the alarm steady all week and the right bedtime starts to look after itself.
What to do next
If your week has already gone badly, the useful question is how far behind you are and how long it takes to recover. Our sleep debt calculator totals the shortfall across seven nights and gives a realistic payback schedule — realistic meaning weeks of small surpluses, not one heroic Saturday.
And if you want to know whether the sleep you got actually restored you, stop guessing and look at your autonomic data. Heart rate variability responds to poor sleep, alcohol and overtraining within a night; our HRV calculator explains how to read it, and our target heart rate calculator helps you set training intensity for the recovery you actually have — not the one you planned for.