Sleep Duration Calculator

Quick answer

A sleep duration calculator works out how long you actually slept, not just how long you were in bed. In bed from 11:00 PM to 7:00 AM, taking 15 minutes to fall asleep and awake for 20 minutes in the night, you slept 7 hours 25 minutes, with a sleep efficiency of 93%.

Updated October 11, 2026By Shakeel Muzaffar
Try
Sleep tracking
Age group
Works across midnight.
The time you got out of bed.
Your best estimate (0 to 180).
All wake-ups added together (0 to 300).
Two to 14 nights, in hours. Use decimals: 7.5 means 7 h 30 min.
Daytime naps in the same 24 hours (0 to 300). Leave blank to skip.
You slept
—
Time in bed—
Sleep efficiency—
90-minute cycles—
Vs recommended—
24-hour total with naps—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)

How To Use The Sleep Duration Calculator

  1. Enter your bedtime and wake-up time. Use the time you got into bed and the time you got up. Nights across midnight work automatically.
  2. Estimate time to fall asleep and time awake. Add up every wake-up in the night. Rough estimates are fine.
  3. Pick your age group. The result is compared with the recommended range for your age.
ResultWhat it means
You sleptTime in bed minus time falling asleep and time awake
Time in bedFrom getting into bed to getting up
Sleep efficiencyShare of your time in bed spent asleep
90-minute cyclesYour sleep time divided by an average 90-minute cycle
Vs recommendedHow your sleep compares with the range for your age
24-hour total with napsNight sleep plus any nap minutes you enter; blank if you skip naps

What Is Sleep Duration?

Sleep duration is the amount of time you are actually asleep, which is always less than the time you spend in bed. The gap is made up of the time it takes to fall asleep and any time you lie awake during the night.

That difference matters. Eight hours in bed can easily be under seven hours of sleep. Most adults need 7 to 9 hours of actual sleep, teens 8 to 10 and children aged 6 to 12 need 9 to 12.

Sleep efficiency describes the same gap as a percentage: the share of your time in bed that you spend asleep. For a week-long view of your nights, use the sleep statistics calculator.

How Does The Sleep Duration Calculator Work?

The calculator measures your time in bed, subtracts the time spent awake, and compares the result with your time in bed and your age group.

Formula: Sleep time = Time in bed - Minutes to fall asleep - Minutes awake; Sleep efficiency = Sleep time / Time in bed x 100
  1. Time in bed: 11:00 PM to 7:00 AM = 480 minutes (8 h).
  2. Subtract 15 minutes to fall asleep and 20 minutes awake: 480 – 35 = 445 minutes.
  3. Sleep time: 445 minutes = 7 h 25 min.
  4. Efficiency: 445 / 480 = 93%.
  5. Cycles: 445 / 90 = about 4.9 cycles.

Worked Example: In Bed 8 Hours, Asleep 7 Hours 25 Minutes

StepValue
Bedtime to wake time11:00 PM – 7:00 AM
Time in bed8 h 00 min
Time to fall asleep15 min
Time awake in the night20 min
Sleep time7 h 25 min
Sleep efficiency93%

Eight hours in bed became 7 h 25 min of sleep, which is inside the adult range. If the same person lay awake for an hour and took 30 minutes to fall asleep, sleep would drop to 6 h 30 min and efficiency to 81%.

How Many Hours Of Sleep From Bedtime To Wake Time? Quick Table

Hours in bed between common bedtimes and wake times. Your actual sleep is shorter by the time it takes to fall asleep and any time awake. Open a cell for that night in detail.

Bedtime4 AM5 AM6 AM7 AM8 AM9 AM
8 PM8 h9 h10 h11 h12 h13 h
9 PM7 h8 h9 h10 h11 h12 h
10 PM6 h7 h8 h9 h10 h11 h
11 PM5 h6 h7 h8 h9 h10 h
12 AM4 h5 h6 h7 h8 h9 h

For example, 11 PM to 6 AM is 7 hours in bed. With 15 minutes to fall asleep and 15 minutes awake, that is 6 h 30 min of sleep, below the adult minimum.

How To Work Out Your Average Sleep Per Week

Choose My average sleep over a week in the calculator and enter the hours you slept each night. It adds them up and divides by the number of nights.

Formula: Average sleep = (Night 1 + Night 2 + ... + Night 7) / 7

A week of 6.5, 6, 7, 6.5, 6, 8.5 and 9 hours averages 7 h 04 min. That sits inside the adult range, but four nights were under 7 hours: the long weekend nights hide a short working week.

