Sleep Calculator

Global tools

A sleep cycle averages about 90 minutes, and waking during a light phase feels better than waking mid-cycle. That is the whole defensible claim behind this page: pick when you need to be up and it counts back full cycles to the bedtimes to try, or pick a bedtime and it shows when the end of each cycle lands.

Choose whether the fixed time you already have is your alarm, or the moment you get into bed.

The hour your alarm is set for, in 24-hour time. Any hour of the day counts - a 15:00 alarm or a 02:30 one works the same way.

Minutes past that hour for the alarm.

Leave blank to name the files sleep-plan.txt and .csv.

Results update as you type. Nothing leaves your device.

Go to sleep at

23:30

To wake at 07:00, count back 7.5 hours and fall asleep at 23:30.

Wake time
07:00
Full cycles
5 (7.5 hours)
Cycle length (average)
90 minutes

The night this plan describes

Wake time
07:00
Cycle length (average)
90 minutes
Full cycles
5
Hours of sleep
7.5 hours

Bedtimes that end a full cycle before 07:00

BedtimeCyclesHours asleep
05:301 full cycle1.5 hours
04:002 full cycles3 hours
02:303 full cycles4.5 hours
01:004 full cycles6 hours
23:305 full cycles7.5 hours

Each row is a whole number of 90-minute cycles counted back from the wake time. Pick the one that gives you the hours you need; the hero shows the usual five.

What this schedule is, and is not

  • A 90-minute cycle is a population average. Actual cycles run 70 to 110 minutes and change through the night, so the bedtimes are targets, not guarantees.
  • Five cycles is the option most adults have time for - a 7.5-hour night - not the amount you are supposed to sleep.
  • "Go to sleep at" is not the same as "get into bed at". Add your usual time to fall asleep.
  • Waking during a light phase does feel better than waking mid-cycle, which is why this timing exists; it cannot make up for chronic sleep loss.
This page does clock arithmetic on a population average. It is not medical advice, and it is not a treatment for ongoing poor sleep.

The page prints the surrounding options rather than one time, because 90 minutes is an average - real cycles run from about 70 to 110 minutes and change through the night. None of this is advice about how much sleep you need; it is clock arithmetic about when to aim for.

About this sleep calculator

Cycles, not hours, are what this page times: it works in roughly 90-minute blocks and shows the bedtimes or wake times that land at the end of one, because waking from a light phase feels different from waking out of deep sleep.

Nothing you type is uploaded here: the bedtime or alarm is handled by a small fixed calculation that runs in your browser, so no night of sleep is recorded anywhere but your own device. The 90-minute figure is a population average - real cycles run from about 70 to 110 minutes and change through the night - so the page prints the neighboring options instead of one promised time.

This page cannot repay a sleep debt, treat ongoing poor sleep, or know how long you take to fall asleep, and it will not invent the number of hours you need, because that varies by age, genetics and recent history. Use the times as targets to aim at. If you are unsure whether you are getting enough sleep, a clinician or a sleep assessment is the honest next step.

What it can do is narrow. It turns "I have to be up at 7" into a handful of bedtimes, and it shows where the cycle boundaries fall if you are already going to bed. That is clock arithmetic on an average, offered plainly, with the spread left visible so you can choose rather than obey. Anyone looking for a diagnosis or a guaranteed fix is in the wrong place, and the page would rather say so than keep them reading.

How this sleep calculator works

The 90-minute cycle, and why waking matters

Through the night the brain moves through light sleep, deep sleep and REM roughly every 90 minutes. Waking in the middle of deep sleep leaves you groggy in a way waking from a light phase does not, which is why the timing is about the phase, not the hour.

Actually measuring your phases takes a sleep study or a decent tracker. This page works from the average instead, which is why it offers a spread of times rather than a single promised one.

The architecture is not uniform across the night either. Early cycles carry more deep sleep, and the later ones carry longer REM periods, which is why a short night can cost more than its missing hours suggest: the part that gets cut is often the part that was doing the emotional processing. A cycle boundary is a better place to be woken than the middle of one, but no boundary can replace the cycles that were never there.

