Skip to main content

Find your next tool

MAXScanner Calculator

Sleep Duration Calculator: How Long Did I Sleep?

In bed at 23:45, up at 06:30: 6 h 45 min in bed. Subtract the minutes it took to fall asleep and time awake at night to estimate how long you slept.

Live editable inputs

Change the values and see the calculation update immediately.

Formula and working

The relationship behind the answer stays visible on the page.

Assumptions visible

Rates, dimensions and limitations are kept explicit instead of hidden.

Connected next steps

Move into the next genuinely different calculation without keyword-copy pages.

Date & time inputs

Separate time in bed from optional awake-time deductions.

Leave both deductions at 0 to calculate time in bed only. Enter observed/assumed awake minutes when you want a simple estimated-sleep arithmetic result.

Calculated result

8h 0m 0s estimated sleep

8h 0m 0s time in bed
8 hours in bed
0 min sleep latency entered
0 min awake during night entered
8 estimated sleep hours
Show the working
  1. 1. Bedtime 22:00 = 79200 s after midnight; wake 06:00 = 21600 s after midnight.
  2. 2. Wake clock is earlier, so overnight interval = 21600 − 79200 + 86,400 = 28800 s.
  3. 3. Deductions = (0 + 0) × 60 = 0 s.
  4. 4. Estimated sleep = 28800 − 0 = 28,800 s.

This is clock arithmetic, not a sleep measurement or sleep-quality assessment. If latency/awake time are unknown, leave them at zero and interpret the result as time in bed.

A wake time earlier than bedtime is treated as the following day. Equal bedtime/wake time means a zero-length interval, not an assumed 24 hours.

Real sleep can differ because awakenings, device clock accuracy and unobserved sleep latency are not measured by this calculator.

More actions

Shared links reopen these inputs. Recent and saved calculations stay in this browser unless you clear site data.

How to use this calculator

Sleep Duration Calculator works with time durations. Enter the times shown by the tool and read the elapsed result in the units displayed; overnight handling is stated beside the result when it applies.

Step-by-step

  1. Step 1

    Enter the start/base time.

  2. Step 2

    Enter the end time, duration or break requested by this calculator.

  3. Step 3

    Review the elapsed result and any day rollover shown.

Where this calculator is useful

Schedules and shifts

Use the result as a check within this type of task, with the assumptions shown above.

Meetings and activities

Use the result as a check within this type of task, with the assumptions shown above.

Timesheets and planning

Use the result as a check within this type of task, with the assumptions shown above.

Common questions

Can the calculation cross midnight?

Where the tool says overnight rollover is supported, an earlier end clock time is treated as the following day.

Are decimal hours available?

Work-duration tools show decimal hours where that representation is useful.

Are time zones included?

Ordinary clock-time inputs do not contain time-zone information. Use a Time Zone Calculator when zones matter.

Need a different calculation?

Use the calculator library to switch tasks when the question, unit or assumption changes.

Browse all calculators

Planning notes

Time in bed is not the same as time asleep

Subtract bedtime from wake-up time, adding 24 hours when you wake after midnight: in bed at 23:45 and up at 06:30 is 6 h 45 min. That is time in bed. To estimate sleep, subtract the minutes it took to fall asleep and any time you lay awake during the night. Sleep diaries and insomnia programs then divide sleep by time in bed to get sleep efficiency; the table below shows that ratio for a few typical nights. The calculator does the clock arithmetic only. It cannot know how long you were really awake, so the estimate is only as good as the minutes you enter.

Worked example: in bed 00:30, up 07:15, 15 minutes to fall asleep, 25 minutes awake

Time in bed is 6 h 45 min (405 minutes). Taking off 15 + 25 = 40 minutes leaves 6 h 5 min of estimated sleep, about 6.08 hours. Sleep efficiency is 365 ÷ 405 = 90.1%. The same night counted as bedtime to alarm, with no deductions, would look like 6 h 45 min of sleep, 40 minutes more than you probably got.

Example nights calculated with this tool (efficiency = estimated sleep ÷ time in bed)
In bedUpFall asleep + awakeTime in bedEstimated sleepEfficiency
22:3006:3020 + 10 min8 h7 h 30 min93.8%
23:0007:0030 + 30 min8 h7 h87.5%
23:4506:300 + 0 min6 h 45 min6 h 45 min100%
00:3007:1515 + 25 min6 h 45 min6 h 5 min90.1%
21:0005:000 + 0 min8 h8 h100%
13:0014:3010 + 0 min1 h 30 min1 h 20 min88.9%

Useful for

  • Answering "how long did I sleep last night" from the time you went to bed and the time you got up
  • Keeping a simple sleep diary with time in bed, estimated sleep and efficiency for each night
  • Checking a nap, a night shift or a day-sleep window that does not cross midnight

Limits and assumptions

  • This is not a medical sleep assessment and it does not measure sleep stages or quality.
  • Awakenings you did not notice are not counted; a wearable or a sleep study measures them, this calculator does not.
  • Equal bedtime and wake time means a zero-length interval, not 24 hours.
  • It does not suggest a bedtime from a wake-up time or plan around 90-minute cycles; enter the times you actually used.

Questions about this planning model

How long did I sleep if I went to bed at 11 PM and woke up at 7 AM?

You were in bed for 8 hours. If it took 30 minutes to fall asleep and you were awake for another 30 minutes in the night, you slept about 7 hours.

How many hours of sleep do adults need?

The CDC lists 7 or more hours for adults aged 18 to 60 (from the American Academy of Sleep Medicine and Sleep Research Society consensus), 7 to 9 hours at 61 to 64 and 7 to 8 hours from 65. Teens aged 13 to 17 are listed at 8 to 10 hours and children aged 6 to 12 at 9 to 12. The calculator does not compare your result against these figures.

What is sleep efficiency?

Time asleep divided by time in bed, as a percentage. 7 h 30 min asleep out of 8 h in bed is 93.8%. Sleep diaries use it, and insomnia treatment programs often treat about 85% or more as a reasonable level; a doctor or sleep clinician is the right person to interpret it for you.

Is time in bed the same as time asleep?

No. Time in bed runs from lying down to getting up. Time asleep leaves out the minutes it took to fall asleep and the time you were awake, which is why those are separate inputs.

Why is a wake time earlier than bedtime treated as the next day?

Because that is the usual overnight case: in bed at 23:00, up at 07:00. A daytime nap such as 13:00 to 14:30 is calculated within the same day.

Method/editorial reviewed 2026-10-19. The live calculator inputs and visible working remain the source of truth for the exact scenario above.

Related calculators

These calculators share this task context and lead to a genuinely different calculation.