Sleep Calculator

Sleep is one of the simplest things you can measure, and one of the most useful. Knowing how long you actually slept, rather than how long you spent in bed, helps you see whether you are getting enough rest, whether a new bedtime is working, and whether a change in routine is helping or hurting. This sleep duration calculator works out the time between your bedtime and your wake time, even when that sleep crosses midnight, and it also shows how many 90-minute sleep cycles fit into that time.



How to Use

Enter two times, and the calculator does the rest. It handles overnight sleep automatically, so you do not need to enter a date.

  1. Enter your bedtime in the first box, for example 22:30 for half past ten at night.
  2. Enter your wake time in the second box, for example 06:30 for half past six in the morning.
  3. Press the Calculate sleep button, or change a value and watch the result update.
  4. Read the sleep duration first, shown in hours and minutes and in total minutes.
  5. Read the cycle count second, shown as a number with one decimal place, such as 5.3 cycles.

Formula

The sleep duration formula turns both times into minutes since midnight, then subtracts the bedtime from the wake time. Bedtime at 10:30 PM is 22 times 60 plus 30, which is 1,350 minutes. Wake time at 6:30 AM is six times 60 plus 30, which is 390 minutes. Subtracting gives 390 minus 1,350, which is negative 960, so the calculator adds 1,440 minutes, which is 24 hours, to get 480 minutes. Dividing 480 by 60 gives eight hours of sleep.

The cycle count uses the same total. A typical sleep cycle lasts about 90 minutes, so the number of cycles equals total sleep minutes divided by 90. For 480 minutes, the calculation is 480 divided by 90, which is 5.33, shown as about 5.3 cycles. A whole number of cycles, such as five cycles at 450 minutes, means the wake time falls near the end of a cycle, while a fraction such as 5.3 means the wake time falls part-way through the next cycle.

Worked Examples

The table below shows four common sleep patterns, each worked out with the same formula. You can enter each pair of times in the calculator above and check that the result matches.

Bedtime to wake timeSleep durationTotal minutesSleep cycles
10:30 PM to 6:30 AM8 hours480 minutesAbout 5.3 cycles (480 divided by 90)
11:00 PM to 7:00 AM8 hours480 minutesAbout 5.3 cycles (480 divided by 90)
11:00 PM to 6:00 AM7 hours420 minutesAbout 4.7 cycles (420 divided by 90)
10:00 PM to 6:00 AM8 hours480 minutesAbout 5.3 cycles (480 divided by 90)

Common Uses

  • Daily sleep check: see at a glance whether last night met your sleep target.
  • Bedtime planning: work backwards from a fixed wake time to choose a bedtime that gives enough cycles.
  • Shift workers: measure daytime sleep after a night shift, when the hours feel harder to judge.
  • Children and teenagers: check that school-night sleep is long enough for the next day.
  • Travel and jet lag: compare sleep on travel days with sleep at home.
  • Health records: keep a simple weekly log to share with a doctor or a sleep clinic.
  • Routine changes: test a new bedtime for a week and see whether the average duration improves.

Frequently Asked Questions

How many hours of sleep do most adults need?

Most adults need between seven and nine hours a night. Some people feel well on seven hours, while others need eight or nine. The best guide is how you feel during the day: steady energy, clear thinking, and no strong need for a long daytime nap usually mean the amount is about right for you.

What is a sleep cycle, and why does it matter?

A sleep cycle lasts about 90 minutes and moves through light sleep, deep sleep, and dream sleep. Waking near the end of a cycle often feels easier than waking in the middle of deep sleep. That is why a sleep length of seven and a half hours, which is five cycles, can feel better than eight hours that ends mid-cycle.

Does the calculator count time spent awake during the night?

No. It measures the full span from bedtime to wake time. If you were awake for a long stretch in the middle of the night, subtract that time from the result to get your true sleep time. For example, eight hours in bed with one hour awake means about seven hours of sleep.

What if I go to bed after midnight?

The calculator still works, because it adds 24 hours whenever the wake time is earlier than the bedtime. A bedtime of 1:00 AM and a wake time of 8:00 AM gives seven hours. If both times are after midnight, the subtraction works without the overnight step.

How can I use the cycle count to choose a bedtime?

Start from your wake time and count back in steps of 90 minutes. For a 6:30 AM wake time, five cycles back is 11:00 PM, and six cycles back is 9:30 PM. Choose the bedtime that gives you enough total sleep and fits your evening routine, then test it for a few nights.

Scroll to Top