Sleep Calculator: Find Your Ideal Bedtime

🕐 8 min read 📅 Updated July 2026
Quick Answer

A sleep calculator works backward from your wake time in full 90-to-110-minute sleep cycles, since waking near the end of a cycle feels easier than waking mid-cycle. Five to six complete cycles generally lines up with the roughly 7 or more hours per night most adults need.

A sleep calculator is really just a way of applying one physiological fact to your own schedule: sleep is not a single flat block but a series of repeating 90-to-110-minute cycles, each moving through light sleep, deep sleep, and REM sleep before starting over. Timing bedtime or wake time around whole cycles, rather than an arbitrary number of hours, is the logic behind every sleep-cycle calculator, bedtime calculator, and wake-up calculator. It works alongside your body's own sleep need, which is driven by two internal systems: a homeostatic "sleep pressure" that builds the longer you are awake, and a circadian rhythm, run by the brain's master clock, that determines when you feel naturally sleepy or alert.

Bedtime by Wake-Up Time (90-Minute Sleep Cycles)
Wake-Up Time
5 Cycles (~7.5 hrs)
6 Cycles (~9 hrs)
6:00 AM
10:30 PM
9:00 PM
6:30 AM
11:00 PM
9:30 PM
7:00 AM
11:30 PM
10:00 PM
7:30 AM
12:00 AM
10:30 PM
8:00 AM
12:30 AM
11:00 PM
Bedtimes calculated using 90-minute cycles counted backward from wake time. Actual cycle length varies between about 90 and 110 minutes per person, and most people also need extra time to fall asleep, so treat this as a starting estimate rather than an exact schedule.

Sleep Estimator

A sleep estimator (sometimes called a sleep-cycle calculator) uses the same 90-to-110-minute cycle length to project either a bedtime from a fixed wake time, or a wake time from a fixed bedtime. Because each cycle moves through the same stage sequence, waking up at the boundary between cycles tends to feel less groggy than being pulled out of deep sleep partway through one. This is the core reason most sleep calculators round outputs to multiples of roughly 90 minutes rather than to a flat number of hours.

Sleep Time Calculator

A sleep time calculator applies this same cycle math in reverse: instead of picking a wake time, you start from a bedtime you already have in mind and count forward in 90-to-110-minute increments to see which wake times land at the end of a full cycle. The table above works either direction — read it right-to-left for a wake-time calculation, or left-to-right for a bedtime calculation.

Because sleep pressure and circadian timing both factor into how easily you fall asleep, a sleep estimator is only ever an approximation. Two people going to bed at the same time can fall asleep at noticeably different speeds depending on their caffeine intake, light exposure, and individual chronotype — see foods that help you sleep for how evening intake affects the wind-down window before bed.


REM Sleep Calculator

A REM sleep calculator estimates when REM sleep — the dream-rich stage marked by muscle atonia and active emotional processing — is likely to occur during the night. REM recurs in every 90-to-110-minute cycle, but it is not evenly distributed: the earliest cycles of the night are dominated by deep sleep (N3), the stage tied to tissue repair and growth hormone release, while REM periods grow progressively longer in the cycles closer to your final wake time.

That is also why a REM sleep calculator and a wake-up calculator often point to similar bedtimes: both are built on the same cycle length, and both favor waking near a cycle boundary. Lighter core sleep (the N1/N2 stages, including sleep spindles that support memory consolidation) fills the transitions between deep sleep and REM throughout the night.

Sleep Calc

"Sleep calc" searches generally point to the same REM- and cycle-based tools described above rather than a distinct method — the underlying math is identical whether the goal is estimating REM timing, a bedtime, or a wake time.


Sleep Calculator by Age

Cycle length is only half of the calculation — the number of cycles you should be aiming for depends on age. The CDC's sleep-duration guidance by age group is:

These ranges come from the CDC. A large-scale mortality analysis found a U-shaped relationship between sleep duration and overall death risk, with the lowest risk around 7–8 hours; short sleep under 7 hours carried about a 1.14-times higher hazard, and long sleep of 9 or more hours carried about a 1.34-times higher hazard. For a deeper breakdown of how these totals apply to your own age group, see how much sleep do I need.

Older adults are not an exception to the 7-or-more-hour range. According to the NHLBI, aging does not reduce how much sleep the body needs — it reduces the brain's ability to generate deep sleep as easily, which is why older adults often report lighter, more fragmented sleep despite needing the same total hours as younger adults.


Best Time to Sleep & Ideal Bedtime

There is no single ideal bedtime that applies to everyone — the best time to sleep is the wake-backward calculation from the table above, anchored to a wake time that is consistent every day, including weekends. Consistency matters because bedtime is only one input; the other is your circadian rhythm, driven by the brain's master clock and set primarily by light exposure. Blue light exposure in the evening is one factor that can delay this internal clock, though total light intensity and timing matter as well, not blue light alone.

