Personal Records & Visits · Free tool
Sleep Diary & Duration Summary
Organize sleep entries across midnight, subtract reported awake time, and keep unknown values and naps separate from overnight estimates.
No sign-up · Calculations in this browser · Copy and download results
For learning and preparation. This tool does not diagnose conditions or recommend treatment. Do not enter patient identifiers.
Loading the calculator. JavaScript is required to calculate. Instructions and sources are available below.
Your result
How to use this tool
- Replace the fictional rows with dates and local clock times. Use a separate ID for each main sleep period.
- Enter estimated minutes only when known. Mark clock changed for travel or daylight-saving transitions.
- Review excluded entries before using the average. Print or explicitly download the diary to bring to a conversation.
Worked example
23:00 to 07:00 next day spans 480 minutes. Subtracting 30 minutes to fall asleep and 45 awake minutes gives 405 estimated minutes. The second example gives 420, so their mean is 412.5; the incomplete third entry is excluded. The 30 nap minutes remain separate.
Assumptions and limits
- Dates and times use one local wall clock. No timezone or daylight-saving adjustment is made.
- One main sleep period per row, up to 90 rows. Intervals must be positive and at most 24 hours; this is a technical scope, not a healthy-sleep threshold. Multiple shift-work periods need separate rows and are not combined into daily totals.
- Self-reported minutes are estimates. Unknown or inconsistent entries are not imputed; malformed dates and negative or fractional minute values require correction.
- Downloads contain your entries. Use aliases instead of identifying information and keep exported files on a trusted device. Nothing is saved automatically by this tool.