What your result means
Count back from your wake time in whole cycles, then subtract the minutes you take to fall asleep. Wake at 7:00 AM with 15 minutes to fall asleep and 90-minute cycles, and the bedtimes are 9:45 PM for six cycles, 11:15 PM for five and 12:45 AM for four. From a bedtime the sum runs forward: add the minutes to fall asleep, then the cycles. This sleep cycle calculator only does clock arithmetic on two values you can change. The three rows are shown equally; none is marked as better, and the times are not a prescription for how long anyone should sleep.
How to use the Sleep Calculator
- Choose Wake time, Bedtime or Sleep now. Wake time lists bedtimes; Bedtime and Sleep now list wake times.
- Enter the time. Sleep now needs none, because it reads your device’s clock.
- Change the two settings if you like: minutes to fall asleep and cycle length. Both start from a value you can change.
- Read the rows for 4, 5 and 6 cycles. Each gives a clock time and the time asleep. Show times as switches between 12-hour and 24-hour and starts from your browser’s setting.
- Press Log this night to add the night to your calendar, or select a day on the calendar and press Add night or Edit night.
Formula and worked example
bedtime = wake time − (cycles × cycle length) − minutes to fall asleepwake time = bedtime + minutes to fall asleep + (cycles × cycle length)cycles for a logged night = round((minutes in bed − minutes to fall asleep) ÷ cycle length), never below 0Times wrap past midnight on a 24-hour clock.
Worked example: to wake at 7:00 AM with 15 minutes to fall asleep and 90-minute cycles, 6 cycles is 9 h asleep, so bedtime 9:45 PM; 5 cycles is 7 h 30 min asleep, so bedtime 11:15 PM; 4 cycles is 6 h asleep, so bedtime 12:45 AM. Each answer is the wake time minus the sleep, minus the 15 minutes. These are clock sums, not a prescription for how long anyone should sleep.
How long is one sleep cycle
Sleep has stages: non-REM sleep and REM sleep. Over a night the stages repeat in a cycle. The National Heart, Lung, and Blood Institute (NHLBI) says that a cycle repeats about every 80 to 100 minutes and that sleep usually has four to six cycles a night.
This page starts from 90 minutes, the middle of that range, and lets you change it from 80 to 110 minutes. 90 is a starting value for the arithmetic, not a measurement of your own sleep. The cycle lengths of real nights vary, and nothing on this page can tell you yours.
About the daily log
The daily log is a month calendar under the calculator. Press Log this night, or tap a day, then enter the time you went to bed and the time you got up. Each logged day shows the time asleep and the number of cycles, always counted with 15 minutes to fall asleep and 90-minute cycles, whatever the settings above are.
You can set your own target in cycles per night, from 1 to 8. A night that reaches it shows a smiling face, a night below it shows a neutral face, and with no target set there is no face. The face only compares a night with the number you chose. It is not a judgement of the night, and the page never describes a night as better or worse than another.
The switch Remember my log on this device saves the log in this browser’s own storage so it is there next visit. It starts on and is also in the Log a night form, but nothing is saved just by opening the page: the log is saved when you save a night or change a log setting. Turn the switch off before you save and the log is held in the page only until you close or reload it. The log is not sent to our servers, not included in our analytics and not put in the page address. No account is needed.
Browsers can clear saved site data, so export a CSV file now and then. Import CSV brings a file back on this device. Clear log deletes every night, removes your target and switches Remember off. The log holds up to 366 nights; past that, the oldest is dropped.
Wake times by cycle count
| Get into bed at | Wake after 4 cycles | Wake after 5 cycles | Wake after 6 cycles |
|---|---|---|---|
| 9:30 PM | 3:45 AM | 5:15 AM | 6:45 AM |
| 10:00 PM | 4:15 AM | 5:45 AM | 7:15 AM |
| 10:30 PM | 4:45 AM | 6:15 AM | 7:45 AM |
| 11:00 PM | 5:15 AM | 6:45 AM | 8:15 AM |
| 11:30 PM | 5:45 AM | 7:15 AM | 8:45 AM |
| 12:00 AM | 6:15 AM | 7:45 AM | 9:15 AM |
| 12:30 AM | 6:45 AM | 8:15 AM | 9:45 AM |
| 1:00 AM | 7:15 AM | 8:45 AM | 10:15 AM |
| 1:30 AM | 7:45 AM | 9:15 AM | 10:45 AM |
Each wake time is the bedtime plus 15 minutes to fall asleep plus the cycles at 90 minutes each (4 cycles = 6 h, 5 cycles = 7 h 30 min, 6 cycles = 9 h). Read it the other way to find a bedtime for a wake time. Change the two starting values in the calculator to match your own.
Hours of sleep by age
| Age group | Age | Hours per day (as published) |
|---|---|---|
| Newborn | 0-3 months | 14-17 |
| Infant | 4-12 months | 12-16 (including naps) |
| Toddler | 1-2 years | 11-14 (including naps) |
| Preschool | 3-5 years | 10-13 (including naps) |
| School age | 6-12 years | 9-12 |
| Teen | 13-17 years | 8-10 |
| Adult | 18-60 years | 7 or more |
| Adult | 61-64 years | 7-9 |
| Adult | 65 years and older | 7-8 |
Recommended daily sleep by age group, as published by the CDC (About Sleep, page dated May 15, 2024). A published reference range. This page does not judge any person’s sleep.
Assumptions and limits
- The 15 minutes to fall asleep and the 90-minute cycle are editable starting values, not measurements of you. Change them and every time updates.
- The 12-hour or 24-hour display starts from your browser’s setting and is not saved; switch it with Show times as.
- Sleep now uses your device’s clock, read when you change a setting or come back to the page. It is not stored.
- Times are wall-clock times. A daylight-saving change during the night is not modelled.
- This is scheduling arithmetic, not medical advice. No figure here diagnoses anything, and the page does not know what you need.
Frequently asked questions
How long is a sleep cycle?
The National Heart, Lung, and Blood Institute says a sleep cycle repeats about every 80 to 100 minutes, and that sleep usually has four to six cycles a night. This page starts from 90 minutes, the middle of that range, and you can change it. Your own cycles can be longer or shorter, and this page cannot measure them.
How much sleep do adults need?
The CDC lists 7 or more hours a day for ages 18 to 60, 7 to 9 hours for ages 61 to 64 and 7 to 8 hours for ages 65 and older. That is a published reference range, quoted as it stands in the table on this page. This page cannot say what a particular person needs.
Is 7 hours of sleep enough?
Seven hours is the lower edge of the CDC’s published figure of 7 or more hours a day for ages 18 to 60. Whether it is enough for you is not something this page can say. Five 90-minute cycles come to 7 hours 30 minutes, the nearest row to 7 hours; that is arithmetic, not a recommendation.
Is 6 hours of sleep enough?
The CDC’s published figure for ages 18 to 60 is 7 or more hours a day; six hours is a lower number than that. Four 90-minute cycles come to exactly 6 hours, so that row of the calculator shows 6 hours asleep. It is arithmetic, not a recommendation, and this page cannot say what is enough for any person.
What time should I sleep?
Choose Wake time, enter the time you must get up and read the rows. Each row counts back from it by whole cycles plus the minutes you take to fall asleep. For a 7:00 AM wake time, the bedtimes are 9:45 PM for six cycles, 11:15 PM for five and 12:45 AM for four. The answer depends on your wake time and on how long you take to fall asleep.
What time should I wake up?
Choose Bedtime, or Sleep now, and read the 4, 5 and 6 cycle rows. Each is a wake time: the bedtime, plus the minutes to fall asleep, plus whole cycles. Getting into bed at 11:00 PM with 15 minutes to fall asleep and 90-minute cycles gives 5:15 AM, 6:45 AM and 8:15 AM for four, five and six cycles.
Related calculators
About this calculator
Written and maintained by Ahsan Khan. See how every number is calculated, and the test cases checked on every update, on the methodology page.
Sources
- Sleep: stages of sleep (page dated March 24, 2022), National Heart, Lung, and Blood Institute (accessed Nov 13, 2026)
- Sleep: about sleep (page dated May 15, 2024), Centers for Disease Control and Prevention (accessed Nov 13, 2026)
- Sleep: how much sleep (page dated March 24, 2022), National Heart, Lung, and Blood Institute (accessed Nov 13, 2026)
Found an error? Email a correction and include the link from “Copy link” so we can reproduce it.
Scheduling arithmetic, not medical advice. This page does not diagnose, treat or advise, and it cannot know what any person needs.