Sleep Calculator

Sleep Calculator

Plan a bedtime or wake up time that ends on a full sleep cycle.

Best bedtime
0:00
0hours of sleep
0time in bed
0full cycles
0recommended hours
BedtimeCyclesSleepFit

A planning guide for healthy people, not medical advice. Cycle length varies from night to night. If poor sleep has lasted for months, or you snore loudly and stop breathing in your sleep, speak to your GP.

This sleep calculator helps adults and parents plan a bedtime or wake up time that lands at the end of a full sleep cycle, so the alarm is less likely to drag you out of deep sleep. Tell it when you need to get up, when you plan to go to bed, or that you are heading to bed now, and it works backwards or forwards in cycles, checking each option against the NHS guidance on how much sleep people need at different ages. You can set your own fall asleep time and cycle length rather than accepting a fixed 90 minutes.

Quick answer: A sleep calculator counts back from your alarm in 90 minute cycles and adds the time you take to fall asleep. To wake at 6:30 am after five cycles (7 hours 30 minutes) with 15 minutes to drop off, be in bed by 10:45 pm. Six cycles means 9:15 pm.

Sleep calculator showing the best bedtime for a 6:30 am alarm and a table of sleep cycle options
How the Sleep Calculator works: wake up time in, bedtimes that fit whole sleep cycles out.

What Is a Sleep Calculator?

A sleep calculator is a tool that times your bedtime or alarm so you wake between sleep cycles instead of in the middle of one. Through the night you pass through light sleep, deep sleep and REM (dreaming) sleep in repeating cycles of roughly 90 minutes, although a cycle can be shorter or longer and they change across the night. Waking at the end of a cycle, when sleep is lighter, usually feels easier than being pulled out of deep sleep, which can leave you groggy for half an hour.

The formula is straightforward: bedtime = wake up time − (number of cycles × cycle length) − time to fall asleep. Going the other way, wake up time = bedtime + time to fall asleep + cycles × cycle length. The calculator then checks the total against the NHS range: 7 to 9 hours for adults and 9 to 13 hours for children.

How to Use the Sleep Calculator

Step 1: Choose What You Want to Work Out

Pick Wake up at if your alarm time is fixed, Go to bed at if your bedtime is fixed, or Sleep now to use the current time on your device.

Step 1: choose wake up at, go to bed at or sleep now

Step 2: Enter the Time

Type your wake up time or bedtime, and choose a 12 or 24 hour clock for the results. Shift workers can enter any time of day, for example a 2:00 pm wake up after a night shift.

Step 2: enter your wake up time or bedtime and pick a 12 or 24 hour clock

Step 3: Adjust the Settings

Most people take 10 to 20 minutes to fall asleep, so 15 is the default. If you usually drop off in 5 minutes, or lie awake for 40, change it. Leave the cycle length at 90 unless you have noticed that you wake naturally at a different rhythm, then choose adult or child.

Step 3: set time to fall asleep, cycle length and age group

Step 4: Read Your Best Time

The big figure is the option that sits closest to the middle of the recommended hours. The table lists the other cycle counts, marked good, short or long, so you can choose a shorter night when you have to. If you want to check the gap between two times yourself, the time duration calculator gives the hours and minutes between any two clock times.

Step 4: read the best bedtime and the table of cycle options

How Much Sleep Do I Need?

Most adults need 7 to 9 hours of sleep a night, children need 9 to 13 hours, and toddlers and babies need 12 to 17 hours including naps, according to the NHS. For an adult with 90 minute cycles, that means five cycles (7 hours 30 minutes) or six cycles (9 hours). Four cycles, 6 hours, is fine for an odd night but leaves you short if it becomes a habit.

Take Priya, a nurse in Bristol who must be up at 6:30 am for an early shift. She usually falls asleep in about 15 minutes. Five cycles back from 6:30 am is 11:00 pm, and taking off her 15 minutes gives a bedtime of 10:45 pm. If she misses that, the next good option is 12:15 am for four cycles, which is better than turning in at 11:30 pm and being woken mid cycle.

Wake up timeBedtime for 6 cycles (9 h)Bedtime for 5 cycles (7 h 30)Bedtime for 4 cycles (6 h)
6:00 am8:45 pm10:15 pm11:45 pm
6:30 am9:15 pm10:45 pm12:15 am
7:00 am9:45 pm11:15 pm12:45 am
7:30 am10:15 pm11:45 pm1:15 am
8:00 am10:45 pm12:15 am1:45 am

