Sleep Calculator

Give it your wake-up time and your age and it works out when to go to bed. On the nights that is impossible, it works out how long your nap should be.

1. When should you go to bed?

Lights out anywhere in here

2. If you cannot get that much

Put in the sleep you can realistically get tonight and this works back from your wake-up time to the hour you go to bed and the hour you get up, along with the shortfall and the best way to take the edge off it.

Tonight's plan

Sleep shortfall

3. How long should the nap be?

Measured results from an experiment that restricted night sleep to 5 hours and compared nap lengths at 3 pm. The clock times are worked out from the nap start you entered above.

NapAwake atBenefit fromBenefit untilVerdict
5 min15:05no clear effect
10 min15:1015:1017:45best overall — works at once
20 min15:2015:5517:25benefit arrives late
30 min15:30dip, then recovery18:05dip right after waking

A 30-second or 90-second "micro-nap" produced no measurable improvement at all in a separate experiment. There is a minimum length below which a nap does nothing, and a length above which it starts costing you.

What this calculator does differently

Most sleep calculators treat 90 minutes as an exact cycle and hand you an instruction: go to bed at 10:45 pm. That level of precision is not supported by measured data. This page does not hide the fact. It calculates the two things that survive the uncertainty instead — your total sleep, and what to do about the nights when you cannot get it.

Why 90-minute timing cannot be precise

The average is wrong before you even get to the spread. A 2024 analysis of 6,064 cycles from 369 polysomnography recordings put the median cycle length at 96 minutes (mean 99.5). A 2025 study using subcutaneous EEG measured 98 ± 29 minutes.

Six minutes is not the interesting part. The variability is. The coefficient of variation between one cycle and the next came to 29.3 per cent, and the measured standard deviation of a single cycle is about 29 minutes.

Here is what that does to the arithmetic. Uncertainty accumulates with the square root of the number of cycles, so chaining five of them carries 29 × √5 ≈ 65 minutes of error — more than half a cycle. "Go to bed at 11:15 pm and five cycles later you surface at 7:00" actually means "somewhere around 6:00, or maybe 8:00." At that width, aligning your alarm to a cycle boundary is not a thing anyone can do.

Cycles are not evenly spaced either. Measured directly, the first cycle runs 92 ± 29 minutes and the second 111 ± 29. Multiplying 90 by a whole number is off from the very first cycle.

And the drift is worst exactly when you would most want the calculator. Higher sleep pressure — that is, being short on sleep — lengthens the NREM portion of the first cycle. The night you most want to squeeze value out of a cycle calculation is the night it fits worst.

None of this is a fringe view. Australia's Sleep Health Foundation puts person-to-person cycle variation at roughly 60 to 110 minutes and says outright that the assumptions these calculators make are not based on scientific evidence.

So this page does not try to hit a cycle boundary at all. Bedtime here is your wake-up time minus the sleep you want minus the time you take to drop off, which makes it an exact minute with no error term attached. The cycle uncertainty is real, but it does not get bolted onto your bedtime — do that and you end up telling someone to go to bed at a time that gives them under seven hours while the heading says nine.

The window you see is not cycle error. It is there because the recommendation itself is a range. Seven to nine hours for an adult means there is an hour to go to bed for nine and a later hour to go to bed for seven, and the window is the gap between them. Lights out anywhere inside it and you land in the recommended band — that is what the window means, and if it looks wide, it is because the guidance is wide.

What is certain instead — the total

Cycle boundaries are out of reach, but total sleep is exact arithmetic. It is also the number that the health guidance is written about.

The joint consensus of the American Academy of Sleep Medicine and the Sleep Research Society states that adults aged 18 to 60 should sleep 7 or more hours per night on a regular basis. The NHS gives the target as around 7 to 9 hours. This calculator uses 7 to 9 hours as the adult band, and both sources are explicit that the requirement varies between individuals.

Children and teenagers need more, which is why the calculator asks your age rather than assuming an adult. The bands used here are 9 to 12 hours for primary-school children and 8 to 10 hours for secondary-school students — the figures set out in Japan's Ministry of Health, Labour and Welfare sleep guide, which is the set of age bands this page has checked against a primary source. National bodies elsewhere publish their own figures and they differ in the detail, so read the band as the shape of the recommendation rather than as a threshold. One gap worth stating plainly: no primary source was confirmed for the under-5 band shown here (10 to 13 hours), so treat that one as indicative only. It will be replaced when a source is confirmed.

What all of this means in practice is simple. Giving up 40 minutes of sleep to land on a cycle boundary runs the wrong way — you are trading a certain quantity for an uncertain boundary.

Short nights — the nap is 10 minutes

