Tools
Sleep Calculator
Use this sleep calculator to find when to go to bed for the time you need to wake up, or when to wake up if you go to bed now, counted in sleep cycles. It also shows the recommended hours of sleep for your age, sets a nap alarm, tracks your weekly sleep debt and adds a bedtime reminder to your calendar. Free, no sign-up.
- NHS (UK)
- Adults need 7 to 9 hours, children 9 to 13 hours, toddlers and babies 12 to 17 hours.
- gesund.bund.de (German Federal Ministry of Health)
- Children from age 6 about 9 hours, teenagers about 8, adults about 7, people over 80 about 6.
- Go to bed and get up at the same time every day, including weekends.
- Keep your bedroom quiet, relaxing and cool.
- Turn off electronic devices at least 30 minutes before bedtime.
- Avoid caffeine in the afternoon or evening, and large meals and alcohol before bedtime.
Counting cycles is a practical approach, not a proven rule. The US National Heart, Lung, and Blood Institute (NHLBI) says a cycle starts over every 80 to 100 minutes and that there are usually four to six cycles per night; official recommendations are about total sleep time and regular hours, not the number of cycles.
Source: US Centers for Disease Control and Prevention (CDC), About Sleep. The table draws on the AASM and Sleep Research Society consensus statements and the National Sleep Foundation recommendations. Check the official source for the current values.
This is simple addition, not a diagnosis. The CDC advises going to bed and getting up at the same time every day, weekends included.
Result
Enter your wake-up time; bedtimes update instantly.
| Age group | Age | Recommended sleep per 24 hours |
|---|---|---|
| Newborn | 0 to 3 months | 14 to 17 hours |
| Infant | 4 to 12 months | 12 to 16 hours (including naps) |
| Toddler | 1 to 2 years | 11 to 14 hours (including naps) |
| Preschool | 3 to 5 years | 10 to 13 hours (including naps) |
| School age | 6 to 12 years | 9 to 12 hours |
| Teen | 13 to 17 years | 8 to 10 hours |
| Adult | 18 to 60 years | 7 or more hours |
| Adult | 61 to 64 years | 7 to 9 hours |
| Adult | 65 years and older | 7 to 8 hours |
These are general recommendations for healthy people; needs differ from person to person. Source: CDC, About Sleep.
Enter at least one night; the weekly total updates instantly.
| Day | Sleep | Against target |
|---|---|---|
| Monday | … | … |
| Tuesday | … | … |
| Wednesday | … | … |
| Thursday | … | … |
| Friday | … | … |
| Saturday | … | … |
| Sunday | … | … |
For information only, not medical advice. If you have had trouble sleeping for weeks, snore loudly or feel very sleepy during the day, talk to your doctor.
How to use the sleep calculator
- Pick a mode
Choose Wake-up time, Bedtime, Nap, By age or Sleep debt at the top of the tool.
- Enter a time
Type your wake-up time or tap a quick pick. In the Bedtime and Nap modes, Now uses your device clock.
- Check your age group and settings
The age group sets the recommended range. Time to fall asleep starts at 15 minutes and cycle length at 90; you can change both.
- Compare the options
Four cards show the time, the number of cycles, the hours of sleep and how it compares with the recommendation. Tap a card and the night timeline follows.
- Add it to your calendar or share it
Add to calendar (.ics) downloads a bedtime reminder. You can also copy the result or share a link from the bar below.
Sleep calculator formulas
The tool counts real elapsed time, not the gap on the clock face. As a result, midnight and daylight saving changes do not break the answer.
wake-up time − (cycles × cycle length) − time to fall asleepbedtime + time to fall asleep + (cycles × cycle length)cycles × cycle length; 5 × 90 min = 7 h 30 mintime asleep + time to fall asleepstart time + time to fall asleep + nap lengthwake-up time − bedtime − time to fall asleeptotal time slept − (nights entered × target per night)The defaults are 15 minutes to fall asleep and a 90-minute cycle. The NHLBI says a cycle starts over every 80 to 100 minutes, so 90 minutes sits in the middle of that range.
Bedtimes for common wake-up times
These times come from the tool's default settings: 15 minutes to fall asleep and 90-minute cycles. Enter the same wake-up time and you will see exactly these cards.
| Wake-up | 6 cycles (9 h) | 5 cycles (7 h 30 min) | 4 cycles (6 h) | 3 cycles (4 h 30 min) |
|---|---|---|---|---|
| 5:00 AM | 7:45 PM | 9:15 PM | 10:45 PM | 12:15 AM |
| 5:30 AM | 8:15 PM | 9:45 PM | 11:15 PM | 12:45 AM |
| 6:00 AM | 8:45 PM | 10:15 PM | 11:45 PM | 1:15 AM |
| 6:30 AM | 9:15 PM | 10:45 PM | 12:15 AM | 1:45 AM |
| 7:00 AM | 9:45 PM | 11:15 PM | 12:45 AM | 2:15 AM |
| 7:30 AM | 10:15 PM | 11:45 PM | 1:15 AM | 2:45 AM |
| 8:00 AM | 10:45 PM | 12:15 AM | 1:45 AM | 3:15 AM |
For the adult group (18 to 60 years) the tool marks the 5-cycle option as Best match. However, 4 and 3 cycles fall under 7 hours, so those cards say Below the recommendation.
Recommended hours of sleep by age
This table repeats the values on the CDC About Sleep page. The CDC draws them from the AASM and Sleep Research Society consensus statements and the National Sleep Foundation recommendations.
| Age group | Age | Recommended sleep per 24 hours |
|---|---|---|
| Newborn | 0 to 3 months | 14 to 17 hours |
| Infant | 4 to 12 months | 12 to 16 hours (including naps) |
| Toddler | 1 to 2 years | 11 to 14 hours (including naps) |
| Preschool | 3 to 5 years | 10 to 13 hours (including naps) |
| School age | 6 to 12 years | 9 to 12 hours |
| Teen | 13 to 17 years | 8 to 10 hours |
| Adult | 18 to 60 years | 7 or more hours |
| Adult | 61 to 64 years | 7 to 9 hours |
| Adult | 65 years and older | 7 to 8 hours |
These are general recommendations for healthy people and they can change. Therefore, check the CDC page for the current table.
What is a sleep calculator and how does it work?
A sleep calculator counts back from the time you need to wake up, or forward from the time you go to bed, to suggest times that fit. This one works in sleep cycles. First it adds the minutes you need to fall asleep. Then it stacks 90-minute cycles one after another. As a result, you see four options: 6, 5, 4 and 3 cycles.
The tool does five jobs. It works as a bedtime calculator from your wake-up time and as a wake-up calculator from your bedtime. In addition, it gives you a nap alarm, shows the recommended hours of sleep for your age and adds up your weekly sleep debt. Each option lists the total sleep and whether it meets the recommendation for your age group.
However, one limit belongs up front. Counting cycles is a practical approach, not a proven rule. Official bodies recommend total sleep time and regular hours, not a number of cycles. So treat the tool as a planning aid; it does not replace medical advice. If you also want your daily energy needs, try our calorie calculator.
What time should I go to bed if I wake up at 6?
The answer depends on three numbers: your wake-up time, the number of cycles and the time you need to fall asleep. The sum is simple. Take your wake-up time, subtract the cycles times 90 minutes, then subtract the minutes to fall asleep.
For example, say the alarm goes off at 6:00 AM. Five cycles make 7 hours 30 minutes, which takes you back to 10:30 PM. Allow 15 minutes to drift off and your bedtime is 10:15 PM. For six cycles you would go to bed at 8:45 PM, and four cycles means 11:45 PM. The tool shows these as cards and tags the closest fit for your age group as "Best match".
What if it is already late? The tool reads your device clock. It fades the options that have gone by with a "Passed" tag and picks from the rest. If you are going to bed right away, switch to the "Bedtime" mode and choose "Now"; then you see wake-up times instead.
Also, the math holds across midnight and on the nights the clocks change. When daylight saving time starts in the US or British Summer Time begins in the UK, the night is an hour shorter. The tool counts the real hours, shifts the times and adds a short note below the result.
How long is a sleep cycle?
Sleep is not one flat block. According to the US National Heart, Lung, and Blood Institute (NHLBI), you move between two phases while you sleep: REM and non-REM sleep. The cycle starts over every 80 to 100 minutes. Usually there are four to six cycles per night. Therefore, 90 minutes is a middle value, not a constant that fits everyone.
In addition, the make-up of each cycle shifts through the night. The same source says you spend more time in deep sleep early in the night and have more REM sleep later. You may also wake briefly between cycles. So the idea that waking on an exact multiple of 90 minutes leaves you refreshed is not a firm rule.
We did not find an official recommendation for it either. Bodies such as the CDC and the NHS advise enough total sleep and the same hours every day, not cycle counting. Still, cycles give you a handy frame for a plan. To fit your own pattern, change "Cycle length" to anything from 70 to 120 minutes. Then try it for a few weeks and keep the value that suits you.
Is 6 hours of sleep enough, and how much do you need by age?
For most adults, no. The CDC table recommends 7 or more hours a night for adults aged 18 to 60. The range is 7 to 9 hours at 61 to 64 and 7 to 8 hours from 65. In other words, 8 hours sits inside the range, but the floor is 7.
Children need more. For example, school-age children (6 to 12 years) should get 9 to 12 hours and teens (13 to 17 years) 8 to 10 hours. For babies, toddlers and preschoolers the figures include naps. Because of that, the tool does not compare a night plan with the recommendation for the youngest groups, and it says so on screen.
Other bodies give similar numbers. The NHS says adults need 7 to 9 hours. Germany's federal health portal, gesund.bund.de, cites about 7 hours for adults. So an adult who wakes at 7:00 AM and goes to bed at 11:15 PM gets 7 hours 30 minutes, which is within the recommendation. If you need your exact age to the day, use the age calculator.
How long should a nap be?
The tool does not invent nap lengths. Instead, it follows training material from CDC NIOSH, the US workplace health institute. That source describes short naps as 15 to 30 minutes. For people on a daytime schedule it recommends a brief nap of under 20 minutes. It also says to set an alarm for 15 to 30 minutes.
Why so short? Because you reach the deepest level of sleep in about 1 hour. Waking at that point can cause grogginess, known as sleep inertia. The same source notes that grogginess may be less when you wake at 20 or 90 minutes, and that it tends to clear within 15 to 30 minutes. Therefore, the tool offers four options: 15, 20 and 30 minutes, plus one full cycle.
The alarm time is the start time plus the time to fall asleep plus the nap length. You can also type your own length; the tool only works out the alarm and does not endorse that length. For a nap that starts after 4 PM you will see a warning. That cut-off is the tool's practical threshold, not an official rule. On the other hand, the NHS advises people with insomnia not to nap during the day at all.
How do you work out your sleep debt?
Sleep debt is the running gap between the sleep you aim for and the sleep you actually get. The tool shows it with plain addition. For each of the seven nights you enter a bedtime and a wake-up time, or simply the hours you slept. Then you see the weekly total, the average per night and the shortfall or surplus against your target.
For example, say your target is 7 hours a night. Five nights of 6 hours and two nights of 8 hours add up to 46 hours. The target total is 49 hours, so the shortfall is 3 hours. Nights you leave empty do not count. In other words, if you enter three nights, the target covers three nights too.
A bar chart shows each night, and nights under the target appear in a different color. The same figures sit in a table, so a screen reader can read them as well. Your log stays in your browser, and the "Download the week (CSV)" button saves it as a file.
However, this number is not a diagnosis. The CDC advises going to bed and getting up at the same time every day, weekends included. So start by steadying your hours. If you work shifts, the work hours calculator helps you map out the week.
Habits that make a sleep calculator plan stick
Finding the right time is half the job. A sleep calculator result only helps when steady habits back it up. The tips below are not ours; they are general advice from the CDC and the NHS.
- Go to bed and get up at the same time every day, including weekends (CDC).
- Keep your bedroom quiet, relaxing and cool (CDC); the NHS adds dark.
- Avoid caffeine in the afternoon or evening, and large meals and alcohol before bedtime (CDC).
- Turn off electronic devices at least 30 minutes before bed (CDC). The NHS suggests an hour.
- Exercise regularly; if late workouts affect your sleep, move them earlier in the day (NHS).
- If you are still awake after around 20 minutes, get up and sit somewhere comfortable (NHS).
That is why the calendar reminder fires 30 minutes before your bedtime. So when the alert arrives, it is time to put the screen down. You can also download the reminder as a daily repeat. If your phone keeps you up, our guide to Instagram's sleep mode and quiet mode shows how to mute it at night. Supplements and medication are outside the scope of this tool; that decision belongs to your doctor.
When should you see a doctor about sleep?
A calculator cannot fix a sleep problem. According to the CDC, trouble falling asleep, waking repeatedly during the night, or feeling sleepy or tired even after enough sleep are signs of poor sleep quality. The same page lists disorders such as insomnia, restless legs syndrome, narcolepsy and sleep apnea. It also says to talk to your healthcare provider if you have problems sleeping.
The NHS draws a similar line. See a GP (your family doctor) if changing your sleep habits has not helped, if you have had trouble sleeping for months, or if it makes daily life hard to cope with. We suggest the same step for loud snoring and for feeling very sleepy during the day.
Therefore, the same note always sits under the result: the tool is for information only. It does not offer treatment or a diagnosis. Moreover, for children, pregnant women, shift workers and people with long-term conditions, the table values are only a general frame. In short, the numbers give you a starting point; for a lasting problem, your doctor has the final word.
Where does your data go, and who built this?
Everything runs in your browser. The times you enter never reach our server. Your settings and weekly sleep log live only in this device's browser storage, and clearing your browser data removes them. The calendar file (.ics) and the CSV come from your device as well.
A shared link carries only times and settings; your weekly log stays out of it. Sleep is health information, so we applied the principles from our article on website trust signals here too. If you wonder why search engines hold health pages to a stricter standard, read our YMYL guide.
Talha Aslan and the team built this tool. We cite sources, design for accessibility and keep pages fast on every project. If you would like a calculator like this for your own visitors, take a look at our web design service. For more calculators, head back to the free tools page.
Common sleep calculator mistakes
- ✕MistakeTreating 90 minutes as fixed for everyone✓Do this insteadA cycle runs from 80 to 100 minutes, so test for a few weeks and adjust Cycle length to suit you.
- ✕MistakeForgetting the time it takes to fall asleep✓Do this insteadYou are not asleep the moment you lie down. The tool adds 15 minutes by default; change it if yours differs.
- ✕MistakeWatching the cycle count and ignoring total sleep✓Do this insteadThree or four full cycles still fall under 7 hours for an adult. Therefore, read the recommendation line on each card.
- ✕MistakeLeaving the weekday shortfall for the weekend✓Do this insteadThe CDC advises the same hours every day, weekends included. Use the Sleep debt mode to see the whole week.
- ✕MistakeTaking a long nap late in the day✓Do this insteadKeep naps short and earlier in the day. If your nights are poor, the NHS advises not napping at all.
Frequently Asked Questions
Run a clinic, a wellness brand or a health practice? Your clients ask Google this question.
Talha Aslan and the team bring the people asking it to your site with calculators like this one, SEO and search ads. See what we do.





