Health & Fitness

Sleep Calculator

Waking at the end of a sleep cycle feels better than waking in the middle of one. This works out when those moments fall.

Written and maintained by the MarsCalc Hub editorial team Formula checked against the ~90-minute sleep cycle model Updated

About the Sleep Calculator

Sleep runs in cycles of roughly 90 minutes. Waking at the end of one, in light sleep, generally feels far better than being pulled out of the middle of deep sleep — which is where that heavy, disoriented feeling comes from.

Give this calculator a wake-up time and it works backwards to give bedtimes that land on cycle boundaries. Give it a bedtime and it works forwards to good wake-up times. It adds a 15-minute buffer by default for falling asleep, which you can adjust.

Options run from three cycles (4.5 hours) up to six (9 hours), with five and six marked as recommended for adults. Three or four cycles are there for a short night, not as a target.

How to use the Sleep Calculator

  1. Choose whether you want a bedtime or a wake-up time.
  2. Enter the time you need to wake up, or the time you are going to bed.
  3. Set how long you usually take to fall asleep — 15 minutes is typical.
  4. Select Calculate sleep times.
  5. Pick any option from the list — each one lands at the end of a complete cycle.

How the timings are worked out

Bedtime = wake time − (cycles × 90 min) − buffer

Wake time = bedtime + buffer + (cycles × 90 min)

Buffer defaults to 15 minutes, the typical time to fall asleep.

Worked example

You need to be up at 06:30.

Six cycles is 540 minutes, plus 15 to fall asleep — go to bed at 21:15.

Five cycles is 450 minutes, plus 15 — 22:45.

21:15 or 22:45 for a 06:30 alarm

Bedtimes an hour and a half apart, both landing on a cycle boundary. Going to bed at 22:00 — between the two — means the alarm arrives mid-cycle.

What happens in a sleep cycle

StageShare of the nightWhat it does
N1 — lightAbout 5%The transition into sleep; easily woken
N2 — lightAbout 45–55%The bulk of sleep; memory consolidation
N3 — deepAbout 15–25%Physical restoration; hardest to wake from
REMAbout 20–25%Dreaming; emotional and memory processing

The mix changes across the night. Early cycles are heavy on deep N3 sleep, later ones on REM — which is why a late alarm often interrupts a dream, and why cutting the last two hours costs you disproportionately much REM.

How much sleep adults need

Age groupRecommendedCycles
Teenagers (14–17)8–10 hours5–7
Young adults (18–25)7–9 hours5–6
Adults (26–64)7–9 hours5–6
Older adults (65+)7–8 hours5–6

Five to six cycles covers 7.5 to 9 hours, which is why those two are marked as recommended. Four cycles is six hours — workable occasionally, not as a routine.

Why waking mid-cycle feels worse

The culprit is sleep inertia — the grogginess between waking and functioning properly. Its severity depends heavily on which stage you were in.

Waking from deep N3 sleep produces the worst of it, sometimes lasting well over half an hour, because the brain has to climb out of its slowest activity state. Waking from light N2 sleep at the end of a cycle is far gentler. This is the entire premise of cycle-based timing, and it explains the common experience of feeling worse after a long lie-in than after a shorter, better-timed night.

The 90-minute figure is an average

Real cycles run roughly 70 to 120 minutes and vary between people, and within one person across a night. Later cycles tend to run longer than early ones. So treat these times as good starting points rather than precise appointments — if 90 minutes does not suit you, try 85 or 100 and see which leaves you feeling better.

Sleep timing is arithmetic on clock times, so if you want to add or subtract hours directly — working out a shift length, or how long you actually slept — the time calculator handles that, including spans that cross midnight. Sleep also affects appetite and energy expenditure, which the calorie calculator touches on.

What actually improves sleep

Timing is a small lever compared with consistency and environment:

  • Keep the same schedule, including weekends. A regular rhythm matters more than any single night's timing.
  • Cool, dark, quiet. Around 18–19 °C suits most people.
  • Caffeine has a long tail — a half-life of five to six hours means an afternoon coffee is still active at bedtime.
  • Alcohol fragments sleep. It speeds falling asleep and then suppresses REM and wakes you later.
  • Keep naps short — 20 minutes stays in light sleep and avoids inertia. A full 90-minute cycle also works; the trap is stopping in between.

