The sleep calculator that wakes you at the end of a cycle, not the middle.

Sleep moves in roughly 90-minute cycles. Wake near the end of one and the morning feels gentle; get pulled out of deep sleep and you feel wrecked. Pick a mode below for your times.

When do you need to wake up?

TimeDetail
Fine-tune the assumptions
See gear that helps you fall asleep and stay asleep

A sleep calculator works backward from your wake-up time in roughly 90-minute cycles so you wake at the end of a cycle, in light sleep, instead of being pulled out of deep sleep. To wake at 6:30 AM, good cycle-aligned bedtimes are about 9:15 PM (six cycles), 10:45 PM (five cycles), or 12:15 AM (four cycles), each allowing 15 minutes to fall asleep. Ninety minutes is an average, not a fixed rule, so treat these as a strong estimate rather than a guarantee.

How sleep cycles decide whether you wake up groggy

Most people judge a night of sleep by its length. Eight hours sounds restful and five hours sounds rough, and usually that is true. But length is only half the story. The other half is where in a cycle you wake up, and it explains the strange mornings when eight hours leaves you foggy while a shorter night feels surprisingly clear.

Sleep is not one flat state. You move through repeating cycles, each lasting around 90 minutes on average. A cycle climbs through light sleep into deep sleep and then into REM, the stage where most vivid dreaming happens, before easing back toward lighter sleep and starting again. Over a full night you complete roughly four to six of these cycles.

N1
N2
N3 deep
REM
Light onset Light sleep Deep sleep REM / dreams

Why the wake moment matters

Waking near the end of a cycle, while you are in light sleep, tends to feel gentle. Your brain is already drifting toward the surface, so the alarm meets you partway. Being yanked out of deep N3 sleep in the middle of a cycle is the opposite. That is the heavy, disoriented feeling called sleep inertia, where your thinking and alertness stay impaired for a while after you open your eyes. Aligning your wake time with the end of a cycle is the whole idea behind a sleep calculator: same number of hours, much better landing.

Sources for the science above: Sleep Foundation, Sleep Cycle, NIH StatPearls, Physiology of Sleep Stages, and NINDS, Brain Basics: Understanding Sleep.

How this sleep cycle calculator works

It is deliberately honest about its limits, because most sleep pages are not.

90 minutes is an average, not a law

A cycle is commonly cited as 90 minutes, but real cycles run anywhere from about 70 to 120 minutes, and they change across the night. Early cycles hold more deep sleep; later ones hold more REM, and the final REM stretch can run close to an hour. Cycle length also shifts with age, alcohol, stress, and how sleep-deprived you already are. So the calculator gives a good estimate, not a precise guarantee. If you know your own cycles run long or short, open Fine-tune the assumptions and change the cycle length.

The 15-minute buffer

You do not fall asleep the instant your head hits the pillow. A typical person takes around 15 minutes to drift off, so the calculator counts from the moment you actually fall asleep, not the moment you lie down. That buffer is adjustable too.

Four to six cycles a night

Most adults do well on five to six full cycles, which is roughly seven and a half to nine hours. Four cycles, about six hours, works for a short night now and then, but it is not a habit the body forgives indefinitely.

Quick answers

If I sleep now, when will I wake up?

Count forward in 90-minute cycles from when you actually fall asleep, adding about 15 minutes to drift off first. From a midnight bedtime, cycle-aligned wake times fall near 6:15 AM (four cycles), 7:45 AM (five cycles), or 9:15 AM (six cycles). Switch the tool to "going to bed now" to see the times for your exact moment.

What time should I go to bed to wake up at 6 AM?

For a 6 AM alarm, cycle-aligned bedtimes are about 8:45 PM (six cycles), 10:15 PM (five cycles), or 11:45 PM (four cycles), each including a 15-minute buffer to fall asleep. Six cycles is the fullest night; four is the leaner option for a late evening.

What time should I go to bed to wake up at 7 AM?

To wake at 7 AM, aim for roughly 9:45 PM (six cycles), 11:15 PM (five cycles), or 12:45 AM (four cycles). Pick the latest bedtime you can still wake from at a cycle boundary so the morning feels lighter.

What time should I go to bed to wake up at 5:30 AM?

For a 5:30 AM alarm, good cycle-aligned bedtimes are about 8:15 PM (six cycles), 9:45 PM (five cycles), or 11:15 PM (four cycles), each with a 15-minute fall-asleep buffer.

What time should I go to bed to wake up at 5 AM?

For a 5 AM alarm, cycle-aligned bedtimes are about 7:45 PM (six cycles), 9:15 PM (five cycles), or 10:45 PM (four cycles), each including the 15-minute buffer to fall asleep. Early alarms reward the earlier options; four cycles before a 5 AM start makes for a hard day.

What time should I go to bed to wake up at 6:30 AM?

To wake at 6:30 AM, aim for roughly 9:15 PM (six cycles), 10:45 PM (five cycles), or 12:15 AM (four cycles). The 10:45 PM option is the realistic sweet spot for most evenings.

What time should I go to bed to wake up at 8 AM?

