Sleep Calculator

Find your ideal bedtime or wake time based on sleep cycle science. Wake up between cycles, not during deep sleep.

Enter the time you need to be awake

Recommended: 7–9 hours per night (Adults 26–64)

Average is 14 minutes. Adjust if you typically take longer.

Your Ideal Sleep Times

Your Sleep Cycles Tonight

N1 Light N2 Medium N3 Deep REM

Caffeine Lasts 6+ Hours

Half your caffeine is still active 5–6 hours after consumption. Stop caffeine at least 8 hours before bed.

Blue Light Disrupts Sleep

Screens emit blue light that suppresses melatonin. Avoid screens 1 hour before bed or use night mode.

Consistent Wake Times

Waking at the same time every day (even weekends) strengthens your circadian rhythm and improves sleep quality.

Cool, Dark Room

Keep your bedroom at 65–68°F (18–20°C), completely dark, and quiet for optimal sleep conditions.

How Sleep Cycles Work

Every night, your brain cycles through a predictable pattern of sleep stages. Understanding these cycles is the key to waking up feeling refreshed rather than groggy. The concept is simple but powerful: when you wake up at the end of a sleep cycle — during light sleep — you feel alert and ready to go. But wake up in the middle of deep sleep, and you'll experience that dreaded groggy feeling scientists call "sleep inertia."

The 90-Minute Cycle

A typical sleep cycle lasts approximately 90 minutes (ranging from 70–120 minutes in different individuals). During each cycle, your brain progresses through four distinct stages, each serving a critical function for your health and cognition.

Stage N1 — Light Sleep (5–10 minutes)

This is the transition from wakefulness to sleep. Your heartbeat slows, muscles relax, and you may experience sudden twitches or a sensation of falling (hypnic jerks). During N1, you can be easily awakened — this is why power naps work. This stage accounts for roughly 5% of your total sleep time.

Stage N2 — Medium Sleep (20–40 minutes)

Your body temperature drops, heartbeat slows further, and brain activity shows characteristic "sleep spindles" and "K-complexes" that help consolidate memories and suppress external stimuli. N2 gets progressively longer in later cycles, making up about 45–55% of your total sleep. This stage is essential for memory consolidation and learning.

Stage N3 — Deep / Slow-Wave Sleep (20–40 minutes)

Also called slow-wave sleep (SWS), this is the most physically restorative stage. Your brain produces slow delta waves, blood pressure drops, and the body releases growth hormone. This is when tissue repair, immune system strengthening, and energy restoration occur. Waking from N3 produces the worst sleep inertia — that disoriented, groggy feeling that can last 30 minutes or more. N3 dominates the first half of the night and shortens in later cycles.

REM Sleep (10–60 minutes)

Rapid Eye Movement sleep is when most dreaming occurs. Your brain becomes highly active (almost as active as when awake), while your muscles are temporarily paralyzed to prevent you from acting out dreams. REM sleep is critical for emotional processing, creativity, and memory consolidation. REM periods get longer with each successive cycle — your first REM might be only 10 minutes, while your last could be 60 minutes.

Why Cycle Timing Matters

Here's the practical insight: a person sleeping 8 hours will typically complete about 5 full sleep cycles (7.5 hours of actual sleep, plus time to fall asleep). But 8 hours doesn't divide evenly into 90-minute cycles — you'll likely wake up in the middle of a cycle. By aligning your wake time with the end of a cycle, you can dramatically improve how you feel each morning.

This is exactly what our sleep calculator does. By working backward from your desired wake time in 90-minute intervals and accounting for the 14-minute average time to fall asleep, we identify the optimal bedtimes that align with cycle endings. This simple timing adjustment can be the difference between hitting snooze five times and bounding out of bed.

Key insight: It's not just about how many hours you sleep — it's about when those hours end. Six cycles of 90 minutes (9 hours) isn't always better than five cycles (7.5 hours) if the 9-hour wake-up lands you in deep sleep.

How Much Sleep Do You Need?

Sleep needs vary significantly by age. The National Sleep Foundation's expert panel reviewed thousands of studies to establish these evidence-based recommendations:

Age GroupRecommendedMay Be AppropriateNot Recommended
Newborns (0–3 months)14–17 hours11–13 or 18–19 hoursLess than 11 or more than 19
Infants (4–11 months)12–15 hours10–11 or 16–18 hoursLess than 10 or more than 18
Toddlers (1–2 years)11–14 hours9–10 or 15–16 hoursLess than 9 or more than 16
Preschoolers (3–5 years)10–13 hours8–9 or 14 hoursLess than 8 or more than 14
School-age (6–13 years)9–11 hours7–8 or 12 hoursLess than 7 or more than 12
Teens (14–17 years)8–10 hours7 or 11 hoursLess than 7 or more than 11
Young adults (18–25 years)7–9 hours6 or 10–11 hoursLess than 6 or more than 11
Adults (26–64 years)7–9 hours6 or 10 hoursLess than 6 or more than 10
Older adults (65+)7–8 hours5–6 or 9 hoursLess than 5 or more than 9

