Sleep Calculator
Free sleep calculator. Work out when to go to bed (or set the alarm) so you wake at the end of a 90-minute sleep cycle, not the middle.
Sleep Calculator
Background.
A sleep calculator works the math backwards from the moment you actually care about — the moment the alarm goes off, or the moment your head hits the pillow — and tells you the other end of the night so you wake up at the end of a sleep cycle instead of in the middle of one. The arithmetic itself is small. Healthy adult sleep is organised into roughly 90-minute cycles, the average person takes about 14 minutes to fall asleep after lying down, and the goal is to land your wake-up time at a cycle boundary rather than 35 minutes into a deep slow-wave stage where your brain is least ready to be ripped out of it. That is the entire premise of every bedtime calculator on the internet, and it is grounded in real sleep science from the NIH National Heart, Lung, and Blood Institute, the American Academy of Sleep Medicine, and the foundational Carskadon and Dement chapter in Principles and Practice of Sleep Medicine that every sleep clinician learns from in training.
Here is what is happening inside your skull during those 90-minute blocks. A single cycle moves through four distinct stages. Stage N1 is the light, drifting-off phase — two to five minutes long, easy to be jolted out of, and the stage where you sometimes feel a falling sensation (the hypnic jerk). Stage N2 is slightly deeper light sleep, characterised by sleep spindles and K-complexes on an EEG, and it gradually expands across the night until it accounts for roughly half your total sleep time. Stage N3 is slow-wave sleep, sometimes called deep sleep or delta sleep — this is where growth hormone is released, glymphatic clearance of metabolic waste from the brain peaks, and memory consolidation does its heavy lifting. N3 is also the stage you absolutely do not want an alarm clock to interrupt, because it produces the most severe sleep inertia — the groggy, cognitively impaired state that can take 30 to 60 minutes to fully wear off. The final stage is REM (rapid eye movement) sleep, where vivid dreaming happens, your skeletal muscles are paralysed to stop you acting dreams out, and emotional and procedural memory get consolidated. REM episodes start short (10 minutes or so) early in the night and lengthen with each successive cycle, so the last cycle before your natural wake time is the most REM-dominant. Cutting sleep short by even one cycle disproportionately removes REM, not deep sleep — which is why short nights leave you emotionally flat the next day even if you slept 'enough' on paper.
This calculator implements the two operations every bedtime tool needs to handle. In wakeBy mode, you tell it your target wake-up time and it works backwards: subtract 14 minutes for sleep onset, then subtract 5, 6, or 7 multiples of 90 minutes (7.5, 9, or 10.5 hours), giving you three candidate bedtimes. In sleepingAt mode, you tell it the time you intend to climb into bed, it adds 14 minutes for the time you will actually take to fall asleep, then adds 5, 6, or 7 cycles forward to produce three candidate alarm times. The six-cycle row is highlighted as primary because nine hours of sleep, including latency, lands an adult cleanly inside the CDC's recommendation of at least seven hours per night for ages 18–60, with comfortable margin. Five cycles (7.5 hours) is the practical minimum for most adults — defensible but not generous. Seven cycles (10.5 hours) is the right answer for teenagers (AASM recommends 8–10 hours nightly for ages 13–18), athletes in heavy training blocks, anyone fighting an infection, or anyone who has been accumulating chronic sleep debt and needs a recovery night.
Why does waking mid-cycle feel so terrible? The phenomenon has a name in the sleep medicine literature: sleep inertia. A 2007 review by Tassi and Muzet in Sleep Medicine Reviews documents reaction-time deficits of 30 to 50 percent in the first few minutes after waking from N3, with full cognitive recovery taking anywhere from 15 minutes to two hours depending on how deep you were and how sleep-deprived you were going in. Researchers studying shift workers, military pilots, and on-call surgeons have shown that being woken from slow-wave sleep is, in measurable terms, similar to being legally drunk — error rates on simple cognitive tasks have been reported as comparable to a blood alcohol level around 0.08 percent in some studies. Waking from light sleep (N1 or N2) or directly from REM produces dramatically less inertia. A cycle-aligned alarm aims at exactly that — catching you at the tail end of REM, when the brain is already partially awake, the body is already shifting into morning physiology, and the prefrontal cortex is back online.
A few important caveats this calculator handles honestly and many do not. First, 90 minutes is an average. Real sleep cycles in real adults range from about 70 to 120 minutes, drift longer as the night progresses, and shorten under stress or alcohol. A 90-minute calculator is a useful approximation, not a clinical prescription. Second, the 14-minute sleep onset latency is the population mean for healthy adults per the Multiple Sleep Latency Test norms. Falling asleep in under 5 minutes consistently is a marker of sleep deprivation; taking more than 30 minutes to fall asleep most nights is one of the diagnostic criteria for insomnia. If your real latency is wildly different from 14 minutes, the answer is not to game this calculator — it is to talk to a sleep specialist. Third, none of this matters as much as total sleep duration. Six full cycles at the wrong bedtime still beats five cycles at the right one. The cycle-alignment trick is a small optimisation on top of getting enough sleep, not a substitute for it. The CDC's adult guidance — seven or more hours per night, every night — is the bedrock recommendation, and any sleep calculator that suggests you can routinely get away with five hours by being clever about timing is selling you something that the published evidence does not support.
Age changes the picture too. The American Academy of Sleep Medicine, the National Sleep Foundation, and the CDC publish broadly consistent age-specific sleep duration recommendations: newborns 14–17 hours, infants 12–16 hours, toddlers 11–14 hours, preschoolers 10–13 hours, school-age children 9–12 hours, teenagers 8–10 hours, adults 18–60 at least 7 hours, adults 61–64 a 7–9 hour band, and adults 65+ a 7–8 hour band. Older adults also see real architectural shifts in their sleep: less slow-wave sleep, more nighttime awakenings, and an earlier circadian phase that pushes natural bedtime and wake time earlier. None of those changes invalidate cycle-aligned waking — older adults still cycle, the cycles just look slightly different on an EEG and the sleep inertia after a bad alarm is, if anything, more punishing. Use the same calculator the same way; the math does not need to change.
Finally, this is a tool, not a sleep doctor. Persistent difficulty falling asleep, frequent middle-of-the-night awakenings, snoring loudly enough to wake a partner, gasping awake, daytime sleepiness severe enough to impair driving or work, and morning headaches are not problems a 90-minute calculator solves. They are reasons to talk to a primary care physician about a referral for polysomnography, and possibly an evaluation for obstructive sleep apnea, restless legs syndrome, circadian rhythm disorders, or insomnia. Use the calculator below to nudge your alarm to a smarter minute. Use a doctor for the rest. The result tiles below are minutes from midnight (0–1439) and the interface formats them as friendly HH:MM strings; if you ever need the raw integer, it is right there in the output for download or API consumption.
What is sleep calculator?
A sleep calculator is a small two-way time machine. Give it the time you must be awake by and it tells you when to be in bed — accounting for the average 14 minutes it takes a healthy adult to actually fall asleep. Give it the time you plan to be in bed and it tells you the best times to set the alarm for. Both directions are built on the same underlying fact from sleep medicine: human sleep moves in roughly 90-minute cycles through four stages (N1 light, N2 light, N3 deep slow-wave, then REM), and being woken at the boundary between cycles — particularly at the end of a REM episode — produces dramatically less sleep inertia than being woken in the middle of slow-wave sleep. The calculator does not change how long you sleep; it shifts your alarm to a minute that is kinder to your brain. The math is a straight line: pick 5, 6, or 7 cycles (which equals 7.5, 9, or 10.5 hours of actual sleep), then add or subtract that interval plus the 14-minute onset latency from your anchor time. Six cycles is the canonical recommendation for adults because nine hours including latency lands comfortably inside the CDC's seven-or-more-hours-per-night guidance. Five cycles is the defensible minimum for a working adult; seven cycles is appropriate for teenagers, athletes in heavy training, and anyone in genuine sleep debt. None of the numbers below are a substitute for actually getting enough total sleep — they are a small optimisation layered on top of that bigger commitment.
How to use this calculator.
- Choose whether you have a fixed wake-up time (pick 'Wake up by a specific time') or a fixed bedtime (pick 'Go to bed at a specific time'). Most people start with the wake-up time their job or school dictates.
- Enter your anchor time in 24-hour HH:MM format. 7:00am is 07:00, 6:30am is 06:30, 11:30pm is 23:30, midnight is 00:00. Two digits each side, separated by a colon.
- Read the six output rows. In wakeBy mode they are three candidate bedtimes; in sleepingAt mode they are three candidate alarm times. The 6-cycle row is highlighted as the canonical recommendation.
- Pick the cycle count that matches your situation. Five cycles for a short night, six cycles for a normal night (most adults), seven cycles for a recovery night, a teenager, or a heavy training block.
- Set your alarm — or your bedtime — to that minute. Do not snooze; snoozing drops you into a fresh cycle and you will wake mid-stage when the snooze alarm fires.
The formula.
Two cases, same machinery. Let T be the anchor time expressed in minutes from midnight (0–1439). Let C = 90 minutes per cycle and L = 14 minutes for sleep onset latency.
wakeBy mode (you set a wake time, calculator gives a bedtime): bedtime_n = (T − n × C − L) mod 1440, for n in {5, 6, 7}.
sleepingAt mode (you set a bedtime, calculator gives a wake time): wake_n = (T + L + n × C) mod 1440, for n in {5, 6, 7}.
The modulo 1440 wrap handles the case where the math crosses midnight in either direction — a wake time of 06:00 with seven cycles gives a bedtime in the previous evening (negative minutes before wrap), and a bedtime of 23:30 with five cycles gives a wake time in the next morning (overflow past 1440 before wrap). Outputs are reported as minutes from midnight so the renderer can format them as HH:MM, and the raw integer is available for embedding or API use. The 90-minute cycle constant comes from the canonical sleep architecture described by Carskadon and Dement in Principles and Practice of Sleep Medicine; the 14-minute latency is the mean Multiple Sleep Latency Test value for healthy adults. Both are averages — real cycle lengths range 70–120 minutes and real latencies vary widely between individuals — so the calculator is an approximation tool, not a clinical prescription.
A worked example.
You need to be awake by 07:00 for a meeting. Set mode to 'Wake up by a specific time' and time to 07:00. The calculator works backwards: subtract 14 minutes of sleep onset latency, then subtract 6 × 90 = 540 minutes (nine hours). 07:00 is 420 minutes from midnight. 420 − 540 − 14 = −134, which mod 1440 wraps to 1306 — that is 21:46, or 9:46pm. So the 6-cycle bedtime is 9:46pm. The 5-cycle row gives 11:16pm (a shorter, 7h 30m night) and the 7-cycle row gives 8:16pm (a longer, 10h 30m recovery night). Pick the row that matches what kind of night you need: the 6-cycle 9:46pm is the default recommendation for an adult who wants to wake refreshed without sacrificing the evening, the 5-cycle 11:16pm is fine if you genuinely cannot get to bed earlier, and the 7-cycle 8:16pm is the right answer if you have been running a sleep debt all week or are training for an athletic event.
Frequently asked questions.
Why are sleep cycles 90 minutes long?
Why does this calculator add 14 minutes?
What is sleep inertia and why does it matter?
How much sleep should an adult actually get?
Should I use the 5-cycle, 6-cycle, or 7-cycle option?
What is the difference between REM and NREM sleep?
Does the snooze button reset my sleep cycle?
Why does my partner wake refreshed at 6 hours when I need 8?
Can a sleep calculator fix insomnia?
Does the time output really show minutes from midnight?
References& sources.
- [1]National Heart, Lung, and Blood Institute (NIH). What Are Sleep Deprivation and Deficiency? Stages of Sleep section — describes the four sleep stages (N1, N2, N3, REM) and their architecture across the night.
- [2]Carskadon MA, Dement WC. Normal Human Sleep: An Overview. In: Kryger MH, Roth T, Dement WC, eds. Principles and Practice of Sleep Medicine, 5th ed. Philadelphia: Elsevier Saunders, 2011: 16–26. Canonical chapter establishing the 90-minute NREM-REM cycle and Multiple Sleep Latency Test norms.
- [3]Centers for Disease Control and Prevention. How Much Sleep Do I Need? Age-specific sleep duration recommendations: ≥7 hours for adults 18–60, 7–9 hours for 61–64, 7–8 hours for 65+; 8–10 hours for teens; 9–12 hours for school-age children.
- [4]American Academy of Sleep Medicine and Sleep Research Society. Recommended Amount of Sleep for a Healthy Adult: A Joint Consensus Statement. Watson NF et al., Sleep, 2015; 38(6): 843–844. Establishes the ≥7 hours/night consensus for adults aged 18–60.
- [5]Tassi P, Muzet A. Sleep inertia. Sleep Medicine Reviews, 2000; 4(4): 341–353. Peer-reviewed review documenting reaction-time deficits of 30–50% immediately after waking from slow-wave sleep, with cognitive impairment lasting up to two hours in severe cases.
- [6]Hirshkowitz M, Whiton K, Albert SM, et al. National Sleep Foundation's sleep time duration recommendations: methodology and results summary. Sleep Health, 2015; 1(1): 40–43. Expert-panel consensus on sleep duration by age cohort.
- [7]Walker MP. Why We Sleep: Unlocking the Power of Sleep and Dreams. New York: Scribner, 2017. Accessible synthesis of sleep neuroscience, including REM-NREM cycle architecture and consequences of chronic short sleep — drawn from Walker's UC Berkeley lab.
- [8]Paruthi S, Brooks LJ, D'Ambrosio C, et al. Recommended Amount of Sleep for Pediatric Populations: A Consensus Statement of the American Academy of Sleep Medicine. Journal of Clinical Sleep Medicine, 2016; 12(6): 785–786. Source for the 8–10 hour recommendation for teenagers and 9–12 hours for school-age children.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled