CBT-I Sleep Diary Tracker
{{ summaryTitle }}
{{ summaryLine }}
{{ reviewCopyAnnouncement }}
- {{ cue }}
The chart renderer is unavailable. The same values remain available in the night ledger.
| Date | Bed | Rise | TIB | TST | SOL | WASO | SE | Wake drift | Quality | Nap | Copy |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ row.date }} | {{ row.bed_time }} | {{ row.rise_time }} | {{ formatHours(row.time_in_bed_minutes) }} | {{ formatHours(row.total_sleep_time_minutes) }} | {{ formatMinutes(row.sleep_onset_minutes) }} | {{ formatMinutes(row.wake_after_onset_minutes) }} | {{ formatPercent(row.sleep_efficiency_percent) }} | {{ formatSignedMinutes(row.wake_drift_minutes) }} | {{ qualityLabel(row.sleep_quality) }} | {{ formatMinutes(row.nap_minutes) }} |
Latency sensitivity chart unavailable. Reopen this tab to retry.
Similar tools
- Progressive Muscle Relaxation (PMR) Coach Build a paced progressive muscle relaxation routine that sequences body regions with tense-and-release timing, comfort reminders, and live cues.
- Sleep Window Adjustment Planner Turn weekly sleep-efficiency values into a fixed-wake adjustment plan with explicit thresholds, bounded changes, and daytime-safety guidance.
- Sleep Debt Calculator Calculate recent sleep debt from a 7- or 14-night log with chronological deficits, optional surplus credit, recovery days and bedtime guidance.
- 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.
Time in bed and time asleep are not the same quantity. A person may spend eight hours in bed yet sleep for much less because falling asleep took a long time or wakefulness returned during the night. A sleep diary separates those parts so a week can be reviewed as a pattern rather than judged by its worst night.
Cognitive behavioral therapy for insomnia (CBT-I) often uses a daily diary to follow sleep timing, estimated wakefulness, and perceived quality. The entries are usually estimates made after waking, not measurements from brain waves or a wearable. Consistent estimates are still useful because changes in the same person's routine can become visible across several nights.
- Sleep-onset latency (SOL)
- Estimated minutes from getting into bed to first falling asleep.
- Wake after sleep onset (WASO)
- Total estimated minutes awake after first sleep and before the final rise.
- Total sleep time (TST)
- Time in bed after subtracting SOL and WASO.
- Sleep efficiency (SE)
- TST as a percentage of time in bed.
A higher efficiency percentage does not automatically mean enough sleep. Four hours asleep within a four-and-a-half-hour window can look efficient while leaving the person sleep deprived. Total sleep time, daytime function, schedule regularity, and safety symptoms must be considered alongside the percentage.
The intended wake time supplies another useful comparison. A steady final rise can support a regular schedule, while repeated drift may explain why an otherwise similar bedtime produces different nights. Naps and a subjective 1 to 5 quality rating add context, but they do not enter the nighttime sleep-efficiency equation.
A diary supports discussion and self-observation; it does not diagnose insomnia, sleep apnea, bipolar disorder, medication effects, or another sleep condition. Do not make restrictive sleep-window changes from a percentage alone. Persistent sleep difficulty, marked daytime sleepiness, unsafe driving risk, or worsening physical or mental health calls for qualified clinical advice.
How to Use This Tool:
Record one sleep period under the date it began, using the same estimation method each morning.
- Set Intended wake time and Review target. The target adds a comparison line; 85% is a common CBT-I review reference, not an automatic prescription.
- Enter Got into bed, Final out of bed, SOL, WASO, remembered awakenings, and sleep quality. Add nap minutes under Advanced when they help explain the next night.
- Select Save night. Saving the same sleep-night date replaces that row, and the tracker keeps at most 90 dates.
- Compare Sleep review with the nightly ledger and trend. Correct impossible timing or awake-minute totals before interpreting an average.
Interpreting Results:
Recent sleep efficiency averages the latest seven saved nights, or all nights when fewer than seven exist. Compare it with average TST and time in bed. An efficiency that meets the selected target can still accompany short sleep, poor quality, or daytime impairment.
Latency sensitivity compares alternative recent mean SE values with the selected review reference. At a saved SOL of 25 minutes, the illustrative bracket is 10 to 40 minutes when all alternatives are valid. The absolute ±15-minute bracket is an authored illustration, not a confidence interval, a measured tolerance for estimation error, a diagnosis, or a sleep-window prescription.
Wake drift is signed in the nightly ledger: positive means the final rise was later than the intended wake time, and negative means earlier. The summary uses the recent average absolute drift, so early and late departures do not cancel each other.
The trend is a descriptive slope, not evidence that treatment caused the change. Look for repeated movement across multiple nights and review unusual entries, naps, illness, schedule changes, and estimation differences before changing a CBT-I plan.
Technical Details:
Clock times are converted to minutes after midnight. When the final rise is not later on the clock than bedtime, 1,440 minutes are added to represent an overnight interval. Valid time in bed is 60 to 1,080 minutes, and SOL plus WASO must remain strictly less than that interval.
Formula Core
The nightly calculation first establishes the sleep window, then removes estimated wakefulness.
b is bedtime, r is final rise time, and w is intended wake time, all in minutes after midnight. Wake drift D lies from −720 inclusive to +720 exclusive. A 23:30 to 07:00 interval gives 450 minutes in bed; subtracting 25 minutes of SOL and 40 minutes of WASO leaves 385 minutes asleep and 85.56% efficiency.
The trend is an ordinary least-squares slope over chronological nights, with x equal to 0, 1, 2, and so on and y equal to each rounded nightly efficiency.
The slope is reported in percentage points per night and rounded to three decimals. Nightly efficiency is rounded to two decimals before averages and the slope are calculated; summary averages are then rounded to two decimals.
The latency scenarios vary only the chronologically latest saved night's SOL by offsets of −15, −10, −5, 0, +5, +10, and +15 minutes. All other nights and all other inputs for that night stay fixed. Each valid alternative replaces that night's efficiency in the latest up-to-seven-night mean SE. Alternatives outside SOL of 0 to 300 minutes or without positive TST are excluded.
Rule Core
Review cues use only the most recent seven nights and fixed comparison operators.
| Measure | Condition | Cue |
|---|---|---|
| Recent SE | SE < selected target | Reports the shortfall in percentage points |
| Recent SE | SE ≥ selected target | Reports that the target is met |
| Absolute wake drift | average > 30 minutes | Flags wake-time variation |
| Awake time | average SOL > 30 minutes or average WASO > 45 minutes | Prompts contextual review |
Limitations and Privacy Notes:
Sleep-diary values are retrospective estimates. They may differ from wearable or laboratory measurements, and the trend does not correct for illness, medication, shift work, travel, or missing contextual notes.
- Saved diary rows are kept in this browser. A saved date replaces the earlier row for that date.
- The current draft fields are mirrored into the page address as they change. Avoid entering sensitive notes, and do not share a URL that contains personal sleep values.
- The 85% comparison and the built-in cues are review aids. Sleep-window changes should follow an individualized CBT-I plan, especially when severe sleepiness or another health condition is present.
References:
- The Consensus Sleep Diary: Standardizing Prospective Sleep Self-Monitoring, Sleep, 2012.
- Improve Your Sleep, U.S. Department of Veterans Affairs.
- Insomnia Treatment, National Heart, Lung, and Blood Institute.