CBT-I Sleep Window Calculator
Plan a diary-based CBT-I sleep window around a fixed wake time, then review efficiency bands, safety floors and weekly adjustment cues.{{ summaryTitle }}
{{ summaryAnnouncement }}
Enter valid planning inputs to show the sleep window.
| Measure | Result | Planning meaning | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.detail }} |
| Observed diary result | Action cue | Next window | Safety note | Copy |
|---|---|---|---|---|
| {{ row.band }} | {{ row.action }} | {{ row.nextWindow }} | {{ row.note }} |
Chart unavailable. The same candidate comparison data remains available as CSV.
Spending longer in bed does not always produce more sleep. With chronic insomnia, extra awake time in bed can weaken the connection between bed and sleep, make the night feel more fragmented, and reduce sleep efficiency. Cognitive behavioral therapy for insomnia (CBT-I) uses a structured sleep window to bring time in bed closer to the amount of sleep recorded in a diary.
A sleep window has two clock boundaries. Wake time is usually kept consistent, and bedtime is counted backward from it. Total sleep time is the estimated time actually asleep, while time in bed includes awakenings and time spent trying to sleep. Sleep efficiency is total sleep time divided by time in bed.
- Total sleep time
- The diary estimate of minutes actually asleep, not the full bedtime-to-wake interval.
- Time in bed
- The scheduled sleep opportunity, not a guarantee of sleep.
- Sleep efficiency
- Total sleep time as a percentage of time in bed, preferably averaged across several nights.
- Sleep window
- The planned time in bed anchored to a regular wake time and monitored for daytime safety.
Weekly adjustment is central to the method. A diary average is reviewed after several nights, then the window may be expanded, held, audited, or tightened in a small step. Daytime sleepiness overrides a purely efficiency-based change because restriction can temporarily increase fatigue.
A calculated schedule is only one part of CBT-I. Stimulus control, consistent wake time, diary review, cognitive strategies, and attention to conditions such as sleep apnea or bipolar disorder may also matter. This page provides educational planning support, not diagnosis or an individualized treatment prescription.
How to Use This Tool:
Start with a representative diary average and a wake time you can keep consistently, including non-work days.
- Enter Baseline total sleep time from several diary nights, not one night and not the full time spent in bed.
- Set a Fixed wake time. The planned bedtime is calculated backward across midnight when needed.
- Choose the Minimum sleep window, Maximum reduction from baseline, and Adjustment step. Use clinician guidance for safety limits.
- Leave Observed weekly efficiency blank for an initial plan. After the review period, enter the diary average and select the current Daytime sleepiness level.
- Read the recommended window and weekly action together. Stop further restriction and seek clinical review when significant sleepiness or another safety concern is present.
Interpreting Results:
The recommended bedtime is a diary-based starting point anchored to the selected wake time. Projected efficiency assumes baseline sleep remains unchanged when the window changes. Values above 100% reveal that the assumed sleep duration exceeds the candidate window; they are not a possible measured efficiency and should prompt a review of the diary average and safety floor.
Weekly action cues use observed efficiency and daytime sleepiness. An expansion cue is not permission to ignore fatigue, and a tighten cue is not a command to reduce time in bed below the configured floor. Compare several nights, note daytime function, and review large schedule shifts before applying them.
Technical Details:
Baseline total sleep time is converted to whole minutes. The effective floor is the greater of the configured minimum and baseline sleep minus the maximum permitted reduction. Candidate windows advance from that floor in the selected 10-, 15-, 20-, or 30-minute step.
Formula Core:
Sleep efficiency compares estimated sleep with the scheduled window. Bedtime is the wake clock time minus the selected window, wrapped within a 24-hour day.
TST is baseline total sleep time in minutes, TIB is the sleep window, Fc is the configured minimum, R is the maximum reduction, and Fs is the effective safety floor. The starting duration snaps to the selected step by nearest, downward, or upward rounding and stays within the floor and scenario ceiling.
Rule Core:
| Observed efficiency | Safety condition | Planning cue |
|---|---|---|
| 90% or higher | Sleepiness stable | Expand by one step when the ceiling permits. |
| 90% or higher | Mild or significant sleepiness | Safety hold; do not expand automatically. |
| 85% to below 90% | No overriding safety issue | Hold the window. |
| 80% to below 85% | Any level | Hold and audit diary timing and adherence. |
| Below 80% | No significant sleepiness | Tighten one step if above the floor. |
| Any efficiency | Significant sleepiness | Hold and seek safety review. |
The 80%, 85%, and 90% edges are inclusive on the higher band. A configured five-hour minimum reflects the cited protocol, while alternative floors, rounding, reduction caps, scenario ceilings, current-schedule substitution, and 5-, 7-, or 10-night display cadences are planning choices in this calculator.
Worked Check:
With 5.5 hours of baseline sleep, a 06:30 wake time, a five-hour floor, and 15-minute steps, the starting window is 5.5 hours and bedtime is 01:00. If a later diary average is 91% and daytime sleepiness is stable, the next cue expands the window to 5 hours 45 minutes and moves bedtime to 00:45.
Limitations and Safety Notes:
Sleep restriction can increase daytime sleepiness. Do not drive, operate machinery, or perform safety-sensitive work while sleepy. Seek qualified clinical guidance before changing a sleep window if you have significant daytime impairment, suspected sleep apnea, bipolar disorder, seizure risk, pregnancy, another medical or psychiatric condition, or medicines that affect sleep.
- Diary estimates are imperfect and should represent several nights.
- Efficiency alone cannot diagnose insomnia or explain why sleep is disrupted.
- A floor or action cue does not replace individual assessment and follow-up.
References:
- The Management of Chronic Insomnia Disorder and Obstructive Sleep Apnea, VA/DoD Clinical Practice Guidelines, 2025.
- Behavioral and Psychological Treatments for Chronic Insomnia Disorder in Adults: Patient Guide, American Academy of Sleep Medicine.
- Sleep Opportunity Alteration Instructions, University of Pennsylvania, April 1, 2021.