Lelifi·tools

Sleep Calculator

An adult aged 18 to 60 needs 7 to 9 hours of sleep, so the midpoint target is 8 hours. A 23:15 bedtime and a 6:45 alarm leave 7 hours 30 minutes in bed, and 20 minutes to fall asleep cuts that to 7 hours 10 minutes a night, 5.8 hours short of the target across a week.

Enter your age, bedtime and alarm to see whether the night meets the sleep range for your age, plus the weekly gap and the bedtime that would close it.

By the Lelifi editors ·

Key takeaways

7 h 10 min of sleep on the adult 7 to 9 hour rangeShort5Recommended7Long9117.2 h
7 hours 10 minutes sits inside the adult range and below its 8 hour midpoint.
The math behind one night23:15 to 06:45 = 450 minutes in bed-20 minutes to fall asleep = 430 minutes= 7 h 10 min asleeptarget 8 h 00 min - 7 h 10 min = 50 min short50 min x 7 nights = 5.8 hours a week
Minutes in bed, minus latency, against the age based target.
On this page
  1. How much sleep you need at each age
  2. Worked example: a 23:15 bedtime and a 6:45 alarm
  3. Time in bed is not time asleep
  4. The weekly total is where a small gap shows up
  5. Naps count toward the total, but only once
  6. Shift work and split sleep
  7. What the number cannot tell you

How much sleep you need at each age

Sleep need follows age more than anything else. The CDC sleep page, last reviewed in May 2024, lists a daily range for every age band, and the ranges are wide because individual need varies inside them.

Age groupAgeRecommended per day
Newborn0 to 3 months14 to 17 hours
Infant4 to 12 months12 to 16 hours, naps included
Toddler1 to 2 years11 to 14 hours, naps included
Preschool3 to 5 years10 to 13 hours, naps included
School age6 to 12 years9 to 12 hours
Teen13 to 17 years8 to 10 hours
Adult18 to 60 years7 hours or more
Adult61 to 64 years7 to 9 hours
Adult65 years and older7 to 8 hours

One band needs a note. For adults 18 to 60 the CDC gives a floor of 7 hours and no ceiling. The National Heart, Lung, and Blood Institute puts the adult range at 7 to 9 hours. This calculator uses 7 to 9 for that band and treats 8 as the midpoint, which keeps the arithmetic honest for someone who wants a number to aim at rather than a floor to clear.

Worked example: a 23:15 bedtime and a 6:45 alarm

Lights out at 23:15 and the alarm at 6:45 puts 7 hours 30 minutes on the clock, which is 450 minutes. If falling asleep takes 20 minutes, the time asleep is 430 minutes, or 7 hours 10 minutes.

The adult target is 8 hours, so the night lands 50 minutes short of the midpoint. Over a week that is 5.8 hours of missing sleep, which is close to one full night. The night still clears the 7 hour CDC floor, so this is a schedule that works but does not build a reserve.

StepValue
Lights out to alarm7 h 30 min
Minutes to fall asleep20 min
Time asleep7 h 10 min
Adult midpoint target8 h 00 min
Gap this night50 min short
Gap across 7 nights5.8 h short
Sleep efficiency95.6%

To hit the 8 hour target on the same alarm, lights out has to move to 22:25. That is the number the calculator prints at the bottom, and it is the one to put in a phone reminder.

Time in bed is not time asleep

Every hour you spend in bed is not an hour of sleep. The gap has a name, sleep efficiency, and it is the time asleep divided by the time in bed. In the example above it is 430 minutes divided by 450, or 95.6%.

Two things eat into it. The first is sleep latency, the minutes between lights out and sleep. A person who takes 20 minutes has a different schedule from one who takes 5, even with the same alarm. The second is waking during the night. The calculator only asks for latency, so if you wake for 30 minutes at 3 am, subtract it yourself: 7 hours 10 minutes becomes 6 hours 40 minutes, and the weekly gap grows to 9.3 hours.

Efficiency below about 85% is the point where the schedule stops being a scheduling problem. Lying awake for an hour or more on most nights, or waking and staying awake, is worth raising with a clinician rather than solving with a later alarm.

The weekly total is where a small gap shows up

A 50 minute shortfall is easy to dismiss on a Tuesday. Multiplied by seven it becomes 5.8 hours, and that is the number that explains a Friday afternoon. The calculator prints both for that reason.

ScheduleAge bandAsleep per nightTargetGap per week
23:15 to 6:45, 20 min to fall asleepAdult 18 to 607 h 10 min8 h 00 min5.8 h short
22:45 to 6:30, 15 min to fall asleepTeen 13 to 177 h 30 min9 h 00 min10.5 h short
20:00 to 6:30, 20 min, plus a 60 min napPreschool 3 to 511 h 10 min11 h 30 min2.3 h short
22:30 to 6:00, 15 min to fall asleepAdult 65 and over7 h 15 min7 h 30 min1.8 h short

The teen row is the one to look at twice. A 22:45 bedtime looks late only by adult standards, and for a 16 year old it still falls 10.5 hours short of the 9 hour target across a week. School start times are the usual reason, and the fix is an earlier lights out rather than a longer weekend lie-in.

Naps count toward the total, but only once

For children under 7, naps are part of the daily total, not a bonus on top of it. The preschool row above shows the arithmetic: 10 hours 10 minutes of night sleep plus a 60 minute nap is 11 hours 10 minutes, inside the 10 to 13 hour band.

For adults the picture is different. A short nap of 20 to 30 minutes can take the edge off a bad night, and it counts toward the 24 hour total the same way. What it does not do is repay a week of short nights in one sitting. A 90 minute nap on Saturday moves the weekly number by 1.5 hours and leaves the other 4.3 hours of the 5.8 hour gap untouched.

