Sleep Calculator
Calculate the best time to wake up or go to bed based on 90-minute sleep cycles — the science-backed way to wake up refreshed instead of groggy. Pick your target wake time and get the optimal bedtimes that align with the end of a complete sleep cycle (when waking feels easiest). Or pick a bedtime and get the optimal wake times. Customise cycle length and the time you typically take to fall asleep. Includes power-nap timing (20 min ideal), age-based sleep recommendations, and sleep hygiene tips. Mobile-first, works offline, no signup, no tracking — your sleep schedule stays on your device.
Advanced Settings
Best bedtimes to wake up at 7:00 AM
Each option ends on a complete sleep cycle — the easiest moment to wake.
Quick Sleep Scenarios
Sleep by Age
- Newborn (0–3m)14–17h
- Infant (4–11m)12–15h
- Toddler (1–2)11–14h
- Preschool (3–5)10–13h
- School (6–13)9–11h
- Teen (14–17)8–10h
- Young Adult (18–25)7–9h
- Adult (26–64)7–9h
- Older Adult (65+)7–8h
Saved
Saved schedules appear here
Sleep Tips
-
Keep your room cool (65–68°F / 18–20°C) for deeper sleep. -
Cut caffeine 8 hours before bedtime — half-life is ~6 hours. -
Screens off 30 minutes before bed — blue light delays melatonin. -
Same wake time every day — even weekends (within 1 hour).
What This Tool Does
Keyboard Shortcuts
Find Your Best Bedtime & Wake Time Based on Sleep Cycles
Ever woken up feeling worse after 8 hours of sleep than after 6? It's not because you slept too much — it's because your alarm went off in the middle of a sleep cycle, during deep sleep, instead of at the end. This free sleep calculator uses the 90-minute sleep cycle to tell you exactly when to set your alarm or go to bed so you wake up between cycles, in light sleep — the moment when waking feels effortless and you actually feel rested.
Three modes cover every scenario: "Wake up at…" tells you the best bedtimes for a target alarm. "Sleep now" tells you the best wake times if you go to bed right now. "I slept at…" plans a wake-up time after a known bedtime. Each calculation shows six time options, ranked by sleep quality: a 20-minute power nap, a 90-minute single-cycle nap, 6-hour short sleep (4 cycles), the recommended 7.5 hours (5 cycles), the optimal 9 hours (6 cycles), and a longer 10.5 hours for sleep debt recovery (7 cycles). Pick the one that fits your schedule and the science does the rest.
How to Use the Sleep Calculator
Pick Your Mode
"Wake up at…" is the most common — you know what time you need to be up tomorrow and want the best bedtime. "Sleep now" is for late nights when you want to set the perfect alarm based on right now. "I slept at…" is for planning a wake-up if you remember when you fell asleep last night.
Set the Time
Type your target time directly, or tap one of the quick buttons (6 AM, 7 AM, 8 AM, Now). The time updates the results instantly — no submit button needed.
Read the 6 Options
Six time options appear, each marked with the number of sleep cycles, total hours of sleep, and a quality rating: Power Nap, Single Cycle, Short Sleep, Recommended, Optimal, Long Sleep. Green = best, yellow = OK short-term, red = sleep debt territory. Pick the option that fits your schedule.
Customise & Save
Expand Advanced Settings to fine-tune your cycle length (if you know yours), how long you take to fall asleep (default 14 min), and your age group. Save a schedule with one tap for next time, or Copy Summary to share in a group chat or paste into your calendar.
Key Features
3 Calculation Modes
"Wake up at…" for the next morning, "Sleep now" for tonight, and "I slept at…" for planning wake-ups. Every common sleep scheduling scenario covered.
Live Recalculation
Change the time, the cycle length, or the fall-asleep buffer — results update instantly. No submit button, no waiting.
Custom Cycle Length
Default 90 minutes, but adjustable from 60-120 to match your personal sleep cycle. Track yours for a week and find your exact value for perfect alarms.
Power Nap Calculator
Built-in 20-minute power-nap preset, plus 90-minute single-cycle nap option. Avoid the 30-80 minute "groggy zone" automatically.
Age-Based Recommendations
National Sleep Foundation guidelines from newborn to older adult built in. The calculator factors your age group into the recommended cycle count.
100% Private
All math runs in your browser. Your sleep schedule, saved schedules, and history never leave your device. Works fully offline.
Why Use a Sleep Cycle Calculator?
Sleep quality isn't just about total hours — it's about where in your sleep cycle your alarm goes off. The cliché "I got 8 hours and feel terrible" usually means the alarm interrupted you mid-deep-sleep. Sleep cycle calculators solve this by timing your bedtime or alarm to land at the end of a cycle, when you naturally transition out of REM sleep — the easiest moment to wake. Hospital sleep studies confirm: cycle-aligned wake-ups feel measurably more refreshing than equally-long wake-ups in deep sleep.
Beyond morning alarms, a sleep cycle calculator is essential for: nap timing (avoid the 30-80 minute "groggy zone"), shift-work schedules (calculating the best nap before a night shift), weekend recovery sleep (matching cycle counts without disrupting circadian rhythm), travel and jet lag (timing arrival naps to land on cycle boundaries), and parents of teens (whose teen sleep cycles run later than adults). One free tool, every sleep-timing scenario.
The best part: it works whether you have 8 hours to sleep or 3. A sleep calculator can\'t fix sleep debt overnight, but it does maximise the quality of whatever sleep you do get. Three cycles of well-timed sleep beats four cycles interrupted mid-deep-sleep every time.
Understanding the Sleep Cycle: How It Actually Works
A complete sleep cycle takes approximately 90 minutes and rotates through four distinct stages. Stage 1 is light sleep, the transition from awake to asleep, lasting 1-5 minutes. Stage 2 is deeper light sleep with sleep spindles and K-complexes, about 25 minutes — this is the dominant stage in a power nap. Stage 3 is slow-wave or deep sleep, the most restorative phase, when growth hormone is released and physical recovery happens, lasting 20-40 minutes. Stage 4 is REM (Rapid Eye Movement) sleep, when dreams happen and memory consolidates, starting at about 10 minutes per cycle and extending to 30-60 minutes in later cycles of the night.
The composition of cycles shifts through the night. Your first cycle is heavy on deep sleep (Stage 3) with minimal REM. By the fourth or fifth cycle (toward morning), Stage 3 has almost vanished and REM dominates — cycles late in sleep are largely REM and light sleep. This is why waking up in the morning typically feels easier than waking from a nap: the closer to morning, the closer you are to light sleep, the easier to wake. It\'s also why oversleeping (8+ hours past your need) can leave you feeling groggy: you\'re hitting another deep-sleep phase in a new cycle.
Waking up in light sleep (end of a cycle) takes about 2 minutes of grogginess at most. Waking up in deep sleep takes 30-90 minutes of "sleep inertia" — that brain-fog feeling that lasts well into your morning routine. This calculator times your wake-up to land in light sleep, not deep sleep. The math is simple: bedtime + 14 min (fall-asleep buffer) + (N × 90 min) = optimal wake time, for N cycles.
Is This Sleep Calculator Safe to Use?
100% Legal & Educational
Yes — using a sleep calculator is completely legal everywhere. This tool provides educational information based on widely-published sleep science. It\'s not medical advice — just math applied to averages and research-backed sleep cycle data. Use it freely for personal sleep scheduling.
Note: if you have chronic insomnia, sleep apnea, restless leg syndrome, narcolepsy, or any persistent sleep disorder, please see a sleep specialist. This calculator helps optimise timing for healthy sleepers; it does not diagnose or treat sleep disorders.
100% Safe & Private
Yes — this tool is completely safe. All calculation runs locally in your browser using standard JavaScript. There's nothing to install. Your sleep schedule and saved data are never sent to any server.
No sleep schedule sent to our servers — pure client-side math No signups, no email collection, no tracking pixels Saved schedules stay in localStorage only — never synced Works fully offline once the page loads No third-party scripts beyond optional analytics Served over HTTPS with strict security headers
Who Uses an Online Sleep Calculator?
A free sleep cycle calculator helps anyone with a sleep schedule — which is to say, everyone. Here are the people who get the most out of it:
Working Professionals
Find the best bedtime for a 6 AM workday alarm. Plan weekend recovery sleep that doesn't kill Monday morning. Time naps between meetings so you wake up sharp, not groggy.
Students
Plan all-nighters strategically (90-min power-down between study sessions beats no sleep). Time pre-exam sleep to land on cycle boundaries. Avoid the "I slept 8 hours and feel worse" problem before finals.
Shift Workers
Calculate the best nap before a night shift. Plan daytime sleep that hits 4-5 full cycles. Time the wake-up to feel functional for a 10 PM start.
Parents of Babies & Toddlers
Plan your own sleep around feed times. Calculate naps for toddlers based on age-appropriate cycle counts. Find a bedtime that gives you 5 cycles before the next wake-up.
Travelers & Jet-Lag Fighters
Time arrival naps to land on cycle boundaries (avoiding mid-deep-sleep wake-ups). Plan the first night in a new time zone to maximise cycle count before the local wake time.
Anyone Taking a Nap
Power nap (20 min) vs single cycle (90 min) — never accidentally nap 45 minutes and wake feeling worse. The calculator makes nap timing foolproof.
Recommended Sleep Hours by Age (National Sleep Foundation)
The National Sleep Foundation publishes age-based sleep duration guidelines based on extensive research. Sleep needs vary dramatically by life stage — newborns sleep over twice as much as healthy adults. Here\'s the complete chart, plus equivalent sleep cycles.
| Age Group | Recommended Sleep | Equivalent Cycles | Min — Max |
|---|---|---|---|
| Newborn (0–3 months) | 14–17 hours | 9–11 cycles | 11–19 hours |
| Infant (4–11 months) | 12–15 hours | 8–10 cycles | 10–18 hours |
| Toddler (1–2 years) | 11–14 hours | 7–9 cycles | 9–16 hours |
| Preschool (3–5 years) | 10–13 hours | 7–9 cycles | 8–14 hours |
| School-age (6–13) | 9–11 hours | 6–7 cycles | 7–12 hours |
| Teen (14–17) | 8–10 hours | 5–7 cycles | 7–11 hours |
| Young Adult (18–25) | 7–9 hours | 5–6 cycles | 6–11 hours |
| Adult (26–64) | 7–9 hours | 5–6 cycles | 6–10 hours |
| Older Adult (65+) | 7–8 hours | 4–5 cycles | 5–9 hours |
Individual variation is real. A small percentage of "short sleepers" function fully on 6 hours; "long sleepers" need 10+. The recommendations are averages. Track yourself for two weeks to find your personal need: bedtime that consistently leads to natural waking without an alarm is your sweet spot.
What Time Should I Go to Bed To Wake Up at…?
The most common sleep calculator question: "what time should I go to bed if I want to wake up at X?" Here\'s the quick reference table for the most-searched wake times, accounting for the 14-minute average fall-asleep buffer.
| Wake Time | 6 Cycles (Optimal, 9h) | 5 Cycles (Recommended, 7.5h) | 4 Cycles (Short, 6h) | 3 Cycles (Power Nap, 4.5h) |
|---|---|---|---|---|
| 5:00 AM | 7:46 PM | 9:16 PM | 10:46 PM | 12:16 AM |
| 5:30 AM | 8:16 PM | 9:46 PM | 11:16 PM | 12:46 AM |
| 6:00 AM | 8:46 PM | 10:16 PM | 11:46 PM | 1:16 AM |
| 6:30 AM | 9:16 PM | 10:46 PM | 12:16 AM | 1:46 AM |
| 7:00 AM | 9:46 PM | 11:16 PM | 12:46 AM | 2:16 AM |
| 7:30 AM | 10:16 PM | 11:46 PM | 1:16 AM | 2:46 AM |
| 8:00 AM | 10:46 PM | 12:16 AM | 1:46 AM | 3:16 AM |
| 8:30 AM | 11:16 PM | 12:46 AM | 2:16 AM | 3:46 AM |
| 9:00 AM | 11:46 PM | 1:16 AM | 2:46 AM | 4:16 AM |
| 10:00 AM | 12:46 AM | 2:16 AM | 3:46 AM | 5:16 AM |
The table assumes 14 minutes to fall asleep. If you\'re a faster sleeper (5 min) or slower (30 min), use the calculator above with your personal buffer for exact times. The bolded recommendation: 5 cycles is the minimum for healthy adult cognitive function; 6 cycles is optimal.
When to Wake Up If You Go to Bed at…?
The reverse of the previous chart: pick a bedtime and find the optimal wake-up times that land on a sleep cycle boundary. Especially useful when you\'re going to bed later than planned and want to know the best time to set your alarm.
| Bedtime | 6 Cycles (Optimal, 9h) | 5 Cycles (Recommended, 7.5h) | 4 Cycles (Short, 6h) | 3 Cycles (Power Nap, 4.5h) |
|---|---|---|---|---|
| 9:00 PM | 6:14 AM | 4:44 AM | 3:14 AM | 1:44 AM |
| 9:30 PM | 6:44 AM | 5:14 AM | 3:44 AM | 2:14 AM |
| 10:00 PM | 7:14 AM | 5:44 AM | 4:14 AM | 2:44 AM |
| 10:30 PM | 7:44 AM | 6:14 AM | 4:44 AM | 3:14 AM |
| 11:00 PM | 8:14 AM | 6:44 AM | 5:14 AM | 3:44 AM |
| 11:30 PM | 8:44 AM | 7:14 AM | 5:44 AM | 4:14 AM |
| 12:00 AM (Midnight) | 9:14 AM | 7:44 AM | 6:14 AM | 4:44 AM |
| 12:30 AM | 9:44 AM | 8:14 AM | 6:44 AM | 5:14 AM |
| 1:00 AM | 10:14 AM | 8:44 AM | 7:14 AM | 5:44 AM |
| 2:00 AM | 11:14 AM | 9:44 AM | 8:14 AM | 6:44 AM |
All times include the 14-minute average fall-asleep buffer. Example: If you go to bed at 11:00 PM, you should set your alarm for 6:44 AM (5 cycles, 7.5 hours of actual sleep, recommended) or 8:14 AM (6 cycles, 9 hours, optimal). Anything between 7:00 AM and 7:30 AM would interrupt deep sleep, leaving you groggy.
Common Sleep Hour Questions: Is 6 / 7 / 8 Hours Enough?
"Is X hours of sleep enough?" is one of the most-searched sleep questions on the internet. The honest answer: it depends on your individual sleep need (which is mostly genetic), your age, and how many cycles fit into that duration. Here\'s the breakdown:
| Sleep Duration | Cycles | Verdict for Adults | Cognitive Impact |
|---|---|---|---|
| 3 hours | 2 cycles | Severe sleep deprivation | 50%+ reduction in alertness, reaction time, memory |
| 4 hours | 2.5 cycles (incomplete) | Major sleep debt | Equivalent to being legally drunk after 24+ hours awake |
| 4.5 hours | 3 cycles | Short-term emergency only | Mood and focus impaired; not sustainable |
| 5 hours | 3+ cycles (cut short) | Below healthy minimum | Detectable cognitive decline within 1 week |
| 6 hours | 4 cycles | Functional short-term, not sustainable | Mild cognitive deficits accumulate over weeks |
| 7 hours | 4.5 cycles (mid-cycle wake) | Below recommended; can feel groggy | Sub-optimal but acceptable for short sleepers |
| 7.5 hours | 5 cycles | Recommended minimum | Healthy adult function |
| 8 hours | 5+ cycles (mid-cycle) | Often feels worse than 7.5h | Wakes during deep sleep — grogginess common |
| 9 hours | 6 cycles | Optimal for most adults | Peak cognitive performance |
| 10+ hours | 6.5+ cycles | May indicate sleep debt repayment | Sustained 10+ hr can signal depression or illness |
Quick verdict: 7.5 hours (5 cycles) is the minimum for healthy adult function. 9 hours (6 cycles) is optimal. The 8-hour myth is misleading because 8 hours is mid-cycle for most people — try 7.5 or 9 instead. If you regularly need only 6 hours and feel great, you may be a genetic "short sleeper" (less than 3% of adults).
Why This Is the Best Free Sleep Calculator
Search for "sleep calculator" and you'll find a dozen options. Most are bare-bones (just one mode), don\'t let you customise cycle length, ignore the fall-asleep buffer, or are hidden behind app paywalls.
What We Do
- 3 calculation modes (Wake at / Sleep now / Slept at)
- Customizable cycle length (60-120 min) and fall-asleep buffer
- 6 timing options ranked by quality with color coding
- Built-in power nap (20 min) and one-cycle (90 min) presets
- Age-based recommendations from newborn to 65+
- Quick buttons: 6/7/8 AM and Now for instant input
- Save schedules locally for reuse
- Copy summary as text for sharing or calendar entry
- Mobile-first design for late-night phone use
- Works fully offline after first load
What Other Sites Do
- Only one mode — usually just "wake up at"
- Hardcoded 90-min cycles with no customisation
- Ignore the 14-min fall-asleep buffer entirely
- Show 3 options instead of the full 1-6 cycle range
- No quality rating — leaves you to guess what\'s "good"
- No power nap or single-cycle preset
- No age-based recommendations
- Lock features behind app downloads
- Plain unstyled output, no visual cue what to pick
- Need internet connection for every calculation
Sleep Hygiene: Habits That Actually Improve Sleep Quality
Cycle-aligned wake-ups maximise the quality of whatever sleep you get, but improving sleep itself comes down to consistent sleep hygiene practices. Here\'s the science-backed list, in order of impact:
- Same bedtime & wake time every day — including weekends. Inconsistent sleep timing is the #1 cause of poor sleep quality. Your circadian rhythm hates randomness. Even ±1 hour matters.
- Cool, dark, quiet room. 65-68°F (18-20°C), blackout curtains, white noise if needed. Sleep is light-sensitive — even small amounts of light disrupt melatonin.
- Cut caffeine 8 hours before bedtime. Caffeine has a 5-6 hour half-life. A 3 PM coffee has 50% of its caffeine still in your system at 9 PM.
- No alcohol before bed. Alcohol fragments REM sleep even at "relaxing" doses. You may fall asleep faster but wake up less refreshed.
- Screens off 30-60 min before bed. Blue light suppresses melatonin and delays sleep onset. Night mode helps but isn\'t a full fix — the content itself (stress, stimulation) matters too.
- Bright daylight exposure within 1 hour of waking. Morning sunlight anchors your circadian rhythm. 10-15 minutes outside is enough.
- No big meals or intense exercise within 2 hours of bed. Both raise core body temperature and disrupt sleep onset.
- Use the bed for sleep only (and intimacy). Reading, working, or scrolling in bed trains your brain that bed = awake-time, weakening the sleep association.
- If you can\'t sleep in 20 minutes, get up. Don\'t lie there frustrated — go to another room, do something boring in dim light, return when sleepy.
- Time naps with the calculator above. Avoid the 30-80 minute groggy zone. Either 20 min (power) or 90 min (single cycle) or skip the nap.