How to Calculate Time Slept and Sleep Efficiency

"I was in bed for eight hours" and "I slept for eight hours" are different statements. The time you take to fall asleep and the minutes you spend awake in the night come off the total, and the proportion that is left is called sleep efficiency.

This article walks through the calculation from bedtime and wake time, shows how to avoid the usual mistakes when the night crosses midnight, and explains what a given efficiency figure does and does not tell you.

Time in bed, across midnight

Decide first what "in bed" means and stay consistent. A sensible choice is to count from the moment you turn the lights out and try to sleep until you get up for good, not from when you first got under the covers to read or scroll through your phone. Counting the earlier moment lowers your efficiency without any change in how you slept.

Subtracting a bedtime from a wake time is easy when both fall on the same day, but a night almost always crosses midnight. The cleanest fix is the 24-hour clock: if the wake time is earlier than the bedtime, add 24 hours to the wake time before subtracting.

Worked example: you get into bed at 23:20 and get up at 06:50. Treat the wake time as 06:50 + 24:00 = 30:50. Then 30:50 − 23:20 = 7 hours 30 minutes, which is 450 minutes in bed.

A second way gives the same answer: the time from 23:20 to midnight is 40 minutes, and midnight to 06:50 is 6 hours 50 minutes, so the total is 7 hours 30 minutes. The most common error is mixing AM and PM on a 12-hour clock, so converting to 24-hour times first is safest. For example, 10:45 PM is 22:45 and 6:15 AM is 06:15, so the night runs from 22:45 to 30:15, which is 7 hours 30 minutes.

From time in bed to time asleep

time asleep = time in bed − time to fall asleep − time awake during the night

Continue the example. You estimate that it took 20 minutes to fall asleep and that you were awake for about 35 minutes in total during the night. Time asleep is 450 − 20 − 35 = 395 minutes, which is 6 hours 35 minutes.

If you do not use a tracker, your estimates of these awake times will be rough, because it is hard to judge minutes while half asleep. Even so, a consistent estimate each morning is useful for spotting a pattern.

Calculating sleep efficiency

sleep efficiency (%) = time asleep ÷ time in bed × 100

For the example night, 395 ÷ 450 = 0.878, so sleep efficiency is 87.8%. A figure of about 85% or higher is commonly regarded as typical for healthy adults, though it tends to fall as people get older.

Efficiency alone can mislead. Compare three nights:

NightIn bedAsleepEfficiency
A8 h 00 min7 h 20 min91.7%
B9 h 00 min7 h 00 min77.8%
C5 h 00 min4 h 45 min95.0%

Night C has the highest efficiency but only 4 hours 45 minutes of sleep, which is short for most adults. Night B has the lowest efficiency: it gave 20 minutes less sleep than night A (7 h 00 against 7 h 20) while spending 80 more minutes awake in bed (2 h 00 against 40 min). Look at both numbers together: enough time asleep, and a high share of the time in bed spent sleeping.

To summarise several nights, add up the minutes rather than averaging the percentages. Nights A and B together give 440 + 420 = 860 minutes asleep out of 480 + 540 = 1,020 minutes in bed, an efficiency of 860 ÷ 1,020 = 84.3%. Averaging the two percentages gives 84.7%, a small difference here, but it grows when the nights are very different in length because longer nights deserve more weight.

Reading and improving the numbers

  • Treat tracker totals as estimates. Wrist devices infer sleep from movement and heart rate, so they can count quiet wakefulness as sleep.
  • Look at a week, not a night. One poor night is normal. A pattern across seven nights is more informative.
  • Keep time in bed matched to sleep. Spending long hours in bed awake lowers efficiency and can weaken the link between bed and sleep.
  • If you cannot sleep, get up. Many sleep specialists suggest leaving the bed and doing something calm in dim light until you feel sleepy, then returning.

The hours calculator handles the midnight crossing for you, the time calculator subtracts the awake minutes, and the percentage calculator turns the ratio into a percentage.

This article is general information, not medical advice. Persistently low sleep efficiency, or trouble falling or staying asleep on most nights, is worth raising with a doctor.

Try the tools
  • Hours Calculator: Enter a start time, an end time and an optional break to get the time in between as hours and minutes, decimal hours and total minutes. A second mode handles two full dates with times.
  • Time Calculator: Use the clock calculator to see what time it will be after adding or removing hours, minutes and seconds, or the date and time calculator to move a whole timestamp forwards or backwards.
  • Percentage Calculator: Pick the question you need answered, enter two numbers and get the result instantly. The guide below shows the formula behind each mode.

This article is general information, not professional advice. See our Disclaimer and Editorial Policy.

More articles