Persistent trouble sleeping, loud snoring with pauses in breathing, or daytime sleepiness despite adequate hours are worth taking to a doctor. Insomnia and sleep apnoea are treatable, and no calculator addresses either.

Sleep debt calculator

Sleep debt is the gap between the sleep you need and the sleep you get. Most adults need 7 to 9 hours. Track a week:

Sleep debt = (hours needed × 7) − hours actually slept that week

Worked example

You need 8 hours a night, so 56 hours a week. You slept 6 hours on 5 weeknights and 8.5 hours on 2 weekend nights.

(6 × 5) + (8.5 × 2) = 30 + 17 = 47 hours.

Sleep debt: 56 − 47 = 9 hours

A long lie-in will not repay 9 hours in one go. Going to bed 30–60 minutes earlier for a week or two works better. Use the bedtime calculator above to pick a time that ends on a full cycle.

How to calculate sleep efficiency

Sleep efficiency shows how much of your time in bed you actually spend asleep.

Sleep efficiency = time asleep ÷ time in bed × 100

In bed for 8 hours but asleep for 6.5? That is 6.5 ÷ 8 × 100 = 81%. Sleep specialists generally see 85% or higher as good. Lower numbers can be a sign to see a doctor, especially if you feel tired during the day.

Nap calculator: how long to nap

  • 10–20 minutes — a power nap. You stay in light sleep and wake up alert.
  • 30–60 minutes — risky. You may wake from deep sleep and feel groggy for a while.
  • About 90 minutes — one full sleep cycle. Good for catching up, but it can make it harder to fall asleep at night.

Use When to wake up above with the time you lie down to plan a 90-minute nap. Try to finish naps before mid-afternoon.

Jet lag calculator: how long to adjust

A common rule of thumb is that your body clock shifts about one time zone per day. Fly from New York to London (5 hours ahead) and it can take around five days to feel fully normal. Flying east is usually harder than flying west.

To adjust faster, get daylight in the morning at your destination when flying east, and in the evening when flying west. Use this sleep calculator with your new local wake-up time to pick a bedtime from the first night.

Other ways to use this calculator

  • Sleep cycle calculator — every bedtime and wake time is a whole number of 90-minute cycles.
  • What time should I go to bed? — choose “When to go to bed” and enter your wake time.
  • Wake up time calculator and when to wake up calculator — choose “When to wake up”.

Frequently asked questions

About 90 minutes on average, moving through light sleep, deep sleep and REM before returning toward light sleep. Real cycles range from roughly 70 to 120 minutes and vary between people and across a single night — later cycles usually run longer. This calculator uses the 90-minute average, which is why the times it gives are good starting points rather than exact appointments.

Five or six for most adults, which is 7.5 to 9 hours and matches standard recommendations for ages 18 to 64. Teenagers generally need more, at 8 to 10 hours. Four cycles gives six hours, which is workable for the occasional short night but not as a routine. The calculator marks five and six cycles as recommended for that reason.

Because of sleep inertia, and it depends which stage you were in. Waking from deep N3 sleep is worst — the brain has to climb out of its slowest activity state, and the grogginess can last more than half an hour. Waking from light sleep at the end of a cycle is much gentler. It is why a longer, badly-timed sleep can leave you feeling worse than a shorter, well-timed one.

No. Ninety minutes is an average; real cycles run about 70 to 120 minutes, differ between people, and lengthen across the night. If the times this calculator suggests do not leave you feeling rested, try treating your cycle as 85 or 100 minutes instead and compare. Consistency of schedule matters considerably more than getting the cycle length exactly right.

Multiply the hours of sleep you need by 7, then subtract the hours you actually slept that week. Needing 8 hours but sleeping 47 hours in a week leaves a sleep debt of 9 hours.

About 10 to 20 minutes. A short nap keeps you in light sleep, so you wake up alert. Naps of 30 to 60 minutes can leave you groggy, while a 90-minute nap covers one full sleep cycle.

Sources and further reading

  1. National Heart, Lung, and Blood Institute — Sleep phases and stages — the N1/N2/N3/REM structure and stage proportions
  2. American Academy of Sleep Medicine & Sleep Research Society — Recommended sleep duration — the 7–9 hour recommendation for adults
  3. CDC — About sleep — sleep duration by age group
  4. NHS — Insomnia and sleep problems — when persistent sleep trouble needs medical attention