Sleep Calculator -- Ideal Bedtime & Wake-Up

Calculate ideal bedtime and wake-up times based on sleep cycles

Calculate Your Sleep Times

Sleep happens in roughly 90-minute cycles. Waking up between cycles -- instead of in the middle of one -- helps you feel more alert and refreshed. Choose a mode below to find your ideal bedtime or wake-up time.

Wake-up time:
Recommended bedtimes
Sleep cycle breakdown (recommended option)
Light sleep (N1/N2)
Deep sleep (N3)
REM sleep

Recommended Sleep by Age

The National Sleep Foundation provides the following sleep duration guidelines:

Age GroupAge RangeRecommendedSleep Cycles
Newborn 0--3 months 14--17 hours 9--11 cycles
Infant 4--11 months 12--15 hours 8--10 cycles
Toddler 1--2 years 11--14 hours 7--9 cycles
Preschool 3--5 years 10--13 hours 7--9 cycles
School-age 6--13 years 9--11 hours 6--7 cycles
Teenager 14--17 years 8--10 hours 5--7 cycles
Young Adult 18--25 years 7--9 hours 5--6 cycles
Adult 26--64 years 7--9 hours 5--6 cycles
Older Adult 65+ years 7--8 hours 5 cycles

Source: National Sleep Foundation. Individual needs may vary. Highlighted rows represent typical adult recommendations.

How Sleep Cycles Work

Each night, your brain moves through repeating cycles of roughly 90 minutes. Each cycle includes distinct stages:

Stage N1 -- Light Sleep (5--10 minutes)

The transition from wakefulness to sleep. Muscles relax, heart rate slows, and you can be easily awakened. This stage typically makes up about 5% of total sleep time.

Stage N2 -- Light Sleep (10--25 minutes)

Body temperature drops, heart rate slows further, and the brain produces sleep spindles -- short bursts of activity that help consolidate memory. This is the longest stage, accounting for roughly 45% of total sleep.

Stage N3 -- Deep Sleep (20--40 minutes)

Also called slow-wave sleep. This is the most restorative stage -- the body repairs tissues, builds bone and muscle, and strengthens the immune system. Deep sleep is most concentrated in the first half of the night and decreases with each subsequent cycle. Waking during deep sleep causes the most grogginess.

REM Sleep (10--60 minutes)

Rapid Eye Movement sleep is when most vivid dreaming occurs. The brain is highly active, processing emotions and consolidating memories. REM periods get progressively longer through the night -- the first may last only 10 minutes, while the last can exceed an hour. REM typically accounts for about 25% of total sleep.

As the night progresses, the composition of each cycle shifts. Early cycles contain more deep sleep, while later cycles contain more REM sleep. This is why sleeping a full night is important -- cutting sleep short means losing the longest, most restorative REM periods.

Tips for Better Sleep

  • Consistent schedule: Go to bed and wake up at the same time every day, including weekends. This reinforces your circadian rhythm.
  • Wind-down routine: Spend 30--60 minutes before bed with low stimulation -- reading, gentle stretching, or a warm bath.
  • Limit blue light: Reduce screen exposure 1--2 hours before bed. Blue light suppresses melatonin production and delays sleep onset.
  • Avoid late caffeine: Caffeine has a half-life of 5--6 hours. A coffee at 3 PM means half the caffeine is still active at 9 PM.
  • Cool bedroom: The ideal sleeping temperature is 60--67 degrees F (15--19 degrees C). A cooler room supports the natural body temperature drop that initiates sleep.
  • Dark and quiet: Use blackout curtains and consider a white noise machine if needed. Even small amounts of light can disrupt melatonin production.
  • Limit alcohol: While alcohol may help you fall asleep faster, it disrupts REM sleep in the second half of the night, reducing sleep quality overall.
  • Exercise timing: Regular exercise improves sleep quality, but vigorous activity within 2--3 hours of bedtime can make it harder to fall asleep.

Frequently Asked Questions

What is a sleep cycle?

A sleep cycle is a roughly 90-minute period during which your brain moves through distinct stages: light sleep (N1 and N2), deep sleep (N3), and REM (rapid eye movement) sleep. Most adults complete 4 to 6 full cycles per night. Waking up between cycles -- rather than in the middle of one -- typically results in feeling more alert and refreshed.

