Sleep is not a single uniform state that lasts until morning. It is organised into repeating cycles, and what those cycles contain shifts systematically across the night.
The stages within a cycle
A cycle moves from light sleep into deep slow-wave sleep, then back out toward light sleep and into rapid eye movement sleep before beginning again.
Slow-wave sleep is characterised by large synchronised brain activity and is the hardest stage to wake from, producing marked grogginess if interrupted.
Rapid eye movement sleep shows brain activity resembling wakefulness alongside near-total muscle paralysis, which prevents the sleeper acting out the vivid dreaming that occurs in it.
Composition changes across the night
Cycles run roughly ninety minutes, but they are not interchangeable. Early cycles are dominated by slow-wave sleep, while later ones contain progressively more rapid eye movement sleep.
This means a shortened night does not remove a proportional slice of each stage. Cutting sleep short removes mostly rapid eye movement sleep, because that is concentrated toward morning.
Going to bed late while keeping the same wake time has the opposite effect, compressing the slow-wave sleep that the early cycles would have supplied.
Different stages do different work
Slow-wave sleep is associated with physical restoration, growth hormone release and the consolidation of factual memory into longer-term storage.
Rapid eye movement sleep is more associated with emotional processing and with procedural and associative memory, which is why skills sometimes improve overnight.
Because the stages are unevenly distributed, which functions are affected by lost sleep depends on which end of the night was lost.
Brief awakenings are normal architecture
Short awakenings occur at cycle transitions throughout the night. Most are not remembered, because memory formation requires a period of wakefulness longer than a few seconds.
Sleep trackers detect these transitions and frequently display them, which can make an ordinary night look fragmented to someone reviewing a chart in the morning.
Concern generated by that display can itself worsen sleep, a pattern clinicians encounter often enough to have named it.
Why waking time feels arbitrary
Waking from light sleep at the end of a cycle feels straightforward, while waking from deep sleep mid-cycle produces heavy grogginess that can last twenty minutes or more.
Cycle length varies between people and between nights, so alarms timed to a supposed ninety-minute grid will often miss, and devices attempting to detect the right moment are working from indirect signals.
Persistent unrefreshing sleep despite adequate time in bed is a reason for medical assessment, since it is a common presentation of sleep disorders that tracking cannot identify.