Sleep Quality Tracker
Compute time in bed, time asleep and sleep efficiency from bedtime, wake time and minutes awake.
Efficiency from a sleep diary
Enter your bedtime, your wake time and the minutes you lay awake. The page takes the gap between the two clock readings, wrapping past midnight, subtracts the awake minutes for the time asleep, and divides by the time in bed for a percentage. Eight hours in bed with twenty minutes awake is 7 hours 40 minutes asleep at 95.8 percent efficiency.
This is a diary calculation, not a measurement: the page does not read a watch or a phone, and the awake minutes are your own estimate. It knows nothing about sleep stages, breathing or how rested you felt, and 85 percent is a rule of thumb rather than a target for everyone. Two identical clock readings are refused, since the gap would be either nothing or a whole day, and awake minutes that fill the night are refused.
The clock arithmetic runs in this tab from three entries. Nothing is uploaded, no night is stored, and the same entries always print the same efficiency.
Sleep efficiency from a diary entry: time in bed is the gap between bedtime and wake time wrapping past midnight, asleep is that gap minus the minutes awake, and efficiency is asleep ÷ in bed × 100. Eleven to seven with twenty minutes awake reads 95.8%, and the page prints the hours asleep and in bed alongside so the percentage can be checked. Eighty-five percent and above is the usual good line, which the page states rather than implying a verdict. Both times are your own readings on a 24-hour clock; identical times are refused because the gap is then either zero or twenty-four hours and neither is a night. The figure measures time, not sleep stages.
Sleep efficiency from a bedtime, a wake time and minutes awake: asleep ÷ time in bed × 100, wrapping past midnight.
How to use it
Enter bedtime and wake time as HH:MM on a 24-hour clock, plus the minutes you were awake in bed, then press Run. The first line is the efficiency and the hours actually asleep; the second restates the time in bed and the awake minutes. A bedtime of 23:00 and a wake time of 07:00 wrap over midnight automatically — no date is needed.
The arithmetic
The gap is computed in minutes and taken modulo a day, so a later wake time and an earlier one are handled the same way. Awake minutes are subtracted to give asleep minutes, and the ratio of asleep to in bed is the percentage. A diary that under-reports awake minutes inflates the efficiency directly.
Where it stops
The clock readings must be valid HH:MM with hours up to 23 and minutes up to 59, awake minutes cannot be negative, and they must be less than the time in bed. Equal bedtime and wake time is refused. The result is time-in-bed arithmetic: it cannot see sleep stages, and it is a diary measure rather than a diagnosis of insomnia or apnoea.
What to Expect
Best for
- Turning a night's diary entry into one efficiency figure.
- Seeing how much awake time costs as a share of the night.
What this tool keeps
- Your times stay in the browser; the page stores no sleep diary and sends nothing.
Sample input
23:00 to 07:00, 20 min awake
Sample output
Sleep efficiency 95.8% — 7 h 40 min asleep 8 h 0 min in bed and 20 min awake; 85% and above is the usual good line.
Frequently asked questions
How do I use the sleep quality tracker?
Enter bedtime and wake time as HH:MM and the minutes you were awake in bed, then press Run. The page prints the efficiency, hours asleep and the time in bed it used.
Is anything uploaded?
No. The clock arithmetic happens in this tab; nothing is sent, no account is needed, and nothing is kept after a reload.
What are its limits?
The times must be valid 24-hour readings, awake minutes cannot be negative, and they must be less than the time in bed. The percentage measures time, not sleep stages — it is a diary figure, not a diagnosis of any sleep disorder.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.