How many hours of sleep do I need?

The National Sleep Foundation recommends 7 to 9 hours for adults aged 18 to 64, and 7 to 8 hours for adults 65 and older. Teenagers need 8 to 10 hours, school-age children need 9 to 11 hours. Individual needs vary based on genetics, activity level, and health.

Why do I feel groggy even after 8 hours of sleep?

Feeling groggy after a full night of sleep -- known as sleep inertia -- often happens when your alarm goes off during deep sleep or REM sleep. By timing your wake-up to coincide with the end of a complete 90-minute sleep cycle, you are more likely to wake during lighter sleep and feel alert immediately.

How long does it take to fall asleep?

The average healthy adult takes about 10 to 20 minutes to fall asleep, a period called sleep onset latency. This calculator uses a default of 15 minutes. If you regularly fall asleep much faster or slower, you can adjust the value for more accurate results.

What is REM sleep and why is it important?

REM (Rapid Eye Movement) sleep is the stage associated with vivid dreaming, memory consolidation, and emotional regulation. REM periods get longer as the night progresses, with the longest occurring in the final sleep cycles. Getting enough complete cycles ensures adequate REM sleep.

Is it better to sleep less but wake up between cycles?

Waking between cycles can help you feel more alert, but total sleep duration still matters. Consistently sleeping fewer than 6 hours increases health risks regardless of cycle timing. Aim for at least 5 full cycles (7.5 hours) when possible, and use cycle timing to optimize when you wake within that window.

Does this calculator store my data?

No. All calculations run entirely in your browser. No data is sent to any server, and nothing is stored.

Privacy & Limitations

Privacy: This calculator runs entirely in your browser. No personal data is transmitted or stored.

Limitations: Sleep cycle duration varies between individuals (typically 80--120 minutes) and can change with age, medications, and health conditions. The 90-minute average used here is a general guideline, not a precise measurement. This tool is not a substitute for medical advice from a sleep specialist.

Related Tools

Related Tools

View all tools

Sleep Calculator FAQ

What is a sleep cycle?

A sleep cycle is a roughly 90-minute period during which your brain moves through distinct stages: light sleep (N1 and N2), deep sleep (N3), and REM (rapid eye movement) sleep. Most adults complete 4 to 6 full cycles per night. Waking up between cycles — rather than in the middle of one — typically results in feeling more alert and refreshed.

How many hours of sleep do I need?

The National Sleep Foundation recommends 7 to 9 hours for adults aged 18 to 64, and 7 to 8 hours for adults 65 and older. Teenagers need 8 to 10 hours, school-age children need 9 to 11 hours, and newborns may need up to 17 hours. Individual needs can vary based on genetics, activity level, and health.

Why do I feel groggy even after 8 hours of sleep?

Feeling groggy after a full night of sleep — known as sleep inertia — often happens when your alarm goes off during deep sleep or REM sleep. By timing your wake-up to coincide with the end of a complete 90-minute sleep cycle, you are more likely to wake during lighter sleep and feel alert immediately.

How long does it take to fall asleep?

The average healthy adult takes about 10 to 20 minutes to fall asleep, a period called sleep onset latency. This calculator uses a default of 15 minutes. If you regularly fall asleep much faster or slower, you can adjust this value for more accurate results.

What is REM sleep and why is it important?

REM (Rapid Eye Movement) sleep is the stage associated with vivid dreaming, memory consolidation, and emotional regulation. REM periods get longer as the night progresses, with the longest occurring in the final sleep cycles. Getting enough complete cycles ensures adequate REM sleep.

Is it better to sleep less but wake up between cycles?

Waking between cycles can help you feel more alert, but total sleep duration still matters. Consistently sleeping fewer than 6 hours increases health risks regardless of cycle timing. Aim for at least 5 full cycles (7.5 hours) when possible, and use cycle timing to optimize when you wake within that window.

Does this calculator store my data?

No. All calculations run entirely in your browser. No data is sent to any server, and nothing is stored.

Request a New Tool
Improve This Tool