Sleep Calculator guide
Work out when to go to bed or when to set your alarm so you wake at the end of a 90-minute sleep cycle, including the time it takes you to fall asleep.
How the sleep calculator works
Sleep moves through repeating cycles of light sleep, deep sleep, and REM sleep. Each cycle averages about 90 minutes in adults, though real cycles range from roughly 70 to 120 minutes. Waking at the end of a cycle, during light sleep, usually feels easier than being dragged out of deep sleep by an alarm.
The calculator adds whole cycles to your chosen time and accounts for how long it takes you to fall asleep, called sleep latency. In wake-up mode it works backwards: bedtime = wake time − (cycles × 90 minutes) − latency. In bedtime mode it works forward: wake time = bedtime + latency + (cycles × 90 minutes). Go to bed now uses the current time as your bedtime. It shows 6, 5, 4, and 3 cycles, which is 9, 7.5, 6, and 4.5 hours of actual sleep.
Worked example: a 6:30 AM alarm
You need to be up at 6:30 AM and it usually takes you 15 minutes to fall asleep. For 5 cycles, 7.5 hours of sleep, subtract 450 minutes plus 15: bedtime is 10:45 PM. For 6 cycles, 9 hours, it is 9:15 PM. For 4 cycles, 6 hours, it is 12:15 AM.
Going the other way, if you get into bed at 11:30 PM, you are likely asleep by 11:45. Five cycles later is 7:15 AM, and four cycles later is 5:45 AM. If your alarm is 7:00, you would wake 15 minutes before the end of your fifth cycle, likely in lighter sleep, which is close enough for most people.
How much sleep you actually need
The CDC recommends 7 or more hours per night for adults 18 to 60, 7 to 9 hours for ages 61 to 64, and 7 to 8 hours for 65 and older. Teens 13 to 18 need 8 to 10 hours, and school-age children 6 to 12 need 9 to 12. About a third of US adults regularly get less than 7 hours.
In cycle terms, 5 cycles (7.5 hours) is the realistic target for most adults, and 6 cycles (9 hours) is worth it when you are recovering from short nights. Four cycles, 6 hours, is below the recommendation; it can work for a single night, but consistently sleeping under 7 hours is linked to higher risk of obesity, diabetes, high blood pressure, heart disease, and depression.
Tuning the results to your own body
The 90-minute figure is an average. If you consistently wake a few minutes before your alarm at a 7.5-hour setting, your cycles may be slightly shorter. If you feel groggy on the calculator's times, shift your bedtime 10 to 15 minutes in either direction for a week and notice which feels best. A sleep tracker can help, although consumer wearables are far less accurate than a lab sleep study at identifying stages.
Be honest about sleep latency. Healthy adults typically fall asleep in 10 to 20 minutes. If it takes you 5 minutes or less every night, you may be sleep deprived. If it regularly takes more than 30, it is worth talking to a doctor about insomnia.
Common mistakes
Counting time in bed as sleep. Reading, scrolling, and lying awake do not count. Set the latency field to reflect when you really drift off.
Chasing perfect cycle timing over total sleep. Seven and a half hours that ends mid-cycle still beats 6 hours that ends on a cycle boundary. Timing is a tiebreaker, not a replacement for enough sleep.
Shifting your schedule on weekends. Sleeping in 2 or 3 hours on Saturday and Sunday creates social jet lag and makes Monday wake-ups harder. Keep wake time within about an hour every day, including weekends.
Using the snooze button. Each snooze drops you back into the start of a new cycle, then interrupts it. Set the alarm for the time you will actually get up.
How we calculate: sources
Frequently asked questions
How does a sleep calculator work?
Sleep runs in cycles of roughly 90 minutes. The calculator counts whole cycles back from your wake-up time, or forward from bedtime, and adds the minutes it takes you to fall asleep.
Why do I wake up tired after 8 hours?
Waking in the middle of deep sleep causes grogginess, known as sleep inertia. Waking at the end of a cycle tends to feel easier even if total sleep is slightly shorter.
How many sleep cycles do I need?
Most adults do best with 5-6 cycles (7.5-9 hours). The CDC recommends at least 7 hours per night for adults.
What time should I go to bed to wake up at 6 AM?
With 15 minutes to fall asleep, try 8:45 PM (6 cycles), 10:15 PM (5 cycles), or 11:45 PM (4 cycles).
Are sleep cycles always 90 minutes?
No. They range from about 70 to 120 minutes and vary through the night, so treat the results as a guide and adjust based on how you feel.
Can I use it to plan a nap?
Yes. A 20-minute nap keeps you in light sleep and avoids grogginess, while a full 90-minute nap completes one cycle. Naps of 30 to 60 minutes are most likely to leave you groggy because you wake from deep sleep.
Is my data uploaded?
Everything runs in your browser. Nothing you enter is uploaded to a server or stored by us.
What time should I go to bed to wake up at 7 AM?
With 15 minutes to fall asleep: 9:45 PM for 6 cycles (9 hours), 11:15 PM for 5 cycles (7.5 hours), or 12:45 AM for 4 cycles (6 hours).
Is 6 hours of sleep enough?
For most adults, no. The CDC recommends at least 7 hours. Six hours is 4 full cycles, which can feel fine for a night but builds sleep debt if it becomes a habit.