Because the circadian system reinforces itself through repetition, an "ideal" bedtime calculated once is more useful as a recurring target than a one-time answer. Picking a wake time you can hold steady, then counting backward in 90-to-110-minute cycles as shown above, is a more reliable approach than choosing a bedtime in isolation.


Calculating Sleep

Calculating sleep accurately means accounting for more than just hours in bed. A few factors that change the result of any sleep calculation:

Sleep Debt Calculator

A sleep debt calculator tallies the gap between the sleep you needed and the sleep you actually got, typically compared against the roughly 7-or-more-hour adult benchmark. The result is a useful warning sign, but it is only partly reversible: sleeping in on a weekend can restore acute alertness after a short run of short nights, but it does not undo the chronic effects of ongoing restriction. One week of restricting sleep to about 5 hours a night has been shown to reduce peripheral insulin sensitivity by up to 16% and testosterone in young men by 10–15%, and chronic 6-hour nights sustained over 14 nights can produce attention deficits comparable to two full nights of total sleep deprivation — even when the person no longer feels acutely tired.

How to Sleep 8 Hours in 4 Hours

There is no verified method for compressing 8 hours of sleep's benefit into 4 hours. Sleep need is not something a calculator, technique, or supplement can shrink; it reflects ongoing cellular, metabolic, and cognitive processes that require time to complete. Cutting sleep down to 4–5 hours a night produces measurable harm within about a week, including the drops in insulin sensitivity and testosterone described above, along with hormonal shifts that increase appetite (leptin down about 18%, ghrelin up about 28%, translating to roughly 385 extra calories consumed per day in sleep-restricted studies). At the extreme end, the longest documented period of voluntary wakefulness — 264 hours, by Randy Gardner in 1963–64 — produced significant cognitive impairment and hallucinations that resolved only after normal sleep resumed. A sleep calculator can tell you the most efficient way to time 4 hours of sleep, but it cannot make 4 hours function like 8.

When to See a Doctor

A sleep calculator is a scheduling tool, not a diagnostic one. Talk to a doctor if any of the following apply:

These calculators are for general planning and are not a substitute for a medical evaluation of a sleep disorder.


Frequently Asked Questions

How does a sleep calculator work?
A sleep calculator works backward or forward in roughly 90-to-110-minute sleep cycles from a chosen wake time or bedtime. Because a full night is made up of several complete cycles moving through light sleep, deep sleep, and REM, timing sleep to end near the close of a cycle rather than in the middle of deep sleep is the basic logic behind most bedtime and wake-time calculators.
How many sleep cycles do I need per night?
Most adults complete four to six sleep cycles per night, with each cycle lasting about 90 to 110 minutes. Five to six cycles generally lines up with the roughly 7 or more hours per night recommended for adults, though the exact number of cycles a person needs depends on individual sleep need, which varies across a fairly wide normal range.
What is a REM sleep calculator?
A REM sleep calculator estimates when REM sleep, the dream-rich stage marked by muscle atonia and emotional processing, is likely to occur during the night. REM sleep recurs in each 90-to-110-minute cycle and becomes progressively longer in the cycles closer to your wake time, so REM concentrates in the second half of the night rather than being spread evenly.
How much sleep do I need by age?
Recommended sleep by age, per the CDC, ranges from 14 to 17 hours for newborns down to 8 to 10 hours for teenagers, with adults aged 18 to 60 and older generally needing 7 or more hours per night. Older adults do not need less sleep than younger adults, even though their brains often have more difficulty generating deep sleep.
Can I catch up on sleep debt over the weekend?
Only partially. Sleeping in on weekends can restore acute alertness after a short run of short nights, but it does not reverse the chronic metabolic, inflammatory, and hormonal effects of ongoing sleep restriction. A consistent sleep schedule across the week is a better strategy than relying on weekend catch-up sleep.
Can you really sleep 8 hours' worth in 4 hours?
No. There is no verified technique that compresses 8 hours of sleep benefit into 4 hours. Cutting sleep to around 4 to 5 hours a night has been shown to measurably reduce insulin sensitivity and testosterone within about a week, and sustained short sleep is linked to a higher mortality hazard than sleeping 7 to 8 hours. Extreme, prolonged sleep restriction can also produce severe cognitive impairment, as documented in the 264-hour Randy Gardner wakefulness case.
What time should I go to bed to wake up at 7 a.m.?
Working backward in 90-to-110-minute cycles from a 7 a.m. wake time, five complete cycles land around 11:30 p.m. to 12:00 a.m., and six complete cycles land around 10:00 to 10:30 p.m. The exact bedtime also depends on your personal cycle length and how long it typically takes you to fall asleep.

Sources