Free sleep calculator
Enter the time you need to wake up and this sleep calculator counts back in 90-minute sleep cycles — adding about 15 minutes to fall asleep — to suggest the best times to go to bed so you wake at the end of a cycle feeling refreshed, with every bedtime updated live, as you type.
On this page12 sections
Sleep cycle duration averages 90 minutes but varies by individual. These are estimates — listen to your body.
Results are estimates. Consult a professional.
What does a sleep calculator do?
A sleep calculator works backward from the time you need to wake up to find the bedtimes that let you finish whole 90-minute sleep cycles. Instead of guessing, you enter a single wake-up time and it returns a short list of ideal times to fall asleep — each one timed so your alarm lands at the end of a cycle rather than in the middle of deep sleep.
This calculator takes one input — your wake-up time — and returns four suggested bedtimes for 6, 5, 4, and 3 complete cycles. Each bedtime already includes about 15 minutes to fall asleep, so you can read the result straight off the screen. The idea is that waking at the end of a cycle, when sleep is lightest, feels far more refreshing than being jolted awake mid-cycle.
The 90-minute sleep cycle (how the calculator works)
Across the night your brain moves through repeating 90-minute sleep cycles, and most people complete four to six of them in a full night. Each cycle steps through lighter stages, into deep (slow-wave) sleep, and finally into REM sleep before looping back toward lighter sleep again.
Because sleep is lightest at the boundary between cycles, waking between cycles tends to feel easier than waking mid-cycle. The calculator uses that idea: it counts back from your wake-up time in 90-minute blocks, adds about 15 minutes to fall asleep, and shows you the bedtimes where the math works out.
A worked example using the sleep calculator
Maya sets her alarm for 07:00 and wants to know when to go to bed so she wakes at the end of a cycle. She enters 07:00 as her wake-up time and reads off the suggested bedtimes.
Step 1 — Enter your wake-up time
Maya types 07:00 into the wake-up field. That is the only input the calculator needs — everything else is worked out from it.
Step 2 — Count back whole cycles plus the fall-asleep buffer
For each option the calculator subtracts (cycles × 90) + 15 minutes from 07:00. Six cycles is 9 h 15 m before the alarm, which lands at 21:45; five cycles is 7 h 45 m, landing at 23:15; and so on down to three cycles.
Step 3 — Read off the suggested bedtimes
The calculator lists four bedtimes for a 07:00 wake-up, shown in 24-hour time:
| Cycles | Sleep | Suggested bedtime | In 12-hour time |
|---|---|---|---|
| 6 cycles | 9 h | 21:45 | 9:45 PM |
| 5 cycles | 7.5 h | 23:15 | 11:15 PM |
| 4 cycles | 6 h | 00:45 | 12:45 AM |
| 3 cycles | 4.5 h | 02:15 | 2:15 AM |
Suggested bedtimes for a 07:00 wake-up. Each already includes ~15 minutes to fall asleep, so the sleep column is cycles × 90 minutes.
How much sleep do you need by age?
How many cycles to aim for depends on how much total sleep your age group typically needs. The table below shows the recommended hours of sleep per 24 hours published by the U.S. Centers for Disease Control and Prevention (CDC), drawn from the consensus recommendations of the American Academy of Sleep Medicine (AASM).
| Age group | Age | Recommended sleep (per 24 h) |
|---|---|---|
| Newborn | 0–3 months | 14–17 hours |
| Infant | 4–12 months | 12–16 hours (incl. naps) |
| Toddler | 1–2 years | 11–14 hours (incl. naps) |
| Preschool | 3–5 years | 10–13 hours (incl. naps) |
| School age | 6–12 years | 9–12 hours |
| Teen | 13–17 years | 8–10 hours |
| Adult | 18–60 years | 7 or more hours |
| Adult | 61–64 years | 7–9 hours |
| Older adult | 65+ years | 7–8 hours |
Source: CDC, "About Sleep," reflecting AASM and AASM/Sleep Research Society consensus recommendations. Figures are general guidance for healthy people, not a prescription — individual needs vary.
For a healthy adult, 7 or more hours a night maps neatly onto the calculator's 5-cycle (7.5 h) or 6-cycle (9 h) options. Children and teens need more, which is why their cycle counts run higher. Treat these as targets to aim toward, not a diagnosis — if you regularly struggle to sleep, talk to a clinician.
Why waking between cycles beats waking mid-cycle
Ever woken up after a short nap feeling worse than before? That groggy, heavy feeling is often sleep inertia — the disorientation that comes from being pulled out of deep sleep before a cycle finishes. Waking at the end of a cycle, when sleep is lightest, usually feels much easier.
- End of a cycle = light sleep. Your alarm has less deep sleep to fight through, so waking feels smoother.
- Mid-cycle = deep sleep. Being woken during slow-wave sleep is what produces the worst morning grogginess.
- Total hours still matter most. Timing helps you wake more gently, but it does not replace getting enough sleep overall.
This is why a longer night isn't always the better one: waking after 6 complete cycles can feel fresher than waking partway through a 7th. The calculator's job is to put your alarm on a cycle boundary — but the bigger lever is still hitting the recommended total for your age.
Sleep hygiene tips that help you hit your bedtime
Knowing your ideal bedtime only helps if you can actually fall asleep near it. "Sleep hygiene" is the set of habits that make falling — and staying — asleep easier. These are widely recommended by the Sleep Foundation, CDC, and sleep clinicians:
- Keep a consistent schedule. Go to bed and wake up at about the same time every day, including weekends — it reinforces your body clock.
- Watch caffeine timing. Caffeine can disrupt sleep for hours; many people avoid it from early afternoon onward.
- Make the room cool, dark, and quiet. A bedroom around 65–68°F (about 18–20°C) suits most sleepers.
- Build a wind-down buffer. Give yourself 30–60 device-free minutes before bed; screens emit blue light and keep the mind switched on.
- Get daylight and movement. Natural light during the day and regular exercise (not right before bed) both help you feel sleepy at night.
Common sleep calculator questions
How long is one sleep cycle?
About 90 minutes on average, though it varies by person and across the night. This calculator uses 90 minutes per cycle and assumes you complete several cycles back-to-back from when you fall asleep to when you wake.
Why does the calculator add 15 minutes?
Because almost no one falls asleep the instant their head hits the pillow. The calculator adds a 15-minute fall-asleep buffer to each bedtime, so the suggested time is when to get into bed, not when to already be asleep. If you usually take longer to drift off, aim for the earlier end of the range.
Is it better to wake at the end of a cycle?
Generally, yes — waking when sleep is lightest, at the end of a cycle, tends to reduce the groggy sleep-inertia feeling. But total sleep still matters most. A well-timed but too-short night will leave you more tired than a slightly longer one with enough hours.
How this calculator works and sources
This sleep calculator works backward from your wake-up time using a 90-minute cycle length and a 15-minute fall-asleep buffer, returning bedtimes for 6, 5, 4, and 3 complete cycles. All the arithmetic runs in your browser — nothing is sent anywhere. The cycle model is a widely used average; the recommended-sleep-by-age figures come from the CDC and the American Academy of Sleep Medicine, and the sleep-hygiene guidance reflects standard advice from the Sleep Foundation and clinical sources. This page is informational and is not medical advice.
CDC — About Sleep: recommended hours of sleep by age group.American Academy of Sleep Medicine — Recommended Amount of Sleep for Pediatric Populations (consensus statement).Sleep Foundation — How Much Sleep Do We Really Need?Sleep Foundation — Mastering Sleep Hygiene: Your Path to Quality Sleep.Frequently asked questions about the free sleep calculator
About this sleep calculator
This sleep calculator runs entirely in your browser. It takes one input — your wake-up time — and counts back in 90-minute cycles plus a 15-minute fall-asleep buffer to suggest bedtimes for 6, 5, 4, and 3 complete sleep cycles. Nothing is sent to a server and no data is stored.
It's part of our everyday calculators shelf — browse the full set on the all calculators page for more time, date, and daily-life tools.