These ranges account for individual variation — some people genuinely thrive on 7 hours, while others need a full 9. But consistently sleeping outside the recommended range is associated with poorer health outcomes, including cardiovascular disease, obesity, diabetes, and cognitive decline.

Tips for Better Sleep

Keep a Consistent Schedule

Go to bed and wake up at the same time every day — even weekends. This reinforces your circadian rhythm and makes falling asleep easier.

Wind Down 30–60 Minutes Before

Create a pre-sleep ritual: dim lights, avoid screens, read a book, or try gentle stretching. This signals your brain that it's time to sleep.

Watch What You Consume

No caffeine after 2 PM, avoid heavy meals 2–3 hours before bed, and limit alcohol — it disrupts sleep architecture, especially REM sleep.

Get Morning Sunlight

Natural light within 30 minutes of waking resets your circadian clock. Aim for 10–15 minutes of outdoor light each morning.

Create a Dark, Cool Environment

Keep your bedroom at 65–68°F (18–20°C), use blackout curtains, and remove all light sources — even small LEDs can disrupt melatonin production.

Exercise, But Not Before Bed

Regular exercise improves sleep quality, but finish vigorous activity at least 3 hours before bed. Morning or afternoon exercise is ideal.

Frequently Asked Questions

If you need to wake up at 7:00 AM, aim to fall asleep at 9:46 PM (6 cycles / 9 hours), 11:16 PM (5 cycles / 7.5 hours), or 12:46 AM (4 cycles / 6 hours). The 5-cycle option (11:16 PM) is ideal for most adults, giving you 7.5 hours of quality sleep. Remember to account for 14 minutes to fall asleep, so get into bed about 15 minutes earlier.
Most adults need 5–6 complete sleep cycles per night, which equals 7.5–9 hours of sleep. Each sleep cycle lasts approximately 90 minutes and includes light sleep, deep sleep, and REM stages. Young adults and adults typically need 5–6 cycles, while teens may need 6–7 cycles. Waking at the end of a cycle (during light sleep) helps you feel refreshed rather than groggy.
Waking up tired after adequate sleep time is usually caused by waking during a deep sleep (N3) stage rather than between cycles. Sleep cycles last about 90 minutes, so 8 hours doesn't align evenly with cycle boundaries. Try adjusting your bedtime or wake time by 15–30 minutes to sync with cycle endings. Other causes include sleep apnea, caffeine, alcohol, or poor sleep environment.
The average person takes about 14 minutes to fall asleep. This calculator uses 14 minutes as the default buffer. If you typically take longer to fall asleep, you can adjust the fall-asleep time in the settings. Taking more than 20 minutes to fall asleep consistently may indicate poor sleep hygiene or insomnia, and you should consult a healthcare provider.
A sleep cycle is a complete round of sleep stages that lasts approximately 90 minutes. Each cycle progresses through N1 (light sleep), N2 (medium sleep), N3 (deep/slow-wave sleep), and REM (rapid eye movement) sleep. Deep sleep is crucial for physical restoration, while REM sleep supports memory consolidation and emotional processing. A full night of sleep contains 4–6 complete cycles.
For most adults, 6 hours of sleep is not enough. The National Sleep Foundation recommends 7–9 hours for adults aged 18–64. Sleeping only 6 hours means you complete just 4 sleep cycles, missing out on critical deep sleep and REM stages. Chronic short sleep is linked to heart disease, diabetes, obesity, and cognitive decline. If you must sleep 6 hours, timing your wake-up to align with the end of a cycle can help reduce grogginess.
This calculator is designed for full-night sleep. For naps, use our dedicated Nap Calculator which accounts for the different dynamics of daytime sleep. In general, power naps of 10–20 minutes boost alertness, 60-minute naps help memory, and 90-minute naps complete a full cycle. Avoid 30-minute naps which can cause sleep inertia (grogginess).

More Sleep Tools

Get Better Sleep With the Right Mattress

Your mattress directly affects sleep quality. Here are our top picks:

Casper Original

$595 – $1,295
Best Overall All Sleep Positions

The Casper Original balances support and comfort with its zoned support system. Great for combination sleepers who change positions throughout the night. Breathable design helps hot sleepers stay cool.

Check Price on Amazon →

Saatva Classic

$895 – $2,095
Best for Back Pain Eco-Friendly

Luxury innerspring with a coil-on-coil design that provides excellent spinal alignment. The dual coil system offers superior support for back and stomach sleepers. Free white-glove delivery included.

Check Price on Amazon →

Purple Hybrid

$1,299 – $2,799
Best for Hot Sleepers Unique Feel

The Purple Grid™ creates a unique floating feel that sleeps remarkably cool. The hyper-elastic polymer grid adapts instantly to movement, making it ideal for hot sleepers and those who want something different from traditional foam.

Check Price on Amazon →

Nectar Memory Foam

$499 – $1,198
Best Value Side Sleepers

Premium memory foam at an affordable price. The Nectar excels at pressure relief for side sleepers and comes with a 365-night trial — the longest in the industry. Great value for contouring comfort and motion isolation.

Check Price on Amazon →
RestCalc is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. We independently research and recommend products. If you purchase through our links, we may earn a commission at no extra cost to you.