Enter the time you need to wake up and get the ideal bedtimes for 3–6 complete sleep cycles — so you wake refreshed, not groggy.
The question "what time should I go to sleep?" sounds simple, but the answer is more nuanced than most people realize. The ideal bedtime isn't a fixed clock time — it depends on when you need to wake up, how long you take to fall asleep, and how many complete 90-minute sleep cycles you want to fit in. This calculator works backward from your wake time to find bedtimes that align with natural cycle boundaries, so your alarm catches you in light sleep rather than in the middle of deep sleep.
Most people approach sleep with a simple goal: get enough hours. But research shows that the timing of sleep within your circadian window matters as much as the total duration. Going to bed at the wrong biological time — either too early (before sufficient sleep pressure builds) or misaligned with your circadian phase — produces poor quality sleep even if you spend 8 hours in bed.
Your circadian rhythm generates a sleep-promoting signal that peaks in the early hours of the night and gradually declines toward morning. Aligning your bedtime with this signal — by maintaining a consistent schedule and going to bed when you feel naturally sleepy — produces better sleep architecture (more deep sleep, better REM distribution) than forcing sleep at an arbitrary time.
Sleep pressure (also called homeostatic sleep drive) is the buildup of adenosine — a sleep-promoting chemical — in your brain throughout the day. Every hour you're awake, more adenosine accumulates, increasing the urge to sleep. Caffeine works by blocking adenosine receptors — it doesn't reduce the actual buildup, which is why coffee's effect wears off and sleep pressure returns.
Optimal bedtime occurs when both sleep pressure and circadian sleepiness are high simultaneously — typically around 10–11 PM for adults on standard schedules. Going to bed significantly before this window (when sleep pressure is still building) leads to lying awake — the first step toward conditioned insomnia. Going to bed much later (when the circadian alerting signal begins to rebuild) makes it harder to initiate sleep and compresses the overnight sleep window.
Your optimal bedtime is the time that allows 5–6 complete sleep cycles while ending at your required wake time. Use this calculator with your wake time to find that window. Then track your actual sleep quality for 1–2 weeks using our Sleep Diary. The bedtime that consistently produces the best morning alertness (without needing to hit snooze) is your personal optimal.
If you consistently can't fall asleep within 20 minutes of your target bedtime, it's too early — your sleep pressure isn't sufficient yet. Move it 15–30 minutes later. If you consistently fall asleep before your head hits the pillow, you're likely sleep-deprived — prioritize adding sleep time rather than just shifting the window.
Teenagers (14–17): Need 8–10 hours and experience a biological circadian delay — their melatonin rises later, making early bedtimes feel unnatural. A 10–11 PM bedtime is more realistic for most teens than the 9 PM many parents target. School start times before 8:30 AM are a significant public health problem, cutting into biologically essential REM sleep.
Adults (18–64): Need 7–9 hours. The optimal window shifts earlier through adulthood — most 20-year-olds have a natural bedtime around 11 PM–12 AM, while most 50-year-olds naturally align closer to 10–11 PM.
Older adults (65+): Need 7–8 hours but often experience earlier circadian timing (advanced sleep phase), making earlier bedtimes (9–10 PM) feel natural. Sleep becomes more fragmented with age, making sleep environment optimization (darkness, temperature, noise control) increasingly important.
Research consistently shows that sleep schedule consistency is more important for sleep quality than the specific bedtime chosen. Your circadian system operates most efficiently when it can predict your sleep-wake schedule. Irregular sleep times — even with adequate total sleep — produce worse cognitive performance, mood, and metabolic health than consistent schedules with slightly less total sleep.
The most powerful consistency lever is your wake time. Keeping your wake time within 30 minutes every day — including weekends — anchors your entire circadian rhythm. A consistent wake time automatically regulates when you feel sleepy at night. This is the foundation of every evidence-based sleep improvement program, including CBT-I.