Sleep Calculator
This sleep calculator helps you plan when to go to bed or when to wake up by counting full 90-minute sleep cycles and adding a 15-minute buffer for falling asleep. Enter the time you need to wake up, or the time you expect to get in bed, and the tool returns three practical options that line up with the end of a cycle instead of the middle of one. That simple timing change can make an alarm feel less abrupt, especially when you are trying to avoid waking during deeper sleep. The tool is best for schedule planning, not for judging sleep quality. It assumes a typical cycle length of 90 minutes and suggests either 4, 5, or 6 full cycles depending on the direction of the calculation. That gives you a quick way to compare an early bedtime, a middle option, and a longer night of sleep. If you are setting a weekday alarm, planning a travel day, or trying to back into a more consistent bedtime, these suggested times give you a realistic starting point without doing the clock math yourself.
Quick answer
A typical adult sleep cycle lasts about 90 minutes, though real cycles can run shorter or longer from person to person.
What this tells you
- •A typical adult sleep cycle lasts about 90 minutes, though real cycles can run shorter or longer from person to person.
- •The calculator aims for wake-ups at the end of a cycle, when sleep is often lighter than it is in the middle of a cycle.
- •A 15-minute fall-asleep buffer is added so the recommendations start from when you are likely asleep, not the moment you get into bed.
- •Wake-time mode counts backward from your alarm and gives bedtime options based on 6, 5, and 4 full cycles.
- •Bedtime mode counts forward from your planned sleep time and gives wake-up options after 4, 5, and 6 full cycles.
How to Use
- 11. Choose the mode that matches your goal. Pick the wake option if you already know when you must get up, or pick the sleep option if you know when you plan to go to bed.
- 22. Enter the hour and minute in 24-hour time. For example, 6:30 AM is hour 6 and minute 30, while 10:45 PM is hour 22 and minute 45.
- 33. Click Calculate to generate three recommendations. The first result is the longest option in wake mode and the shortest option in sleep mode because the formula follows the cycle order used in the code.
- 44. Compare the three times with your real schedule. A later bedtime may fit your evening better, while an earlier bedtime may give you room for more total sleep.
- 55. Use the result as a planning guide, then adjust for your own routine, sleep latency, and obligations. If you usually need more than 15 minutes to fall asleep, mentally shift the bedtime earlier or the wake time later.
How It Works
Formula
Recommended time = reference time ± (number of cycles × 90 minutes) ± 15-minute fall-asleep bufferThe formula uses two fixed values from the calculator logic: a 90-minute sleep cycle and a 15-minute fall-asleep buffer. In wake mode, the tool starts with your target wake time, subtracts 15 minutes, then subtracts 6, 5, or 4 cycles to produce bedtime options. In sleep mode, the tool starts with your planned bedtime, adds 15 minutes to estimate when sleep begins, then adds 4, 5, or 6 cycles to produce wake-up options. Written as minutes, wake mode is bedtime = wake time - (cycles × 90) - 15, and sleep mode is wake time = bedtime + 15 + (cycles × 90). The calculator wraps past midnight automatically, so negative times move to the previous day and late-night bedtimes can return morning wake times correctly.
Calculation note: values are processed in the order shown above, using the current input units.
Worked Examples
Wake at 7:00 AM
For a 7:00 AM wake-up, the tool counts backward from 7:00 AM. Six cycles equal 540 minutes, five cycles equal 450 minutes, and four cycles equal 360 minutes. After subtracting those cycle totals plus the 15-minute buffer, the bedtime options are 9:45 PM, 11:15 PM, and 12:45 AM.
Wake at 6:30 AM
Start with 6:30 AM, then subtract 9 hours and 15 minutes for 6 cycles, 7 hours and 45 minutes for 5 cycles, and 6 hours and 15 minutes for 4 cycles. That gives 9:15 PM, 10:45 PM, and 12:15 AM. This is the same clock math the formula file performs before formatting the times.
Go to bed at 10:30 PM
The calculator first adds the 15-minute buffer, so a 10:30 PM bedtime becomes an estimated sleep start of 10:45 PM. Adding 4, 5, and 6 cycles means adding 360, 450, and 540 minutes. The resulting wake-up options are 4:45 AM, 6:15 AM, and 7:45 AM.
Go to bed at 11:20 PM
Add 15 minutes first to get a sleep start of 11:35 PM. Then add 6 hours for 4 cycles, 7 hours and 30 minutes for 5 cycles, and 9 hours for 6 cycles. Because the times pass midnight, the formatted wake-up results land on 5:35 AM, 7:05 AM, and 8:35 AM the next day.
Go to bed at 1:05 AM
A 1:05 AM bedtime becomes 1:20 AM after the buffer. Add 4 cycles to reach 7:20 AM, 5 cycles to reach 8:50 AM, and 6 cycles to reach 10:20 AM. This example shows how the calculator handles very late bedtimes without any extra input from you.
Rosa, a night-shift nurse, in bed at 8:10 AM
Rosa works 7 PM to 7 AM on a hospital ward. She gets home, draws the blackout curtains, and is in bed at 8:10 AM, so she enters hour 8 and minute 10 in sleep mode. The tool adds the 15-minute buffer for a sleep start of 8:25 AM, then adds 360, 450, and 540 minutes to reach 2:25 PM, 3:55 PM, and 5:25 PM. She needs about 90 minutes to eat and commute before her next 7 PM shift, so 5:25 PM is the latest option that fits. On most days she sets the alarm for 3:55 PM, which gives her 7.5 hours of sleep and meets the 7 or more hours that sleep medicine groups recommend for adults. The math works the same in daylight, but the calculator cannot tell whether daytime sleep after a night shift will be as deep or as long as a normal night.
Bedtimes for common wake-up times
Each row is the calculator's wake-mode output for that alarm time. The times assume you fall asleep 15 minutes after lights out, so time in bed is 15 minutes longer than the sleep shown in each column header.
| Wake-up time | 6 cycles (9 h asleep) | 5 cycles (7.5 h asleep) | 4 cycles (6 h asleep) |
|---|---|---|---|
| 4:30 AM | 7:15 PM | 8:45 PM | 10:15 PM |
| 5:00 AM | 7:45 PM | 9:15 PM | 10:45 PM |
| 5:30 AM | 8:15 PM | 9:45 PM | 11:15 PM |
| 6:00 AM | 8:45 PM | 10:15 PM | 11:45 PM |
| 6:30 AM | 9:15 PM | 10:45 PM | 12:15 AM |
| 7:00 AM | 9:45 PM | 11:15 PM | 12:45 AM |
| 7:30 AM | 10:15 PM | 11:45 PM | 1:15 AM |
| 8:00 AM | 10:45 PM | 12:15 AM | 1:45 AM |
| 8:30 AM | 11:15 PM | 12:45 AM | 2:15 AM |
| 9:00 AM | 11:45 PM | 1:15 AM | 2:45 AM |
Computed with the live formula: bedtime = wake time - (cycles × 90 minutes) - 15 minutes, wrapped past midnight. The 90-minute cycle is a rounded average. The Institute of Medicine's 2006 report on sleep disorders gives 70 to 100 minutes for the first NREM-REM cycle and about 90 to 120 minutes for later ones, and Cajochen et al. (Sleep Health, 2024) measured a median of 96 minutes across 6,064 recorded cycles. The 4-cycle column falls below the 7 or more hours a night that the AASM and Sleep Research Society recommend for adults (Watson et al. 2015). The 5- and 6-cycle columns sit inside the National Sleep Foundation's 7 to 9 hour range for adults 18 to 64 (Hirshkowitz et al. 2015), and 6 cycles is above the 7 to 8 hours the foundation lists for adults 65 and older.
Where the 90-minute cycle comes from, and what it leaves out
The cycle idea traces back to two papers. Aserinsky and Kleitman reported regularly recurring periods of rapid eye movement during sleep in Science in 1953, and Dement and Kleitman's 1957 paper in Electroencephalography and Clinical Neurophysiology tied those periods to a repeating pattern of EEG sleep stages across the night. Ninety minutes became the shorthand for one pass from light NREM sleep through deep slow-wave sleep to REM. The Institute of Medicine's 2006 report on sleep disorders puts the first NREM-REM cycle at 70 to 100 minutes and later cycles at about 90 to 120 minutes, with REM longest in the last third of the night. In 2024, Cajochen and colleagues pooled laboratory recordings from 369 people in Sleep Health and found a median of 96 minutes across 6,064 cycles, with large differences between people and a first cycle that was consistently shorter than the rest.
Small differences add up over a night. If your cycles average 96 minutes instead of 90, five cycles take 8 hours instead of 7.5, so an alarm set for the calculator's 5-cycle time rings 30 minutes before your fifth cycle ends. At 100 minutes the gap grows to 50 minutes, more than half a cycle. The tool cannot see your sleep stages, so treat its times as a sensible grid for choosing an alarm, not a promise that you will wake between cycles.
The reason to aim for a cycle boundary is sleep inertia, the groggy, slowed state right after waking. In a 2000 review in Sleep Medicine Reviews, Tassi and Muzet reported that abrupt waking from slow-wave sleep produces more inertia than waking from stage 1 or 2, with REM in between, and that without major sleep loss the effect rarely lasts beyond 30 minutes. The 15-minute buffer stands in for sleep latency, the time from lights out to sleep. The National Sleep Foundation's sleep quality report (Ohayon et al., Sleep Health 2017) treats falling asleep within 30 minutes as a sign of good sleep quality, so 15 minutes is a middle value, not a target. If you usually need 30 minutes, move every bedtime in the table 15 minutes earlier.
Total sleep matters more than timing. The joint consensus of the American Academy of Sleep Medicine and the Sleep Research Society (Watson et al. 2015), written by a 15-member panel after a review of 5,314 papers, recommends 7 or more hours a night on a regular basis for adults 18 to 60. It adds that more than 9 hours may suit young adults, people recovering from sleep debt, and people who are ill, and it sets no upper limit. The National Sleep Foundation's expert panel recommends 7 to 9 hours for adults 18 to 64 and 7 to 8 hours from age 65, and the AASM's pediatric statement (Paruthi et al. 2016) puts teenagers 13 to 18 at 8 to 10 hours. Against those figures, 4 cycles is a short night even when it ends on a cycle boundary, 5 cycles meets the adult recommendations, and 6 cycles fits people who need more.
The math also ignores the calendar and your body. On the nights clocks change for daylight saving time, the real interval between bedtime and alarm is an hour longer or shorter than the clock difference the tool uses. Shift work, jet lag, alcohol, and sleep disorders such as insomnia or obstructive sleep apnea can change how sleep is structured and how rested you feel, and no bedtime arithmetic corrects for them. If you regularly sleep 7 to 9 hours and still wake unrefreshed, that is a reason to talk with a clinician, not to keep moving the alarm.
Common mistakes
- Treating the suggestions as a guarantee that you will feel rested. Cycle timing can help, but total sleep time, stress, illness, light exposure, and sleep quality still matter.
- Ignoring the 24-hour input format. Entering 10 for a 10:00 PM plan instead of 22 shifts the result by 12 hours and produces the wrong schedule.
- Forgetting that the 15-minute buffer is already included. If you manually add the same buffer again, you will push every recommendation off by another 15 minutes.
- Choosing a cycle-friendly wake-up time that still leaves too little total sleep. Four cycles may fit a busy day, but it is still only about 6 hours of sleep.
- Using one night of results to judge a long-term sleep problem. This tool helps with clock planning, not diagnosis, treatment, or deeper sleep tracking.
Limitations
This calculator uses a fixed 90-minute cycle and a fixed 15-minute fall-asleep buffer and does clock math only. Real cycles vary. The Institute of Medicine's 2006 sleep report gives 70 to 100 minutes for the first cycle and about 90 to 120 minutes for later ones, and a 2024 pooled laboratory analysis (Cajochen et al., Sleep Health) found a 96-minute median with wide differences between people, so after 5 cycles a suggested time can sit 30 minutes or more away from your real cycle boundary. The buffer may be too short or too long for you. The tool does not measure sleep stages or detect sleep disorders such as insomnia or sleep apnea, and it does not adjust for age, shift work, jet lag, alcohol, medication, or the nights clocks change for daylight saving time, when the real interval differs from the clock by an hour. The 4-cycle option gives 6 hours of sleep, below the 7 or more hours the AASM and Sleep Research Society recommend for adults (Watson et al. 2015), and the AASM recommends 8 to 10 hours for teenagers 13 to 18 (Paruthi et al. 2016). Use the times to plan a schedule, not to judge sleep quality.
Embed this calculator on your site
Paste this code where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use as long as the credit line stays in place.
<script src="https://calctide.com/embed.js" data-tool="sleep-calculator" async></script>
<p style="font-size:12px;margin:4px 0 0">Sleep Calculator by <a href="https://calctide.com/health/sleep-calculator/">CalcTide</a></p>Preview the embed at /embed/sleep-calculator/.