What this sleep calculator does
Great sleep isn't only about how many hours you get โ it's about when in your sleep cycle you wake up. This calculator works out the best times to fall asleep or wake up so your alarm lands at the natural end of a 90-minute sleep cyclerather than in the middle of deep sleep, which is what leaves you groggy. Tell it when you need to wake up, and it counts backward to ideal bedtimes; or tell it when you're going to bed, and it counts forward to ideal wake times.
Why 90-minute cycles matter
Throughout the night you move through repeating cycles โ light sleep, deep sleep, and REM (dream) sleep โ each lasting roughly 90 minutes. Waking at the end of a cycle, when you're already in light sleep, feels effortless. Waking mid-cycle, especially out of deep sleep, triggers "sleep inertia": that heavy, disoriented feeling that can linger for 30 minutes or more. Timing your sleep in whole cycles is a simple way to wake up feeling human.
How many cycles should you aim for?
Most adults do best with 5 to 6 complete cyclesโ about 7.5 to 9 hours of sleep โ which is why those options are highlighted as recommended. Four cycles (6 hours) can work occasionally but isn't enough long-term for most people, and consistently getting three or fewer leads to a building "sleep debt" that harms mood, focus, and health.
Beyond timing: better sleep habits
Cycle timing helps, but the foundations matter more: keep a consistent schedule (even on weekends), avoid screens and caffeine before bed, keep your room cool and dark, and get some daylight in the morning to anchor your body clock. If you're also chasing fitness goals, it's worth knowing that poor sleep raises hunger hormones and undermines fat loss โ pair good sleep with our calorie deficit calculator for the best results, and read more in our guide on how sleep affects weight loss.