Sleep Opportunity Calculator

Lying in bed is not the same as sleeping. See how much time in bed you actually need to hit your sleep goal, once the time to fall asleep and wake in the night is accounted for.

Quick answer: To actually sleep your target hours, you have to be in bed for a bit longer, because nobody falls asleep instantly or sleeps unbroken. Your "sleep opportunity" is your sleep goal plus the time you take to drop off, the time you spend awake in the night, and a short buffer after waking. Enter your numbers below and this tool gives you the time in bed to schedule, and the bedtime for your wake-up.

8h 40mtime in bed to schedule

Time in bed vs time asleep

The gap between the two trips a lot of people up. You decide you need eight hours, so you set aside exactly eight hours in bed, then wonder why you feel short-changed. The reason is that your time in bed is spent on three things, not just sleep:

  • Falling asleep. Even good sleepers take 10 to 20 minutes. If you set a flat eight hours and take 20 minutes to drop off, you have already lost that.
  • Brief awakenings. Everyone wakes a few times a night, usually without remembering. Add in a longer wake and it can total 15 to 30 minutes.
  • The lie-in after waking. The minutes between your final wake and actually getting up count as time in bed, not sleep.

Add those to your sleep goal and you get your sleep opportunity, the time in bed you should actually plan for. This is also why sleep efficiency is rarely 100%.

How it is calculated

Sleep opportunitysleep goal + time to fall asleep + time awake + wake buffer
Bedtimeyour wake-up time − sleep opportunity
Implied efficiencysleep goal ÷ time in bed × 100

If your numbers imply an efficiency below about 85%, it is worth looking at why, a long time to fall asleep or a lot of night waking can point to habits worth changing, or occasionally a sleep problem.

Why plan your time in bed

🎯

Hit your goal for real

Schedule enough time in bed so your target hours actually happen.

🛏️

Know your bedtime

Enter a wake time and get the lights-out time that gets you there.

⚖️

Avoid over-lying

Too much time in bed can actually fragment sleep; aim for the right amount.

⚡

Instant, private

Everything runs in your browser. No account, nothing stored.

More time in bed is not always better. If you consistently can't fill your time in bed with sleep, lying there awake for hours can worsen insomnia, and a common treatment actually involves spending less time in bed to consolidate sleep. If you plan sensible hours and still can't sleep through them, read insomnia causes and treatments or speak to a doctor. This tool is a planning aid, not medical advice.

Frequently Asked Questions

Sleep opportunity is the amount of time you give yourself in bed with the intention of sleeping, sometimes called "time in bed." It is distinct from the time you are actually asleep, because some of your time in bed is spent falling asleep, briefly waking during the night, and lying in bed after your final wake. To actually achieve a given amount of sleep, your sleep opportunity has to be larger than your sleep goal by roughly the sum of those non-sleep periods. This calculator adds your fall-asleep time, night waking, and a short wake buffer to your goal so you can plan a realistic bedtime rather than setting aside exactly your target hours and falling short.

For a typical good sleeper, somewhere around 20 to 40 minutes on top of your sleep goal is realistic: perhaps 15 minutes to fall asleep, 10 to 20 minutes of brief awakenings, and a few minutes before you get up. So if you want eight hours of sleep, planning for roughly eight and a half hours in bed is sensible. Your own numbers may differ, people who fall asleep the moment their head hits the pillow need less padding, while those who take a long time to drop off or wake a lot need more. Use your honest typical figures in the calculator rather than your best night, so the bedtime it suggests works on an average night.

Yes. It sounds odd, but spending far more time in bed than you can fill with sleep tends to fragment your sleep and can make insomnia worse, because your brain starts to associate the bed with being awake and frustrated. This is why a well-established insomnia treatment, sleep restriction therapy, deliberately limits time in bed to match actual sleep, then extends it as sleep consolidates. The goal is to match your time in bed reasonably closely to the sleep you can actually get, not to maximise it. If you find yourself lying awake for long stretches most nights, allowing even more time in bed is usually the wrong move.

The sleep calculator focuses on timing your sleep in 90-minute cycles, so you aim to wake at the end of a cycle and feel less groggy. This tool answers a different question: given the sleep you want, how much time in bed do you actually need to allow for it, accounting for the time lost to falling asleep and night waking. One is about when to wake within your sleep; the other is about how long to be in bed in the first place. They work well together, use this to set your time in bed, then the sleep calculator to fine-tune the exact wake time to a cycle boundary.

Use your honest typical figure, not your quickest or your worst night. Most healthy adults take somewhere between 10 and 20 minutes to fall asleep; taking much longer regularly can be a sign of insomnia or too much time in bed, while falling asleep almost instantly every night can actually indicate you are sleep deprived. If you are not sure, 15 minutes is a reasonable default. You do not need to measure it precisely, and you should not clock-watch to find out, since checking the time increases the alertness that keeps you awake. A good estimate from how your nights usually feel is enough for planning.

Shahzad Arsi, founder of Slezza

Slezza builds free, evidence-based sleep-planning tools. Read about our methodology →

Published: · Last updated: