Sleep Efficiency Formula: Calculate Yours From a Diary
Sleep efficiency is one division: the time you were asleep, over the time you were in bed. Both numbers live in a sleep diary row — which makes the formula the diary's most direct arithmetic. This page walks the calculation on a real row's worth of numbers, shows why diary data yields a range rather than a single figure, and marks where the number's meaning honestly ends.
The formula, in one line
sleep efficiency = (total sleep time ÷ time in bed) × 100
Two inputs, one division, a percentage out. A night in bed 8 hours with 7 of them asleep lands at 87.5; a night with 6 asleep out of 9 in bed lands near 67. The percentage summarizes how much of the time you devoted to being in bed actually became sleep time — nothing more, and nothing mystical.
Everything else on this page is about the two inputs: where they come from in a diary row, and why one of them can't be read off the row exactly.
Where each number comes from in a diary row
Take one row from a diary kept in this site's format. Its columns are: Morning of, Bedtime, Wake time, Hours in bed, Night wakings, Morning feel, Notes.
- Time in bed — read it straight off. Wake time minus bedtime is the whole calculation: 23:00 to 06:30 is 7.5 hours. The diary's Hours in bed column carries this number already, so this input is free.
- Total sleep time — assemble it from three parts. Start from time in bed, subtract the minutes it took to fall asleep, subtract the minutes spent awake during the wakings, and what remains is sleep time. You jot the first part from memory in the morning and you count the wakings in their column — but the column records how many, not how long.
That missing piece — waking duration — is not sloppy record-keeping. Noting wakings in the morning, from half-memory, keeps the 3 a.m. record-keeping light; the trade-off is that the diary knows the count but estimates the duration. Which is exactly why the careful form of this calculation runs on a range:
efficiency = a lower bound and an upper bound, from short vs. long waking estimates
Assume the wakings were brief (say 5 minutes each) and you get the upper bound; assume they ran long (say 15 minutes each) and you get the lower bound. The truth sits between, and a fortnight of rows narrows it faster than any single night can.
A worked example — as a range
One row, end to end. The night in question: bedtime 23:00, wake time 06:30, one remembered waking, and about 20 minutes to fall asleep.
- Time in bed: 23:00 → 06:30 = 7 h 30 min = 450 minutes.
- Falling asleep: subtract the 20 remembered minutes → 430 minutes of candidate sleep time.
- The waking: the column says 1. At 5 minutes → 425 minutes asleep; at 15 minutes → 415 minutes asleep.
- The division: 415 ÷ 450 = 92.2%; 425 ÷ 450 = 94.4%. The night lands somewhere in the low-to-mid nineties.
A second row, to see the formula bite: bedtime 22:30, wake 06:30, two wakings, 45 minutes to fall asleep. Time in bed 480; 480 − 45 = 435; at 5 min per waking → 425 (88.5%); at 15 min per waking → 405 (84.4%). Note what moved the number most: not the wakings — the long stretch before sleep did. The arithmetic is indifferent to which part of the night the wakefulness lived in; the rows and their notes are what tell you that.
Sample data, for illustration only — not stored anywhere.
One night vs. a fortnight window
A single-night efficiency carries every approximation in the method at full volume: one misjudged falling-asleep estimate shifts the number by a point or more. Summing the window first dampens that. Over two weeks:
- Add up all fourteen time-in-bed figures. These are exact — read from the rows.
- Add up the falling-asleep estimates and waking counts. These carry the approximations, but the over- and under-estimates of separate nights partly cancel.
- Divide once. One division for the fortnight, not fourteen divisions averaged — summing first is both simpler and arithmetically the same thing done more cleanly.
The window number is the one worth writing down and comparing across fortnights. Night-by-night numbers are fine for spotting which rows ran unusual — which is a navigation aid back to the rows, not a measurement trend.
What the number is — and isn't
The honest framing, in three lines:
- It is a ratio of your own recorded times. Computed from rows you wrote, on mornings, from memory — which makes it a well-organized estimate, not a measurement. Devices that estimate sleep from movement and pulse produce their own version of the same ratio, with their own approximations; the tracker-vs-diary comparison covers how the two kinds of records differ.
- It is most informative against itself. The same columns, the same estimating habits, a fortnight at a time — the comparison that survives the method's noise is your fortnight against your earlier fortnights.
- It is a description, not a diagnosis. Published reference ranges exist and differ; interpreting where your number sits among them — and whether anything about it calls for action — belongs to a sleep professional. Bring the fortnight of rows: the number travels best with the rows that produced it.
Doing it with this site's tools
Nothing here needs more than the rows and a calculator:
- The sleep diary tool keeps the rows — bedtime, wake time, hours in bed, night wakings — for as long a stretch as you care to run, entirely on your device.
- The how-to-start guide sets up the row-keeping habits that make the inputs comparable night to night — same two fill-in moments, same bedtime boundary.
- The weekly report groups completed rows into weeks — the same window logic the fortnight calculation uses.
- For context on the hours-in-bed side of the ratio, the sleep-hours reference carries the published age ranges and their limits.
If your rows are being kept through a stretch of restless nights, the sleep journal guide covers what to record and where the record's role ends.
Common questions
What is the sleep efficiency formula?
Sleep efficiency = total sleep time ÷ total time in bed × 100. It answers one arithmetic question: of all the time you spent in bed, what fraction of it was sleep? A night with 7 hours asleep out of 8 hours in bed computes to 87.5%. The formula needs two numbers, and a sleep diary row is where both come from — bedtime and wake time give the time in bed, and your wakings fill in the rest.
How do I find total sleep time from my diary?
Time in bed comes straight from the row: wake time minus bedtime. Total sleep time is that number minus the parts that weren't sleep — how long it took to fall asleep and how long the night wakings lasted. Here is the honest catch: the diary's night-wakings column records how many times you woke, not how many minutes each waking ran. That is why a careful calculation on diary data produces a range, not a single exact number — the worked example below shows one.
What counts as time in bed?
The stretch between lights-out intent and getting up: bedtime through wake time, as your diary rows record them. Reading in bed to wind down is inside the number; a book read on the sofa before heading up is not. The number only means something if the boundary is drawn the same way every night — which is why the how-to-start guide has you fill rows at the same two moments each day.
What is a good sleep efficiency number?
Published reference ranges exist and differ from one another, so this page won't crown one. What a diary is actually good for is the comparison it makes available: your own fortnight against your own baseline. A number computed the same way, from the same columns, across two weeks, tells you which nights ran higher and which ran lower — and the rows around those nights hold the notes that travel with them. An interpretation of the number itself belongs to a professional, if you choose to consult one.
Should I calculate it for every single night?
You can, but single nights are noisy — one late bedtime or one remembered waking moves the number more than any real change in the nights themselves. The steadier read is a window: all fourteen rows of a fortnight summed first, then divided once, which smooths the odd nights instead of spotlighting them. That is also the arithmetic behind a weekly view — the site's weekly report page groups completed diary rows the same way.
Does a lower number mean something is wrong?
A number is a description, not a verdict. On diary data it usually just says where the time went: longer stretches awake before sleep, or wakings that ran long, or an earlier-than-usual alarm. Each of those is visible in the rows themselves — which nights, which notes — and that visibility is the diary's real product. What the pattern means, and whether anything should change, is a conversation for a professional; the calculation's job ends at making your account specific.
This page is general information about an arithmetic formula and how it applies to personal sleep records. It is not medical advice, diagnosis or treatment, and it does not replace conversations with a qualified professional.