Sleep Calculator
Last updated: 27 June 2026
Reviewed by Gavin Meiring, Lead research and primary author ยท Doctoral Candidate (Corporate Governance) ยท Research and drafting assisted by AI
- Sleep occurs in 90-minute cycles of light, deep, and REM sleep. Waking mid-cycle causes the groggy feeling known as 'sleep inertia'. Waking at cycle end feels more natural.
- Humans are one of the few mammals that deliberately delay sleep. Most animals sleep whenever tired. Our social schedules โ not biology โ cause most sleep deprivation.
- Margaret Thatcher claimed to sleep only 4 hours a night. Research now links chronic sleep deprivation to increased risk of Alzheimer's disease โ the condition she later developed.
Sleep Calculator
A sleep calculator helps you work out the best time to go to sleep or wake up so that you rise between sleep cycles rather than in the middle of one. It is used by people who want to wake up feeling refreshed rather than groggy.
How to Use the Sleep Calculator
- Choose your mode: enter your desired wake-up time to find the best bedtimes, or enter your bedtime to find optimal wake-up times.
- Allow approximately 15 minutes for sleep onset when entering your bedtime.
- The calculator will display four to six options, each separated by one sleep cycle (90 minutes).
- Select the time that best fits your schedule and aim for a minimum of five complete cycles (7.5 hours).
- Keep your chosen sleep and wake times consistent, including weekends, to align your circadian rhythm.
The Formula
Each sleep cycle lasts approximately 90 minutes and consists of light sleep, deep sleep, and REM (rapid eye movement) sleep. Waking at the end of a complete cycle minimises sleep inertia (the groggy feeling). Best wake-up time = bedtime plus sleep onset time (15 minutes) plus (N multiplied by 90 minutes), where N is the number of complete cycles. Most adults need 5 to 6 complete cycles, equalling 7.5 to 9 hours of total sleep time.
Real-World Example
You need to wake up at 6:30 am. Working backwards in 90-minute increments from 6:30 am, minus 15 minutes for sleep onset: ideal bedtimes are 11:00 pm (5 cycles, 7.5 hours), 9:30 pm (6 cycles, 9 hours), 12:30 am (4 cycles, 6 hours), and 2:00 am (3 cycles, 4.5 hours). The 11:00 pm option gives the best balance of timing and adequate sleep duration for most adults.
Sleep Stages and Their Functions
Light sleep (stages 1 and 2) accounts for about 50 percent of total sleep and helps with memory consolidation and physical recovery. Deep sleep (stage 3, also called slow-wave sleep) is most restorative, supporting immune function, tissue repair, and growth hormone release. It dominates the first half of the night. REM sleep supports emotional regulation, creativity, and learning consolidation. It increases in proportion during the second half of the night, which is why sleeping fewer than 6 hours cuts REM sleep significantly.
The full bedtime table for a 6:30 am wake-up
The example above lists four options. The table below runs the same calculation over five, with the bedtime, the time you need to be asleep, and the time you need to get into bed shown separately. Each row adds one 90-minute cycle.
| Complete cycles | Time asleep | Asleep by | In bed by |
|---|---|---|---|
| 3 | 4 hours 30 minutes | 2:00 am | 1:45 am |
| 4 | 6 hours | 12:30 am | 12:15 am |
| 5 | 7 hours 30 minutes | 11:00 pm | 10:45 pm |
| 6 | 9 hours | 9:30 pm | 9:15 pm |
| 7 | 10 hours 30 minutes | 8:00 pm | 7:45 pm |
Read the middle and right columns carefully, because they differ by the 15 minutes of sleep onset and the difference decides whether the plan works.
The times in the worked example above match the "asleep by" column, not the "in bed by" column. The 11:00 pm option for five cycles means you need to be asleep at 11:00 pm, so you need to be in bed at 10:45 pm. Treat the 11:00 pm figure as your lights-out target and you hand back the 15 minutes the calculation set aside for falling asleep, and you will surface in the middle of the sixth cycle rather than at the end of the fifth.
When sleep onset takes longer than 15 minutes
Fifteen minutes is the average time it takes a healthy adult to fall asleep, and averages are not personal. If you know your own figure, the table below shows what it does to the plan for a 6:30 am wake-up on a five-cycle night.
| Time to fall asleep | Asleep by | In bed by |
|---|---|---|
| 5 minutes | 11:00 pm | 10:55 pm |
| 15 minutes | 11:00 pm | 10:45 pm |
| 30 minutes | 11:00 pm | 10:30 pm |
| 45 minutes | 11:00 pm | 10:15 pm |
The cycle boundary does not move, because that is set by the wake-up time and the number of cycles. What moves is how early you have to get into bed to reach it. A 45-minute onset pushes bedtime back to 10:15 pm, which is 45 minutes of your evening handed over to the plan.
That is worth knowing before you decide whether a 7.5-hour target is realistic. If falling asleep reliably takes you closer to 45 minutes, a five-cycle night is not a 7.5-hour commitment, it is an 8-hour 15-minute one measured from the moment you get into bed.
How much sleep by age
Recommended durations change with age, and the guidance below comes from the American Academy of Sleep Medicine consensus statement for children and the joint AASM and Sleep Research Society recommendation for adults.
| Age group | Recommended per 24 hours, including naps |
|---|---|
| Infants 4 to 12 months | 12 to 16 hours |
| Children 1 to 2 years | 11 to 14 hours |
| Children 3 to 5 years | 10 to 13 hours |
| Children 6 to 12 years | 9 to 12 hours |
| Teenagers 13 to 18 years | 8 to 10 hours |
| Adults 18 to 60 | 7 or more hours |
One discrepancy is worth flagging. The FAQ above gives 9 to 11 hours for school-age children, which is the band published by the National Sleep Foundation for ages 6 to 13. The AASM consensus statement gives 9 to 12 hours for ages 6 to 12. The two figures are a year or two apart in the age boundary and an hour apart at the top of the range, and neither is wrong: they come from different panels reviewing the evidence at different times. For a school-age child, treat 9 to 11 hours as the conservative target and 12 hours as the outside figure worth checking against how the child behaves on a normal day.
The adult figure comes with a floor rather than a ceiling. The AASM and the Sleep Research Society found that adults sleeping six hours or fewer a night were not getting enough to sustain health and safety, and recommended seven or more hours for all healthy adults. Seven hours is the point at which the evidence turns, not a comfortable target to beat by a wide margin every night.
Which cycles matter most
Where the cycles sit in the night is not a detail. Deep sleep dominates the first half of the night, and REM sleep grows as a proportion of each cycle as the night goes on, which is why the last hour before waking carries a large share of REM.
That distribution explains a result the calculator cannot show. Cutting a night from eight hours to six does not remove a quarter of the value evenly, because the hours you lose are the ones richest in REM. A five-cycle night ending at 6:30 am protects the early deep sleep and the late REM. A four-cycle night keeps most of the deep sleep and gives up a disproportionate amount of REM, which is where the grogginess and the flat mood the next day tend to come from.
The practical consequence is that the calculator's cycle count is a better guide than the total hours. Five complete cycles beats six cycles interrupted by an alarm in the middle of the sixth.
Method and assumptions
The calculator treats a sleep cycle as a fixed 90-minute block. Real cycles vary in length through the night and between people, commonly falling into a broad range around that average rather than landing on 90 minutes every time. The tool uses one figure because a variable cycle length cannot be turned into a bedtime table a person can read.
Sleep onset is fixed at 15 minutes and applied once, at the start of the night. The tool does not model how long you take to fall asleep after a night waking, and it does not model middle-of-the-night wake time at all.
The tool has no inputs for the things that change a night most: caffeine in the afternoon, alcohol in the evening, a shift pattern, a room that is too warm, or a chronotype that sits hours away from the schedule you are trying to keep. It also does not model sleep debt. If you are already short on sleep, the calculated bedtime is the time to reach one night's target, not the time to clear a week's shortfall.
Treat the output as a schedule to aim at rather than a measurement of your sleep. The consistency instruction in the steps above is the part that does most of the work over a fortnight, because a fixed wake time sets the rhythm that the bedtime then fits around.
Frequently Asked Questions
How many hours of sleep do adults need? Most adults need 7 to 9 hours per night for optimal health. Chronic sleep of less than 6 hours is associated with increased risk of cardiovascular disease, obesity, and impaired cognitive function. Teenagers need 8 to 10 hours and school-age children need 9 to 11 hours.
Why do I feel worse after sleeping longer? Waking in the middle of a deep sleep cycle causes sleep inertia, which can feel worse than waking after fewer hours but at the end of a cycle. Using a sleep calculator to time your alarm to a cycle boundary reduces this effect.
Does napping interfere with night sleep? Short naps of 10 to 20 minutes generally do not interfere with night sleep and can improve afternoon alertness. Naps longer than 30 minutes can cause sleep inertia and may reduce sleep pressure at bedtime, particularly if taken late in the afternoon.
What is sleep debt and can I recover from it? Sleep debt is the cumulative effect of regularly sleeping less than your body needs. Short-term sleep debt of a few days can largely be recovered with a weekend of adequate sleep. Chronic long-term sleep debt is harder to fully repay and may have lasting health effects.
Also try these free tools:
Where these durations come from
The adult recommendation of seven or more hours a night comes from the joint consensus statement of the American Academy of Sleep Medicine and the Sleep Research Society, published in the journal Sleep in 2015. The AASM summary of that recommendation is at https://aasm.org/seven-or-more-hours-of-sleep-per-night-a-health-necessity-for-adults/.
The age-banded figures for children and teenagers come from the American Academy of Sleep Medicine consensus statement on paediatric sleep duration, published in the Journal of Clinical Sleep Medicine in 2016, and also listed at https://aasm.org/advocacy/position-statements/child-sleep-duration-health-advisory/. That statement sets infants aged 4 to 12 months at 12 to 16 hours, children 1 to 2 years at 11 to 14 hours, children 3 to 5 years at 10 to 13 hours, children 6 to 12 years at 9 to 12 hours, and teenagers 13 to 18 years at 8 to 10 hours, all per 24 hours and including naps. It deliberately excludes infants under 4 months, where normal variation is too wide for a single recommended duration.