Sleep Calculator
Sleep runs in cycles of roughly ninety minutes, and waking up mid-cycle is what leaves you groggy even after "enough" hours. This calculator plans around whole cycles: give it your wake time and it counts back to bedtimes that end on a cycle boundary — or give it your bedtime and it counts forward to the matching wake times.
Please read this first: these are clock-time suggestions from average sleep patterns, not medical advice. Cycle length and the time it takes you to fall asleep vary person to person — both are adjustable above, because a fixed 90/15 for everyone would be false precision. If you snore heavily, gasp, or feel unrefreshed despite full nights, talk to a health professional rather than a calculator.
24-hour HH:MM or with AM/PM
Average is 90 — adjust if you know yours
Average is 15 — adjust if you know yours
| Sleep | Be in bed by | Cycles |
|---|---|---|
| 9 h | 9:45 PM (21:45) | 6 |
| 7 h 30 min | 11:15 PM (23:15) | 5 |
| 6 h | 12:45 AM (00:45) | 4 |
| 4 h 30 min | 2:15 AM (02:15) | 3 |
How it is worked out
- To wake at 7:00 AM, count back 15 minutes to fall asleep, then whole 90-minute cycles.
- Six cycles is the full night; fewer cycles suit naps and short nights — waking at the end of a cycle is the whole point, so pick the row that fits your evening.
- These are clock-time suggestions from average sleep architecture, not a medical assessment — see the note below.
Embed this calculator on your website →
Please note: For information only — not medical advice. Talk to a qualified health professional about your own situation. Terms of Service
The formula
bedtime = wake time − (cycles × 90 min + 15 min to fall asleep)
wake time = bedtime + 15 min + (cycles × 90 min)
- the two assumptions — a 90-minute sleep cycle and 15 minutes to fall asleep. Both are printed as inputs, not hidden constants, so you can set them to what you actually observe.
- four rows, not one answer — 6, 5, 4, and 3 cycles, because the right row depends on your evening: a full night, a short night, or a nap.
- clock arithmetic — times wrap past midnight normally; a 00:45 bedtime for a 07:00 wake simply means tonight, not tomorrow.
Worked example: wake at 7:00 AM → 6 cycles (9 h) + 15 min = 9 h 15 min back → bed by 9:45 PM; 5 cycles → 11:15 PM — the default above.
How it works
Why the cycle boundary matters. Each cycle moves through light sleep, deep sleep, and REM; waking from light sleep at a boundary feels natural, while an alarm in deep sleep produces sleep inertia — the heavy grogginess that coffee barely dents. The calculator's whole job is landing the alarm on a boundary.
Falling asleep is part of the math. "In bed at 11" is not "asleep at 11" — the 15-minute allowance covers the gap. If you routinely lie awake longer, raise it; the rows shift later by exactly what you add, which is the honest behavior.
When fewer cycles is the right row. A 3- or 4-cycle night is not "catching up" — it is simply a short night planned so the alarm still lands on a boundary. Naps work the same way: one or two cycles beats an in-between length.
Examples
- Wake 7:00 AM → bed by 9:45 PM (6 cycles), 11:15 PM (5), or 12:45 AM (4).
- Bed at 11:00 PM → wake at 8:15 AM (6 cycles), 6:45 AM (5), or 5:15 AM (4).
- Your cycles run long → set 100-minute cycles and 20 minutes to fall asleep; a 6:30 AM wake then means 8:10 PM in bed.
Frequently asked questions
Is the 90-minute cycle true for everyone?
No — it is the population average, and individuals range roughly 80–120 minutes. That is exactly why the cycle length is an input here rather than a hidden constant: if you track your own sleep and find your cycles run long or short, set it once and the rows follow.
I slept 8 hours but still feel groggy — why?
Probably the alarm landed mid-cycle, in deep sleep. Eight hours is 5.3 ninety-minute cycles — the extra third of a cycle is the problem the calculator exists to avoid. Try the row nearest your usual wake time and see if the grogginess lifts.
Does this work for naps?
Yes — the 3-cycle (and shorter) rows are the nap rows. One full cycle (~90 minutes plus falling asleep) is the classic restorative nap; much shorter or much longer than a whole number of cycles tends to end in grogginess.
Can this diagnose a sleep problem?
No. It is arithmetic on averages, not a medical assessment. Loud snoring, gasping, insomnia, or feeling unrefreshed after full nights are reasons to see a health professional, not to adjust the inputs here.
Related calculators
BMI Calculator
LiveCalculate body mass index in metric or imperial units and see the WHO category bands and the healthy weight range for your height.
Calorie Calculator
LiveEstimate daily calorie needs with the Mifflin-St Jeor equation: BMR plus five activity levels from sedentary to athlete.
Time Duration Calculator
LiveMeasure the duration between two times or dates in hours, minutes, seconds, and days.

