Sleep Calculator
Find the perfect time to go to bed or wake up based on 90-minute sleep cycles. Adjust for your fall-asleep time, see color-coded recommendations, and use the nap calculator for quick daytime rest. Free. No sign-up.
To wake up at 7:00 AM, try falling asleep at one of these times:
How it works
- 1Choose your mode
Select whether you know your wake-up time, your bedtime, or want to sleep right now for instant results.
- 2Enter your time
Set your target time and adjust the fall-asleep duration (default 15 minutes) to match your personal experience.
- 3Pick your optimal time
Choose from 4 options color-coded by quality: green (6 cycles), yellow (5), orange (4), or red (3 minimum).
The Science of Sleep Cycles
Sleep is not a uniform state. Throughout the night, your brain cycles through distinct stages that serve different biological functions. Each complete cycle lasts approximately 90 minutes and consists of four stages: two stages of light sleep (N1 and N2), one stage of deep sleep (N3, also called slow-wave sleep), and one stage of REM (rapid eye movement) sleep. The composition of these stages shifts throughout the night โ earlier cycles contain more deep sleep, while later cycles contain proportionally more REM sleep.
Deep sleep is when your body performs most of its physical repair, releases growth hormone, and consolidates declarative memories (facts and events). REM sleep is when your brain processes emotions, consolidates procedural memories (skills and habits), and performs the creative problem-solving that sometimes manifests as vivid dreams. Both stages are essential, which is why cutting sleep short disproportionately reduces REM time and affects mood and cognitive function.
The reason waking up feels terrible sometimes has everything to do with timing within a cycle. Waking during deep sleep (N3) triggers a state called sleep inertia โ a period of grogginess, confusion, and impaired performance that can last 15 to 30 minutes. Waking at the end of a complete cycle, during the brief lighter sleep period between cycles, feels dramatically better even if total sleep time is slightly less. This is the core principle behind this sleep calculator.
Sleep onset latency โ the time it takes you to fall asleep โ is a critical variable that most people underestimate or ignore when setting alarms. If you get into bed at 11:00 PM but do not actually fall asleep until 11:20 PM, your sleep cycles start at 11:20, not 11:00. An alarm set for 6:50 AM would give you 7 hours and 30 minutes from when you got into bed, but only 7 hours and 10 minutes of actual sleep โ which falls awkwardly in the middle of a cycle. This calculator accounts for your personal fall-asleep time to keep the cycles properly aligned.
For daytime napping, the same principles apply on a smaller scale. A 20-minute power nap stays within light sleep stages and provides a genuine boost to alertness without the risk of sleep inertia. A 90-minute nap completes one full cycle including REM, offering both physical and cognitive restoration. Naps between 30 and 60 minutes are the danger zone โ long enough to enter deep sleep but too short to complete the cycle โ which is why they often leave you feeling worse than before.
Get GEO & AEO tips every week
The Layman SEO newsletter. Plain English updates on what is changing in search - SEO, AEO, and GEO - and what to do about it. One email a week. Unsubscribe any time.
No spam. No paywall content. Unsubscribe with one click.