Calculator

What time should I go to bed?

Give the calculator your alarm time. It works backwards in 90-minute cycles, subtracts the time you usually need to fall asleep, and returns bedtimes that end on a cycle boundary.

Bedtime calculator

Runs in your browser

Go to bed at one of these times (Adult (18–64 years) · 7–9 h recommended)

  • 9:15 PM6 cycles · 9 hr asleep
  • 10:45 PM5 cycles · 7 hr 30 min asleepBest fit
  • 12:15 AM4 cycles · 6 hr asleep
  • 1:45 AM3 cycles · 4 hr 30 min asleep

These times are when your head should hit the pillow, not when you get into bed. Each is set 15 minutes before your target fall-asleep time so the alarm lands at the end of a complete cycle.

How that night is built

55%Light — 4 hr 8 min
20%Deep — 1 hr 30 min
25%REM — 1 hr 52 min

Approximate distribution for 5 cycles. Deep sleep clusters in the first half of the night, REM in the second, which is why cutting the last 90 minutes costs more REM than deep sleep.

How the calculation actually works

Three numbers go into every result: your wake time, the number of complete cycles you want, and your sleep-onset latency — the minutes between getting into bed and actually being asleep. Everything else is arithmetic.

bedtime = wake time − (cycles × 90 minutes) − latency. With a 6:30 AM alarm, a five-cycle target and 15 minutes of latency, that lands on 10:45 PM. Six cycles gives 9:15 PM, four gives 12:15 AM. The starred option is the one matching your selected age group, because a fifteen-year-old needs a longer night than a forty-five-year-old.

The subtraction is deliberately done from the alarm backwards rather than from "now" forwards. A bedtime you choose is a commitment; a wake time you choose is usually imposed by a job, a school run or a train. Working from the fixed end produces a schedule you can actually keep.

Four steps, in the order that matters

  1. Enter the time the alarm will actually go off, not the time you would like it to. If you hit snooze twice, that is fifteen minutes of your night gone and it is not in the model.
  2. Pick the number of cycles that fits the night you have, not the night you wish you had. Five is the adult default. Six is for recovery. Four is a short night, and it should be the exception.
  3. Set the latency honestly. Most people take longer than they think — somewhere between fifteen and thirty minutes. If you read in bed, your latency includes the reading.
  4. Choose the bedtime closest to your current routine and move it in fifteen-minute steps over a week, rather than jumping to the perfect number tonight.

The order matters because latency is the number people get wrong, and it is the one that quietly invalidates an otherwise sensible plan. A bedtime that assumes five minutes to fall asleep when you actually take thirty-five does not protect the cycle boundary at all — it just moves you into the middle of one.

What a sleep cycle actually is

A cycle is one descent through the stages of non-REM sleep and back up into REM, and it repeats roughly every ninety minutes across the night. The first cycles are deep-sleep heavy; the later ones are lighter and dominated by REM. That asymmetry is why the same total sleep can feel completely different depending on where the alarm lands.

Deep sleep is concentrated in the first third of the night, which is why a very early alarm cuts the most restorative part of sleep. REM accumulates towards morning, which is why a late alarm interrupts dreaming and often leaves you feeling oddly unrefreshed despite a long night. Neither is a defect in the schedule; both are a reason to plan around the boundary rather than the clock face.

Ninety minutes is an average, not a constant. Laboratory recordings show cycles running from roughly seventy to a hundred and ten minutes between people, and varying within the same night. A calculator that uses a flat 90 is approximating — usefully, but approximately. If you want the fuller picture, the guide to the ninety-minute cycle goes through the evidence and where the number came from.

How many hours the result should give you

The number of cycles is a scheduling unit. The number of hours is a health question, and it has a floor. Adult guidance from the American Academy of Sleep Medicine and the Sleep Research Society sits at seven hours or more; the National Sleep Foundation range is seven to nine. Five cycles gives 7.5 hours, which sits inside both. Four cycles gives six, which does not.

Cycles, hours and who they suit. Latency is separate and must be added on top.
CyclesTime asleepWho it fits
46 h 00A one-off late night, not a weekly pattern
57 h 30The adult default — inside the recommended range
69 h 00Recovery after illness, travel or a run of short nights
710 h 30Rarely needed by adults; common in adolescence

If your schedule only allows four cycles most nights, the problem is not the calculator — it is the schedule. The sleep debt page will show what a fortnight of six-hour nights accumulates to, which is usually more persuasive than a general warning about sleep.

Worked examples for the alarms people actually use

Assume fifteen minutes to fall asleep. These are the numbers the calculator returns, and they are worth checking against your own routine before you trust any of them.

Bedtimes for four common alarms, at 15 minutes latency.
Alarm6 cycles (9 h)5 cycles (7.5 h)4 cycles (6 h)
5:30 AM8:15 PM9:45 PM11:15 PM
6:30 AM9:15 PM10:45 PM12:15 AM
7:00 AM9:45 PM11:15 PM12:45 AM
8:00 AM10:45 PM12:15 AM1:45 AM

Two things jump out of that table. The first is how early a genuine six-cycle night starts — a 9:15 PM bedtime for a 6:30 AM alarm is not compatible with an evening that includes cooking, chores and an hour of screens. The second is that the difference between five and six cycles is ninety minutes, which is exactly the size of habit change most people can manage in a week.

A bedtime chart for every half hour from 5 to 9 AM

For the alarms that do not fit the four above, this is the same arithmetic across the morning. Latency is still fifteen minutes; add ten minutes to each bedtime if you take twenty-five.

Five-cycle bedtimes (7.5 hours asleep) by alarm time.
AlarmBedtimeAlarmBedtime
5:00 AM9:15 PM7:30 AM11:45 PM
5:30 AM9:45 PM8:00 AM12:15 AM
6:00 AM10:15 PM8:30 AM12:45 AM
6:30 AM10:45 PM9:00 AM1:15 AM
7:00 AM11:15 PM9:30 AM1:45 AM

Bedtime by age group

Sleep need falls through childhood and flattens in adulthood, then narrows slightly in later life. The calculator changes its recommended cycle count with the age group you pick; the table below shows what those recommendations are built on.

Recommended sleep in 24 hours and the equivalent cycle count.
AgeRecommendedCyclesPractical bedtime for a 7 AM alarm
6–12 years9–12 h6–88:15–9:45 PM
13–18 years8–10 h5–79:45–11:15 PM
18–64 years7–9 h5–69:45–11:15 PM
65+7–8 h510:15–11:15 PM

The teenage row is the one that causes the most household friction. Adolescent circadian timing genuinely shifts later, so a sixteen-year-old told to sleep at 9:45 PM is being asked to fall asleep at a biological mid-afternoon. The workable version is a fixed wake time, an early dose of daylight and a bedtime that lands as early as their clock will actually allow.

Six mistakes that make a good bedtime fail

  • Using lights-out as the latency. If you read or watch something in bed for half an hour, your sleep onset is thirty minutes after the reading, not after you lay down.
  • Ignoring drift. A bedtime that works on Monday is not automatically right on Friday if you have been sliding later all week — the clock moves, the alarm does not.
  • Chasing an exact minute. Ten minutes either side of a boundary is inside the noise. The aim is to avoid the middle of a cycle, not to hit a target.
  • Treating the calculator as a cure for a racing mind. Arithmetic does not shorten the time it takes to switch off; only the wind-down before it does.
  • Compensating with a long lie-in. Sleeping until eleven on Saturday moves the clock later and makes Sunday night harder than the week did.
  • Ignoring the room. A warm bedroom, a bright window and a phone on the nightstand will beat a well-calculated bedtime most nights of the week.

What to do tonight

  1. Write down tomorrow's real alarm time, including the snooze you know you will take.
  2. Set the latency to twenty minutes unless you have evidence it is shorter.
  3. Pick the five-cycle option if it is within an hour of your current bedtime; otherwise pick the closest option and plan to move it earlier by fifteen minutes a night.
  4. Set one alarm for the morning and put the phone across the room. The best bedtime in the world is undone by a phone within reach at 6 AM.
  5. Tomorrow evening, note how long you took to fall asleep. That single number improves every future calculation more than any other change.

