Sleep Debt Calculator
How many hours of sleep have you lost this week?
Enter your actual sleep hours for each night of the week alongside your personal sleep target. The calculator totals your deficit, flags chronic shortfall, and estimates how many recovery nights you need to clear it.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Think of sleep like a bank account where withdrawals happen automatically every night you fall short of your requirement. Every night you sleep less than you need, the shortfall is added to your running balance. Every night you sleep more than you need, you make a repayment. Unlike money, you cannot earn interest on surplus sleep — extra hours above your goal do not roll forward to cover future nights. They only chip away at existing debt.
The calculator adds up your actual sleep for each night you enter, compares it against your personal goal multiplied by the same number of nights, and reports the gap as your weekly sleep debt. The 'recovery nights' figure then estimates how many nights sleeping one hour above your goal would clear that balance — a conservative but realistic recovery rate for most adults.
The reason nights-in-deficit matters separately from total hours is pattern recognition. Two people might have the same weekly debt, but one built it across two bad nights and the other has never once hit their goal all week. Those patterns respond to different interventions: the first person needs to protect two nights; the second needs a structural schedule change.
When To Use This
Right tool, right situation
Use this calculator when you want a concrete number to anchor a conversation with yourself about your sleep pattern — before making a schedule change, before a demanding project period, or when you have been feeling persistently tired and want to understand whether sleep quantity is the likely cause.
It is also useful for tracking week to week once you have made a change. Enter the same goal each week and compare the debt figure to see whether your new bedtime is actually working or just feels better.
Do not use this calculator to make clinical decisions. If your debt is consistently high despite having adequate time available to sleep, or if you wake unrefreshed regardless of duration, the issue may be a sleep disorder such as apnea rather than a scheduling problem. The calculator cannot detect quality issues, fragmentation, or disorders — a sleep study is the appropriate next step in those cases.
Common Mistakes
Why results sometimes look wrong
The most common mistake is confusing time in bed with actual sleep. If you lie awake for 40 minutes before falling asleep and then wake once during the night, entering 8 hours because that is when you got into bed overstates your actual sleep by up to an hour. Enter only the time you were actually asleep.
A second mistake is assuming that feeling fine means no debt. Subjective sleepiness adapts — people who are chronically short on sleep often stop noticing their own impairment. Reaction time and working memory tests reveal deficits that the person themselves rates as mild or absent. The calculator reports what the math says, not how you feel.
A third mistake is setting a goal based on an aspirational target rather than biological need. Entering 9 hours when you genuinely function well on 7.5 creates artificial debt that looks alarming but is not real. Your sleep goal should be derived from days when you have no alarm and no social obligation — not from a wellness article.
The Math
Worked examples and deeper derivation
The core calculation is: weekly sleep debt = sum of (goal minus actual) for each night, counting only nights where actual is less than goal. Nights where you exceeded your goal do not contribute negative debt — this reflects the current scientific understanding that sleep banking has limited carry-forward value.
Recovery nights are calculated as total debt divided by the extra sleep per recovery night. The calculator assumes 1 extra hour per night as a realistic upper bound — sleeping 2 or 3 hours above your goal is hard to sustain and disrupts circadian timing. So if your debt is 7 hours, recovery takes 7 nights at one hour over goal.
Nights-in-deficit is a simple count of nights where actual sleep was below goal. This number matters because frequency of deprivation compounds cognitive effects independently of total hours lost. Four nights of mild shortfall is physiologically different from one severe night, even if the totals are identical.
Expert Unlock
The thing most explanations skip
The model here treats sleep debt as fully additive within a week, which is a simplification. In reality, the harm function is non-linear — two consecutive nights of 5 hours impairs more than the arithmetic suggests, because recovery from sleep loss does not begin until the following night of sufficient sleep. The calculator also cannot account for circadian phase shifts, which occur when schedule irregularity pushes sleep timing later, creating performance deficits even when total hours are met. Users who consistently show low debt but high fatigue should consider whether irregular sleep timing rather than duration is the variable to target.
Can you actually pay back sleep debt over a weekend?
Need something this doesn't cover?
Suggest a tool — we'll build it →