Sleep calculator
This sleep calculator works both ways: enter the time you need to wake up and get bedtimes, or enter when you go to bed (or tap Now) and get wake times. Each option ends on a full sleep cycle, shows how many hours of sleep it gives, and is checked against the hours recommended for your age.
- 9:45 PM6 cycles, 9 h sleep
- 11:15 PM5 cycles, 7.5 h sleep · Best fit
- 12:45 AM4 cycles, 6 h sleep
Adults need 7 hours or more per night (AASM and Sleep Research Society). 5 or 6 cycles of 90 minutes, 7.5 or 9 hours, meet that; 4 cycles, 6 hours, do not.
How the sleep calculator works
Sleep runs in repeating cycles of light sleep, deep sleep and REM sleep. The calculator counts whole cycles between your bedtime and your alarm, so the alarm lands near the end of a cycle, when sleep is lighter, rather than in the middle of deep sleep.
The formula
Bedtime equals wake-up time minus the time it takes you to fall asleep minus the number of cycles times the cycle length. Wake time is the same sum in the other direction: bedtime plus time to fall asleep plus cycles times cycle length. The defaults are a 90 minute cycle and 15 minutes to fall asleep, and both are editable.
Worked example
You need to be up at 7:00 AM. Five cycles of 90 minutes is 450 minutes, 7.5 hours. Add 15 minutes to fall asleep and you are at 465 minutes, 7 hours 45 minutes. Count back from 7:00 AM and the bedtime is 11:15 PM. Six cycles, 9 hours of sleep, moves it to 9:45 PM; four cycles, 6 hours, to 12:45 AM.
Why the calculator shows 4, 5 and 6 cycles
Four cycles is 6 hours of sleep, which is below the 7 hour minimum the American Academy of Sleep Medicine and the Sleep Research Society set for adults. Five cycles (7.5 hours) and six cycles (9 hours) both sit inside the 7 to 9 hour range the National Sleep Foundation recommends for adults, so those two are highlighted. Four is shown because some nights it is the only realistic option, not because it is enough.
How long is a sleep cycle?
A full sleep cycle takes roughly 90 to 110 minutes in a typical adult, and most people go through 4 to 5 of them in a night. The 90 minute figure every sleep cycle calculator uses is an average, not a fixed clock: individual cycles run from about 70 to 120 minutes.
Cycles change through the night
The first cycle is usually the shortest and contains the most deep sleep. Later cycles hold less deep sleep and longer stretches of REM sleep, with the longest REM periods toward morning. That is why the last 90 minutes before a normal alarm matter: they are REM-heavy, and cutting them costs you more REM than the same time cut from the start of the night.
Changing the cycle length
If you regularly wake up a few minutes before your alarm feeling alert, your cycles may be shorter than 90 minutes; if you wake groggy at a predicted cycle end, they may be longer. Try 80 or 100 minutes in the calculator for a week and see which timing feels better. Keep the total hours inside your recommended range either way.
Sleep cycle stages: N1, N2, N3 and REM
Each cycle moves through three stages of non-REM sleep and then REM sleep. Sleep scientists label them N1, N2, N3 and REM. The table shows what happens in each and roughly how much of an adult night it takes up.
The shares change with age. Deep N3 sleep makes up a smaller part of the night in older adults, and time awake after falling asleep goes up, according to a meta-analysis of 65 studies covering ages 5 to 102 (Ohayon et al., 2004).
| Stage | What happens | Share of the night |
|---|---|---|
| N1, light sleep | Transition from waking, easy to wake, lasts a few minutes per cycle | About 5% |
| N2, light sleep | Heart rate and body temperature drop, sleep spindles appear | About 45% |
| N3, deep sleep | Slow-wave sleep, hardest to wake from, longest in the first half of the night | Up to about 25%, less with age |
| REM sleep | Most vivid dreaming, muscles are temporarily paralysed, longest toward morning | About 20 to 25% |
REM sleep calculator: when REM sleep happens
The first REM period starts about 90 minutes after you fall asleep and is short, often around 10 minutes. Each following REM period is longer, and the final ones before a normal wake time can last up to an hour.
A REM sleep calculator therefore cannot give you a precise REM start time, because cycle length varies from night to night. What it can show is the pattern: sleep 6 hours instead of 7.5 and you lose the last full cycle, which is one of the most REM-rich parts of the night.
Waking up during REM
REM sleep is a lighter stage than N3, so an alarm at the end of a REM period generally feels easier than one during deep sleep. Waking from deep sleep is what causes the heavy, disoriented feeling known as sleep inertia. Timing your alarm to a predicted cycle end is a reasonable heuristic, not a guarantee, since your cycles will not all be exactly 90 minutes.
How much sleep you need by age
Hours matter more than cycle timing. The National Sleep Foundation published recommended ranges by age in 2015 after an expert panel reviewed the research on sleep duration and health. The American Academy of Sleep Medicine and the Sleep Research Society reached a matching adult figure the same year: 7 hours or more per night on a regular basis.
Enter your age in the calculator and it picks the shortest option that reaches the bottom of your range. For a 16 year old that is 8 hours, which takes six 90 minute cycles rather than five.
| Age | Recommended | Cycles of 90 minutes |
|---|---|---|
| 3 to 5 years | 10 to 13 hours | 7 to 8 |
| 6 to 13 years | 9 to 11 hours | 6 to 7 |
| 14 to 17 years | 8 to 10 hours | 6 |
| 18 to 64 years | 7 to 9 hours | 5 to 6 |
| 65 years and older | 7 to 8 hours | 5 |
Bedtime calculator: bedtimes by wake-up time
The table below is the bedtime calculator worked out for common alarm times, with 15 minutes to fall asleep and 90 minute cycles. Use the column that matches the hours you need; for most adults that is the 5 or 6 cycle column.
| Wake-up time | 6 cycles, 9 h | 5 cycles, 7.5 h | 4 cycles, 6 h |
|---|---|---|---|
| 5:30 AM | 8:15 PM | 9:45 PM | 11:15 PM |
| 6:00 AM | 8:45 PM | 10:15 PM | 11:45 PM |
| 6:30 AM | 9:15 PM | 10:45 PM | 12:15 AM |
| 7:00 AM | 9:45 PM | 11:15 PM | 12:45 AM |
| 7:30 AM | 10:15 PM | 11:45 PM | 1:15 AM |
| 8:00 AM | 10:45 PM | 12:15 AM | 1:45 AM |
Sleep for recovery, muscle gain and fat loss
For anyone training, sleep is part of the programme. A few well controlled studies show how much a short night can cost, though most are small and short, so read them as direction rather than precise effect sizes.
Fat loss
Nedeltcheva et al. put 10 overweight adults on the same calorie deficit for two weeks twice, once with 8.5 hours in bed and once with 5.5 hours. Weight loss was similar, but with short sleep the share of weight lost as fat fell by 55% and the loss of fat-free mass rose by 60%. Same diet, worse body composition. Pair a calorie deficit with enough sleep or part of what comes off is muscle.
Muscle gain and recovery
Lamon et al. found that one night without sleep lowered muscle protein synthesis by 18% in healthy young adults, while cortisol rose 21% and testosterone fell 24%. That was total sleep deprivation, not a slightly short night, but it shows the direction: the body builds less muscle when sleep is cut. Hitting your protein target does not fully make up for it.
Performance
Mah et al. asked 11 college basketball players to aim for 10 hours in bed for five to seven weeks. Their sprint times improved and free throw and three point accuracy each rose by about 9%. There was no control group, so treat it as encouraging rather than proof, but it matches what most coaches see when an athlete starts sleeping more.
What an online sleep calculator can and cannot tell you
An online sleep calculator does simple arithmetic on two averages: how long you take to fall asleep and how long a cycle lasts. Both vary between people and from night to night, so the times it gives are a starting point, not a measurement of your sleep.
It cannot tell you whether you have a sleep problem. If you regularly take longer than about 30 minutes to fall asleep, wake often during the night, snore loudly, or feel sleepy during the day despite 7 or more hours in bed, talk to a doctor. Those are signs a calculator cannot fix by shifting your bedtime.
The most useful thing it does is make the trade-off visible. Seeing that a 6:00 AM alarm needs a 10:15 PM bedtime for 7.5 hours of sleep turns "I should sleep more" into a specific time to be in bed, and a regular bedtime and wake time is itself one of the most commonly recommended sleep habits.
How coaches use a sleep calculator
Sleep is one of the first things to check when a client stalls. A client who trains well, eats to plan and still is not progressing is often sleeping 6 hours. Asking for average sleep on the weekly check-in catches that before you change the programme.
A practical routine: ask for the client's fixed wake time, run it through the calculator, and agree on a bedtime from the 5 or 6 cycle column. Track average hours for two weeks. If recovery markers such as sleep, energy and mood drop for two weeks in a row, that is also one of the signals to plan a deload week.
Scraler lets you collect sleep, energy and stress on each client's check-in next to their training and nutrition, so a drop in sleep shows up beside the stalled lifts or the slowing fat loss it explains. Pair it with a body recomposition plan or a TDEE estimate and the sleep target becomes part of the plan rather than an afterthought.
Frequently asked questions
- How does a sleep calculator work?
- It adds or subtracts whole sleep cycles, usually 90 minutes each, plus the time it takes you to fall asleep. From a wake-up time it gives bedtimes; from a bedtime it gives wake times that land at the end of a cycle.
- How long is a sleep cycle?
- About 90 minutes on average, with a typical range of 90 to 110 minutes and individual cycles running from roughly 70 to 120 minutes. Early cycles hold more deep sleep, later ones more REM sleep.
- How many sleep cycles do I need per night?
- Most adults need five or six 90 minute cycles, which is 7.5 or 9 hours of sleep. That fits the 7 hours or more recommended by the American Academy of Sleep Medicine and the Sleep Research Society.
- What time should I go to bed if I wake up at 6 AM?
- With 15 minutes to fall asleep, 10:15 PM gives five cycles (7.5 hours) and 8:45 PM gives six cycles (9 hours). 11:45 PM gives only four cycles, 6 hours, which is below the adult minimum.
- Is it better to wake up at the end of a sleep cycle?
- Waking from light sleep or REM generally feels easier than waking from deep sleep, which causes sleep inertia. Cycle timing is a useful heuristic, but getting enough total hours matters more than hitting an exact cycle end.
- Can a REM sleep calculator tell me when I am in REM?
- Only roughly. The first REM period starts about 90 minutes after falling asleep and later ones get longer toward morning, but cycle length varies, so no calculator can pinpoint REM. A sleep lab measures it with EEG.
- How much sleep do I need to build muscle?
- At least the 7 hours recommended for adults, and many athletes benefit from more. One night of total sleep loss cut muscle protein synthesis by 18% in a controlled study, so sleep belongs alongside training and protein.
- Does lack of sleep slow down fat loss?
- It can change what you lose. In a two week study on the same calorie deficit, 5.5 hours in bed instead of 8.5 cut the share of weight lost as fat by 55% and increased the loss of fat-free mass by 60%.
- What if it takes me longer than 15 minutes to fall asleep?
- Change the time to fall asleep in the calculator to your usual figure. If it regularly takes you longer than about 30 minutes, or you wake tired despite enough hours, it is worth discussing with a doctor.
Sources
- Watson NF et al. Recommended Amount of Sleep for a Healthy Adult: A Joint Consensus Statement of the AASM and Sleep Research Society. J Clin Sleep Med, 2015Adults should sleep 7 hours or more per night on a regular basis.
- Hirshkowitz M et al. National Sleep Foundation's sleep time duration recommendations: methodology and results summary. Sleep Health, 2015Recommended hours of sleep by age used for the age input and the table.
- Patel AK, Reddy V, Shumway KR, Araujo JF. Physiology, Sleep Stages. StatPearls, NCBI BookshelfSleep stages, their share of the night, and a cycle length of roughly 90 to 110 minutes with 4 to 5 cycles per night.
- National Institute of Neurological Disorders and Stroke. Brain Basics: Understanding SleepREM sleep first occurs about 90 minutes after falling asleep, with longer REM periods toward morning.
- Ohayon MM, Carskadon MA, Guilleminault C, Vitiello MV. Meta-analysis of quantitative sleep parameters from childhood to old age in healthy individuals. Sleep, 2004How deep sleep and wake time after sleep onset change with age, across 65 studies.
- Nedeltcheva AV et al. Insufficient sleep undermines dietary efforts to reduce adiposity. Ann Intern Med, 2010Same calorie deficit, 5.5 versus 8.5 hours in bed: 55% less of the weight lost as fat, 60% more fat-free mass lost.
- Lamon S et al. The effect of acute sleep deprivation on skeletal muscle protein synthesis and the hormonal environment. Physiol Rep, 2021One night without sleep: muscle protein synthesis down 18%, cortisol up 21%, testosterone down 24%.
- Mah CD, Mah KE, Kezirian EJ, Dement WC. The effects of sleep extension on the athletic performance of collegiate basketball players. Sleep, 2011Sleep extension to 10 hours in bed improved sprint times and shooting accuracy.
Calories, macros, workouts and check-ins tracked per client, so the number you just calculated becomes a plan you can run. Free to try, no card needed.
Start free trial

