A sleep window is a fixed bedtime and wake time that matches how much you actually sleep, not how long you lie in bed. To set one, keep a sleep diary for one to two weeks, work out your average time asleep, and set your time in bed to that amount (but not less than six hours, in the common version). Keep the same wake time every day. After a week, look at your sleep efficiency (time asleep divided by time in bed): if it is high, add 15 minutes; if it is low, the window may shrink by 15 minutes. Talk to a doctor first if you have certain health conditions or drive for work.
Why a sleep window works
If you sleep six hours but spend nine in bed, you spend three hours lying awake, often worrying about sleep. Over time the bed becomes a place for being awake. A sleep window does two things: it builds up sleep pressure, so sleep comes faster and is less broken, and it cuts the time you lie awake. Sleep restriction is part of cognitive behavioural therapy for insomnia (CBT-I), which the American Academy of Sleep Medicine strongly recommends for chronic insomnia in adults. The same guideline suggests sleep restriction on its own as a single-component therapy.
Step 1: Keep a sleep diary
For one to two weeks, write down each morning:
- the time you got into bed and the time you got up for the day;
- roughly how long it took to fall asleep;
- how long you were awake during the night;
- your estimate of total time asleep.
Do not change anything yet. You are measuring your normal. A watch or ring can help with times, but your own estimate of being awake matters too. Estimates are fine; you do not need to watch the clock.
Step 2: Work out your sleep efficiency
Sleep efficiency is the share of your time in bed that you spent asleep. The Sleep Foundation describes the calculation as average time asleep divided by average time in bed, times 100.
Example: 6.5 hours asleep ÷ 9 hours in bed × 100 = 72%
Step 3: Set your first window
In the Sleep Foundation's description, if your efficiency is below 85%, you set a fixed bedtime and wake time that match your average time asleep, with a minimum of six hours in bed.
- Pick your wake time first. Choose one you can keep every day, weekends included. Say 6:30 am.
- Count back your time asleep. If you average 6 h 30 m, your bedtime is midnight.
- Go to bed at that time only if you feel sleepy. If you are not sleepy, stay up a little longer, but still get up at the same time.
- No naps, especially in the first weeks.
Step 4: Adjust once a week
Keep the window for a full week, then recalculate your sleep efficiency for that week. The Sleep Foundation describes these rules:
| Sleep efficiency this week | What to do |
|---|---|
| Above 90%, and you still feel under-rested | Add 15 minutes to your time in bed |
| 85% to 90% | Keep the same window |
| Below 85%, and you don't feel sleepy | Take 15 minutes off your time in bed (never below the minimum) |
Repeat until you feel rested in the day and are satisfied with your sleep. Move the bedtime, not the wake time, when you add or remove minutes. Some programs use a gentler version called sleep compression, which shrinks time in bed more slowly; the Sleep Foundation notes it is often used with older adults.
A worked example
| Week | Window | Time in bed | Average asleep | Efficiency | Next step |
|---|---|---|---|---|---|
| Diary week | 10:30 pm - 7:00 am | 8 h 30 m | 5 h 50 m | 69% | Set window at the 6 h minimum |
| Week 1 | 12:30 am - 6:30 am | 6 h | 5 h 10 m | 86% | Keep |
| Week 2 | 12:30 am - 6:30 am | 6 h | 5 h 30 m | 92% | Add 15 min: bed at 12:15 am |
| Week 3 | 12:15 am - 6:30 am | 6 h 15 m | 5 h 45 m | 92% | Add 15 min: bed at midnight |
This is an illustration of the arithmetic, not a prediction. Real weeks are messier.
Getting through the hard weeks
- Keep the wake time after a bad night. Sleeping in feels kind but weakens the next night.
- Plan the late evening. Staying up until a later bedtime is hard. Have something calm to do in dim light.
- If you can't sleep, get up. Go somewhere dim and quiet and come back when you feel sleepy.
- Be careful with driving and machinery while you feel sleepier, and stop if you feel unsafe.
When to see a doctor
See a GP or doctor if changing your sleep habits has not helped, if you have had trouble sleeping for months, or if insomnia makes daily life hard to cope with. See one as well if you have signs of sleep apnoea, such as breathing that stops and starts, gasping or choking at night, or constant tiredness in the day. Do not change sleep medication without your doctor.
How Nightward helps
Nightward is being built to do this arithmetic for you. Your diary fills itself from Apple Health or Health Connect, and after a baseline week it sets your window and adjusts it every week by fixed, visible rules, with a report you can take to your doctor. A safety check at the start switches to a steady-schedule mode, with no shortening of time in bed, for people it may not suit. It is a wellness app, not a treatment, and cannot promise results. Join the waitlist below if you want to try it.