Counting back from the alarm

The arithmetic is subtraction in 90-minute steps. If you need to be up at 7:00, five full cycles is 7 hours 30 minutes of sleep, so a bedtime of 23:30 ends a full cycle right on 7:00. The table shows the other options too - four, three, two cycles - because five may be more or less than you need.

Nothing makes the five-cycle row special. It is simply the option most adults have time for, and the page says so rather than presenting it as the amount you are supposed to sleep.

The one subtraction the page cannot do for you is sleep onset. The clock arithmetic treats the bedtime as the moment sleep starts, and for most people that is ten to thirty minutes early. If you take twenty minutes to fall asleep, count back twenty minutes further than the hero suggests; otherwise the alarm lands twenty minutes into a cycle rather than at the end of one.

It also helps to treat the bedtime as a range rather than a deadline. Aiming for a boundary and landing ten minutes either side is fine; what defeats the method is treating 23:30 as an appointment that failed if you got into bed at 23:40. The cycles move with you, and the point is the phase, not the printed minute.

Counting forward from the bedtime

The reverse direction adds the same 90 minutes. If you fall asleep at 23:15, the ends of full cycles land at 0:45, 2:15, 3:45, 5:15 and 6:45 - so an alarm at 6:45 ends the fifth cycle rather than cutting into the middle of the sixth.

Again the caveat: these are averages. If your cycles run short or long, every time on the page shifts; that is why the list shows the whole spread.

The reverse arithmetic adds the same 90 minutes per cycle, so each suggested wake time lands exactly one whole cycle later than the last. Showing the whole run matters because the point of the tool is to land on a cycle boundary, and a time that falls inside the middle of a cycle defeats it - the list lets you pick a boundary you can actually wake at.

This direction is the more forgiving of the two, because it does not ask you to be asleep by a particular minute. If you get into bed late and cannot sleep, the list still tells you where the cycles would fall if you did; if you fall asleep at a different hour, you can type that hour and get a fresh list. A plan that can be recalculated in ten seconds is more likely to be used than one that requires a decision in advance.

What timing cannot do

A clever bedtime cannot repay a sleep debt, and it is not a treatment for ongoing poor sleep. Consistent timing and enough total hours matter more than which phase an alarm lands on.

The page also cannot know how long it takes you to fall asleep. "Go to sleep at" is not "get into bed at": if you usually take 15 or 20 minutes, move the target earlier by that much.

The timing works only if you actually fall asleep near the bedtime, and the page cannot measure for you how long settling in takes, so it asks you to shift the target by your own usual settle-in time. It is equally helpless against sleep debt, which a particular bedtime cannot repay - consistent timing and enough total hours remain the stronger lever, and this page only tries to aim them at a gentler place.

Sleep debt is also not a bank account in the simple sense: an hour lost on Tuesday is not repaid by an hour gained on Saturday, and a long weekend lie-in can shift the body clock later in a way that makes Sunday night harder. The cycle timing on this page has nothing to say about that, and pretending it could would be the most tempting lie a sleep calculator can tell.

Naps, shifts and unusual schedules

The same 90-minute arithmetic works in the daytime, with one difference that matters: a nap long enough to complete a cycle can leave you groggy on waking simply because you came out of deep sleep with no sleep pressure left to carry you through the afternoon. Twenty to thirty minutes - too short to enter deep sleep - is the usual compromise, and it is deliberately not a cycle boundary.

Shift work is where the average breaks down most visibly. A body asked to sleep from 09:00 to 17:00 is fighting its own clock, so the phases arrive differently and the 90-minute figure is a rough shape rather than a schedule. The page will still count cycles around any bedtime you type, and the numbers will be internally consistent; whether the plan matches your physiology is a question the arithmetic cannot answer.

What the page does offer in these cases is a way to avoid one specific mistake: waking in the middle of deep sleep when you had a choice. That is a real improvement for a nap or a shifted night, and it is a small one. Everything else - light exposure, caffeine timing, room temperature, consistency across days - sits outside this tool and matters more.

