FatCalc

Sleep Calculator

Find the best time to go to bed for the time you need to wake up, or the best time to set your alarm for when you're going to bed. The calculator lines your night up with full sleep cycles, so you wake during lighter sleep, and checks each option against the amount of sleep recommended for your age.

Sleep Calculator

What do you want to find?

I need to wake up at

7:00 AM

Your age

How This Calculator Works

Sleep is not one continuous state. Through the night you move through repeating cycles of light sleep, deep sleep and REM (dreaming) sleep, each lasting about 90 minutes on average. Waking at the end of a cycle, when sleep is lighter, tends to feel easier than being pulled out of deep sleep partway through one.

The calculator adds up whole cycles plus the time it takes you to fall asleep:
Bedtime = Wake time − (Cycles × Cycle length) − Time to fall asleep
Wake time = Bedtime + Time to fall asleep + (Cycles × Cycle length)

Defaults: 90-minute cycles, 15 minutes to fall asleep

For a 7:00 AM alarm, 5 cycles (7.5 hours) plus 15 minutes to fall asleep gives a bedtime of 11:15 PM, and 6 cycles (9 hours) gives 9:45 PM. Every option is then rated against the National Sleep Foundation recommendation for your age, and the one closest to the middle of your recommended range is marked as the best fit.

Understanding Sleep Cycles

Each cycle passes through these stages:
  • Stage N1 (light sleep): The few minutes of transition from wakefulness. You are easily woken.
  • Stage N2 (light sleep): Heart rate and body temperature fall. This makes up about half of a night's sleep in adults.
  • Stage N3 (deep or slow-wave sleep): The hardest stage to wake from, and the most important for physical recovery. Deep sleep is concentrated in the first half of the night.
  • REM sleep: Brain activity resembles wakefulness and most vivid dreaming happens. REM periods grow longer in the later cycles, toward morning.

Ninety minutes is an average, not a fixed rule. Individual cycles commonly run from about 70 to 120 minutes and shift across the night and from person to person. That is why the calculator lets you change the cycle length: if you regularly wake a few minutes before your alarm, or feel better on a slightly different schedule, adjust it to match.

Why Waking Mid-Cycle Feels Worse

The grogginess right after waking is called sleep inertia. It is strongest when you wake abruptly from deep slow-wave sleep and milder when you wake from light sleep. Without major sleep loss it rarely lasts more than about 30 minutes, but it is worse after short nights, because sleep-deprived people spend more time in deep sleep.

How Much Sleep Do You Need?

The National Sleep Foundation's expert panel set duration recommendations for each age group after reviewing the research on sleep and health. The "may be appropriate" range covers durations that suit some people but fall outside the range recommended for most. The American Academy of Sleep Medicine separately recommends at least 7 hours a night for adults.

Age groupRecommendedMay be appropriateCycles (90 min)
Teenagers (14–17)8–10 hours7–11 hours6
Young adults (18–25)7–9 hours6–11 hours5–6
Adults (26–64)7–9 hours6–10 hours5–6
Older adults (65+)7–8 hours5–9 hours5

Sleep and Fat Loss

Sleep is easy to overlook when you're focused on calories and exercise, but it has a measurable effect on how much of the weight you lose comes from fat.

Less Sleep, Less Fat Lost

In a controlled study, overweight adults followed the same reduced-calorie diet for two weeks, once with 8.5 hours in bed and once with 5.5 hours. Total weight loss was similar, but with short sleep the proportion lost as fat fell by 55% and the loss of fat-free mass rose by 60%. Participants were also hungrier.

What this means: when you're short on sleep, a calorie deficit takes more from lean tissue, including muscle, and less from fat. That is the opposite of what you want when using the Body Recomposition Calculator or Maximum Fat Loss Calculator.

Hunger Hormones

After just two nights of 4 hours in bed, compared with two nights of 10 hours, healthy young men had 18% lower leptin, the hormone that signals fullness, and 28% higher ghrelin, the hormone that drives hunger. Hunger rose by 24%, with the biggest increase in appetite for calorie-dense, high-carbohydrate foods. A large population study found the same hormone pattern, and a higher BMI, in people who habitually slept less.

