Free web tool · no sign-up

Sleep calculator: what time should I go to bed?

Pick the time you need to wake up and how long you usually take to fall asleep. The calculator counts backwards through full 90-minute sleep cycles, so the alarm lands at the end of a cycle instead of the middle of deep sleep.

Go to bed at one of these times:

  • 12:45 AM4 cycles · 6 h asleep · short — expect some debt
  • 2:15 AM3 cycles · 4 h 30 min asleep · a last resort, not a plan

Times assume ~90-minute sleep cycles plus the fall-asleep buffer you chose. Real cycles vary from person to person — the Hespera app learns yours from your mornings.

How the numbers are made

What this sleep calculator actually does.

  1. 01

    Start from your wake-up time

    The calculator counts backwards from the morning you need, not forwards from an arbitrary bedtime. That is how sleep actually gets planned.

  2. 02

    Count in full sleep cycles

    A night is built from roughly 90-minute cycles of light, deep and REM sleep. Waking at the end of a cycle usually feels far better than being pulled out of the middle of one.

  3. 03

    Add the time you take to fall asleep

    Getting into bed and falling asleep are different moments. Most people need 10–20 minutes; stress and late caffeine stretch it further. The calculator adds this buffer for you.

  4. 04

    Pick the row that fits tonight

    5–6 cycles (7.5–9 hours) suits most adults. The shorter rows exist for honest nights when the full amount is not available — they show the cost instead of hiding it.

Quick reference

Bedtimes for common wake-up times.

Assuming about 15 minutes to fall asleep. Use the calculator above to adjust either number for your own night.

Wake up atBedtime for 9 h (6 cycles)Bedtime for 7.5 h (5 cycles)
5:30 AM8:15 PM9:45 PM
6:00 AM8:45 PM10:15 PM
6:30 AM9:15 PM10:45 PM
7:00 AM9:45 PM11:15 PM
7:30 AM10:15 PM11:45 PM
8:00 AM10:45 PM12:15 AM

Beyond the average person

Your night is not a formula. The app knows that.

A web calculator has to assume an average sleeper. The Hespera iPhone app runs the same countdown on the day you actually had — coffee and its timing, naps, stress, screens, exercise — then hands you a lights-out target, a wake window and a caffeine cutoff, and keeps a ledger of the sleep debt you are carrying. No wearable needed.

Download on theApp Store
caffeine cutoffwake windowsleep debt ledgerenergy forecastnight historywind-down timing

FAQ

Sleep calculator questions, answered.

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

For a 6:00 AM alarm, go to bed around 8:45 PM for six full sleep cycles (9 hours) or around 10:15 PM for five cycles (7.5 hours), assuming you take about 15 minutes to fall asleep. If you need less winding down, shift those times later by the difference.

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

For a 7:00 AM alarm, a bedtime around 9:45 PM gives you six sleep cycles (9 hours) and around 11:15 PM gives you five cycles (7.5 hours), including roughly 15 minutes to fall asleep.

How many sleep cycles do I need per night?

Most adults do best on five to six full cycles, which is 7.5 to 9 hours of actual sleep. Four cycles (6 hours) is survivable occasionally but builds sleep debt; three cycles is an emergency measure, not a schedule.

Are sleep cycles really exactly 90 minutes?

No — 90 minutes is a good average, but real cycles run roughly 80 to 110 minutes and change through the night and between people. That is why this calculator gives you options rather than one “perfect” minute, and why the Hespera app refines the estimate using your own mornings.

Is 6 hours of sleep enough?

Six hours is four full cycles — enough to function, not enough to stay level for long. Most people running on 6 hours accumulate sleep debt across the week and feel it as an afternoon crash. Treat the 4-cycle row as a fallback, not a target.

Why does the calculator ask how long I take to fall asleep?

Because bedtime and sleep time are not the same number. If you get into bed at 11:00 PM but drift off at 11:20, every cycle is shifted 20 minutes. Adding your usual sleep latency keeps the wake-up maths honest.

What does the Hespera app add over this web calculator?

The web version assumes an average person. The iPhone app runs the same countdown on your actual day — the caffeine you drank and when, naps, stress, screens and exercise — then gives you a lights-out target, a wake window and a caffeine cutoff, and tracks sleep debt over time. No wearable needed.