Sleep Quality Calculator
Optimise your sleep by calculating the ideal bedtime or wake-up time based on 90-minute sleep cycles so you never wake mid-cycle groggy again.
Optimise your sleep by calculating the ideal bedtime or wake-up time based on 90-minute sleep cycles so you never wake mid-cycle groggy again.
Deep sleep front-loads the night; REM lengthens toward morning — which is why a short night costs you proportionally more REM than deep sleep.
Select an option to chart that night:
💡 How it works
Sleep happens in ~90-minute cycles. Waking mid-cycle causes grogginess. These times include a 15-minute fall-asleep buffer. 5–6 cycles (7.5–9 hours) is optimal for most adults.
5 cycles of about 90 minutes, plus 15 minutes to fall asleep
Waking between cycles rather than mid-cycle tends to feel easier. The cycle length is an average though — yours varies night to night and lengthens toward morning.
Use these as approximate targets rather than exact times. Being twenty minutes out matters far less than going to bed at a consistent hour.
Total sleep matters more than cycle arithmetic
Most adults need seven to nine hours. Hitting a neat number of cycles on six hours does not make six hours enough.
If you are choosing between a tidy cycle count and more sleep, take the sleep.
Worth raising with a doctor
Persistent trouble falling or staying asleep, loud snoring with pauses in breathing, or daytime sleepiness despite enough hours in bed are all worth investigating rather than scheduling around.
Bring the actual readings and when you took them. A trend over weeks is far more useful to a clinician than one number on the day.
Worked out from your figures in your browser — nothing is sent anywhere. General information, not medical advice.
Save this result, change your inputs, and recalculate to compare scenarios side by side.
Work backwards from your alarm through 90-minute sleep cycles to wake up refreshed instead of groggy.
Shift your sleep schedule gradually before a trip by calculating the cycle times for each night.
Set age-appropriate bedtimes that give children full cycles before the school alarm.
Rotating shifts? Plan day-sleep around complete cycles to feel less wrecked.
Bright light shifts the body clock later, which is why the hour before bed matters nearly as much as the total. Dimming the room is more effective than most people expect.
A regular wake time anchors the whole rhythm. Sleeping in heavily at weekends produces something close to jet lag by Monday, even with plenty of hours banked.
A complete sleep cycle progresses through four stages: N1 (light sleep, 5%), N2 (light sleep, 45%), N3 (deep/slow-wave sleep, 25%), and REM (rapid eye movement, 25%). Each cycle takes approximately 90 minutes. Waking mid-cycle — particularly during deep N3 sleep — causes sleep inertia (that groggy, disoriented feeling). Waking at the end of a cycle, when sleep is naturally lightest, makes rising much easier.
The CDC and sleep experts recommend: teenagers (14–17) 8–10 hours, adults (18–64) 7–9 hours, older adults (65+) 7–8 hours. Sleeping 5–6 cycles (7.5–9 hours) is optimal for most adults. Chronically sleeping under 6 hours is linked to impaired cognition, weakened immunity, weight gain, cardiovascular disease, and a 3× higher risk of catching a cold. Only ~3% of people are genuine "short sleepers" who thrive on 6 hours due to a rare genetic mutation.
The ideal wake time depends on when you fell asleep plus a multiple of 90 minutes. For example: asleep at 11:00 pm → ideal wake times are 6:00 am (7 cycles/7.5 hours) or 7:30 am (6 cycles/9 hours). Waking in alignment with your circadian rhythm (shortly after sunrise for most people) also helps. Consistency matters most — keeping the same wake time 7 days a week anchors your body clock.
N1 and N2 (light sleep) consolidate memories and restore energy. N3 (deep sleep) is physically restorative — it repairs tissue, strengthens the immune system, and releases growth hormone. REM sleep is cognitively restorative — it processes emotions, consolidates learning, and fuels creativity. N3 sleep is concentrated in the first half of the night; REM in the second half, which is why cutting sleep short disproportionately reduces REM.
Evidence-based tips: maintain a consistent sleep-wake schedule (even weekends); keep your bedroom cool (18–20°C/65–68°F), dark, and quiet; avoid screens 1 hour before bed (blue light suppresses melatonin); cut caffeine after 2 pm (caffeine half-life is 5–7 hours); avoid alcohol within 3 hours of bedtime (alcohol reduces REM sleep quality); exercise regularly but not within 2 hours of bed.