Helix

Free Sleep Calculator

Work backwards from your alarm — or forwards from bedtime — in 90-minute sleep cycles, so you wake between cycles instead of being dragged out of deep sleep.

Plan the night

15 min
To wake at 7:00 am, go to bed at
9:45 pm
6 cycles — 9 hours in bed, the target for most adults
Selected
5 cycles
7h 30m
Time in bed
7h 45m
including falling asleep
Asleep from
11:30 pm
15 min after lights out
Deep sleep
1.3 h
mostly in the first 3 cycles

Tap a card to see that night’s cycle structure below. Bedtimes assume a 15-minute sleep latency and a 90-minute cycle — see the article for why both are averages rather than facts about you.

What the night looks like

An approximate hypnogram for 5 cycles starting at 11:30 pm. Notice the asymmetry: deep sleep is front-loaded and nearly gone by cycle four, while REM grows until it dominates the last stretch before your alarm. Cut the night short and you keep the deep sleep but lose most of your REM.

Sleep stage across the night
Illustrative model, not a measurement — real cycles run 70–110 minutes and vary night to night. Helix builds this from your actual Apple Watch sleep stages instead.

Sleep architecture in one page

Sleep is not one state you sink into for eight hours. It is a repeating cycle through four distinct stages, each doing different work, and the mix changes dramatically across the night.

  • N1 (1–5 minutes) — the drift-off. Muscle twitches, the falling sensation, easy to wake from. Barely 5% of the night.
  • N2 (~45–55% of the night) — true light sleep. Heart rate and body temperature drop. This is where sleep spindles fire and motor memory gets consolidated, and it is the best stage to wake from.
  • N3, deep or slow-wave sleep (~15–25%) — the physically restorative stage. Growth hormone pulses, glymphatic clearance runs hardest, tissue repairs. Waking here is what produces the drugged feeling.
  • REM (~20–25%) — dreaming, emotional processing and the consolidation of complex learning. The brain is nearly as active as when awake, but the body is paralysed.

The critical detail is the ordering. Deep sleep is front-loaded: most of your N3 arrives in the first two or three cycles, before roughly 2am on a normal schedule. REM is back-loaded: the first cycle may contain five minutes of it, the last thirty or more. This is why the two ends of the night are not interchangeable. Going to bed two hours late does not cost you two generic hours — it costs you REM specifically. Getting up two hours early costs the same thing.

Why waking mid-cycle feels so bad

Sleep inertia is the transitional grogginess between sleep and full wakefulness. Its severity depends almost entirely on which stage the alarm interrupted. Pulled out of N3, most people are measurably impaired for 15 to 30 minutes — in laboratory studies, reaction time and decision quality immediately on waking from deep sleep are worse than after moderate alcohol. Pulled out of N2 or the end of a REM period, the same person is functional in a couple of minutes.

That is the entire logic of this calculator. Six hours ending between cycles genuinely can feel better than seven hours ending inside one. What it cannot do is make six hours as good as eight — you still lost the sleep, you just avoided the worst way of ending it.

The honest caveat about 90 minutes

bedtime = wake time − (cycles × 90 min) − sleep latency Typical adult: cycles 70–110 min, latency 10–20 min So a "6-cycle" night is really 7h to 11h of sleep, not exactly 9h.

Ninety minutes is an average across people and across the night. Real cycles run roughly 70 to 110 minutes; your first cycle is usually the shortest and later ones stretch as REM lengthens. Add a sleep latency that varies with caffeine, stress and how tired you are, and by the sixth cycle a cycle-based prediction has drifted by half an hour or more. Use these times as good starting points, then adjust by 15 minutes at a time based on how you actually wake up. Anyone selling you minute-precise cycle timing from a formula is overselling it.

How much sleep, by age

Age groupRecommendedCycles
School age (6–13)9–11 h6–7
Teenager (14–17)8–10 h5–7
Young adult (18–25)7–9 h5–6
Adult (26–64)7–9 h5–6
Older adult (65+)7–8 h5–5.5