Long naps late in the day are the case to avoid. Sleep pressure builds while you are awake, and a two hour nap at 5 pm spends most of it before the night begins.

Shift work and split sleep

Night shifts and rotating schedules break the assumption that sleep happens in one block. The calculator still works, because it only cares about minutes asleep in 24 hours, but the inputs change: enter the main sleep block after the shift, then add any second block as nap minutes.

Take a nurse on 19:00 to 07:00 shifts who sleeps 08:00 to 13:30 with 25 minutes to fall asleep. That is 330 minutes in bed, 305 asleep, or 5 hours 5 minutes, and a second block of 90 minutes brings the day to 6 hours 35 minutes. Against an 8 hour target that is 1 hour 25 minutes short per day, and the fix is a longer main block rather than a third nap.

Split sleep works better when the two blocks are stable across the week. Rotating start times every few days are the part that hurts, because the body never settles into either schedule.

What the number cannot tell you

This calculator counts hours. It cannot measure sleep quality, and quality is the half of the picture that hours miss. The CDC lists trouble falling asleep, repeated waking and feeling tired after enough sleep as signs of poor quality.

The scale of the problem is measurable. In 2024, 30.5% of US adults slept less than 7 hours on average in a 24 hour period, according to NCHS Data Brief 559 from April 2026. That is roughly three in ten adults under the CDC floor, and it is the reason a weekly total is worth more attention than a single bad night.

Caffeine belongs in the same conversation. The half-life of caffeine in a typical adult is about 5 hours, per the NIH StatPearls review of caffeine, and the same review cites sleep hygiene guidance to avoid substantial caffeine at least 6 hours before bed. A 4 pm coffee still has a quarter of its dose in your system at 2 am.

None of this is a diagnosis. Snoring with pauses, gasping at night, or sleepiness that persists after 8 hours in bed are reasons to see a clinician, not to adjust a bedtime.

Frequently asked questions

How many hours of sleep do I need?

It depends on age. The CDC range is 7 hours or more for adults 18 to 60, 7 to 9 for ages 61 to 64, and 7 to 8 at 65 and over. Teens 13 to 17 need 8 to 10 hours, and school age children 6 to 12 need 9 to 12.

What does this calculator do that a sleep cycle calculator does not?

It works from the age based range and the clock, not from 90 minute cycles. You get the hours asleep after latency, the gap to the midpoint of your age range, the weekly total and the bedtime that would close the gap.

Why does the calculator use 8 hours for adults?

Because 8 is the midpoint of the 7 to 9 hour range the NHLBI gives adults. The CDC floor for ages 18 to 60 is 7 hours, so a night of 7 hours 10 minutes clears the floor and still sits 50 minutes under the midpoint.

Should I enter the time I go to bed or the time I fall asleep?

Enter lights out, then put the minutes it usually takes you to fall asleep in the latency field. Going to bed at 23:15 with 20 minutes of latency means 7 hours 10 minutes asleep by a 6:45 alarm, not 7 hours 30 minutes.

How is the weekly gap calculated?

The nightly gap is the target minus the hours asleep, and the weekly figure multiplies it by seven. A 50 minute nightly gap becomes 5.8 hours a week, which is what a 7 hour 10 minute night against an 8 hour target produces.

Do naps count toward the daily total?

Yes, and for children under 7 the CDC ranges already include them. A preschooler with 10 hours 10 minutes at night and a 60 minute nap reaches 11 hours 10 minutes, inside the 10 to 13 hour band. For adults a 20 to 30 minute nap counts once.

What is sleep efficiency and what is a good number?

It is time asleep divided by time in bed. A 7 hour 10 minute night from 7 hours 30 minutes in bed is 95.6%. Under about 85%, meaning more than an hour of the night spent awake, the schedule is not the main problem.

What time should I go to bed to get 8 hours?

Subtract the target and your latency from the alarm. With a 6:45 alarm, an 8 hour target and 20 minutes to fall asleep, lights out needs to be 22:25. The calculator prints that number under the results.

How much sleep do teenagers get?

Often less than the 8 to 10 hour range. A 22:45 bedtime with a 6:30 alarm and 15 minutes of latency gives 7 hours 30 minutes, which is 1.5 hours short per night and 10.5 hours short across a week.

Does the calculator work for night shift workers?

Yes. Enter the main sleep block after the shift and add any second block as nap minutes. A 08:00 to 13:30 block with 25 minutes of latency is 5 hours 5 minutes, so a second block of 90 minutes brings the day to 6 hours 35 minutes.

How common is short sleep in the United States?

In 2024, 30.5% of adults slept less than 7 hours on average in a 24 hour period, according to NCHS Data Brief 559 published in April 2026. Men and women were close, at 30.6% and 30.4%.

Does caffeine affect sleep 6 hours later?

The half-life of caffeine in a typical adult is about 5 hours, so roughly a quarter of a 4 pm dose is still active at 2 am. The NIH StatPearls review cites guidance to avoid substantial caffeine at least 6 hours before bedtime.

Can I catch up on sleep at the weekend?

Only partly. A 90 minute longer lie-in moves the weekly total by 1.5 hours. If the week was 5.8 hours short, one Saturday morning leaves 4.3 hours outstanding, and the schedule that caused the gap is still in place on Monday.

When should I see a doctor about sleep?

Snoring with pauses, gasping or choking at night, sleepiness that persists after 8 hours in bed, or trouble falling asleep for more than three nights a week for months. Those point at a sleep disorder, and a calculator cannot rule one out.

Spotted a wrong number or a broken result?

More Health tools

See all Health tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.