Time & duration calculator

Sleep Calculator

Work out the best time to fall asleep or wake up, based on complete 90-minute sleep cycles — so you wake at the end of a cycle, not in the middle of one.

Set your time

Pick a direction and a time. Results update instantly — no button needed.

We'll count backward in full sleep cycles to find your bedtime.

Recommended bedtime

10:46 PM
Total sleep
7h 30m
Sleep cycles
5

All options

What this sleep calculator does

This tool answers one of two questions: "If I need to be up by a certain time, when should I go to bed?" or "If I go to bed now, when should I set my alarm?" Instead of just subtracting or adding a flat 8 hours, it works in 90-minute sleep cycles — the length of one full pass through light sleep, deep sleep, and REM — so the times it suggests land at the end of a cycle rather than in the middle of one.

Enter a wake-up time or a bedtime, and it shows the recommended option at a glance, plus every other option from 3 to 6 full cycles, so you can trade off an earlier night against more sleep.

How to use it

Four quick steps — most people only ever touch the direction toggle and the time field.

  1. Choose a direction.Pick "I need to wake up at" if your alarm time is fixed, or "I'm going to bed now" if you want to know when to set it.
  2. Enter the time.Type or pick your wake-up time or bedtime. Both 12-hour and 24-hour input work.
  3. Check the fall-asleep buffer.It defaults to 14 minutes, a commonly cited average. Adjust it if you know you tend to fall asleep faster or slower.
  4. Read your options.The recommended time appears instantly, with the full list of 3–6 cycle options below it. Copy, print, or download the list.

How the times are calculated

Each option is a whole number of 90-minute cycles, plus the time it typically takes to fall asleep. Waking up at the boundary between two cycles — rather than partway through one — is when sleep is lightest, which is why the calculator only offers whole-cycle totals rather than an arbitrary duration.

Worked example · Wake up at 6:30 AM, 14-minute buffer
6 cycles = 540 min → bedtime 9:16 PM (9h 00m sleep)
5 cycles = 450 min → bedtime 10:46 PM (7h 30m sleep)
4 cycles = 360 min → bedtime 12:16 AM (6h 00m sleep)
3 cycles = 270 min → bedtime 1:46 AM (4h 30m sleep)

Why 5 or 6 cycles is the default recommendation

5–6 cycles works out to roughly 7.5–9 hours, which lines up with general sleep guidance for most adults. The calculator marks 5 cycles as its default recommended option, since it's the shortest span that still reaches a full night's rest — 6 cycles is shown alongside it for nights you can spend longer in bed.

The fall-asleep buffer

Nobody falls asleep the instant they lie down. The buffer — 14 minutes by default — accounts for that gap, so the bedtime shown is when to actually get into bed, not when you'll be asleep. If you tend to fall asleep faster or slower than average, adjust the field and every option recalculates.

Quick examples

Recommended bedtimes for common wake-up times, at the default 14-minute buffer and 5 sleep cycles (7h 30m).

Wake-up timeCyclesSleepRecommended bedtime
5:30 AM57h 30m9:46 PM
6:00 AM57h 30m10:16 PM
6:30 AM57h 30m10:46 PM
7:00 AM57h 30m11:16 PM
7:30 AM57h 30m11:46 PM

Setting the alarm once you have a bedtime? The online alarm clock can trigger at any of the wake-up options shown here. Need to shift a time by hours and minutes for a different reason — like an early flight or a shift change? The add & subtract time calculator handles that directly.

Who uses it, and for what

  • Anyone setting an alarm who wants to avoid waking up mid-cycle and starting the day groggy.
  • Shift workers figuring out a bedtime around an unusual start time — the hours calculator is the better fit for working out the shift itself.
  • Parents and caregivers planning a household's sleep and wake windows around a fixed morning routine.
  • Anyone jet-lagged or resetting their schedule, using the cycle options to find a workable bedtime in a new time zone.

If you just need the plain gap between two times rather than sleep-cycle guidance, the time duration calculator gives that answer directly.

Frequently asked questions

What is a sleep cycle, and why 90 minutes?

A sleep cycle is one full pass through light sleep, deep sleep, and REM, and back to a lighter stage again. It averages about 90 minutes for most adults, though it can range from roughly 70 to 120 minutes. The calculator uses 90 minutes as a practical average, not a measurement of your own cycles.

How many sleep cycles should I aim for?

Most adults do well with 5 to 6 full cycles — about 7.5 to 9 hours — which lines up with general sleep guidance for adults. The calculator marks 5 cycles as its default recommendation, with 6 shown alongside it for nights you can spend longer in bed.

Why do I wake up tired even after a full night's sleep?

Grogginess often comes from waking up mid-cycle, during a deep-sleep stage, rather than at the natural end of a cycle when sleep is lighter. Timing an alarm to land at the end of a complete 90-minute cycle is the idea behind this calculator.

Should I calculate from my wake-up time or my bedtime?

Use whichever is fixed. If you have a set alarm time, calculate backward from your wake-up time to find a bedtime. If you're about to go to bed and want to know when to set your alarm, calculate forward from your bedtime instead.

Does the same math apply to naps?

It can, though naps are usually planned differently. A short 20-minute nap avoids deep sleep and skips grogginess, while a full 90-minute nap completes one whole cycle. Waking 30–60 minutes in is the combination most likely to leave you groggy, since it typically lands mid-cycle.

Is the sleep calculator accurate for everyone?

It's a helpful estimate, not a medical measurement. Actual cycle length varies by person, age, and night, and factors like caffeine, stress, screens, or alcohol shift it further. Use the result as a starting point and adjust the buffer or bedtime based on how you feel.

Is it free, and is my data private?

It's completely free with no sign-up. The calculation runs entirely in your browser — your times are never uploaded or stored on a server.

About the author

Fletcher Langley
Time & Scheduling Specialist · 24hourto12hour.com

Operations and workforce-systems specialist with 14+ years inside shift-based industries and payroll platforms, and a BS in Industrial Engineering. Fletcher writes and reviews the calculators, converters, and guides here — from overnight-shift math to sleep-cycle scheduling — drawing on years spent translating between 12-hour, 24-hour, and military time for real schedules.

Written & reviewed by Fletcher Langley · Last updated: August 2026