Sleep Calculator
Two calculators on one page. The first finds bedtimes that land your alarm between sleep cycles rather than in the middle of one. The second is plain arithmetic: pick a time and a length, and it tells you the other end.
Sleep cycle calculator
Work out when to go to bed, or when to get up, so that you wake between cycles.
Sleep length calculator
Straight arithmetic, with no allowance for how long you take to drop off — deduct that yourself.
| You should go to bed at | — |
| Sleep length | — |
| Counted from | — |
| Age group | Recommended per day |
|---|---|
| 0–3 months | 14–17 hours |
| 4–12 months | 12–16 hours, naps included |
| 1–2 years | 11–14 hours, naps included |
| 3–5 years | 10–13 hours, naps included |
| 6–12 years | 9–12 hours |
| 13–18 years | 8–10 hours |
| 18–60 years | 7 hours or more |
| 61–64 years | 7–9 hours |
| 65 and older | 7–8 hours |
CDC guidance. These are ranges for a population, not a target to hit exactly.
Why waking mid-cycle feels worse
Sleep is not one uniform state. Across a night you move repeatedly through light sleep, deep slow-wave sleep, and REM, and the depth you happen to be in when the alarm goes off makes a real difference to how the next twenty minutes feel.
Being pulled out of deep slow-wave sleep produces sleep inertia — the heavy, disoriented, slightly resentful state that a shower does not immediately fix. It can linger for anything from a few minutes to half an hour. Waking from light sleep, at the end of a cycle, is a much gentler transition, which is why eight hours can sometimes leave you worse off than seven and a half.
That is the whole idea behind this page. It does not change how much sleep you get; it tries to place the alarm at a boundary rather than in the middle of the deepest part.
The arithmetic behind the times
There is no biology inside the calculator. It is subtraction, and knowing exactly what it subtracts makes the output easier to judge.
bedtime = wake time − (cycles × cycle length) − time to fall asleep
Working forward from a bedtime
wake time = bedtime + time to fall asleep + (cycles × cycle length)
Worked through — waking at 7:00 AM, 5 cycles
5 × 90 = 450 minutes, plus 15 to fall asleep = 465
7:00 AM − 7h 45m = 11:15 PM
The second calculator on this page does something plainer still: it adds or subtracts a length you choose, with no allowance for dropping off. If you ask it for eight hours from a 7:00 AM alarm it says 11:00 PM, and you are on your own for the time spent lying there.
Both work in clock time, so a bedtime can land on the previous day and a wake time on the next. That is why the list of alternatives runs across midnight without comment.
Ninety minutes is an average, not your number
The ninety-minute figure is the single biggest assumption on the page, and it is a population average rather than a personal constant.
Real cycles run roughly 70 to 120 minutes depending on the person, and they are not even consistent within one night for the same person. Early cycles carry more deep sleep and tend to be shorter; later ones carry more REM and stretch out. So a calculation that treats all five as identical ninety-minute blocks is already approximating by the third one.
The practical consequence is that the later suggestions are shakier than the earlier ones. An error of ten minutes per cycle is ten minutes out at one cycle and fifty at five. If you consistently wake groggy at the suggested times, the setting to change is the cycle length — try 80 or 100 minutes and see whether it fits you better. That box exists precisely because ninety will not be right for everyone.
The fifteen minutes people forget
The other adjustment is how long you take to fall asleep, which the calculator defaults to fifteen minutes. Getting into bed is not the same as being asleep, and the gap is the most commonly ignored part of any sleep sum.
Fifteen minutes is about typical for a healthy adult. Falling asleep in under five consistently is often a sign of not getting enough sleep rather than of being a good sleeper. Regularly taking more than half an hour is worth paying attention to, and if it happens most nights it is one of the markers of insomnia rather than a quirk to design around.
If you know your own figure, change it. Someone who lies awake for forty minutes and enters fifteen will be handed a bedtime that is twenty-five minutes too late every single night, which quietly defeats the point of the exercise.
Counting cycles, not hours
The page suggests five or six cycles as the target because that is where most adults land: five ninety-minute cycles is seven and a half hours, six is nine.
Thinking in cycles rather than hours is useful when you cannot get a full night. Given the choice between six hours and six and a half, the shorter one ends on a cycle boundary and often feels better, even though it is less sleep. The same logic makes a twenty-minute nap kinder than a fifty-minute one — twenty keeps you in light sleep, while fifty drops you into deep sleep and wakes you out of it.
What it does not do is make short sleep sufficient. Four well-placed cycles is six hours, which is below what almost every adult needs, and arriving at it neatly does not repay the deficit. Cycle timing is about smoothing the edges of a good night's sleep, not about needing less of it.
Timing beats maths
If the calculator only prompts one change, make it this one: go to bed and get up at roughly the same times every day, weekends included.
Your circadian clock runs on regularity, and a consistent schedule does more for how you feel than optimising any single night's boundary. Shifting your wake time by two or three hours at the weekend produces something close to the effect of flying across time zones and back — the body clock is still on the old schedule when Monday arrives.
The other levers are unglamorous and better established than cycle arithmetic: bright light in the morning and dim light in the evening, no caffeine within about eight hours of bed, a cool and dark room, and enough of a wind-down that you are not going from a screen to a pillow in thirty seconds. A perfectly timed bedtime does nothing if you spend the first hour of it awake.
What this cannot fix
The calculator assumes you fall asleep at roughly the time you plan to, stay asleep, and move through cycles normally. Where any of that is untrue, the arithmetic stops describing your night.
Insomnia, sleep apnoea, restless legs and shift work all break the assumption in different ways, and none is helped by moving a bedtime by fifteen minutes. Persistent trouble falling asleep or staying asleep, loud snoring with pauses in breathing, or daytime sleepiness heavy enough to affect driving or work are all reasons to see a doctor rather than to adjust a setting.
It also cannot tell you anything about the quality of what you got. Waking at a boundary after a night of fragmented sleep still leaves you tired, because the problem was never the timing of the alarm.
Frequently asked questions
What time should I go to bed to wake up at 7 AM?
Working back from 7:00 AM with ninety-minute cycles and fifteen minutes to fall asleep, five cycles puts bedtime at 11:15 PM and six cycles at 9:45 PM. Those are the two most people aim for; the calculator also lists the shorter and longer options if the night is not going to be a full one.
How long is a sleep cycle?
About ninety minutes on average, but genuinely variable — roughly 70 to 120 minutes between people, and not constant within one night for the same person. Earlier cycles tend to be shorter with more deep sleep, later ones longer with more REM. If ninety minutes does not seem to fit you, change it in the settings.
Is it better to sleep 6 hours or 7.5 hours?
Seven and a half, in almost every case. Six hours is four cycles and lands on a boundary, which is why it can feel better than six and a half, but it is still below what most adults need. Cycle timing smooths the edges of enough sleep; it does not turn too little into enough.
Why do I feel worse after a long sleep?
Usually because the alarm caught you in deep sleep rather than at the end of a cycle. That produces sleep inertia, which can last from a few minutes to half an hour and is unrelated to how much sleep you actually got. It is why eight hours can leave you groggier than seven and a half.
Should I count the time it takes to fall asleep?
Yes, and the first calculator does it for you — fifteen minutes by default, adjustable in the settings. The second calculator does not, deliberately: it adds or subtracts exactly the length you give it, so you need to allow for dropping off yourself.
How many sleep cycles do I need?
Five or six for most adults, which at ninety minutes each is seven and a half to nine hours. Four is six hours and workable occasionally but short as a habit. What matters more than hitting a particular count is doing it at consistent times.
Does this work for naps?
The same principle applies but the numbers do not. A nap of about twenty minutes keeps you in light sleep and is easy to wake from; forty-five minutes to an hour drops you into deep sleep and tends to leave you groggier than before. If you want a full cycle, ninety minutes is the next sensible stop.
This calculator is arithmetic based on an average sleep cycle length, not a measurement of your sleep, and it is not medical advice. Real cycle lengths vary between people and across a single night, so treat the times as a starting point to adjust rather than a schedule to follow exactly. If you regularly struggle to fall asleep or stay asleep, snore loudly or stop breathing during sleep, or feel sleepy enough during the day that it affects driving, work or study, please speak to a doctor — those are matters for assessment rather than for a better-timed alarm. Learn more about how we build our calculators and read our privacy policy.