This is the part the calculator most wants to be useful for. "Get seven hours" is no answer at all to someone who has four. So the second panel does not stop at telling you how far short you are — it works back from the hour you have to be up and gives you the two times you actually need. Up at 7:00 with four hours available and fifteen minutes to fall asleep means lights out at 2:45, asleep by 3:00, up at 7:00.

In an experiment where night sleep was restricted to 5 hours, participants took 5, 10, 20 and 30-minute naps at 3 pm. The results run against intuition.

A separate experiment tested 30-second and 90-second naps and found no measurable improvement over not napping at all. So there is a floor below which nothing happens, and above that floor longer does not mean better.

Why 30 minutes backfires — you reach deep sleep

The mechanism was measured, not guessed at. The 30-minute nap accumulated an average of 14.7 ± 5.7 minutes of slow-wave sleep, and 80 per cent of participants were woken out of it. The 10-minute nap accumulated 0.8 ± 1.5 minutes of slow-wave sleep, and 80 per cent woke from light stage 2 sleep.

The fogged, slow state you get when pulled out of deep sleep is called sleep inertia. To be straight about the limits of the evidence: the authors of that experiment noted that they could not isolate an independent effect of slow-wave sleep, and a 2019 review concluded that it is difficult to draw a clear conclusion about the role of deep sleep in sleep inertia. The direction is consistent across studies; the causal mechanism is not settled.

The same principle shows up in operational research. In a NASA study of long-haul pilots, 93 per cent of planned 40-minute rest opportunities produced actual sleep, averaging 26 minutes. The composition was 30 per cent stage 1, 62 per cent stage 2, 8 per cent slow-wave sleep and 0 per cent REM — they barely touched deep sleep. Reaction speed improved by 10 to 16 per cent, and lapses of attention numbered 81 in the rest group against 124 without.

The most important warning — do not trust how you feel

The single most useful finding in the nap experiment is this one. The people who took the 30-minute nap were measurably worse on objective testing, and rated themselves as better than before the nap. Not marginally, and not once: significantly so at all four post-nap measurement points (p<0.001).

In other words, subjective freshness and actual recovery moved in opposite directions. "I feel fine now" is not evidence that you have recovered. If you are about to drive, or to make a call that matters, manage the nap by the clock rather than by how it feels.

It is also why this calculator never promises a time at which you will "wake up refreshed." Refreshed is not something you are in a position to assess.

Age matters; sex barely does

How late you are inclined to sleep — your chronotype — moves with age, reliably. In a survey of roughly 25,000 people, the tendency to go to bed late increases through adolescence, peaks at around age 20, and advances steadily from then on for the rest of life. The authors proposed that turning point as a biological marker for the end of adolescence. The same curve was reproduced in 800 people in South Tyrol, whose way of life is nothing like that of the original sample.

The size of the effect is not small either: about 1.9 hours of movement in the ten years between 15 and 25. That is worth knowing before writing off a teenager's late nights as laziness.

Sex, by contrast, is too small to build an input around. In the same line of research the difference between men and women peaked at age 21.6 at 0.27 hours — 16 minutesdisappeared at 41.4, and then reversed sign, with women becoming the later group. A 16-minute maximum that flips direction in middle age would add nothing to a bedtime estimate. That is why this calculator does not ask.

For completeness: no primary source showing that required sleep duration itself differs by sex was confirmed in this round of checking. If one is, it will be reflected here.

Basis for the figures

This is a scheduling tool, not medical advice. Persistent trouble falling asleep, waking repeatedly in the night, or being sleepy all day is worth raising with a doctor — those are treatable conditions, and no amount of bedtime arithmetic addresses them. The nap guidance here assumes a healthy adult dealing with a temporary shortfall.

Frequently asked questions

Does waking at the end of a 90-minute cycle leave you less groggy?

Timing it that precisely is not possible in the first place. Measured cycle length has a median of 96 minutes, but the problem is the spread rather than the average: the standard deviation is about 29 minutes, and errors accumulate with the square root of the number of cycles, so five cycles carry roughly 65 minutes of uncertainty. That is more than half a cycle, which means no calculator can tell you the minute a cycle will end. This page therefore gives up on cycle alignment and sets bedtime from total sleep instead, which is exact arithmetic. The window it shows is not cycle error: it exists because the recommendation itself is a range of 7 to 9 hours, and lights out anywhere inside the window lands you in that band.

What should I do on a night when I cannot get enough sleep?

Nap, but keep it short. In an experiment where night sleep was restricted to 5 hours and 5, 10, 20 and 30-minute naps were compared, the 10-minute nap came out best overall. Sleepiness, fatigue and cognitive performance all improved immediately on waking, and some of the benefit was still measurable 155 minutes later. The 20-minute nap did nothing for the first 35 minutes after waking before helping for 125 minutes. The 30-minute nap produced a period of worse performance right after waking. Longer is not better.

