Need to be up at 7:00 and wondering what time to go to bed? This sleep calculator works out bedtimes that let you wake at the end of a sleep cycle instead of in the middle of deep sleep. It assumes 90-minute cycles plus the time you usually take to fall asleep (15 minutes by default). You can also enter a bedtime to see the best times to set your alarm. Cycle length varies between people, so treat the times as a helpful guide.
Formula
Bedtime = wake-up time - (cycles x 90 min) - time to fall asleep. Wake-up time = bedtime + time to fall asleep + (cycles x 90 min).
How it works
During the night you go through sleep cycles of light sleep, deep sleep and REM that last roughly 90 minutes each. Waking at the end of a cycle, rather than from deep sleep, tends to feel less groggy. Choose a wake-up time and the calculator counts back 6, 5, 4 and 3 cycles plus the minutes you usually need to fall asleep; choose a bedtime and it counts forward. Real cycles range from about 80 to 120 minutes, so use the times as a guide. Adults need 7 or more hours according to the American Academy of Sleep Medicine, which makes 5 or 6 cycles the target.
How the sleep calculator works
A night of sleep is made of repeating cycles of light sleep, deep sleep and REM sleep, each lasting roughly 90 minutes in adults (anywhere from about 80 to 120). Waking up at the end of a cycle, when sleep is lighter, usually feels easier than being pulled out of deep sleep, which can leave you groggy (sleep inertia).
In "wake up" mode the calculator starts from your alarm time and subtracts whole cycles of 90 minutes plus your time to fall asleep: 6 cycles (9 hours), 5 cycles (7 hours 30), 4 cycles (6 hours) and 3 cycles (4 hours 30). In "go to bed" mode it does the opposite and adds the same amounts to your bedtime.
Worked example: alarm at 7:00 AM
To wake at 07:00 after 5 cycles, count back 5 x 90 = 450 minutes (7 hours 30) and another 15 minutes to fall asleep: you should be in bed at 23:15 (11:15 PM). For 6 cycles the bedtime is 21:45, and for 4 cycles it is 00:45. The 3-cycle option, 02:15, is only for emergencies.
Going the other way, if you get into bed at 23:00 and take 15 minutes to drop off, the best alarm times are 06:45 (5 cycles), 08:15 (6 cycles) or 05:15 (4 cycles). If you usually need longer to fall asleep, change the minutes field: with 30 minutes every time moves 15 minutes.
How much sleep you need by age
The American Academy of Sleep Medicine and the Sleep Research Society recommend that adults sleep 7 or more hours per night on a regular basis. The National Sleep Foundation suggests 7 to 9 hours for adults aged 18 to 64 and 7 to 8 hours for those over 65. Teenagers need 8 to 10 hours and school-age children 9 to 12.
That means 5 cycles (7 hours 30) is the practical target for most adults, and 6 cycles suits people who need more. Four cycles, 6 hours, is below the recommendation: the calculator shows it, but waking at the end of a cycle does not make up for missing total sleep.
Tips for falling asleep on time
Keep the same wake-up time every day, including weekends; it anchors your body clock more than bedtime does. Dim screens and bright lights in the last hour, keep caffeine to the morning and early afternoon, and keep the bedroom cool, dark and quiet. If you regularly need more than 30 minutes to fall asleep, wake often or feel tired despite enough hours, talk to a doctor, as conditions such as insomnia or sleep apnea are common and treatable.
Naps follow the same logic: 20 minutes stays in light sleep, while 90 minutes completes a full cycle. To add up hours slept across the week, try the hours calculator, and if you train early in the morning, the heart rate zone calculator helps keep easy days easy when you are short on sleep.
Frequently Asked Questions
- Is it better to sleep 6 hours or 7 hours and 30 minutes?
- 7 hours 30 (5 cycles). Waking at the end of a cycle helps how you feel on waking, but total sleep matters more, and 6 hours is below the 7 hours recommended for adults.
- What time should I go to bed to wake up at 6 AM?
- With 15 minutes to fall asleep: 20:45 for 6 cycles, 22:15 for 5 cycles (7 hours 30) or 23:45 for 4 cycles. 22:15 is the best balance for most adults.
- Is it better to sleep 6 hours or 8 hours?
- Eight hours of total sleep is better for health than 6, even if you wake mid-cycle. Cycle timing affects how you feel on waking; total sleep affects health and performance.
- How long is a sleep cycle?
- About 90 minutes on average for adults, but it ranges from roughly 80 to 120 minutes and changes through the night, with more deep sleep early and more REM later.
- How long should it take to fall asleep?
- Typically 10 to 20 minutes. Falling asleep in under 5 minutes can be a sign of sleep deprivation; regularly taking more than 30 minutes may point to insomnia.