All bedtimes include 15 minutes to fall asleep. Use the sleep calculator above for your own fall asleep time.

Tips to Get More From Your Sleep

  • Keep the same wake up time every day, weekends included. A steady alarm sets your body clock better than a steady bedtime.
  • Stop caffeine by early afternoon, since a strong coffee at 4 pm can still be working at bedtime.
  • Keep the bedroom dark, quiet and cool, and put screens away for the last half hour.
  • If you nap, keep it to about 20 minutes, or one full cycle of around 90, so you wake from light sleep.
  • If you have not fallen asleep after 20 minutes, get up and do something calm in dim light until you feel sleepy.

Alcohol is a common reason people wake at 3 am: it helps you fall asleep but breaks up the second half of the night, and our BAC calculator shows how long a few drinks take to clear. The NHS Every Mind Matters sleep advice has more practical ideas for winding down, and you should see your GP if changing your habits has not helped and poor sleep has gone on for months.

Key Terms Behind the Sleep Calculator

These terms explain the sleep stages and timing concepts used by the sleep calculator so you can choose a bedtime that suits your body and schedule.

Sleep cycle
One full pass through light sleep, deep sleep and REM sleep, repeated several times each night. Its length is often taken as about 90 minutes, but it differs between people and changes as the night goes on.
REM sleep
Rapid eye movement sleep, the stage in which most vivid dreaming happens and the brain is highly active while most muscles are temporarily relaxed. REM periods tend to lengthen in the later cycles of the night.
Slow-wave sleep
The deepest stage of non-REM sleep, marked by slow, high-amplitude brain waves and a high threshold for waking. Most of it falls in the first half of the night, and being woken from it often causes grogginess.
Sleep inertia
The temporary grogginess, slowed reactions and confusion felt immediately after waking, which is strongest when an alarm interrupts deep sleep. It fades with time, which is why waking near the end of a cycle tends to feel easier.
Sleep onset latency
The time taken to fall asleep after getting into bed and turning off the light. The calculator adds this delay to its cycle counting, so entering a realistic personal figure gives more accurate bedtimes than relying on the default.
Circadian rhythm
The body's internal clock, running on a cycle of roughly 24 hours, which regulates alertness, body temperature and hormone release. Keeping regular bed and wake times helps it stay aligned with daylight and makes falling asleep easier.
</>Embed this calculator on your website

Add the free Sleep Calculator to your own site or blog. Copy the code below and paste it into an HTML block. It resizes itself and works on phones.

How we checked this tool: Zahid Awais built this tool, checked it against the official rules or published standards where they apply, and tested it against worked examples. Results are estimates for planning, not personal financial or tax advice. Read our editorial policy and disclaimer, or report an error.

Frequently Asked Questions

How long is a sleep cycle?

A sleep cycle lasts about 90 minutes on average, but it varies between people and across the night, from roughly 70 to 120 minutes. Early cycles hold more deep sleep and later ones more REM sleep, which is why the calculator lets you change the cycle length.

What time should I go to bed to wake up at 7am?

To wake at 7:00 am after five 90 minute cycles, go to bed at 11:15 pm, allowing 15 minutes to fall asleep. For six cycles, or 9 hours of sleep, go to bed at 9:45 pm instead.

Is 6 hours of sleep enough?

For most adults, no. The NHS says adults need 7 to 9 hours a night. Six hours, or four 90 minute cycles, is manageable for an odd night, but regularly sleeping that little builds up a sleep debt that affects mood, focus and health.

Is it better to sleep 6 or 7.5 hours?

Seven and a half hours is better for most adults. It equals five full 90 minute cycles and sits inside the NHS range of 7 to 9 hours, while 6 hours falls below it even though it also ends on a full cycle.

How long should a nap be?

Keep a nap to about 20 minutes so you wake from light sleep, or take a full cycle of around 90 minutes. Naps of 30 to 60 minutes often end in deep sleep and leave you feeling groggy for a while afterwards.

Does the sleep calculator work for shift workers?

Yes. Enter any wake up time or bedtime, day or night, and it counts in full cycles from that point. Shift workers should also keep the room very dark and protect a regular main sleep, even on days off.