Sleep Calculator

By Ahsan Khan · Last reviewed · How we check our numbers

Quick answer

Choose wake time, bedtime or sleep now to see clock times for 4, 5 and 6 sleep cycles, then log the night. To wake at 7:00 AM with 15 minutes to fall asleep and 90-minute cycles, the bedtimes are 9:45 PM for six cycles, 11:15 PM for five and 12:45 AM for four.

Plan from

More options (3)

Show times as

Starts from your browser’s clock setting. Not saved.

Starting value: 15. Change it to the number that fits you.

Starting value: 90. Change it to the number that fits you.

Wake-up time

7:00 AM

4 cycles: bedtime12:45 AM (6 h asleep)
5 cycles: bedtime11:15 PM (7 h 30 min asleep)
6 cycles: bedtime9:45 PM (9 h asleep)
Show the working
  1. Start from the wake-up time, 7:00 AM, and count back.
  2. 4 cycles: 4 × 90 = 360 min (6 h) asleep, plus 15 min to fall asleep = 375 min. 375 min before 7:00 AM is 12:45 AM.
  3. 5 cycles: 5 × 90 = 450 min (7 h 30 min) asleep, plus 15 min to fall asleep = 465 min. 465 min before 7:00 AM is 11:15 PM.
  4. 6 cycles: 6 × 90 = 540 min (9 h) asleep, plus 15 min to fall asleep = 555 min. 555 min before 7:00 AM is 9:45 PM.
  5. Both 15 and 90 minutes are starting values you can change.

Free, with no sign-up and nothing to unlock. Nothing you type leaves your browser.

Daily log

The daily log is a calendar of the nights you enter. It stays on this device.

Start tracking your sleep cycles now

Add the time you went to bed and the time you got up. Your calendar stays on this device.

Nights logged
0
Average asleep
–
Longest
–
Shortest
–
My target: not set

Choose your own target. The face on each night only shows whether that night reached it. It is not a rating of your sleep.

Target reached Below target

Browsers can clear saved site data. Export a CSV now and then so you can import it back. Counted with 15 minutes to fall asleep and 90-minute cycles.

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

  1. Choose Wake time, Bedtime or Sleep now. Wake time lists bedtimes; Bedtime and Sleep now list wake times.
  2. Enter the time. Sleep now needs none, because it reads your device’s clock.
  3. Change the two settings if you like: minutes to fall asleep and cycle length. Both start from a value you can change.
  4. 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.
  5. 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 atWake after 4 cyclesWake after 5 cyclesWake after 6 cycles
9:30 PM3:45 AM5:15 AM6:45 AM
10:00 PM4:15 AM5:45 AM7:15 AM
10:30 PM4:45 AM6:15 AM7:45 AM
11:00 PM5:15 AM6:45 AM8:15 AM
11:30 PM5:45 AM7:15 AM8:45 AM
12:00 AM6:15 AM7:45 AM9:15 AM
12:30 AM6:45 AM8:15 AM9:45 AM
1:00 AM7:15 AM8:45 AM10:15 AM
1:30 AM7:45 AM9:15 AM10: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 groupAgeHours per day (as published)
Newborn0-3 months14-17
Infant4-12 months12-16 (including naps)
Toddler1-2 years11-14 (including naps)
Preschool3-5 years10-13 (including naps)
School age6-12 years9-12
Teen13-17 years8-10
Adult18-60 years7 or more
Adult61-64 years7-9
Adult65 years and older7-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.

About this calculator

Ahsan Khan
Last reviewed

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

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.