Health Calculators

Sleep Calculator

Enter when you need to wake up, how much sleep you want and how long you take to fall asleep: the calculator tells you exactly when to get into bed, and each time states the day it falls on. Time in bed and sleep are shown separately. The results are calculated clock times, not measurements of your sleep stages.

Calculator

Sleep duration

Formula Used

Bedtime = Wake time − Sleep duration − Time to fall asleep Wake time = Bedtime + Sleep duration + Time to fall asleep Sleep cycles average about 90 minutes. The cycle-based times in the result are optional detail for comparison, not the basis of the plan.

About This Calculator

What It Does

This calculator helps you find the best time to wake up or go to bed based on the science of sleep cycles. A full sleep cycle averages about 90 minutes, and waking near the end of one is generally easier than waking out of deep sleep. Waking up in the middle of a cycle causes sleep inertia — that groggy, disoriented feeling. The times it returns are calculated clock times, not measurements of your sleep stages. The calculator has two modes: waking at a fixed time (tell us when you need to get up, and we’ll show the best bedtimes) or going to bed at a fixed time (tell us when you’re going to sleep, and we’ll show optimal wake-up times). You can adjust the cycle length (default 90 min) and time to fall asleep (default 15 min) in the settings. References: National Sleep Foundation (sleepfoundation.org), CDC Sleep and Sleep Disorders (cdc.gov/sleep), NIH National Heart, Lung, and Blood Institute (nhlbi.nih.gov/sleep).

Worked Example

Example 1 — Fixed wake time: You need to wake up at 7:00 AM. With 15 minutes to fall asleep and 90-minute cycles, going to bed at 9:45 PM gives you 6 cycles (9 hours), and 11:15 PM gives you 5 cycles (7.5 hours). Waking at 7:00 AM after either of these bedtimes lands on a whole number of cycles counted back from the alarm — a calculated clock time, not a measured sleep-stage boundary. Example 2 — Fixed bedtime: You’re going to bed at 11:30 PM. With 15 minutes to fall asleep, you’ll enter your first cycle around 11:45 PM. After 5 cycles (7.5 hours of sleep), your optimal wake-up time is 7:15 AM. After 6 cycles (9 hours), it’s 8:45 AM. Example 3 — Adjusting settings: If you know you take 30 minutes to fall asleep instead of 15, adjust that in the settings. The calculator recalculates all bedtimes and wake-up times accordingly, shifting them 15 minutes earlier. Reference: Walker M. (2017). Why We Sleep. Scribner. ISBN 978-1-5011-4431-8.

Real-World Usage

This calculator is useful for anyone trying to optimize their sleep schedule. Shift workers can plan bedtimes around irregular schedules. Parents of young children can find optimal bedtimes to maximize their limited sleep window. Travelers can adjust to new time zones by planning sleep schedules that align with local time. Students can schedule study sessions around optimal wake-up times. The calculator is also useful for anyone experiencing morning grogginess — adjusting bedtime by 45 minutes moves the alarm across a cycle boundary rather than into the middle of one. Reference: American Academy of Sleep Medicine (aasm.org). Healthy Sleep Habits.

Local Context

Sleep norms vary by culture. In Spain and many Latin American countries, the siesta tradition shifts sleep schedules later, with bedtimes often after midnight and a midday rest break. In Mediterranean countries (Italy, Greece, Spain), late dinners (9–10 PM) push bedtimes later. Northern European countries (Germany, UK, Scandinavia) tend to have earlier bedtimes and earlier starts to the work day. In Japan, ‘inemuri’ (napping in public) is culturally accepted. Despite these cultural differences, a ninety-minute cycle is an average rather than a fixed interval: published cycle lengths run from about 70 to 120 minutes and differ from person to person. Use this calculator with your local schedule — the arithmetic works regardless of when you sleep. Reference: National Sleep Foundation. Sleep and Culture (sleepfoundation.org).

Recommended Sleep by Age

Sleep needs change with age. The ranges this calculator uses, from the CDC and the National Sleep Foundation: 0-3 months 14–17 hours; 4-11 months 12–16; 1-2 years 11–14; 3-5 years 10–13; 6-12 years 9–12; 13-17 years 8–10; 18-64 years 7–9; 65+ years 7–8 hours per night. Enter your age in the settings and the result carries the band that applies to you.

Getting a Better Night's Sleep

Timing is only half of it. Sleep hygiene does the rest: keep the same wake time every day, weekends included; get daylight soon after waking; keep caffeine to the morning and alcohol away from bedtime; keep the room cool, dark and quiet; and put screens away an hour before bed. If you snore heavily, gasp in your sleep or feel sleepy during the day, see a clinician rather than adjusting your alarm.

Last reviewed: November 2026.

This calculator provides estimates based on average sleep cycles. Individual patterns vary. For persistent sleep concerns, consult a healthcare provider.

Frequently Asked Questions

How long is a sleep cycle?

The average sleep cycle lasts about 90 minutes. During that time, your brain progresses through light sleep, deep sleep, and REM sleep. Most people need 5–6 complete cycles per night for optimal rest. Reference: Carskadon MA, Dement WC. Normal human sleep: an overview. Principles and Practice of Sleep Medicine, 6th ed. Elsevier, 2017.

Why do I feel groggy when my alarm goes off?

You are likely waking up in the middle of a sleep cycle. Waking near the end of a cycle is generally easier than waking out of deep sleep, but how alert you feel depends on more than the clock. The calculator lists the times that fall on whole cycles so you can pick one; it works by clock arithmetic and does not measure your sleep stages. Reference: Hilditch CJ, McHill AW. Sleep inertia: current insights. Nature and Science of Sleep, 2019.

How many sleep cycles should I aim for?

Most adults need 5–6 complete sleep cycles per night, which equals 7.5 to 9 hours of sleep. Four cycles (6 hours) is the minimum for basic functioning. Reference: Hirshkowitz M et al. National Sleep Foundation’s sleep time duration recommendations. Sleep Health, 2015.

Related Tools and Guides