The words people use when they talk about this

  • Sleep-onset latency — the minutes from getting into bed to being asleep. Normal is roughly ten to twenty minutes; consistently over thirty is worth investigating.
  • Sleep inertia — the grogginess on waking, usually fifteen to thirty minutes, longer when you are pulled out of deep sleep.
  • Cycle boundary — the moment a cycle ends and the next begins, typically a lighter stage of sleep and the easiest point to wake from.
  • Chronotype — your biologically preferred timing, which sets how easily a given bedtime will work.
  • Social jet lag — the gap between your weekday and weekend sleep timing, which behaves like a small weekly time-zone change.

Myths worth dropping

  • Myth: eight hours is the target for everyone. Fact: the range is seven to nine for most adults, and the right number is the one that leaves you functional without an alarm.
  • Myth: you can train yourself onto five hours. Fact: a small number of people are genuine short sleepers; most who believe they are show degraded attention when tested.
  • Myth: a nightcap helps you sleep. Fact: alcohol shortens the time to fall asleep and then fragments the second half of the night.
  • Myth: waking mid-cycle ruins the night. Fact: brief awakenings between cycles are normal and usually forgotten. It is the long waking that matters.

How precise is any of this?

The honest answer is: precise enough to plan with, not precise enough to be a measurement. A calculator that assumes a flat ninety-minute cycle will be wrong by ten or fifteen minutes for most people on any given night, and occasionally by more. What it does well is force a decision — a specific time to get into bed, derived from a specific alarm — which is more than most people have without it.

The way to use it is as an experiment with a fixed duration. Pick an option, hold it for seven nights without adjusting anything else, and judge it on two things: how long you took to fall asleep and how the first hour of the morning felt. If both improve, the number is roughly right for you. If neither does, the problem is probably upstream of the arithmetic — total sleep, consistency, light or caffeine.

When the calculator is the wrong tool

Three situations where a cycle-aligned bedtime will not help. If you are lying awake for an hour or more most nights despite being tired, the issue is sleep onset, and the useful approach is stimulus control rather than arithmetic. If you work rotating shifts, your clock is being moved by the roster, and the shift-work guide is the better starting point. If you snore heavily, wake gasping or fall asleep during the day, get assessed — no bedtime schedule fixes a breathing problem.

If you cannot fall asleep at the calculated time

A calculated bedtime is a target, not a switch. If you get into bed at 10:45 PM and are still awake at 11:30, the arithmetic has already failed for that night, and staying in bed to "give it a chance" is the move that makes tomorrow worse. The useful rule is the twenty-minute one: if you have been awake that long and feel alert rather than drowsy, get up, keep the lights low and do something quiet until sleepiness returns.

The reason this matters more than any single bedtime is conditioning. A bed that is repeatedly the place where you lie awake stops being a cue for sleep. Twenty minutes is not a magic number, but it is short enough to prevent an hour of frustrated lying and long enough that you are not jumping up at the first twinge of wakefulness.

Keep the wake time fixed through all of this. Sleeping in after a bad night is the instinct that turns one poor night into a shifted clock: the later wake time pushes the next bedtime later, the next night is again too early for your clock, and the pattern reproduces itself until the weekend.

The first week, day by day

Changing a bedtime is a small circadian intervention, and it behaves like one: the first two nights are the hardest and the effect is not linear. A realistic seven-day shape looks like this.

What to expect when you move a bedtime earlier by 15 minutes a night.
NightBedtimeWhat usually happens
1Current − 15 minFalls asleep slightly late; wakes at the usual time
2Current − 30 minHardest night for most people; expect 20–30 minutes to settle
3Current − 30 minSettling time shortens; waking feels similar
4Current − 45 minFirst morning that feels different — lighter, less inertia
5Current − 45 minBedtime starts to feel natural rather than imposed
6Current − 60 minSleep pressure arrives on schedule; settling is quick
7Hold, do not advanceConsolidate for a week before moving again