Eating More

A meta-analysis of 17 studies found that people ate an average of 385 more calories per day after partial sleep deprivation, with no matching increase in calories burned. Sustained, that is enough to cancel a large part of a typical weight-loss deficit.

Sleep Debt

Sleep debt is the gap between the sleep your body needs and the sleep you actually get. An hour short each night adds up to seven hours over a week, close to a full night's sleep.

Sleep debt builds quietly. In a two-week laboratory study, people limited to 6 hours a night showed steadily worsening attention and reaction time, eventually matching the deficits seen after one to two nights without any sleep. Yet they rated themselves as only slightly sleepy, so feeling fine is not a reliable sign that you are getting enough.

Paying the debt back is slower than building it. In another study, people who spent a week with 5 or 7 hours in bed showed no improvement in reaction time after three recovery nights of 8 hours.

Tips for Better Sleep

Keep a consistent wake time. Getting up at the same time every day, including weekends, is one of the most effective ways to anchor your body clock. Pick a wake time you can keep, then use the calculator to set your bedtime.

Stop caffeine early. Caffeine taken even 6 hours before bed can disrupt sleep. The results show a cutoff time for your recommended bedtime, and the Caffeine Calculator: Track Your Daily Intake estimates how much will still be in your system when you turn in.

Go easy on alcohol. Alcohol can make you fall asleep faster, but it fragments sleep and suppresses REM sleep later in the night. The Alcohol Calorie Calculator shows what drinks cost your diet, too.

Get into bed when you're sleepy. If you regularly take more than 30 minutes to fall asleep, going to bed later or getting up and doing something quiet until you feel drowsy often helps more than lying awake.

Keep the room cool, dark and quiet. Bright light, especially from screens, in the hour before bed can delay the release of melatonin and push back the time you feel sleepy.

Limitations

This calculator uses average cycle lengths and average time to fall asleep. Your actual cycles vary from night to night, so it cannot guarantee that you will wake at a cycle boundary. Treat the times as a sensible starting point and adjust based on how you feel.

The duration recommendations are for healthy people. Shift work, pregnancy, illness, medications and sleep disorders can all change how much sleep you need and how well you sleep. If you snore loudly, stop breathing during sleep, have persistent trouble falling or staying asleep, or feel very sleepy during the day despite enough time in bed, talk to a healthcare provider.

Frequently Asked Questions about Sleep

Most adults need 5 or 6 cycles. At the average cycle length of about 90 minutes, 5 cycles is 7.5 hours and 6 cycles is 9 hours, which together span most of the 7–9 hour range the National Sleep Foundation recommends for adults. Teenagers generally need 6 cycles or more, and adults over 65 are usually well served by 5.
The heavy, slow feeling on waking is called sleep inertia. It is strongest when an alarm pulls you out of deep (slow-wave) sleep, and without major sleep loss it rarely lasts more than about 30 minutes. Ending the night near the end of a cycle, when sleep is lighter, is one way to reduce it. Chronic sleep debt, alcohol close to bedtime, and an irregular schedule make it worse regardless of timing.
More sleep is better for most people, even if it means waking mid-cycle. The cycle-timing idea helps you choose between times that are close together, such as 7 hours versus 7.5 hours. It is not a reason to cut a night short: studies of people restricted to 6 hours a night found steadily worsening attention over two weeks, even though they reported feeling only slightly sleepy.
Yes. In a controlled study of dieters eating the same reduced-calorie diet, those limited to 5.5 hours in bed lost 55% less fat and 60% more fat-free mass than those given 8.5 hours, and reported more hunger. Separate research shows short sleep lowers leptin (a fullness hormone) and raises ghrelin (a hunger hormone), and a meta-analysis found people eat roughly 385 more calories per day when their sleep is cut short.
Healthy adults typically fall asleep within about 10 to 20 minutes, which is why the calculator adds 15 minutes by default. Regularly taking more than 30 minutes can be a sign of insomnia, too much caffeine late in the day, or going to bed before you are sleepy. Falling asleep within a few minutes every night can be a sign that you are not getting enough sleep.
No. Ninety minutes is an average. Individual cycles commonly run from about 70 to 120 minutes and vary from person to person and across the night: early cycles contain more deep sleep, while later cycles contain more REM sleep. If you often wake up just before your alarm, or feel better with a slightly different schedule, adjust the cycle length in the calculator settings.
Only partly. Sleeping in can relieve short-term sleepiness, but in one study, people who spent a week with 5 or 7 hours in bed showed no recovery in reaction time after three nights of 8 hours, and a large shift in weekend wake time makes Monday mornings harder. A consistent schedule with enough sleep every night is more effective than repaying a debt in bulk.
The calculator suggests stopping caffeine 6 hours before bed. In a study comparing 400 mg of caffeine taken at bedtime, 3 hours before, or 6 hours before, all three significantly disrupted sleep, and the researchers concluded that substantial caffeine should be avoided for at least 6 hours before bed. Caffeine has an average half-life of about 5 hours, so sensitive or slow metabolizers may need an earlier cutoff. The Caffeine Calculator can estimate how much will still be in your system at bedtime.

