Sleep Calculator
Sleep runs in cycles of about 90 minutes, and you feel most alert when your alarm lands at the end of one. To wake up refreshed at 7:00 AM, get in bed at 9:45 PM, 11:15 PM, or 12:45 AM — allowing about 15 minutes to fall asleep, that gives you 6, 5, or 4 complete cycles. This calculator works both directions on one page: enter a wake-up time to get the best bedtimes, or enter a bedtime to get the best wake-up times.
How the sleep calculator works
Sleep is not one long, uniform state. Over a night you move through four to six cycles of roughly 90 minutes each, and every cycle loops from light sleep into deep sleep and finally into REM, the dreaming stage.
The boundary between cycles is a natural light-sleep window. Wake there and sleep inertia — that heavy, groggy feeling — is at its minimum. Get yanked out of deep sleep mid-cycle and the grogginess can drag on.
The math comes down to two rules:
- Counting back from a wake-up time: wake time − 15 minutes (the average time it takes to fall asleep) − N × 90 minutes, where N is 1–6 cycles.
- Counting forward from a bedtime: bedtime + 15 minutes + N × 90 minutes.
Worked example for a 7:00 AM alarm: 7:00 AM − 15 minutes − 6 × 90 minutes = 9:45 PM (6 cycles, 9 hours of sleep — ideal). Subtracting 5 cycles gives 11:15 PM (7.5 hours — ideal); 4 cycles gives 12:45 AM (6 hours — the emergency floor).
The 15-minute figure is a population average. If you usually lie awake for half an hour before drifting off, move every suggested bedtime earlier by the difference.
What time should I wake up?
The best time to wake up is at the end of a complete 90-minute sleep cycle, counted from when you actually fall asleep — not from when you get into bed. Since most wake-up times are locked in by work or the morning commute, the common way to use this page runs the other way: fix the alarm, then find the bedtime that puts a cycle boundary on it.
When you can wake naturally — a weekend morning, say — flip the direction. In bed at 11:30 PM and asleep by about 11:45 PM, waking at 7:15 AM lands at the end of five complete cycles. That will feel noticeably lighter than 8:00 AM, which pulls you out of the middle of cycle six, even though 8:00 AM means more total sleep.
Total sleep time still matters. Cycle alignment optimizes how you feel at the moment of waking; it cannot replace enough hours. The CDC and the National Sleep Foundation recommend 7–9 hours per night for adults aged 18–64, 7–8 hours for adults 65 and older, and 8–10 hours for teenagers. Run four cycles — 6 hours — night after night, and the sleep debt piles up no matter how cleanly you wake.
Why you still wake up tired: four common reasons
The most common reason is an alarm that lands mid-cycle and drags you out of deep sleep. Three other fixable factors — miscounted fall-asleep time, normal variation in cycle length, and accumulated sleep debt — explain most of the remaining groggy mornings.
- Your alarm is set for mid-cycle. Eight hours that ends in deep sleep feels worse than 7.5 hours that ends at a boundary. This is the exact problem the calculator is built to solve.
- You counted from lights-out, not from sleep onset. The math runs on when you actually fall asleep. If you drift off slowly, pad the 15-minute buffer.
- Your cycles aren't exactly 90 minutes. Individual cycles run anywhere from 80 to 120 minutes, and the night isn't uniform — deep sleep dominates the first half, REM the second. Treat the results as a ±20-minute window, not a to-the-minute promise.
- Sleep debt and a scrambled rhythm. Shift work, crossing time zones, and sleeping in more than an hour on weekends all disrupt cycle structure. When the underlying rhythm is off, any calculator's output gets less reliable.
How to use this calculator
Pick a direction, enter one time, and read off the recommended options — the results update the moment you change the input. The whole tool is two tabs and a single time field.
- Choose a mode tab: "I want to wake up at…" (the common case) or "I plan to go to bed at…".
- Enter the time in the "Wake-up time" or "Bedtime" field. The results update instantly.
- Read the cards. Each one shows a time with its cycle count and total sleep, like "6 cycles · 9h sleep." Prefer a card tagged "Recommended bedtime" or "Recommended wake time" — those are the 5- and 6-cycle options. Four cycles is the emergency floor.
- Adjust for slow sleep onset. If you usually need more than 15 minutes to drift off, get in bed 15–30 minutes before the suggested time.
- Test it for a week. Hold the wake-up time fixed, nudge the bedtime, and note which option leaves you feeling the lightest.
Frequently asked questions
Straight answers to the questions people ask most about sleep cycles, bedtimes, and wake-up times.
What time should I go to bed if I wake up at 7 AM?
Working back from a 7:00 AM alarm, allow 15 minutes to fall asleep, then count off full 90-minute cycles: get in bed at 9:45 PM for 9 hours of sleep, 11:15 PM for 7.5 hours, or 12:45 AM at the 6-hour floor. For age-based duration targets, use our bedtime calculator.
When should I wake up?
The best wake-up times land at the end of a 90-minute cycle, counted from when you actually fall asleep. Go to bed at 11:30 PM, fall asleep around 11:45 PM, and the smart alarms are 5:45 AM, 7:15 AM, or 8:45 AM — 4, 5, or 6 complete cycles. Waking at 8:00 AM, mid-cycle, usually feels groggier despite the extra sleep.
Is the 90-minute sleep cycle real?
Ninety minutes is a population average backed by published sleep research, but individual cycles actually run 80 to 120 minutes. Its value is practical: aligning your alarm with cycle boundaries means you'll probably wake inside a light-sleep window. Treat the output as a ±20-minute range and calibrate it against how you feel.
Is 6 hours of sleep OK if I wake up at the end of a cycle?
Occasionally, yes — four complete cycles (6 hours) genuinely feels better than 6.5 hours interrupted mid-cycle. But the CDC recommends 7–9 hours a night for adults, and a steady 6-hour diet builds sleep debt that cycle alignment cannot cancel out. Fine as an emergency move; a bad habit as your normal schedule.
Why am I still tired after 8 hours of sleep?
The most likely cause is waking during deep sleep because the alarm landed mid-cycle. Next come miscounted sleep latency, accumulated sleep debt, and quality problems such as snoring or sleep apnea, alcohol, or late-night screen light. Align your alarm to a cycle boundary for a week; if the fatigue persists, see a doctor.
Can night shift workers use this calculator?
The cycle math works for any schedule — counting backward doesn't care whether it's day or night. Shift work's real enemy is circadian misalignment; cycle alignment only improves the moment of waking. Use blackout shades and a fixed sleep anchor. To estimate the 2026 overtime deduction (OBBB, $12,500 cap) on night-shift pay, try our income tax calculator.
Sources: Cycle length and sleep-latency figures are standard approximations from sleep medicine (about 90 minutes and about 15 minutes); recommended sleep durations come from public guidance by the CDC and the National Sleep Foundation. Related tools: Sleep Cycle Calculator, Bedtime Calculator, and the health calculators hub.
Disclaimer: This calculator uses widely accepted approximations from sleep science and is for scheduling reference only — it is not medical advice. If you have long-term insomnia, severe daytime sleepiness, or suspect sleep apnea, talk to a doctor.