These are the National Sleep Foundation’s 2015 consensus ranges, reaffirmed after a decade-long review of the evidence. They are ranges for a reason — need varies by perhaps an hour between individuals, and rises temporarily with heavy training, illness or acute stress. If you routinely fall asleep within five minutes of lying down, or sleep three hours longer at weekends, you are under-slept regardless of what the table says.

Timing the things that wreck it

Caffeine. Half-life around five to six hours, so half the dose from a 3pm coffee is still circulating at 9pm. It works by blocking adenosine — the molecule whose build-up creates sleep pressure — so you do not feel tired even though you are. Cut it eight to ten hours before bed. If you are sensitive, make that twelve.

Alcohol. It sedates rather than sedatives you to sleep. You fall asleep faster, then REM is suppressed in the first half of the night and the second half fragments as it metabolises — which is why two drinks reliably show up as a wrecked HRV and an elevated resting heart rate the next morning. Finish at least three hours before bed, and expect a visible cost regardless.

Late hard training. Intense exercise within about two hours of bed raises core temperature and sympathetic drive, both of which delay sleep onset. Easy movement is fine and often helps.

Consistency. Boringly, a fixed wake time is the highest leverage change available. Your circadian system anchors on light and wake time, not bedtime — hold the alarm steady all week and the right bedtime starts to look after itself.

What to do next

If your week has already gone badly, the useful question is how far behind you are and how long it takes to recover. Our sleep debt calculator totals the shortfall across seven nights and gives a realistic payback schedule — realistic meaning weeks of small surpluses, not one heroic Saturday.

And if you want to know whether the sleep you got actually restored you, stop guessing and look at your autonomic data. Heart rate variability responds to poor sleep, alcohol and overtraining within a night; our HRV calculator explains how to read it, and our target heart rate calculator helps you set training intensity for the recovery you actually have — not the one you planned for.

Frequently asked questions

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

Working back in 90-minute cycles plus about 15 minutes to fall asleep: 8:45pm gives six cycles (nine hours), 10:15pm gives five cycles (seven and a half hours), and 11:45pm gives four cycles (six hours). Five or six cycles suits most adults. Four is a floor, not a plan.

Is a 90-minute sleep cycle accurate?

Ninety minutes is the population average, but individual cycles run anywhere from about 70 to 110 minutes, and your own cycles lengthen across the night as REM takes a bigger share. That means the bedtimes here get you close rather than exact. The reliable part is the total: aim for a consistent seven to nine hours rather than obsessing over the minute.

Why do I feel worse after 8 hours than after 6?

Almost always sleep inertia — your alarm caught you in deep sleep (N3) rather than in light sleep or REM. Grogginess after waking from deep sleep can last 15 to 30 minutes and briefly impairs reaction time and decision-making more than mild alcohol. Shifting your alarm by 20 minutes in either direction often fixes it entirely.

How long is a good nap?

Twenty minutes. That keeps you in light sleep, restores alertness and leaves no grogginess — NASA's flight-crew research found short naps meaningfully improved performance and vigilance. If you have real sleep debt, take a full 90-minute cycle instead. The range to avoid is 30 to 60 minutes, which is long enough to reach deep sleep but too short to climb back out of it.

How much sleep do I actually need?

The National Sleep Foundation recommends 7 to 9 hours for adults aged 18 to 64, 7 to 8 for those 65 and over, and 8 to 10 for teenagers. Genuine short sleepers who thrive on six hours exist but are rare — perhaps 1 to 3% of people. Most people who believe they need six hours are simply used to being tired.

When should I stop drinking coffee and alcohol?

Caffeine has a half-life of roughly five to six hours, so a 2pm coffee still leaves about a quarter of the dose in your system at bedtime; cut it off eight to ten hours before you sleep. Alcohol is worse for sleep quality than most people realise — it shortens the time it takes to fall asleep but suppresses REM and fragments the second half of the night. Aim to finish at least three hours before bed.

More free tools

All tools →