How we calculate
The full formula, its limits and where each piece of data comes from.
The formula
cuánto dormir adds sleep cycles of about 90 minutes to the moment you close your eyes, plus the time it takes you to fall asleep (the latency):
wake-up time = bedtime + latency + n × 90 min
All four tabs use the same formula, read in different directions:
- Wake up at… counts backward: bedtime = wake-up time − n × 90 min − latency, with n from 6 to 1. If an option has already passed, you’ll see it dimmed with the label “Already passed.”
- Sleep now starts from your device’s current time: now + latency + n × 90 min, with n from 1 to 6.
- Sleep at… starts from the time you plan to go to bed: chosen time + latency + n × 90 min.
- Nap adds a short length: now + latency + 10, 18 or 25 minutes, or a full 90-minute cycle.
With 15 minutes of latency, if you want to wake up at 8:00 AM, your options are 10:45 PM (6 cycles), 12:15 AM (5 cycles), 1:45 AM, 3:15 AM, 4:45 AM and 6:15 AM.
Why we suggest 5 or 6 cycles
Five cycles add up to 7 h 30 min of sleep, and six to 9 hours. We mark them as “Recommended” because the American Academy of Sleep Medicine and the Sleep Research Society recommend that adults sleep 7 hours or more per night on a regular basis (Watson et al., 2015). The National Sleep Foundation suggests ranges by age: for example, 7 to 9 hours between ages 18 and 64, and 7 to 8 hours from age 65 on (Hirshkowitz et al., 2015).
Why 90 minutes, and why it’s an approximation
Over the course of the night, sleep moves through cycles that repeat. We use 90 minutes because it’s the most widely cited average, but real life is more varied: in a study of 6,064 cycles recorded in a sleep lab, the median was 96 minutes, the first cycle of the night was shorter and there was a lot of variation from person to person (Sleep Health, 2024).
That’s why the calculator is an approximate guide. If you often wake up groggy even when you time it well, you can choose a cycle from 80 to 110 minutes in “Adjust my cycle.”
Latency: the time it takes you to fall asleep
By default we add 15 minutes, and you can change it to anything from 1 to 120 minutes. In the info bubble we mention that most people take between 10 and 20 minutes to fall asleep, that less than 5 minutes may be a sign of being very tired and that regularly taking more than 30 minutes may point to trouble falling asleep [SOURCE PENDING]. The value you choose is saved only on your device and is used in all four tabs.
Naps
We suggest 10, 18 and 25 minutes, plus a full 90-minute cycle. In a study with young people who had slept little, the 10-minute nap brought the most immediate improvements; the 20- and 30-minute naps also helped, but only after a stretch of grogginess on waking (Brooks and Lack, 2006). That grogginess is called sleep inertia (Hilditch and McHill, 2019). The study didn’t test exactly 18 or 25 minutes: they’re in-between options we offer so you can choose.
How we get the time
- We use your device’s time, in your browser’s time zone. We never ask for your location.
- We calculate with real dates and milliseconds, not by adding up text. That way it works across midnight and in countries with daylight saving time: the time you sleep is the real amount, and the time you see is the one your clock will show.
- In “Wake up at…”, the wake-up time is the next time that hour comes around, starting from now.
Limits
- It’s designed for adults. In childhood, sleep cycles are shorter and sleep is structured differently (Ohayon et al., 2004 [LINK PENDING]). For children, follow their pediatrician’s guidance.
- It doesn’t know your body. Your cycle may last more or less than 90 minutes, and it can change from one night to the next.
- It doesn’t replace a health professional. If sleep is often hard for you, it’s worth talking it over with someone who can support you.
- Night work or rotating shifts: the formula works at any hour, but sleeping during the day comes with its own challenges that a calculator can’t solve.
Sources
- Watson et al. (2015). Recommended amount of sleep for a healthy adult (AASM and SRS). J Clin Sleep Med 11(6):591–592. PubMed
- Hirshkowitz et al. (2015). National Sleep Foundation’s sleep time duration recommendations. Sleep Health 1(1):40–43. PubMed
- Ultradian sleep cycles: frequency, duration, and associations with individual and environmental factors (2024). Sleep Health 10(1S):S52–S62. PubMed
- Brooks and Lack (2006). A brief afternoon nap following nocturnal sleep restriction: which nap duration is most recuperative? Sleep 29(6):831–840. PubMed
- Hilditch and McHill (2019). Sleep inertia: current insights. Nature and Science of Sleep 11:155–165. PubMed
- Ohayon et al. (2004). Meta-analysis of quantitative sleep parameters from childhood to old age in healthy individuals. Sleep 27(7):1255–1273. [LINK PENDING]