Sleep debt is the gap between the sleep you need and the sleep you actually got, added up over several nights. One short night is not debt — it is a short night. The debt starts when the shortfall repeats, because the body does not reset its counter at midnight.
How the calculator adds it up
There is no hidden model here. The arithmetic is the shortfall per night, multiplied by the number of nights:
sleep owed = (your target − what you averaged) × nights
| Your target | You averaged | Over | Sleep owed |
|---|---|---|---|
| 8 h | 7 h | 7 nights | 7 h |
| 8 h | 6 h 30 min | 7 nights | 10 h 30 min |
| 8 h | 6 h | 14 nights | 28 h |
| 7 h 30 min | 6 h 30 min | 5 nights | 5 h |
The number that decides everything is the target, so pick it deliberately rather than accepting the default.
Pick a target you can actually keep
Most adults are advised to sleep somewhere between seven and nine hours. Eight is the middle of that range, which is why it is the default here — but a target you never reach turns every night into debt and makes the tool useless. If your mornings are fixed by a school run or a shift handover, work out what that schedule genuinely allows, set the target there, and then treat the number as a fixed reference for a few weeks. A steady target plus an honest average is the only way the total means anything.
What counts as sleep, not time in bed
The calculation is about hours asleep. Twenty minutes of scrolling after lights out is twenty minutes the calculator should not count — which is exactly the 15 minutes the other calculators on this site add for falling asleep. Most people overestimate their sleep by about half an hour a night, and that half hour multiplied by seven is a whole night a week. If you are unsure, take the smaller number.
Why a single long lie-in does not clear it
A long Saturday can recover part of a shortfall, but it is a poor instrument. Sleeping several hours past your usual wake-up time shifts your body clock later, so Sunday night is harder to fall asleep and Monday morning is harder to get up — the debt goes down on paper while the pattern gets worse. The more useful correction is smaller and repeated: half an hour or an hour earlier to bed, consistently, until the total reaches zero.
That is what the two payback rows in the result show. For ten and a half hours owed, half an hour a night means twenty-one nights, an hour a night means eleven. Neither is fast, which is the honest part of the answer: you did not build the debt in a day and you will not clear it in one.
Sleep debt counted in cycles
Because a sleep cycle is about 90 minutes, the hours convert into cycles directly. Ten and a half hours is seven cycles; three hours is two. This matters because what you lose first when you cut a night short is not spread evenly — deep sleep dominates the early cycles and REM concentrates in the later ones, so a night trimmed at the end loses REM disproportionately.
If you want the REM side of that worked out for your own schedule, the REM sleep calculator breaks a night into cycles and estimates the REM minutes. If you would rather plan backwards from a fixed number of cycles, use the sleep cycle calculator.
When the debt keeps coming back
If the total is never zero across several weeks in a row, the problem is not the weekend and not the calculator — it is the bedtime. Debt that renews itself every week usually means the target is realistic but the start time is too late. Two changes fix more of this than any payback plan: keep the wake-up time identical seven days a week, and move lights-out earlier by fifteen minutes every few days until the total stops growing.
A debt that only appears around shift changes, travel or a new baby is a different situation — that is a schedule being imposed on you, and the useful move is protecting the sleep you do get rather than chasing a total you cannot control.
What this calculator does not do
It does not count caffeine, alcohol or interrupted waking, all of which change how much of your time in bed was actually restorative. It does not diagnose insomnia, sleep apnoea or anything else, and it does not predict how you will feel tomorrow. It is arithmetic on your own numbers, which is enough to see whether a week was a one-off or a pattern.
If you are short most nights and it has been going on for months, the arithmetic is no longer the interesting part — daily sleepiness that does not lift after a good night is worth raising with a doctor rather than fixing with a bedtime.
This page is general information, not medical advice.