Further Reading:

  1. M. Hirshkowitz, K. Whiton, S.M. Albert, and colleagues published the National Sleep Foundation's sleep duration recommendations for each age group, with the methodology behind them, in Sleep Health (2015). View
  2. N.F. Watson, M.S. Badr, G. Belenky, and colleagues set out the American Academy of Sleep Medicine and Sleep Research Society consensus that adults should sleep 7 or more hours per night, published in Sleep (2015). View
  3. A randomized crossover trial by A.V. Nedeltcheva, J.M. Kilkus, J. Imperial, and colleagues, published in Annals of Internal Medicine (2010), found that insufficient sleep undermines dietary efforts to reduce adiposity. View
  4. K. Spiegel, E. Tasali, P. Penev, and E. Van Cauter reported that sleep curtailment in healthy young men decreased leptin, elevated ghrelin, and increased hunger and appetite, in Annals of Internal Medicine (2004). View
  5. S. Taheri, L. Lin, D. Austin, and colleagues linked short sleep duration to reduced leptin, elevated ghrelin, and higher body mass index in the Wisconsin Sleep Cohort, published in PLoS Medicine (2004). View
  6. A systematic review and meta-analysis by H.K. Al Khatib, S.V. Harding, J. Darzi, and G.K. Pot, published in the European Journal of Clinical Nutrition (2017), examined the effects of partial sleep deprivation on energy balance. View
  7. H.P. Van Dongen, G. Maislin, J.M. Mullington, and D.F. Dinges measured the cumulative cost of chronic sleep restriction and total sleep deprivation on neurobehavioral function, in Sleep (2003). View
  8. G. Belenky, N.J. Wesensten, D.R. Thorne, and colleagues tracked performance during a week of restricted sleep and three nights of recovery sleep in a dose-response study published in the Journal of Sleep Research (2003). View
  9. M.M. Ohayon, M.A. Carskadon, C. Guilleminault, and M.V. Vitiello developed normative sleep values across the human lifespan in a meta-analysis published in Sleep (2004). View
  10. M.A. Carskadon and W.C. Dement describe the stages and cycles of normal human sleep in "Normal Human Sleep: An Overview", a chapter in Principles and Practice of Sleep Medicine, 5th edition, edited by M.H. Kryger, T. Roth, and W.C. Dement (Elsevier Saunders, 2011).
  11. P. Tassi and A. Muzet reviewed sleep inertia, the grogginess that follows waking, in Sleep Medicine Reviews (2000). View
  12. C. Drake, T. Roehrs, J. Shambroom, and T. Roth compared caffeine taken 0, 3, or 6 hours before bed and its effects on sleep, in the Journal of Clinical Sleep Medicine (2013). View