The single most common failure is advancing every night without pause. The clock shifts by roughly an hour a day at best under ideal light conditions, and much less when you are indoors under ordinary evening lighting. Two nights at each step, with a fixed wake time, is a pace most people can hold without white-knuckling it.

What else in the evening moves the result

Two habits can erase ninety minutes of careful planning, and both are ordinary rather than extreme.

  • Caffeine after mid-afternoon. The half-life averages about five hours, so a 4 PM coffee still has a quarter of its dose in your system at 2 AM. If you are sensitive, the cutoff is closer to noon.
  • Alcohol within two hours of bed. It shortens the time to fall asleep and then fragments the second half of the night, which is why a night that started easily can end at 3 AM.
  • A late large meal. Digestion raises core temperature at exactly the point it needs to fall, and reflux is worse lying flat.
  • Bright light in the last hour. A bright room delays melatonin release; a dim one does not. This is the cheapest change available.

None of these need to be permanent prohibitions. The point is that a bedtime is a container, and what you put in the two hours before it determines whether the container holds.

When your schedule is irregular

Shift workers, parents of small children and anyone on a rotating roster cannot use a single bedtime, because there is no single night. The workable version is to anchor two things instead: a fixed "main sleep" block of at least six hours whenever the roster allows it, and a consistent wake time even after a short night. Where the main block lands matters less than it being the same block for several days running.

For rosters that rotate weekly, the arithmetic here still applies — run the calculator for the alarm at the start of each new pattern rather than trying to find one bedtime that fits all of them. The shift-work guide covers the rotation-specific version, including how to handle the transition day, which is where most of the damage happens.

When two people share a room

Two adults with different chronotypes in one bedroom is the most common reason a well-calculated bedtime fails, and it is rarely discussed. If one is a definite early type and the other leans late, the arithmetic produces two bedtimes four hours apart, and the compromise is usually neither.

The workable version separates the two decisions that get bundled together. Getting into bed and going to sleep are not the same act: the earlier type can go to bed at 10:15 PM with a mask and earplugs while the later type reads elsewhere until 11:45. What matters is that neither person treats the other bedtime as a judgement.

  • Share the wake time, not the bedtime. A common alarm is a shared constraint that keeps both clocks roughly aligned.
  • Use light rather than conversation to signal the end of the evening: a dim lamp works for both people at once.
  • If one of you snores or moves a lot, earplugs are a scheduling tool, not a criticism.
  • Agree a latest-possible lights-out for the earlier type that the later type will protect, even if they come to bed later.

Babies and small children change this arithmetic completely, because the wake time stops being negotiable. In that period the useful target is not an ideal bedtime but a protected block of four hours, taken in turns, which is the largest single improvement available to a household running on fragments.

This page is general information, not medical advice. Cycle length varies between people, and every time on this site is a planning estimate rather than a measurement.

Bedtime calculator questions

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

With a 15-minute sleep-onset allowance, a 7 AM alarm gives bedtimes of 11:15 PM (5 cycles), 9:45 PM (6 cycles) and 12:45 AM (4 cycles). Five cycles is the usual adult target.

Should the time include falling asleep?

Yes. The results are the time to get into bed, not the time you fall asleep. Each one sits 15 minutes (or whatever you select) before the point at which your cycles need to start.

Why do the options come in 90-minute steps?

Because a sleep cycle averages about 90 minutes. Aligning your alarm with the end of a cycle means you are more likely to wake from light sleep or REM than from deep sleep.

What if I have to get up in less than 6 hours?

Four cycles (6 hours) is the shortest useful option here, and it sits below the 7-hour floor most adults need. If you regularly have nights that short, the sleep debt calculator will show what it is costing you.

Does it work for children?

Switch the age group to see a different cycle target. For babies and toddlers, whose sleep is split across naps, use the baby sleep calculator instead — a single overnight block is the wrong model below school age.

Is the bedtime the same if I am a night owl?

The arithmetic is the same, but a late chronotype will struggle to fall asleep at an early bedtime regardless of the maths. Take the chronotype quiz if you consistently cannot sleep before midnight.