What waking up actually feels like

Sleep inertia is the name for the fog that follows waking, and it is worst when you are pulled out of deep sleep. It usually clears within fifteen to thirty minutes, but during that window you are not the judge of your own alertness, which is why a wake-up that feels terrible can still be a normal one. The cycle timing tries to reduce how often that happens, not to eliminate it.

The feeling also depends on what you are waking into. A dark room, a cold morning and an alarm tone chosen in a hurry all make a well-timed wake-up feel worse than it is, and none of them are things a calculator can see. If the plan is right and the mornings still feel wrong, the next thing to change is the environment rather than the arithmetic.

One honest limit: a person who is chronically short of sleep will feel bad on waking no matter where the alarm falls. Cycle timing is a refinement for someone whose sleep is roughly adequate; it is not a substitute for sleeping enough, and it will not rescue a schedule that gives you six hours a night.

Why the page asks for a bedtime, not a duration

A duration is the number most people think in - eight hours, seven and a half - but it is not the number the clock can act on. Given a duration, a calculator still has to choose a start or an end before it can print anything, and the choice is exactly what this page asks you to make explicitly.

The two directions exist because people arrive with different fixed points. If the alarm is fixed by work or school, count back. If the bedtime is the only thing you control, count forward. Asking which one is fixed is a more useful question than asking how many hours you want, because it makes the constraint visible instead of hiding it inside an assumption.

There is also a practical reason: a page that takes a duration and returns a single bedtime looks more certain than the arithmetic allows. Showing the spread - four, five, six cycles, and the neighboring minutes - is a way of admitting that the 90-minute average is an average, and of giving you the information to choose rather than a number to obey.

Worked examples

Each example below was run through the calculator on this page when the site was built, so the numbers match what you see when you enter the same inputs.

Up at 7:00, five cycles

What would you like to plan?: I need to be up at a set time · Wake-up hour: 07 · Minutes past the hour: 00

Go to sleep at

23:30

To wake at 07:00, count back 7.5 hours and fall asleep at 23:30.

Wake time: 07:00 · Full cycles: 5 (7.5 hours) · Cycle length (average): 90 minutes · Wake time: 07:00

Five 90-minute cycles is 7.5 hours, so the count-back suggests falling asleep around 23:30.

Up at 6:30 instead

What would you like to plan?: I need to be up at a set time · Wake-up hour: 06 · Minutes past the hour: 30

Go to sleep at

23:00

To wake at 06:30, count back 7.5 hours and fall asleep at 23:00.

Wake time: 06:30 · Full cycles: 5 (7.5 hours) · Cycle length (average): 90 minutes · Wake time: 06:30

The same five cycles from 6:30 puts the bedtime around 23:00 - a row lower in the table.

Falling asleep at 23:15

What would you like to plan?: I am going to bed now · Hour you are going to bed: 23 · Minutes past the hour: 15

Wake at the end of a cycle

06:45

If you fall asleep at 23:15, 7.5 hours of sleep ends a full cycle at 06:45.

Cycle length (average): 90 minutes · Full night: 7.5 hours of sleep · Bedtime: 23:15 · Cycle length (average): 90 minutes

Ends of full cycles land at 0:45, 2:15, 3:45, 5:15 and 6:45; the usual five-cycle option is 6:45.

An early night at 22:00

What would you like to plan?: I am going to bed now · Hour you are going to bed: 22 · Minutes past the hour: 00

Wake at the end of a cycle

05:30

If you fall asleep at 22:00, 7.5 hours of sleep ends a full cycle at 05:30.

Cycle length (average): 90 minutes · Full night: 7.5 hours of sleep · Bedtime: 22:00 · Cycle length (average): 90 minutes

The same cycle math from 22:00 pushes the five-cycle wake time to 5:30.

A 6:00 alarm with a 20-minute settle-in

What would you like to plan?: I need to be up at a set time · Wake-up hour: 06 · Minutes past the hour: 00

Go to sleep at

22:30

