What sleep debt is
Sleep debt is the accumulated difference between the sleep you need (typically 7–9 h for adults) and what you actually got. Chronic debt does more than make you tired: it degrades memory consolidation, immune function, glucose regulation and mood — and studies consistently show it cannot be fully "repaid" in one weekend.
How recovery works
- Acute debt (a few nights) recovers fast: one long night plus a short nap usually clears it.
- Chronic debt (weeks of 6 h nights) needs 1–2 weeks of consistently longer sleep — and even then, some cognitive effects linger.
- Sleeping in on weekends helps partially, but shifting your schedule back and forth creates social jet lag — a separate cost.
- Consistency beats heroics: 7.5 h every night beats 5 h + 12 h catch-up.
Honest recovery math
The calculator assumes you can bank extra sleep at the pace you pick (e.g. +1 h/night). If you owe 14 h, that's 14 nights of +1 h — about two weeks. If that sounds like a lot, that's the point: debt is expensive. The cheapest fix is preventing it, not repaying it.
How the maths works
makeRow() records nightly actual sleep against your target and accumulates the difference, so the debt grows from many small shortfalls rather than a single all-nighter. The page then converts the total into suggested recovery — roughly an hour of extra sleep per hour of debt — and shows the accumulation curve, because a steady 45-minute deficit and one lost night are not the same thing physiologically.
Assumptions and what they hide
Sleep debt is not a bank account. Extra sleep eases subjective drowsiness but does not fully reverse the cognitive and metabolic effects of chronic restriction, and the debt cannot be repaid in one weekend. Duration is also a crude measure: deep-sleep proportion and awakenings matter. Circadian misalignment from shift work or travel is outside the model.
Privacy: no account, no stored data
Each night you enter is added in memory only. No log is stored, so a record of poor sleep is not left behind in a browser.
Frequently asked questions
Can I repay the debt by sleeping in?
Only partly. Recovery sleep helps alertness, but performance deficits from chronic restriction persist — regularity beats catch-up.
Is eight hours the target?
It is a reasonable default. Individual need ranges roughly seven to nine hours, and quality counts as much as quantity.
Does it work for shift workers?
Poorly. Shift work desynchronises the circadian clock, so duration alone does not capture the problem.