← All blog posts

Sleep Calculator formula — how it actually works

WhiteUI · A plain-English guide to the Sleep Calculator

The Sleep Cycle Calculator uses one short formula. There is no hidden scoring and no personal data involved — just your wake-up time, a fixed 15 minutes to fall asleep, and whole 90-minute sleep cycles counted backwards. This page shows the formula, works through it, and explains where the two numbers in it come from.

The formula

For any number of cycles, the bedtime is the wake-up time minus the time to fall asleep minus the sleep itself:

Bedtime = wake-up time − 15 minutes − (cycles × 90 minutes)

6 cycles: wake-up − 15 min − 540 min (9 h)
5 cycles: wake-up − 15 min − 450 min (7 h 30 min)
4 cycles: wake-up − 15 min − 360 min (6 h)
3 cycles: wake-up − 15 min − 270 min (4 h 30 min)

The calculator runs this four times — once for 6, 5, 4 and 3 cycles — and shows all four bedtimes together, so you can compare them at a glance instead of doing the subtraction four times yourself.

Why 90 minutes?

Sleep runs in cycles of roughly 90 minutes. Each cycle moves through light sleep, deep sleep and dreaming sleep, then back to light sleep. The 90 minutes is an average, not a precise figure for any one person on any one night — real cycles run somewhere around 80 to 110 minutes — but it is close enough that counting in 90-minute steps lands your alarm near the end of a cycle, when sleep is lightest and waking up usually feels easier.

That is the whole point of the calculator: it does not just tell you how long to sleep, it times your alarm to the end of a cycle. Waking at 07:00 after six full cycles feels different from waking at 07:00 in the middle of deep sleep, even though the total hours can look similar.

Why 15 minutes to fall asleep?

Most people take about 10 to 20 minutes to fall asleep after getting into bed, so the calculator uses 15 minutes as a middle value. Without it, the bedtime would be the time you need to be asleep, and you would lose 15 minutes of your first cycle every night. The 15 minutes is an estimate, not a measurement — if you regularly take 30 minutes to drift off, aim for the earlier bedtime, or simply get into bed 15 minutes before the calculator’s bedtime.

Worked example — waking at 07:00

Take the six-cycle bedtime. Six cycles is 6 × 90 minutes, which is 540 minutes or 9 hours. Add the 15 minutes to fall asleep and the total is 555 minutes, or 9 hours 15 minutes. Count back from 07:00: 9 hours takes you to 22:00 the previous evening, and the extra 15 minutes takes you to 21:45. The same subtraction with five cycles gives 23:15, with four cycles gives 00:45, and with three cycles gives 02:15.

6 × 90 min = 540 min = 9 h
9 h + 15 min = 9 h 15 min
07:00 − 9 h 15 min = 21:45 (previous evening)

At a glance

Bedtimes for a 07:00 wake-up6 cycles · 9 h21:455 cycles · 7.5 h23:154 cycles · 6 h00:453 cycles · 4.5 h02:15Wake-up time 07:00 · bedtime is the evening before
Each bar is one whole number of 90-minute cycles, counted back from a 07:00 alarm with 15 minutes to fall asleep.

What the formula leaves out

The formula assumes your cycles are 90 minutes and your fall-asleep time is 15 minutes. It does not measure your sleep, track your nights, or know whether you slept badly last night. It also cannot tell you how much sleep you personally need — that depends on your age, your health and how you feel during the day. Use it as a timing aid, not a medical device. The calculator is informational only, not medical advice, and persistent sleep problems deserve a doctor, not a calculator.

The mistake to avoid

Treating 90 minutes as exact. If your real cycles run closer to 100 minutes, a six-cycle night is really 10 hours, and the calculator’s bedtime will be a little late for you. The fix is simple: if you keep waking up groggy even on the six-cycle bedtime, move 15 minutes earlier for a week and see whether mornings improve. The formula gives you a good starting point; your own mornings are the final check.

Frequently asked questions

What is the Sleep Calculator formula?

Bedtime equals wake-up time minus 15 minutes to fall asleep minus the number of cycles times 90 minutes. The calculator shows this for 6, 5, 4 and 3 cycles.

Why does it use 90-minute cycles?

Sleep runs in cycles of roughly 90 minutes, moving through light, deep and dreaming sleep. Waking at the end of a cycle, when sleep is lightest, usually feels easier.

Why does it subtract 15 minutes?

Most people take about 10 to 20 minutes to fall asleep after getting into bed. The 15 minutes is a middle value, so the bedtime is when to get into bed, not when you need to be asleep.

Does the calculator measure my sleep?

No. It only works out bedtimes from the wake-up time you enter. It does not track sleep, record nights, or diagnose anything.

More guides on the Sleep Calculator

Try it yourself

Work out your bedtime from your wake-up time — free, in your browser.

Open the Sleep Cycle Calculator