For an 8 AM wake-up, cycle-aligned bedtimes are about 10:45 PM (six cycles), 12:15 AM (five cycles), or 1:45 AM (four cycles), each with the 15-minute fall-asleep buffer built in.

What time should I go to bed to wake up at 4 AM?

For a 4 AM alarm, the cycle-aligned bedtimes are about 6:45 PM (six cycles), 8:15 PM (five cycles), or 9:45 PM (four cycles). Very early starts usually mean trading a cycle; if 6:45 PM is unrealistic, 8:15 PM with five cycles is the steadier pick.

How many sleep cycles do I need?

Most adults do well on five to six full cycles a night, which is roughly seven and a half to nine hours. Four cycles, about six hours, can work for a short night, but consistently short sleep adds up as sleep debt.

Why do I wake up groggy even after eight hours?

Length alone does not decide how you feel. If your alarm lands in the middle of a cycle, during deep sleep, you wake with sleep inertia: heavy, foggy, and slow even after a long night. Waking near the end of a cycle, in light sleep, usually feels clearer.

Small habits that make the timing work

A cycle-aligned wake time helps most when the rest of your evening cooperates. None of these are miracle cures; they are the boring things that reliably help.

Light

Dim the lights early

Bright light in the evening tells your brain it is still daytime and delays the melatonin that makes you sleepy. Drop the lighting an hour before bed and the 15-minute fall-asleep buffer becomes realistic instead of optimistic.

Temperature

Keep the room cool

Your core temperature has to fall a little for deep sleep to arrive. A cooler room, somewhere in the mid-60s Fahrenheit for most people, makes that drop easier than a warm one.

Routine

Anchor your wake time

Waking at the same time every day, weekends included, steadies your internal clock more than any single early night. A consistent wake time is what makes a calculator's bedtime suggestions land predictably.

Wind-down

Stop the doomscroll

The problem with the phone in bed is not only the light; it is the alertness. A racing mind pushes your real fall-asleep time well past 15 minutes, which throws every cycle that follows.

Light

Get morning light

A few minutes of daylight soon after waking is the strongest signal for setting your body clock. It makes the next night's bedtime easier to hit and the morning after that easier to wake from.

Caffeine

Watch the late caffeine

Caffeine has a long tail. A mid-afternoon coffee can still be in your system at bedtime, lengthening the time it takes to fall asleep even when you do not feel wired.

Habit

Save the bed for sleep

If you work, eat, and scroll in bed, your brain stops associating it with sleep. Keeping the bed for sleep makes drifting off faster, which keeps the buffer honest.

Alcohol

Rethink the nightcap

A nightcap helps you fall asleep faster but fragments the second half of the night and suppresses REM. The cycles still happen; they are just lower quality, so the timing helps less.

Who finds this useful

The math is the same for everyone, but the questions differ.

Late-night searchers

It is 11:47 PM and you want one number: if you sleep now, when should the alarm go off? The "going to bed now" mode answers that in a tap.

Early-alarm planners

You have to be up at 6 and want to know when to get into bed tonight. The "wake at a set time" mode lists every cycle-aligned bedtime.

Students

Early classes, late study sessions, and the constant temptation to trade sleep for time. Waking at a cycle boundary makes a short night a little less brutal.

Parents

The bedtime-by-age mode turns "what time should a 9-year-old go to bed?" into a clear list of bedtimes inside the recommended range for that age.

Shift workers

The clock label does not matter to the cycle math. Enter when you plan to sleep or wake and it works the same at 9 AM as at 9 PM.

Nappers

The nap timer keeps you on the two safe lengths, a 20-minute power nap or a full 90-minute cycle, and away from the groggy middle.

Gear that helps you sleep better

Light, noise, temperature, and darkness are among the biggest environmental influences on how fast you fall asleep and how well you stay asleep (Sleep Foundation). Each pick below targets one of them.

As an Amazon Associate, we earn from qualifying purchases. Links open Amazon search results, so they stay current if a product changes.

Sunrise alarm clock

Hatch Restore 3

A sunrise light that wakes you gradually, so the moment the calculator picks feels even gentler.

Find it on Amazon
White-noise machine

Yogasleep Dohm Classic

A fan-based sound that masks the small noises that stretch your fall-asleep time.

Find it on Amazon
Magnesium glycinate

Nature Made Magnesium Glycinate

A USP-verified magnesium. The sleep evidence is limited and mixed, so ask your doctor first.

Find it on Amazon
Weighted blanket

YnM Weighted Blanket

Even, gentle pressure that helps some people settle faster on restless nights.

Find it on Amazon
Sleep mask

Manta Sleep Mask

Contoured blackout with no pressure on your eyes, for day sleepers or rooms that are not truly dark.

Find it on Amazon
Cooling mattress topper

ViscoSoft Cooling Topper

A cooler surface helps your core temperature drop, which is part of how the body drifts off.

Find it on Amazon

Go deeper

Longer reads on the science behind the timing, each with its sources cited.

How long is a sleep cycle, really?

Why 90 minutes is an average, the real 70 to 120 minute range, and how cycles change across the night.

