Sleep Cycle Calculator

Find your perfect bedtime or wake-up time based on natural 90-minute sleep cycles. See how caffeine affects your sleep.

What time do you need to wake up?

:

Caffeine Impact Analysis

Last caffeine at
:

Your optimal sleep times

Based on 90-minute sleep cycles + 14 min to fall asleep

1
2
3
4
5
6

Your Caffeine Level Through the Night

How Sleep Cycles Work

90-Minute Cycles

Sleep occurs in ~90-minute cycles, each moving through light sleep, deep sleep, and REM. Waking between cycles (not during one) helps you feel refreshed rather than groggy.

The 14-Minute Rule

The average person takes about 14 minutes to fall asleep. Our calculator accounts for this, so your recommended times include this buffer.

Caffeine's Half-Life

Caffeine has a half-life of ~5 hours. If you drink coffee at 2 PM, by 10 PM you still have ~50% of the caffeine in your system — enough to delay sleep onset and reduce deep sleep quality.

Frequently Asked Questions

What time should I go to sleep if I wake up at 7 AM?
If you need to wake at 7:00 AM, your optimal bedtimes are 9:46 PM (6 cycles, 9h of sleep), 11:16 PM (5 cycles, 7.5h), or 12:46 AM (4 cycles, 6h). Most adults do best with 5 cycles (7.5 hours). The key is waking at the end of a complete cycle rather than in the middle of deep sleep.
How does caffeine affect my sleep cycles?
Caffeine blocks adenosine receptors in your brain — adenosine is the chemical that builds "sleep pressure" throughout the day. With caffeine in your system, you may take longer to fall asleep, spend less time in deep sleep (stages 3-4), and experience more nighttime awakenings. Studies show that caffeine consumed even 6 hours before bed can reduce total sleep by over 1 hour. Our calculator factors in caffeine's 5-hour half-life to show you how much is still active at each sleep window.
How many sleep cycles do I need?
Most adults need 5-6 complete sleep cycles (7.5-9 hours) per night. However, this varies by age and individual. Teenagers may need 6 cycles, while some adults function well on 4-5. The critical factor is completing full cycles — 6 hours (4 complete cycles) often leaves you feeling better than 7 hours (which interrupts the 5th cycle mid-deep-sleep).
When should I stop drinking coffee before bed?
Research recommends stopping caffeine at least 8-10 hours before bedtime. If you go to bed at 10 PM, your caffeine cutoff should be 12-2 PM. This accounts for caffeine's 5-6 hour half-life and the additional time needed for levels to drop below the sleep-disruption threshold (~50mg). Slow metabolizers (about 50% of people) may need to stop even earlier — up to 12 hours before bed. Use our caffeine impact tool above to see your specific situation.
Why do I feel tired after 8 hours of sleep?
Feeling tired after 8 hours usually means your alarm interrupted a sleep cycle mid-deep-sleep, causing sleep inertia (that groggy, disoriented feeling). Eight hours doesn't align neatly with 90-minute cycles — it falls in the middle of the 6th cycle. Try sleeping 7.5 hours (5 complete cycles) or 9 hours (6 complete cycles) instead. Other factors include caffeine consumed too late, alcohol before bed, inconsistent sleep schedules, or underlying sleep disorders.
Is it better to sleep 6 hours or 7 hours?
Surprisingly, 6 hours may feel better than 7 — not because less sleep is healthier, but because 6 hours equals exactly 4 complete sleep cycles, while 7 hours interrupts the 5th cycle during deep sleep. However, for long-term health, 7.5 hours (5 full cycles) is ideal for most adults. Chronic 6-hour sleep is associated with increased health risks. Use this calculator to align your sleep with complete cycles for the best quality rest.