Home / Calculator

Sleep calculator

We will tell you when to go to bed.

A sleep calculator will not knock you out. It does something more useful: it picks a bedtime or a wake time that lines up with a full sleep cycle, so you are less likely to sit up in a heavy, groggy daze. This page uses the same 90-minute cycle used in sleep research writing for the public, plus a short buffer for falling asleep. You still have to close the laptop. The math only tells you when.

How this sleep calculator works

Most nights are not one long block of the same sleep. They arrive in repeating cycles. A typical cycle runs close to 90 minutes and moves through lighter sleep, deeper slow-wave sleep, then REM. If an alarm cuts you in slow-wave sleep, the grogginess you feel is sleep inertia. If the alarm lands near the end of a cycle, waking is usually cleaner.

The calculator works backwards from a wake time, or forwards from a bedtime. It subtracts or adds complete 90-minute blocks, then adds the minutes you said you need to fall asleep. Four cycles is six hours of sleep. Five cycles is seven and a half hours. Six cycles is nine hours. Those last two sit in the range most adults actually need. For the stage-by-stage version of this, read our sleep stages guide.

It is a planning tool, not a diagnosis. If you cannot fall asleep, stay asleep, or stay awake in the day, that is a clinical question. Start with our insomnia overview and speak to a qualified clinician if it lasts.

How much sleep the numbers assume

Public health guidance for most adults is at least seven hours a night. Many people feel better closer to eight. Teenagers usually need more. Older adults still need a full night, even if they nap or wake earlier. The calculator highlights five and six cycles because those totals, plus time to fall asleep, land in that adult band. Four cycles can be a backup when a flight or a newborn wrecks the night. It is not a long-term plan.

Need a chart by age rather than by cycle count? Use how much sleep you need by age.

Hours in bed are not the same as hours asleep. If you get into bed at 11:00 and stare at the ceiling until 11:40, a calculator that ignores that gap will wake you too early. That is why the fall-asleep field exists. Fifteen minutes is a reasonable default for someone who usually drops off without a fight. If you know you take longer, raise it. If you fall asleep in under ten minutes most nights, you can lower it. Do not chase zero unless you are already in bed with the light off.

Bedtime mode and wake-time mode

Use wake-time mode when the morning is fixed: a shift, a school run, a meeting you cannot move. Enter the time you must be up. The tool lists bedtimes that complete four, five, or six cycles before that alarm, after the fall-asleep buffer. The suggested rows are the five-cycle and six-cycle options. Pick the later bedtime if you cannot credibly be in bed for the earlier one. A perfect nine-hour plan you will ignore is worse than seven and a half hours you will actually take.

Use bedtime mode when the evening is the constraint. Maybe you get home late, or you will not fall asleep before a certain hour. Enter the time you expect to be asleep, not the time you start scrolling. The tool then lists wake times after four to six full cycles. Set the alarm to one of those times rather than a round number that cuts a cycle in half.

If you are rebuilding a broken week, pair the calculator with how to reset a sleep schedule. A single calculated night will not undo a month of 2 a.m. bedtimes. A week of consistent lights-out times will do more than any one alarm tweak.

Why 90 minutes, and why it is not magic

Ninety minutes is an average, not a law. Some people cycle closer to 80 minutes, some closer to 110. Cycle length also changes across the night: the first cycles carry more deep sleep, later cycles carry more REM. A public calculator cannot measure your brain. It uses 90 minutes because that is the figure most sleep education materials use, and because it is close enough to be useful for planning.

That is also why we show more than one answer. If 10:15 feels too early and 11:45 feels too late, 12:00 after five cycles may be the night you will keep. Consistency beats precision. The worst outcome is moving bedtime by 90 minutes every night because the tool offered a new “perfect” time.

Waking at night does not mean the calculator failed. Brief awakenings between cycles are common. If you are up for a long stretch, our notes on waking in the middle of the night are a better next read than another alarm experiment.

Falling asleep on purpose

The buffer only works if you actually try to sleep at the time you entered. Screens, late caffeine, and a bright, warm room all push that buffer out. If you miss the window by 40 minutes, you are no longer on the cycle you calculated. Either shift the alarm by a cycle or accept a slightly rougher morning. Do not stack extra snoozes to “catch” a cycle. Snooze chunks are usually too short to finish one.

If the problem is getting from awake to asleep, skip the extra math and use a wind-down that has a shot at working: dimmer light, a cooler room, and a boring, repeatable close to the day. How to fall asleep fast covers techniques without turning bedtime into a performance. A calculator cannot replace that.

What a sleep calculator cannot do

It cannot tell you if you have sleep apnea, restless legs, or delayed sleep phase. It cannot fix a 5 a.m. mind that starts a to-do list. It cannot give a child the same numbers as an adult. It will not make six hours feel like eight if you are already in sleep debt. Treat the times as a map, then judge the next morning honestly. If you still feel wrecked after a week of seven and a half hours, the issue is probably not the clock math.

Shift workers, new parents, and people in other time zones should treat the suggestions as a starting grid, then adjust. A night-shift rotation does not map cleanly onto a 7 a.m. office alarm. If your nights are medically complicated, stop here and get care rather than collecting more bedtime tools.

A simple way to use it tonight

Decide whether the morning or the evening is the immovable piece. Enter that time. Keep the 15-minute buffer unless you already know your number. Choose a suggested slot you can keep for at least five nights, not one. Put the phone outside the bed. In the morning, notice whether you woke clearer than usual. If yes, keep the slot. If not, try the other suggested cycle count before you throw the method out.

That is the whole job of this page: fewer accidental 6:07 a.m. alarms in the middle of deep sleep, and a bedtime you can defend when the next episode autoplays.

Common questions

How does a sleep calculator work?

It counts backward or forward in 90-minute blocks from the time you enter, then adds the minutes you need to fall asleep. The goal is to wake near the end of a cycle instead of in deep sleep.

How long is a sleep cycle?

About 90 minutes for most adults, on average. Your own cycles can run shorter or longer, and they change across the night.

How much sleep should I aim for?

Most adults need at least seven hours. This tool flags five cycles (7.5 hours asleep) and six cycles (9 hours asleep) as the usual targets, plus time to fall asleep.

Should I include time to fall asleep?

Yes. If you skip it, the calculator assumes you are asleep the minute you set the time. Fifteen minutes is a fair starting point.

Is six hours enough?

Four cycles equal six hours asleep. That can cover a short night. It is below what most adults need if you repeat it.

Why do I still feel groggy?

Sleep debt, alcohol, a late meal, apnea, or an alarm in deep sleep can all do it. Try the other suggested cycle count for a few nights before you change tools.