Factors That Change Your Sleep Duration

Time To Fall Asleep

Stress, caffeine and screens late in the evening lengthen it. Every extra minute comes straight off your sleep.

Night Awakenings

Short wake-ups add up. Several five-minute wake-ups can cost half an hour.

Age

Sleep efficiency tends to fall with age: one population study found it dropped from about 85% in people aged 39 to 49 to about 76% in people over 80.

Time In Bed

Spending much longer in bed than you sleep lowers efficiency. Matching bedtime to your real sleep need usually helps.

Time In Bed vs Actual Sleep: Why The Difference Matters

MeasureWhat it countsBest used for
Time in bedLights out to getting upPlanning bedtimes
Sleep durationOnly the time asleepJudging whether you slept enough
Sleep efficiencySleep as a share of time in bedSpotting restless or fragmented nights

If your sleep duration is short but efficiency is high, you probably need an earlier bedtime; the bedtime calculator helps. If efficiency is low, the issue is time awake in bed.

Who Should Use A Sleep Duration Calculator?

  • Anyone who feels tired despite spending enough time in bed.
  • People checking a sleep tracker against their own estimate.
  • People with short nights who want to see how much sleep they are really missing; the sleep debt calculator adds that up over a week.

Common Mistakes When Measuring Sleep Duration

Counting Time In Bed As Sleep

This is the most common error and it hides short sleep.

Forgetting Night Wake-Ups

Brief awakenings are easy to forget but add up quickly.

Judging One Night

Sleep varies. Look at several nights before drawing conclusions.

Ignoring Low Efficiency

Regularly spending a lot of time awake in bed is worth discussing with a doctor, especially if it lasts for weeks.

Accuracy And Limitations

The arithmetic is exact, but the result is only as accurate as your estimates of time to fall asleep and time awake.

What It Calculates Accurately

  • Time in bed across midnight
  • Sleep time from your estimates
  • Sleep efficiency and cycle count

What It Does Not Account For

  • Sleep stages and sleep quality
  • Errors in estimating time awake
  • Sleep disorders

How We Calculate Sleep Duration

Method
Time in bed minus sleep latency and time awake after sleep onset
Efficiency
Sleep time / time in bed x 100; 85% or higher treated as normal
Age ranges
Adults 7 to 9 h, teens 8 to 10 h, children 6 to 12: 9 to 12 h
Cycles
Sleep time / 90 minutes, rounded to one decimal
Naps
Optional; added to night sleep for a 24-hour total. Night results and the verdict ignore them

Sleep Duration Calculator FAQs

How do I calculate how many hours I slept?

Take the time from getting into bed to getting up, then subtract the time it took to fall asleep and any time awake in the night.

How do I calculate my average hours of sleep per week?

Add up the hours you slept each night and divide by the number of nights. Choose the week option in the calculator to do it for up to 14 nights.

How many hours of sleep is 10 PM to 6 AM?

10 PM to 6 AM is 8 hours in bed. With 15 minutes to fall asleep and 15 minutes awake in the night, that is 7.5 hours of sleep.

What is a good sleep efficiency?

Sleep efficiency of 85% or higher is generally treated as normal. Below 85% means a large share of your time in bed was spent awake.

How is sleep efficiency calculated?

Divide the time you were asleep by the time you were in bed and multiply by 100. For example, 7 h 25 min asleep in 8 h in bed is 93%.

How many hours is 11 PM to 7 AM?

11 PM to 7 AM is 8 hours in bed. Your actual sleep is shorter once you subtract time falling asleep and time awake.

Why does my sleep tracker show a different number?

Trackers estimate sleep from movement and heart rate and may count quiet wakefulness as sleep. Your own estimate of time awake can differ.

Is 7 hours of sleep enough?

Seven hours meets the minimum for most adults. The recommended range is 7 to 9 hours; teens and children need more.

Does sleep efficiency change with age?

Yes. Studies show it tends to fall with age as sleep becomes lighter and more broken.

What if I wake up many times a night?

Add the wake-ups together and enter the total. If broken sleep continues for weeks, talk to a doctor.

Sources

Related Calculators

For bedtimes and wake-up times in both directions, use the main sleep calculator. Explore every sleep timing, sleep need and sleep health tool in one place.

All sleep tools

This calculator estimates sleep time from the times you enter, for general education. It is not medical advice or a diagnosis. Talk to a doctor about ongoing trouble falling or staying asleep. Spotted an error? Let us know.