Sleep window calculator
A sleep window is the time you set aside for sleep: a wake time you keep every day, and a bedtime counted back from it. Tell us about a typical recent night and you’ll get a place to start, worked out the same way the Stillnight app does it, with techniques from CBT-I.
Everything is worked out in your browser. Nothing you enter is saved or sent.
This is a wellness tool, not medical care; if you have a sleep or health condition, talk to your doctor before changing your sleep.
Try it on your own nights
Stillnight is a six-week program for iPhone built around your sleep window. A week of 30-second morning diaries sets it, and a weekly check-in moves it, with a short lesson each day and calm sounds for the night.
Coming soon to the App Store
Free forever: 20 sounds, diary, timer.
How it’s worked out
- Your time in bed is the gap between getting into bed and getting out of it, across midnight if it needs to be.
- Take away the time it takes you to fall asleep and the time you’re awake in the night. What’s left is about how long you sleep.
- Your window starts 30 minutes shorter than your time in bed, or at the sleep you’re already getting if that’s more, rounded up to the next 15 minutes.
- It never goes below 5½ hours, or 7 hours if any safety answer was “yes” or “not sure”.
- Your wake time stays the same every day, so the bedtime is counted back from it.
Questions
What is a sleep window?
The hours you set aside for sleep: a wake time you keep every day and a bedtime counted back from it. Spending less time lying awake in bed is one of the techniques from CBT-I, and the window is how you practice it.
Why is my window shorter than my time in bed?
It starts 30 minutes shorter than your usual time in bed, so less of the night is spent lying awake. If you already sleep for most of your time in bed, it starts at the sleep you’re getting instead.
Why won’t it go below a certain length?
A window never goes below 5½ hours. If any safety answer was “yes” or “not sure”, it never goes below 7 hours, and it’s worth talking to your doctor before you change your sleep.
Why is there no window for under-18s or shift workers?
Teenagers need more sleep than the program allows, and the program depends on waking at the same time every day, which shift work doesn’t allow. The app’s free sounds, diary and timer are still yours.
How is the app different from this calculator?
This page works from one typical night. In the app, a week of your own morning diaries sets your first window, and a weekly check-in moves it 15 minutes at a time, wider when you’re asleep for most of it and narrower when you’re lying awake.
Is anything I enter saved or sent?
No. Everything is worked out in your browser. Nothing you enter is saved, sent anywhere or added to the page address.