Sleep Calculator

Find the best time to go to bed or wake up based on 90-minute sleep cycles — so you wake between cycles feeling rested, not groggy.

Runs in your browserUpdated Built and maintained by Leon and Henrik

Pick a wake-up time (or a bedtime) and the calculator works backwards or forwards through 90-minute sleep cycles to suggest the times that let you wake between cycles, not in the middle of one. Free. No sign-up. Runs in your browser, nothing is uploaded.

Sleep Calculator

I want to…

Sleep runs in ~90-minute cycles; waking at the end of a cycle feels more refreshing than being jolted awake mid-cycle. We add your fall-asleep time on top so the clock reflects real time in bed.

Best bedtime
23:15
11:15 PM · 5 cycles · 7h 30m sleep
21:45
9:45 PM
6 cycles
9h sleep · recommended
23:15
11:15 PM
5 cycles
7h 30m sleep · recommended
00:45
12:45 AM
4 cycles
6h sleep
02:15
2:15 AM
3 cycles
4h 30m sleep
Runs in your browser
Nothing is uploaded

If you need to be up at 07:00, go to bed at 23:15 for five full sleep cycles or at 21:45 for six, assuming you take about 15 minutes to fall asleep. Enter your own wake-up time, or switch to "Go to bed at a time" to see when to set the alarm if you are going to bed now. Each suggestion is shown in 24-hour and 12-hour format, and the five- and six-cycle options are highlighted.

Bedtimes for common alarm times

Calculated with the default 15 minutes to fall asleep:

Alarm6 cycles (9 h)5 cycles (7.5 h)4 cycles (6 h)
06:00 (6am)20:4522:1523:45
06:3021:1522:4500:15
07:0021:4523:1500:45
07:3022:1523:4501:15
08:0022:4500:1501:45

And the other direction: if you get into bed at 23:00, you are probably asleep by 23:15, so good alarm times are 05:15 (4 cycles), 06:45 (5 cycles) or 08:15 (6 cycles).

Why waking between cycles feels easier

Through the night you move through light sleep, deep (slow-wave) sleep and REM sleep, then back to light sleep, in loops of roughly 90 minutes. An alarm that goes off during deep sleep produces that heavy, confused feeling known as sleep inertia. An alarm at the end of a cycle tends to catch you in lighter sleep, which is the whole idea behind counting in 90-minute blocks.

The pattern is not even across the night: early cycles contain more deep sleep, later ones more REM. That is one reason the last hour or two of sleep feel so different from the first, and why cutting the night short mostly costs you REM sleep.

Cycles versus total hours: which matters more?

Both, but total sleep comes first. The adult recommendation from the American Academy of Sleep Medicine and the Sleep Research Society is at least seven hours. Mapped onto cycles:

CyclesSleepAgainst the 7-hour guideline
34.5 hWell short; an emergency option
46 hShort; fine now and then, not as a habit
57.5 hMeets it; the calculator's headline suggestion
69 hGenerous; useful after a few short nights

Seven hours is not a whole number of cycles. If your schedule only allows seven hours, it is usually better to go to bed 30 minutes earlier for five cycles than to shave sleep down to four.

Choosing your fall-asleep time honestly

The buffer field makes a bigger difference than people expect, because it shifts every suggestion by the same amount. A few guidelines:

  • 10 to 20 minutes is typical for people who go to bed tired and keep screens away.
  • 30 minutes or more if you read in bed, scroll, or often lie awake. Enter what actually happens, not what you would like to happen.
  • Under 5 minutes, every night, can be a sign that you are short on sleep rather than a talent. If that sounds like you, try the six-cycle option for a week.

Edge cases the clock maths ignores

  • Clock changes. On the night daylight saving time starts or ends, the calculator still counts clock time, so you really get one hour less or one hour more sleep than it shows.
  • Crossing midnight is handled for you: a 01:00 alarm with six cycles correctly gives 15:45 the previous afternoon, which is a hint to choose fewer cycles, not a bug.
  • Naps follow different rules. A short nap of 20 minutes or so avoids deep sleep; a 90-minute nap covers a full cycle. The calculator is built for night sleep.

Consistency beats precision. Going to bed and getting up at roughly the same time every day, weekends included, does more for how you feel than hitting an exact cycle boundary. If you are also looking at other health numbers, the BMI Calculator and the TDEE Calculator cover body weight and energy needs, and the all tools page lists everything else.

Frequently asked questions