To calculate sleep debt, multiply the sleep you need per night by 7, then subtract the hours you actually slept this week. If you need 8 hours (56 a week) and slept 51, your sleep debt is 5 hours. That's the same number whether you call it sleep debt or a sleep deficit.
The sleep debt calculator does this from seven nightly numbers and gives you a recovery plan. Here's the math behind it, step by step.
Free toolSleep Debt CalculatorHow much sleep you owe this week, and how to pay it back.What is the sleep debt formula?
There are two parts: what you needed and what you got.
Weekly sleep debt = (hours needed per night x 7) - total hours slept this week
Or, night by night:
Nightly debt = hours needed - hours slept, then add up the week.
Both give the same answer as long as you let longer nights count against shorter ones. If the result is zero or negative, you have no debt this week.
Step 1: Pick your nightly need
Adults need at least 7 hours, and 7 to 9 is the usual recommended range. If you don't know your number, 8 is a reasonable default. Use your honest need, not your hoped-for one: if you only feel good after 8.5 hours, use 8.5.
Your age changes this. See how much sleep you need for the ranges by age.
Step 2: Work out your real hours slept
This is actual sleep, not time in bed. Subtract the time it took to fall asleep and any time you lay awake. If 11 PM to 7 AM included 15 minutes to drift off and 15 minutes awake at 3 AM, that night counts as 7.5 hours, not 8. The method is in how to calculate hours slept, including how to handle nights that cross midnight.
How to calculate sleep debt: a worked weekly example
Here's a typical week for someone who needs 8 hours:
| Night | Hours slept | Needed | Debt that night |
|---|---|---|---|
| Mon | 6.5 | 8 | 1.5 |
| Tue | 7 | 8 | 1 |
| Wed | 6 | 8 | 2 |
| Thu | 7.5 | 8 | 0.5 |
| Fri | 6.5 | 8 | 1.5 |
| Sat | 9 | 8 | -1 |
| Sun | 8.5 | 8 | -0.5 |
| Week | 51 | 56 | 5 |
The weekday shortfall adds up to 6.5 hours. The weekend lie-ins pay back 1.5 of it, leaving 5 hours of sleep debt. That's more than half a night of sleep missing, even though no single night looked alarming.
Change one input and the answer moves a lot. With a 7.5-hour need, the same week comes out to just 1.5 hours of debt. That's why picking an honest nightly need matters more than any other step.
Should weekend catch-up sleep count?
In the math, yes: the formula nets it off, and the calculator does the same. In your body, it's only a partial repayment.
Research suggests weekend recovery sleep doesn't fully undo a week of short nights. In one controlled study, people who slept short on weekdays and then slept in at the weekend still showed reduced insulin sensitivity, much like people who stayed short all week. And big lie-ins shift your body clock, which can make Sunday night harder. More in is it bad to sleep in on weekends.
If you want a stricter number, add up only the short nights and ignore the long ones. In the example, that's 6.5 hours instead of 5.
Sleep debt recovery calculator: how long to pay it back
Recovery works best spread over several nights, by going to bed earlier rather than sleeping later. Divide your debt by the extra sleep you can add each night:
Nights to recover = sleep debt / extra sleep per night
| Sleep debt | Extra per night | Nights to recover |
|---|---|---|
| 5 h | 1 h | 5 |
| 5 h | 45 min | 7 |
| 2.5 h | 30 min | 5 |
The sleep debt calculator suggests 30 extra minutes a night for small debts (3 hours or less) and an hour for bigger ones, and tells you how many nights it should take.
Treat that as a minimum. In a Japanese lab study that gave people extra-long nights in bed, it took about four days to recover from just one hour of estimated sleep debt. Your body may keep "catching up" for longer than the arithmetic says.
What the number can't tell you
- Long-term debt is hard to count. If you've slept 6 hours a night for months, a weekly total understates it.
- You may not feel it. In a well-known study, people restricted to 6 hours a night for two weeks performed as badly as people kept awake for one to two nights straight, yet rated themselves only slightly sleepy. See signs you're sleep deprived.
- It isn't a diagnosis. If you're sleeping enough hours and still exhausted, or someone notices loud snoring with gasping or pauses in your breathing, talk to a doctor.