Sleep Efficiency & Diary Timeline Calculator
Use recorded clock times to show time asleep and awake across two entries. Overlapping notes are counted once. Keep sleeping minutes constant as you compare time in bed with the window from attempting sleep to the final awakening.
Compare sleep diary nights by elapsed time
Plot your recorded sleep and waking intervals. Compare the same asleep minutes using two different time windows.
Time used to calculate efficiency
Both timelines start at their recorded bed entry. The dashed box marks the denominator being compared.
- Before attempt
- Sleep latency
- Estimated asleep
- Awake after onset
- After final wake
Night A 22:30 to 06:30 · 480 min in bed
Night B 23:10 to 06:30 · 440 min in bed
Each row compares elapsed minutes on the same scale. The awake total counts overlapping notes once.
- Before attempt
Night A10 min
Night B5 min
- Sleep latency
Night A20 min
Night B15 min
- Estimated asleep
Night A400 min
Night B373 min
- Awake after onset
Night A30 min
Night B32 min
- After final wake
Night A20 min
Night B15 min
Review both denominators and exact CSV
| Diary | Estimated asleep | Whole time in bed | Attempt to final wake | Merged awake intervals |
|---|---|---|---|---|
| Night A | 400 min | 480 min · 83.333% | 450 min · 88.889% | 1 · 30 min |
| Night B | 373 min | 440 min · 84.773% | 420 min · 88.81% | 1 · 32 min |
How to use this calculator
- Enter the clock times you recorded for entering bed, trying to sleep, sleep onset, final awakening, and getting out of bed.
- Enter one start and end per awake note, as HH:MM times separated by a comma. Leave the box empty if you have no recorded awake intervals.
- Examine the merged wake notes and the time-in-bed comparison. Select the attempt-to-final-wake window to see how the denominator changes the percentage.
- Review the timeline and the minute breakdown, then export both percentages and their underlying diary notes.
The Formula
The mathematical logic powering this calculation is:
For each entry, measure elapsed minutes from getting into bed to getting out. Resolve times after midnight as the following part of the same overnight or daytime interval. Use responses under 24 hours and a consistent clock without a clock change. The attempt to sleep precedes or equals estimated onset. Final awakening follows the attempt and is no earlier than onset.
Combine recorded intervals awake between onset and final awakening. Merge overlaps and intervals that touch, and sum the nonoverlapping minutes. Those are recorded wake minutes after onset. Estimated time asleep equals onset-to-final duration minus those minutes. Time before the attempt, latency after the attempt, awake minutes, asleep minutes and time after final awakening add to the entire bed interval.
For the time-in-bed basis, divide estimated asleep minutes by the complete bed duration and multiply by 100. For the attempt-to-final-wake basis, divide by the elapsed minutes from attempting sleep to final awakening. These percentages describe the entered diary on an explicitly selected basis. The underlying asleep minutes stay the same. Compare exact fractions before rounding.
Enter clock times such as 22:30 and 06:15 and up to 20 awake intervals per night. The worksheet does not estimate sleep from a sensor, assess sleep stages or diagnose sleep problems.Worked Example
If you input:
- Night A: 22:30 to 06:30 in bed. Onset at 23:00 and final wake at 06:10, with 30 merged awake minutes.
- Night B: 23:10 to 06:30 in bed. Onset at 23:30 and final wake at 06:15, with 32 awake minutes.
Result:
A has 400 estimated asleep minutes and B has 373. B has the higher time-in-bed percentage, while A has the higher attempt-to-final-wake percentage.
Frequently Asked Questions
Which sleep efficiency denominator is used?
The default divides measured asleep minutes by the whole bed interval. You can select the window from attempting sleep to final awakening and see both exact ratios in the export.
Does changing the denominator change estimated sleep minutes?
No. Both percentages use the same estimated asleep minutes from the recorded onset, final awakening, and intervals awake between them.
What happens if two awake notes overlap?
The shared minutes are counted once. The CSV includes original notes and separate merged intervals.
How do I record a wake interval crossing midnight?
Enter the real start and end times in order, for example 23:50,00:10. The worksheet interprets both relative to bed entry within one less-than-24-hour interval.
Does a higher calculated percentage mean more time asleep?
Not necessarily. A shorter reporting window can have a higher ratio even when its asleep minutes are lower.
Similar Calculators
Sleep Debt Estimator
Sleep Debt Estimator for the exact fields in this tool, with clear inputs and an immediate result for planning or comparison.
Sleep Calculator
Find the ideal bedtime or wake-up time based on 90-minute sleep cycles for optimal rest.
Date Difference Calculator
Calculate the exact number of days, weeks, months, and years between two dates.