To wake at 06:00, count back 7.5 hours and fall asleep at 22:30.

Wake time: 06:00 · Full cycles: 5 (7.5 hours) · Cycle length (average): 90 minutes · Wake time: 06:00

Five cycles back from 6:00 is 22:30 on the page; if you usually take 20 minutes to fall asleep, get into bed at 22:10 and let the cycle start when sleep does.

Going to bed after a night shift

What would you like to plan?: I am going to bed now · Hour you are going to bed: 09 · Minutes past the hour: 00

Wake at the end of a cycle

16:30

If you fall asleep at 09:00, 7.5 hours of sleep ends a full cycle at 16:30.

Cycle length (average): 90 minutes · Full night: 7.5 hours of sleep · Bedtime: 09:00 · Cycle length (average): 90 minutes

From 09:00 the fifth cycle ends at 16:30. The arithmetic is identical; whether your body will treat 09:00 as night is a different question.

Frequently asked questions

What time should I go to bed?

Count back in 90-minute cycles from the time you need to wake. For a 7:00 alarm, five cycles means falling asleep around 23:30; the table on this page shows four, three and two-cycle options too. Cycle length is an average, so treat the times as targets, not guarantees.

Is a sleep cycle really 90 minutes?

On average, yes - and the spread is real. Individual cycles run from about 70 to 110 minutes and change through the night, which is why this page prints a spread of times instead of promising one. A sleep tracker or study measures your actual phases; this page works from the average.

Why do I feel worse when I wake mid-cycle?

Waking out of deep sleep leaves the brain still mostly "asleep", which shows up as grogginess that can last a while. Waking during a lighter phase feels kinder because the brain is already close to waking. This is exactly what the cycle timing is trying to line up with.

How many hours of sleep do I need?

This page will not invent that for you: needs vary by age, genetics and recent sleep history, and no calculator can measure yours. It times the sleep you are planning to get. If you are unsure whether you are getting enough, a clinician or a sleep assessment is the honest next step.

Does it matter if I wake up 10 minutes early or late?

Not much, and chasing minutes on a calculator is a sign you are over-precisioning a population average. Aim for the nearest cycle boundary, let the spread on the page be your range, and put the effort into consistent timing and enough total hours.

Can I use it for a nap?

You can, but read the output differently. A nap that completes a full 90-minute cycle can leave you groggier than a 20-minute one, because you come out of deep sleep with no sleep pressure left. For a short nap, ignore the cycle boundaries on this page and set a timer for 20 to 30 minutes instead.

Why five cycles rather than eight hours?

Because five cycles is 7.5 hours and that is the option most adults can actually fit on a work night - not because 7.5 is a target. Eight hours happens to be 5.33 cycles, which is why a plan built strictly on cycles and a plan built strictly on hours disagree by about half an hour. Either is a reasonable aim; the cycle version just tells you where the boundaries fall.

Should I set my alarm for the end of a cycle?

If your sleep is roughly adequate, it can help on the mornings that matter. It cannot fix a night that was too short, and it should not become a reason to delay going to bed. Set the alarm for when you need to be up, choose a bedtime that puts a boundary near it, and let the boundary be a nice-to-have rather than the point of the exercise.

Assumptions and sources

  • Sleep-cycle length and the alternating structure of NREM and REM sleep: standard sleep-physiology references describe an adult cycle of roughly 90 minutes that shortens and lengthens across the night - the basis but not the certainty behind a 90-minute count-back.
  • Consensus sleep guidance from the US National Sleep Foundation and UK NHS: adults generally need 7-9 hours, waking refreshed matters more than a magic hour, and consistent timing beats a clever bedtime.
  • The page prints the neighboring options rather than one promised bedtime, because a 90-minute average is not a promise.

Last reviewed 2026-09-25. Not a medical device and not a diagnosis; talk to a clinician. Read the full disclaimer.

Where a figure on this page comes from an official agency — HUD, IRS, FICO or a state body — the site keeps a dated snapshot of the source page in its sources library, and a scheduled job re-checks that snapshot, so the number can be traced back to the document it came from.