What this calculator does
Sleep debt is the running total of sleep missed against what you actually need. It accumulates quietly, because a shortfall of an hour or two a night does not feel dramatic on any individual morning.
The total is what makes the point. Seven nights averaging 5.71 hours against an 8 hour target builds 16 hours of debt, which is two full nights of sleep missed in a single week.
The formula
Each night's shortfall against the target is calculated, and the results are summed across all nights entered. A negative total indicates a surplus rather than a debt.
| Term | Meaning |
|---|---|
| Sleep debt | Accumulated shortfall against the nightly target. |
| Sleep target | The amount you need, typically 7 to 9 hours for an adult. |
| Sleep surplus | A negative debt, where sleep exceeded the target across the period. |
The inputs explained
| Field | What to enter |
|---|---|
| Target sleep per night (hours) | Target sleep per night in hours. Most adults need between 7 and 9. |
| Hours slept each night (comma-separated) | Hours slept on each night, comma separated. Any number of nights can be entered. |
When to use it
Seeing the cost of a busy week
Small nightly shortfalls add up to something substantial.
Planning recovery
Knowing the size of the debt is the first step in deciding how to repay it.
Tracking a pattern
A persistent debt week after week is a different problem from one bad week.
Worked examples
Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.
How quickly does a shortfall accumulate?
Three weeks of sleep against the same target.
| Nights logged | Sleep debt or surplus | Average sleep logged |
|---|---|---|
| Target met every night | 0 h 0 min | 8.00 h/night |
| Mixed week | 6 h 30 min | 7.07 h/night |
| Consistently short | 16 h 0 min | 5.71 h/night |
Questions
Can sleep debt be repaid?
Partially. Research suggests recovery sleep restores much of the deficit in alertness and performance, but some effects, particularly on attention, persist longer than a weekend lie-in resolves. Chronic debt is not fully repaid by occasional catch-up.
How much sleep do I actually need?
Most adults need 7 to 9 hours, with genuine individual variation. The people who function well on much less are rarer than the number who believe they do, since sleep deprivation impairs the judgement needed to notice it.
Does catching up at the weekend work?
It helps but is imperfect. Large weekend shifts in sleep timing create their own disruption, sometimes called social jetlag, so consistent timing generally works better than alternating deprivation and recovery.
Is more sleep always better?
Not indefinitely. Consistently very long sleep is associated with poorer health outcomes in population studies, though the direction of that relationship is unclear and may reflect underlying illness rather than the sleep itself.
For caffeine still in your system at bedtime, see the caffeine remaining calculator. For training heart rate zones, see the Karvonen formula calculator.