Read the guide

Why you wake up groggy: sleep inertia explained

What that heavy, foggy feeling actually is, why it happens, and how to wake through it faster.

Read the guide

The best bedtime to wake up at 6 AM

A clear bedtime table for 5, 6, 7, and 8 AM alarms, with the reasoning behind each.

Read the guide

Sleep needs by age: a bedtime chart

How much sleep children, teens, and adults actually need, with bedtimes worked out for common wake times.

Read the guide

Naps that work: 20 vs 90 minutes

The two nap lengths that leave you refreshed, the middle zone to avoid, and when to nap at all.

Read the guide

How to fall asleep faster

Practical, evidence-based ways to shrink the gap between lights-out and actually asleep.

Read the guide

Sleep debt: what it is and how to pay it back

The running gap between the sleep you need and the sleep you get, with a quick debt calculator and an honest recovery plan.

Read the guide

How much deep sleep do you need?

The honest numbers on deep sleep, where it falls in the night, and how to read what your watch calls core sleep.

Read the guide

How much REM sleep do you need?

Why REM concentrates late in the night, what it does, and what actually protects it.

Read the guide

How to fix your sleep schedule

A calm, gradual reset: 15 to 30 minutes at a time, anchored by a fixed wake time and morning light.

Read the guide

Can you sleep too much?

Why regularly sleeping past about nine hours is worth noticing, and what the research really shows.

Read the guide

How much sleep do you need?

Most adults need 7 to 9 hours, but your own number varies. How to find it instead of trusting a single rule.

Read the guide

Frequently asked questions

How long is a sleep cycle, really?

About 90 minutes on average, but individual cycles run roughly 70 to 120 minutes and shift through the night. The 90-minute figure is a useful estimate, not a fixed law.

Is 90 minutes exact?

No. It is an average. Cycle length varies by person and changes with age, alcohol, stress, and how tired you already are, so treat the calculator as a strong guide rather than a stopwatch.

How many sleep cycles do I need?

Most adults do well on five to six full cycles a night, which is roughly seven and a half to nine hours. Four cycles, about six hours, can work for a short night, but consistently short sleep builds up as sleep debt.

What time should I go to bed to wake up at 6 AM?

For a 6 AM alarm, cycle-aligned bedtimes are about 8:45 PM (six cycles), 10:15 PM (five cycles), or 11:45 PM (four cycles), each including a 15-minute buffer to fall asleep. Six cycles is the fullest night; four is the leaner option for a late evening.

When will I wake up if I go to sleep now?

Count forward in 90-minute cycles from when you actually fall asleep, adding about 15 minutes to drift off first. Switch the calculator to "going to bed now" and it lists the least-groggy wake times for your exact moment.

What is REM sleep?

REM is the stage where most vivid dreaming happens and the brain is highly active. REM periods grow longer across the night, with the final one sometimes lasting close to an hour.

Why do I wake up groggy even after eight hours?

Length alone does not decide how you feel. If your alarm lands in the middle of a cycle, during deep sleep, you wake with sleep inertia: heavy, foggy, and slow even after a long night. Waking near the end of a cycle, in light sleep, usually feels clearer.

Is it better to get less sleep but wake at the end of a cycle?

Often yes for that single morning, because you skip the worst of sleep inertia. But it is not a reason to cut sleep short night after night. Total sleep still matters for health and focus.

How long should a nap be?

Two lengths work best. A 20-minute power nap keeps you in light sleep so you wake refreshed. A full 90-minute nap completes one cycle so you wake at a light stage. The trap is the 30 to 60 minute range, which often drops you into deep sleep and leaves you groggy.

What time should a child go to bed?

It depends on age and the wake time. School-age children (6 to 13) need about 9 to 11 hours and teens about 8 to 10. Use the bedtime-by-age mode: pick the age band and the wake time, and it shows the cycle-aligned bedtimes that land inside that age's recommended sleep window.

How does this calculator handle night-shift or unusual schedules?

The cycle math is the same whatever the clock says: enter the time you plan to wake or the time you are going to sleep and it works in 90-minute cycles regardless of day or night. The harder part of shift work is light exposure and consistency, which the calculator cannot fix on its own.

Does everyone have the same cycle length?

No. Ninety minutes is a population average. Your own cycles may run shorter or longer and they change with age and across a single night, so use the Fine-tune option to set a cycle length that fits you if you know it.

How accurate is this calculator?

It is a solid estimate built on the average cycle length and a typical fall-asleep buffer. Because real cycles vary, use it as a starting point and adjust the buffer or cycle length if you know your own timing runs longer or shorter.

Does the calculator store my data?

No. The calculation runs entirely in your browser: the times you enter are never sent to a server. The site keeps only anonymous, cookieless page-view counts, and you never need an account.

What is sleep debt?

Sleep debt is the running gap between the sleep your body needs and the sleep it actually gets, added up night after night. It builds faster than most people expect and takes days of consistent, slightly longer nights to pay back, not one long weekend lie-in. Our sleep debt guide includes a quick calculator for it.