Sleep Calculator
Bedtimes and wake times spaced by sleep cycles, with how variable a cycle really is.
Updated
Your alarm, or the moment the light goes off.
Bedtimes
21:45
6 cycles, 9 h asleep and 9.3 h in bed
- 6 cycles (9 h asleep)
- 21:45
- 5 cycles (7.5 h asleep)
- 23:15
- 4 cycles (6 h asleep)
- 00:45
- 3 cycles (4.5 h asleep)
- 02:15
The same answer across the published range. At 70 minutes a cycle, 6 cycles land on 23:45; at 120 minutes they land on 18:45. That is a spread of 5.0 hours on one row, which is how much of this is arithmetic rather than measurement.
Cycle length varies between people and lengthens across a night, and nothing here measures your own. These are clock times derived from the cycle length you set, not a prediction about how you will feel. Anything about your sleep that worries you is a question for a clinician, not a calculator.
Estimates for general information, not medical advice. Consult a healthcare provider for personal guidance.
In short
How do you work out what time to go to bed?
Count backwards from your alarm in whole sleep cycles and add the time you take to fall asleep. For a 07:00 alarm at 90 minutes a cycle with a 15 minute allowance, five cycles means 23:15 and six means 21:45. The 90 minutes is an average though: at 70 minutes those become 00:55 and 23:45.
Cycle length varies between people and lengthens across a night, so a bedtime from this page is arithmetic on an average rather than a prediction about how you will feel at the alarm.
How to use the sleep calculator
Tell the tool which time you know, enter it, and set two adjustments: how long you take to fall asleep, and how long you want to treat a sleep cycle as. It then counts whole cycles forwards or backwards from that anchor and reports the clock times they land on, wrapping across midnight where needed.
The page opens on a 07:00 alarm with a 15 minute allowance and a 90 minute cycle. That gives bedtimes of 21:45, 23:15, 00:45 and 02:15 for six, five, four and three cycles. Each is exactly 90 minutes from the next, which is the entire structure of the answer.
23:15
Five cycles before a 07:00 alarm
7.5 hours asleep, 7.75 in bed
90 min
The conventional cycle length
an average, and the default
5 hours
Spread across the published range
six cycles at 70 min versus 120 min
The fall-asleep allowance is the input people skip, and it is the one that is genuinely theirs. Counting back from an alarm, a longer allowance means an earlier bedtime, because you are budgeting more of the night for lying awake. Working forwards from a bedtime it pushes the wake times later instead.
- No allowance
- bed at 23:30
- 10 minutes
- bed at 23:20
- 15 minutes, the default
- bed at 23:15
- 20 minutes
- bed at 23:10
- 30 minutes
- bed at 23:00
All for a 07:00 alarm at 90 minutes a cycle. The shift is one for one: every extra minute of allowance moves the bedtime a minute earlier.
The cycle length slider is the honest part of the interface. Ninety minutes is a convention, not a constant, and moving the slider is the fastest way to see how much of a bedtime is measurement and how much is assumption. At six cycles the answer travels five hours across the published range.
Reading the results, the tool deliberately does not rank them. It has no idea how much sleep suits you, and a calculator that counted cycles is not the thing that could know. The four rows are four arithmetic results from one anchor, presented in order of length and nothing more.
Do
- Enter the time your alarm is actually set for, not the time you would like to wake.
- Switch the direction control first if what you know is your bedtime rather than your alarm.
- Set the fall-asleep allowance to roughly how long you usually take, since it shifts every row.
- Sweep the cycle length slider to see how far each answer moves across the published range.
- Read the whole list of options rather than only the row at the top.
Don't
- Read a bedtime as a boundary in the night, because the cycle length behind it is an average rather than yours.
- Leave the allowance at zero unless you genuinely fall asleep the moment the light goes off.
- Enter a bedtime while the direction control still says wake time, or every answer points the wrong way.
- Assume a shorter row is worse or a longer row better, since this page ranks nothing.
- Treat the four options as four recommendations, when they are four results from one piece of arithmetic.
Five sleep cycles counted back from a 07:00 alarm, computed at every cycle length across the range the published literature reports, with a 15 minute allowance for falling asleep. The point of the table is the third column: the same five cycles put bedtime anywhere from 20:45 to 00:55 depending only on which cycle length you assume.
| Assumed cycle length | Time asleep for 5 cycles | Bedtime for a 07:00 alarm | Total time in bed |
|---|---|---|---|
| 70 minutes | 5 h 50 m | 00:55 | 6 h 05 m |
| 80 minutes | 6 h 40 m | 00:05 | 6 h 55 m |
| 90 minutes, the convention | 7 h 30 m | 23:15 | 7 h 45 m |
| 100 minutes | 8 h 20 m | 22:25 | 8 h 35 m |
| 110 minutes | 9 h 10 m | 21:35 | 9 h 25 m |
| 120 minutes | 10 h 00 m | 20:45 | 10 h 15 m |
How long a sleep cycle really is
The 90 minute figure is repeated so often that it has hardened into a rule. The published literature does not support a rule. It supports a range, and it says the range shifts within a single night.
“The average length of the first NREM-REM sleep cycle is 70 to 100 minutes. The second, and later, cycles are longer lasting, approximately 90 to 120 minutes.”
That is where the 70 to 120 minute range on the slider comes from, and it carries a second point worth noticing: cycles are not all the same length even for one person on one night. The first is typically the shortest and later ones run longer.
The composition changes too. The same chapter reports that in normal adults, REM sleep increases as the night progresses and is longest in the final third, while the deepest stages can disappear from the later cycles altogether. A cycle late in the night is not a repeat of the first one.
StatPearls, in its Physiology, Sleep Stages review, puts a complete cycle at roughly 90 to 110 minutes and a typical night at four to six of them. Different source, different phrasing, same shape of answer: a central figure with real width either side of it.
- At 70 minutes a cycle
- bed at 23:45, 7.0 hours asleep
- At 90 minutes a cycle
- bed at 21:45, 9.0 hours asleep
- At 120 minutes a cycle
- bed at 18:45, 12.0 hours asleep
One row of the tool, computed at three cycle lengths from the same published range. Five hours separate the outer two, which is how much the assumption is carrying.
What this page will not tell you
This is a clock calculator. It counts intervals from a time you supply and reports where they land. There are several questions it cannot answer, and being clear about them is more useful than pretending otherwise.
It does not know how much sleep suits you. The American Academy of Sleep Medicine and the Sleep Research Society published a joint consensus recommendation in 2015 that adults sleep seven or more hours a night. That figure is theirs, it is stated here for attribution, and nothing in this tool uses it or applies it to you.
It does not measure anything about your sleep. No cycle boundary here was observed. The whole structure rests on a cycle length you selected from a published range, applied uniformly to a night the literature says is not uniform.
Just need the hours between two times?
If what you actually want is the gap between lights out and the alarm, in hours and minutes and in decimal form, that is a plain duration and there is a tool for it.
Open the time duration calculator →The formula, worked line by line
The arithmetic is subtraction on a 24 hour clock, and the only reason it needs writing down is the wrapping. Counting back from a morning alarm nearly always crosses midnight, and a naive subtraction produces a negative number of minutes rather than a time.
Everything is done in minutes past midnight. An alarm at 07:00 is minute 420. Subtract the sleep and the allowance, then wrap the result into the range 0 to 1,439 by adding a day whenever it falls below zero. Working forwards from a bedtime is the same operation with the sign flipped.
Because each option differs from the next by exactly one cycle, the results are always evenly spaced. That even spacing is what makes the list readable: you are looking at one interval repeated, not four separate calculations.
anchor = hours x 60 + minutes (minutes past midnight)
sleep = cycles x cycle length
from a wake time: raw = anchor - (sleep + fall asleep allowance)
from a bedtime: raw = anchor + (sleep + fall asleep allowance)
result = ((raw mod 1440) + 1440) mod 1440
crossed midnight when raw < 0 or raw >= 1440- Anchor, 07:00
- minute 420
- Sleep, 6 x 90
- 540 minutes
- Allowance
- 15 minutes
- Raw, 420 minus 555
- minute -135
- Wrapped, -135 plus 1440
- minute 1305
- Bedtime
- 21:45 the previous evening
Five cycles is 90 minutes later at 23:15, four is 00:45 and three is 02:15. The double wrap in that last pair is why the tool marks which rows landed on the other side of midnight.
Why the spacing is exactly one cycle
Each option changes only the cycle count, so consecutive results differ by one cycle length and nothing else. The allowance appears identically in every row and cancels out of the gaps, which is why changing it slides the whole list without ever changing the spacing between rows.
That also explains the shape of the error. If your real cycle length is not the one you set, the discrepancy multiplies by the cycle count, so the row with the most cycles is the one carrying the most assumption. At six cycles a 20 minute misestimate becomes two hours.
Questions people ask
Sources
Where the constants and formulas on this page come from. Each line names the figure it backs.
That the first NREM-REM cycle runs about 70 to 100 minutes and later ones about 90 to 120, which is why a single fixed cycle length is an approximation.
Sleep Disorders and Sleep Deprivation, chapter 2: Sleep Physiology — Institute of Medicine, National Academies Press, 2006
That a complete cycle runs roughly 90 to 110 minutes and repeats four to six times a night.
Physiology, Sleep Stages — Patel AK, Reddy V, Shumway KR, Araujo JF, StatPearls, 2024
Shop blackout curtains on Amazon
Browse current options and prices directly on Amazon — we don’t list products here.
As an Amazon Associate we may earn from qualifying purchases.
Related guides
How Much Protein Do I Need a Day? Grams by Goal and Body Weight
Your weight in kilograms times a goal factor. The factor is the whole story — and the range matters more than the number.
July 23, 2026 · 13 min read
How Much Water Should You Drink a Day? Real Numbers, Not the 8-Glass Myth
A baseline from your body weight, two flat top-ups for activity and heat — and why the eight-glass rule is one specific person's answer.
July 23, 2026 · 13 min read
How to Calculate Body Fat Percentage: Tape-Measure Math That Works
Three tape measurements, one logarithmic formula, a neutral reference band — and why the free method holds up against a lab scan.
July 23, 2026 · 12 min read