Audited 26 May 2026·Last updated 27 Jul 2026·8 citations·Tier 1·0 uses

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

I want to…
Enter your target time in 24-hour format. 7am = 07:00, 11:30pm = 23:30. The calculator adds a 14-minute average sleep onset latency on top.
6-cycle time (9h sleep)
21:46
In wake-up mode this is the suggested bedtime; in bedtime mode it is the suggested alarm time for six complete cycles.
5-cycle time (7h 30m sleep)
23:16
7-cycle time (10h 30m sleep)
20:16

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

t′ = (T ± (L + n×C)) mod 1440

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.

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.

modewakeBy
time07:00

Frequently asked questions.

Why are sleep cycles 90 minutes long?
Ninety minutes is the average duration of a complete NREM-REM cycle in healthy adults, measured by polysomnography in thousands of sleep-lab studies and codified in the Carskadon and Dement chapter that opens Principles and Practice of Sleep Medicine. The real range is roughly 70 to 120 minutes per cycle, cycles drift longer as the night progresses, and the proportion of REM inside each cycle grows from a few minutes early in the night to 30+ minutes in the final cycle before natural waking. Using 90 minutes as a planning constant is a useful approximation — it lines up with the most common cycle length and produces alarm times that are usually within 10 minutes of a real cycle boundary.
Why does this calculator add 14 minutes?
That is the sleep onset latency — the time between lying down with the lights off and actually falling asleep. The 14-minute figure is the population mean for healthy adults from the Multiple Sleep Latency Test, summarised in Carskadon and Dement (2011). The calculator adds it on top of the cycle math because if you set an alarm for 07:00 and want six full cycles, you need to be unconscious by 22:00, which means lying down by about 21:46. If you ignore latency you will systematically come up 14 minutes short of the cycles you planned for. People with chronic insomnia have much longer latencies; people who are profoundly sleep-deprived have latencies of two or three minutes. If yours is wildly different, the calculator's bedtime is still approximately right but you should investigate why.
What is sleep inertia and why does it matter?
Sleep inertia is the groggy, cognitively impaired state immediately after waking — slow reaction times, poor decision-making, foggy memory, sometimes mild dizziness. A 2007 review in Sleep Medicine Reviews by Tassi and Muzet documents reaction-time deficits of 30–50% in the first few minutes after waking from slow-wave sleep, with cases where cognitive impairment took 15 minutes to two hours to fully clear. The severity depends on which stage you were in when the alarm fired (worst from N3 deep sleep, mildest from light N1 or REM) and how sleep-deprived you were going in. Waking at the end of a cycle, near a REM episode, dramatically reduces inertia compared with waking mid-deep-sleep. That is the entire point of cycle-aligned alarm timing.
How much sleep should an adult actually get?
The CDC, the American Academy of Sleep Medicine, and the National Sleep Foundation all recommend at least seven hours per night for healthy adults aged 18–60, and 7–9 hours for adults 61–64, with 7–8 hours for adults 65+. Teenagers (13–18) need 8–10 hours. School-age children (6–12) need 9–12 hours. The seven-hour floor is not a soft suggestion — large epidemiological studies link chronic sleep below seven hours to increased risk of cardiovascular disease, type 2 diabetes, obesity, depression, and all-cause mortality. The cycle-alignment trick this calculator implements is a small optimisation on top of hitting that seven-hour floor; it is not a substitute for it. A perfectly cycle-aligned five-hour night is still a five-hour night.
Should I use the 5-cycle, 6-cycle, or 7-cycle option?
Default to 6 cycles. Nine hours including the 14-minute latency lands you at about 8h 46m of actual sleep, which is comfortably above the CDC's seven-hour adult floor and gives you enough REM in the back half of the night for emotional regulation and memory consolidation. Use 5 cycles (7h 30m) only when you genuinely cannot get to bed earlier — it is a defensible minimum for working adults but not generous. Use 7 cycles (10h 30m) when you are a teenager (AASM recommends 8–10 hours for ages 13–18), an athlete in a heavy training block, recovering from illness, or paying back accumulated sleep debt. Three or four cycles is below the population minimum for any age group and is not offered as a healthy option.
What is the difference between REM and NREM sleep?
NREM (non-REM) sleep has three stages — N1 light, N2 light, N3 deep slow-wave — and dominates the first half of the night. N3 is where the body does its heaviest physical restoration: growth hormone secretion peaks, the glymphatic system flushes metabolic waste from the brain, and immune function is consolidated. REM (rapid eye movement) sleep is the dreaming stage — your eyes flick around under closed lids, your brain is nearly as active as when awake, and your skeletal muscles are paralysed to stop you acting dreams out. REM dominates the second half of the night, with each successive cycle's REM episode getting longer. Both are essential. Cutting sleep short disproportionately removes REM (because it lives in the back half of the night), which is why short nights leave you emotionally flat and unable to consolidate yesterday's learning.
Does the snooze button reset my sleep cycle?
Yes, and unhelpfully so. When you snooze, your brain begins descending into a new sleep cycle — N1 in the first few minutes, then N2. The snooze alarm typically fires nine minutes later, ripping you out of stage N1 or early N2 right when you were about to enter the protective light-sleep plateau. You feel worse, not better, after a snooze. Sleep-medicine guidance is consistent and unanimous: set the alarm for the latest minute you can actually leave bed, and get up on the first ring. Cycle-aligned alarms work for exactly this reason — the goal is to wake near the end of REM, where you are already drifting upward toward consciousness, so the alarm is a nudge rather than a yank.
Why does my partner wake refreshed at 6 hours when I need 8?
Individual sleep need is partially heritable and varies measurably between adults. Most adults need 7–9 hours, but a small population — under 3% by most estimates, including carriers of the DEC2 gene variant studied at UCSF — appears to function well on six hours or less long-term without measurable cognitive cost. Far more common is the person who feels fine on six hours but has measurably impaired reaction times and emotional regulation that they have just normalised. Self-reported sleep adequacy correlates poorly with objective performance. If you suspect you are a genuine short sleeper, the test is whether you wake spontaneously without an alarm on weekends and feel fully alert by mid-morning without caffeine. If you do not, you probably need more sleep than you are getting, regardless of what your partner manages.
Can a sleep calculator fix insomnia?
No. A sleep calculator schedules a smarter alarm time; it does not address the underlying problem of being unable to fall asleep or stay asleep. The American Academy of Sleep Medicine's clinical guidance for chronic insomnia is cognitive behavioural therapy for insomnia (CBT-I), which is more effective than sleep medication in long-term trials. If you take more than 30 minutes to fall asleep most nights, wake repeatedly in the middle of the night, or wake hours earlier than intended and cannot return to sleep, and this has been going on for at least three months, you meet the diagnostic threshold for chronic insomnia and should talk to a primary care physician or sleep specialist. Loud snoring, gasping awake, or excessive daytime sleepiness despite adequate time in bed are reasons to be evaluated for obstructive sleep apnea via polysomnography. The calculator is for healthy sleepers tuning their timing — not for clinical problems.
Does the time output really show minutes from midnight?
Yes — under the hood, the formula returns each result as an integer in the range 0–1439 representing minutes from midnight (so 07:00 is 420, 23:30 is 1410, and 00:15 is 15). The user-facing interface formats those numbers as HH:MM strings for display. We expose the raw integer through the API so that downstream tools, embedded widgets, and AI assistants can do further math on the result without re-parsing a string. If you are using the calculator embedded inside another app, you can take bedtime6cycles directly as an integer and pass it to whatever scheduling system you have. The modulo-1440 wrap means the result is always a valid time-of-day, even when the math crosses midnight backwards or forwards.

References& sources.

  1. [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. [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. [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. [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. [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. [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. [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. [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
Coming soon