If you’ve ever woken up after eight hours feeling worse than when you slept five, the problem may not be how long you slept — it’s when in your sleep cycle the alarm went off. Waking up in the middle of deep sleep is what makes you groggy. Waking at the end of a cycle feels easy.

This guide explains how sleep cycles work and how to pick a bedtime (or wake time) that lands you in the right place — and there’s a free calculator that does the math for you.

Free tool

Skip the math: the Sleep Cycle Calculator takes your wake-up time and shows your best bedtimes (or the reverse) in one tap.

What a sleep cycle actually is

Through the night, your brain moves through repeating cycles made up of light sleep, deep (slow-wave) sleep, and REM sleep. Each full cycle lasts roughly 90 minutes on average, and a typical night is four to six of them.

The key idea: at the end of each cycle you’re in light sleep, close to waking, so an alarm there feels gentle. In the middle of a cycle you’re often in deep sleep, and being yanked out of it produces “sleep inertia” — that heavy, foggy, hit-snooze feeling that can linger for 30 minutes or more.

So what time should you go to bed?

Work backward from when you need to wake up, in 90-minute blocks, and add the time it takes you to fall asleep (about 15 minutes for most people). For a 7:00 a.m. alarm, that points to bedtimes around:

  • 9:45 p.m. — 6 cycles, about 9 hours
  • 11:15 p.m. — 5 cycles, about 7.5 hours
  • 12:45 a.m. — 4 cycles, about 6 hours (fine in a pinch)

Most adults feel best on five to six cycles. The CDC recommends at least seven hours of sleep a night for adults, which lines up neatly with the five-cycle option.

Why this is a guide, not a stopwatch

Real cycles aren’t exactly 90 minutes — they range from about 70 to 120 and shift across the night, with more deep sleep early and more REM toward morning. How fast you fall asleep also changes with stress, screens, and caffeine. So treat the calculator’s times as smart starting points and adjust based on how you actually feel.

Tip

Caffeine has a half-life of about five hours, so an afternoon coffee can still be in your system at bedtime. Our Caffeine Clock estimates your personal cut-off time.

Building a wind-down that helps

Timing your alarm is only half of good sleep — the hour before bed matters just as much. A few low-effort habits that research consistently supports:

  • Dim the lights and screens in the last hour, since bright light delays melatonin.
  • Keep the room cool — a slightly cool bedroom supports deeper sleep.
  • Keep a consistent schedule, even on weekends, so your body clock stays steady.

Some people also build a simple supplement into their evening routine; if that’s you, we believe you should know exactly what’s in it and how much. That’s the whole idea behind our fully-disclosed labels — no proprietary blends, the elemental amount printed plainly.

Frequently asked questions

How long is one sleep cycle?
About 90 minutes on average, though it naturally ranges from roughly 70 to 120 minutes and changes through the night.
Is it better to get 6 hours or 7.5 hours of sleep?
More complete cycles is generally better, and most adults do best on 7 to 9 hours (about 5 to 6 cycles). Waking at the end of a cycle can feel easier than a longer sleep cut off mid-cycle, but consistently short sleep still builds a sleep debt.
Why do I wake up groggy even after enough sleep?
Often it’s “sleep inertia” from waking during deep sleep, or sleep that’s broken up by light, noise, caffeine, or alcohol. Aligning your alarm to the end of a cycle and improving sleep quality both help.

This article is general educational information, not medical advice. Ongoing trouble sleeping is worth discussing with a healthcare provider.