Why does a 30-minute nap backfire?

Because you get far enough in to reach deep sleep. In the same experiment the 30-minute nap accumulated an average of 14.7 minutes of slow-wave sleep, and 80 per cent of participants were woken out of it. The 10-minute nap accumulated 0.8 minutes of slow-wave sleep, and 80 per cent woke from light stage 2 sleep instead. Being pulled out of deep sleep produces the fogged state known as sleep inertia. The authors were careful to note that they could not isolate an independent effect of slow-wave sleep, so the direction is consistent but the mechanism is not settled.

I felt better after my nap, so it worked — right?

That feeling is exactly what the experiment says you cannot trust. The people who took the 30-minute nap were measurably worse on objective reaction-time and cognitive tests, yet rated themselves as improved compared with before the nap, significantly so at every post-nap measurement (p<0.001). Subjective freshness and actual recovery moved in opposite directions. If you are about to drive or make a decision that matters, manage the nap by the clock rather than by how you feel.

How much sleep does an adult need?

The American Academy of Sleep Medicine and the Sleep Research Society state that adults aged 18 to 60 should sleep 7 or more hours a night on a regular basis. The NHS puts it as around 7 to 9 hours. Both add that the amount needed varies from person to person, so this calculator treats 7 to 9 hours as the adult target rather than as a diagnosis. Children and teenagers need more, which is why the calculator asks for your age instead of assuming everyone is an adult.

Why does this calculator not ask for my sex?

Because the difference is too small to act on. In a study of roughly 25,000 people the gap between men and women in how late they are inclined to sleep was largest at age 21.6 and came to 0.27 hours, about 16 minutes. It disappears at 41.4 and then reverses sign, with women becoming the later group. A 16-minute maximum that flips direction in middle age is not worth an extra input. Age, by contrast, moves the same measure by about 1.9 hours between 15 and 25.

Are sleep cycle calculators accurate at all?

The arithmetic is exact; the sleep science behind the usual claim is not. Australia's Sleep Health Foundation puts person-to-person cycle variation at roughly 60 to 110 minutes and states directly that the assumptions these calculators make are not based on scientific evidence. Working backwards from a fixed wake-up time to a bedtime that gives you enough total sleep is genuinely useful. Predicting which sleep stage you will be in at 6:47 am is not something any calculator can do.

Checked on 2026-08-03. Based on: Cycle length measured — Cajochen et al., Sleep Health 2024;10:S52-S62 (median 96 min, mean 99.5, between-cycle CV 29.3%, 6,064 cycles from 369 recordings) · Leguia et al., Brain Commun 2025;7(6):fcaf469 (98±29 min; first cycle 92±29, second 111±29) · Naps — Brooks A & Lack L, Sleep 2006;29(6):831-840 (night sleep restricted to 5 h, 3 pm naps: 10 min best overall, immediate onset, 155 min duration; 20 min onset after 35 min, 125 min; 30 min sleep inertia) · mechanism: 30 min accumulated 14.7±5.7 min SWS with 80% woken from SWS vs 10 min 0.8±1.5 min with 80% woken from stage 2 · subjective/objective divergence p<0.001 · Tietzel & Lack (30 s and 90 s naps: no measurable improvement) · NASA TM-108839 (93% of planned 40-min rest opportunities produced sleep, mean 26 min, stage 1 30% / stage 2 62% / SWS 8% / REM 0%, reaction speed 10-16% better, 81 vs 124 lapses of attention) · Chronotype — Roenneberg et al., Curr Biol 2004;14(24):R1038-9 (N approx. 25,000, latest point around age 20, advancing thereafter; replicated in 800 people in South Tyrol) · Fischer et al., PLoS One 2017 (sex difference max 0.27 h at 21.6, gone at 41.4, sign reversed after) · Adult target — AASM & Sleep Research Society consensus, Watson NF et al., J Clin Sleep Med 2015;11(6):591-592 (7 or more hours, ages 18-60) and NHS (around 7 to 9 hours), both noting individual variation · Sleep Health Foundation (cycle variation approx. 60-110 min; calculator assumptions not evidence-based) · Hilditch CJ & McHill AW, Nat Sci Sleep 2019;11:155-165 (role of deep sleep in sleep inertia unresolved) · Child and teenage bands 9-12 h (primary school) and 8-10 h (secondary school) — Japan MHLW sleep guide 2023; no primary source confirmed for the under-5 band. Updated when the rates or rules change.

Cite this calculator

Putting this in a post or a document? Copy one of the lines below as it is.

As plain text Sleep Calculator — CalcLab. https://calculab.net/en-us/sleep-calculator/
As blog HTML <a href="https://calculab.net/en-us/sleep-calculator/">Sleep Calculator</a> — CalcLab