Skip to content
helpyself

Sleep Calculator

Local only — nothing is uploaded unless you save or share it.

A sleep calculator that works backwards from when you have to be up.

  1. Say when you need to wake up — or switch it round and say when you are going to bed.
  2. Adjust how long you take to fall asleep, and the cycle length, if you know them.
  3. Pick one of the times: each one lands at the end of a whole cycle.

Save this tool

Keep Sleep Calculator handy

Bookmark it

About this tool

A sleep calculator for the question people actually have at eleven at night: if I have to be up at half past six, when should I go to bed? It works backwards in whole sleep cycles and allows for the time it takes to fall asleep, and it goes the other way too — tell it you are going to bed now and it will tell you the times worth setting an alarm for. Waking at the end of a cycle rather than in the middle of one is the whole idea. Sleep runs in repeating rounds of light sleep, deep sleep and REM, and an alarm that goes off during the deep part of a round is the one that leaves you groggy for half an hour — the feeling that has a name, sleep inertia. Landing between cycles is what the times below are for. One honest caveat, which most sleep calculators leave out: ninety minutes is an average, not a law. Real cycles run from about seventy minutes to about a hundred and twenty, they differ between people, and they get longer through the night as REM takes up more of each round. So treat these as good guesses rather than as a timetable — and you can change the cycle length here if you know yours runs differently, which is not something a page that presents ninety minutes as fact can offer you. It is arithmetic, not advice. If you are sleeping badly rather than sleeping awkwardly, that is a conversation for a doctor and not for a calculator.

Frequently asked questions

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

Working in ninety-minute cycles and allowing a quarter of an hour to drop off, the good candidates are 21:45, 23:15 and 00:45 — five, six or four cycles. The list on the page does this for whatever time you actually need, and the top of the list is the one that gives you the most sleep rather than the least.

Is a sleep cycle really ninety minutes?

On average, roughly. It is not a fixed number: cycles run from about seventy to about a hundred and twenty minutes, vary between people, and lengthen as the night goes on because REM takes a larger share of each round. Ninety is a reasonable middle, which is why every calculator uses it — but this one lets you change it, because presenting an average as a law is the thing wrong with the rest of them.

Why does it add fifteen minutes?

That is how long it takes an average adult to fall asleep, so a bedtime and a sleep-time are not the same instant. Fifteen is a middle figure — under five minutes consistently can be a sign of being badly short of sleep, and consistently over thirty is one of the things insomnia looks like. Change it to whatever is true for you.

How many hours of sleep do I need?

Most adults need somewhere between seven and nine hours, which is five to six cycles. Six cycles is nine hours and more than many people have time for; five is seven and a half and is the one most of these lists are really recommending. Teenagers need more, and “I only need five hours” is usually somebody who has stopped noticing the deficit.

Does waking at the end of a cycle actually help?

It helps with how you feel in the first half hour. Waking out of deep sleep produces sleep inertia — the heavy, slow, unpleasant twenty minutes that feels like being hungover — and waking from light sleep at the end of a round largely avoids it. What it cannot do is make less sleep into enough sleep: six hours timed perfectly is still six hours.

Is this medical advice?

No. It is arithmetic on a clock, and it knows nothing about you. If you are sleeping badly rather than sleeping awkwardly — lying awake, waking repeatedly, exhausted despite the hours — that is worth raising with a doctor, and no calculator is a substitute for it.

Help improve this tool

Found a bug, want a change, or need a tool we don't have?

/sleep-calculator

↑↓ to move · Enter to open · Esc to close