Sleep happens in cycles
Across a night you pass through repeating sleep cycles, each lasting about 90 minutes on average. Within every cycle you move through several stages, from light sleep down into deep sleep and then up into REM sleep, before the cycle begins again. A typical night contains four to six of these cycles. They are not identical: early cycles are heavy on deep sleep, while later ones, closer to morning, contain more and longer REM. That changing mix is why the timing of your alarm matters so much.
The stages within a cycle
Sleep scientists divide sleep into non-REM and REM. Non-REM has three stages:
Stage 1 (light). The brief drowsy transition from wake to sleep, lasting only a few minutes. You are easily woken and may feel like you were never fully asleep.
Stage 2 (light). A deeper but still light stage where heart rate and body temperature drop. Most of your night is actually spent here. It plays a real role in memory and learning.
Stage 3 (deep / slow-wave). The most physically restorative stage, dominated by slow brain waves. This is when the body repairs tissue, builds bone and muscle, and strengthens the immune system. It is also the hardest stage to wake from — being jolted out of it produces that thick, disoriented feeling.
REM sleep. Rapid Eye Movement sleep is where most vivid dreaming happens. The brain is highly active while the body is temporarily paralysed. REM is vital for emotional processing, creativity, and consolidating memories. REM periods lengthen as the night goes on.
Why waking time matters
That heavy, hungover feeling on waking has a name: sleep inertia. It is strongest when you wake out of deep, slow-wave sleep. Wake instead near the end of a cycle, when you are in light sleep, and getting up tends to feel far easier — even if you slept slightly fewer total hours. This is the whole idea behind our sleep calculator: it counts in 90-minute blocks (plus about 15 minutes to fall asleep) so you can aim your alarm at the end of a cycle rather than the middle of one.
That said, cycle length is a population average and yours drifts between roughly 70 and 120 minutes night to night, so think of the suggested times as "aim for around here," not a precise instruction.
Your body clock and sleep pressure
Two systems decide when you feel sleepy, and they work together. The first is sleep pressure: a chemical called adenosine builds up in your brain the longer you are awake, and the more it accumulates, the sleepier you feel. Sleep clears it, which is why you wake refreshed. (Caffeine works by temporarily blocking adenosine's signal — it masks sleepiness rather than removing the underlying need.) The second is your circadian rhythm, an internal clock roughly tuned to 24 hours that governs the daily release of the hormone melatonin and tells your body when night has arrived. Good sleep happens when these two line up: high sleep pressure meeting the downslope of your body clock.
Light is the master signal for that clock. Bright light in the morning, ideally daylight, anchors the rhythm and helps you feel alert; bright light in the evening, especially from screens, can delay melatonin and push your natural bedtime later. This is why morning sunlight and dim evenings do more for sleep than almost any gadget.
What wrecks a night, and what fixes it
A few culprits show up again and again. Caffeine has a long tail — a mid-afternoon coffee can still be in your system at bedtime, so an early cut-off helps. Alcohol feels sedating but fragments sleep later in the night and suppresses REM, which is why a nightcap leaves you unrefreshed. Irregular timing — sleeping in on weekends, then forcing an early Monday — gives you a kind of self-inflicted jet lag. A warm, bright, or noisy room nudges you out of deep sleep without fully waking you.
The fixes mirror the causes: a consistent schedule, a dark and cool room, a wind-down buffer away from screens, morning daylight, and keeping the bed for sleep so your brain associates it with rest rather than scrolling. If you nap, keeping it short and early avoids stealing from that night's sleep pressure.
How much sleep, and how to get better sleep
Most adults need 7 to 9 hours, which works out to about five or six complete cycles. Teenagers and children need more. But total hours are only half the story — consistency is the underrated hero. Going to bed and waking at similar times every day, weekends included, keeps your body clock steady and improves how rested you feel more than any single perfectly timed night. A dark, cool room, a wind-down routine, and limiting late caffeine, alcohol, and screens all help you fall asleep faster and spend more time in the restorative stages.
Sleep also doesn't exist in isolation. Stress and sleep feed each other, so our stress check-in can be a useful companion, and regular movement — for instance training by heart-rate zones — tends to deepen sleep.
When to see a professional
If you regularly feel unrefreshed despite enough hours, struggle to fall or stay asleep, snore heavily or gasp in your sleep, or feel sleepy during the day, these can be signs of a sleep disorder such as insomnia or sleep apnea. These are common and treatable, and worth a conversation with a doctor or sleep specialist. Nothing here is medical advice.