Sleep debt calculator
Enter roughly how many hours you slept each night this past week and your sleep target. The calculator adds up the shortfall and shows a gradual way to get back on track.
Quick answer: Sleep debt is the gap between the sleep you need and the sleep you get, added up over several nights. Five 6-hour nights against an 8-hour target add up to 10 hours. Research suggests recovery is slow: in one study it took about four days of extended sleep to repay one hour, so steady earlier bedtimes beat one long lie-in.
Key facts
- Adults need 7 to 9 hours; 7 to 8 from age 65 (National Sleep Foundation panel)
- Two weeks at 6 hours or less impaired performance about as much as up to two nights awake (Van Dongen et al., 2003)
- Weekend recovery sleep did not prevent the metabolic effects of short nights (Depner et al., 2019)
- Extra sleep on other nights is shown separately, not subtracted
Runs in your browser. Nothing you enter is stored or sent anywhere.
How it’s calculated
Shortfall = the sum of (target − hours slept) for each night below your target. Nights above target are shown separately as extra sleep rather than cancelling the debt, because recovery sleep doesn’t simply undo short nights[2][3].
- Catch-up plan: nights needed = shortfall in minutes ÷ 30 (or ÷ 15), rounded up. It is arithmetic, not a measured recovery rate.
- Average check: a note appears if your weekly average is under 7 hours, the low end of the adult range[4][5].
Example: an 8-hour target and five 6-hour nights is 5 × 2 = 10 hours of shortfall. At 30 minutes earlier each night, that is 600 ÷ 30 = 20 nights.
How the sleep debt calculator works
Sleep debt is the gap between the sleep you need and the sleep you get. For each night below your target, the calculator adds the missing time. Nights where you slept longer are shown separately rather than cancelling out the short ones, because the research below suggests catching up isn’t that simple.
For a target, most adults need 7 to 9 hours. That is the range recommended for adults by a National Sleep Foundation expert panel, with 7 to 8 hours for adults over 65[4]. Not sure what to pick? The sleep-by-age chart shows the range for every age group.
Why a few short nights matter
In a classic lab study, 48 healthy adults were kept to 4, 6 or 8 hours in bed for two weeks. Their deficits on attention and thinking tests built up night after night. By the end, people allowed 6 hours or less were performing about as badly as people kept awake for up to two nights straight, yet they were largely unaware of how impaired they were[1]. In other words, you may not notice how much a run of short nights is costing you.
Can you pay it back?
Partly, and slowly. In one study, healthy volunteers were given extra time in bed for several nights. Their sleep settled at a longer length than usual, and it took about four days of extended sleep to recover one hour of the hidden sleep debt they had built up[2]. Another study found that sleeping in at the weekend after a short-sleep week did not prevent the metabolic effects of the short nights[3], and the NINDS also notes that weekend catch-up may not be enough[5].
That is why the calculator suggests a modest, steady change, such as going to bed 15 or 30 minutes earlier for a stretch of nights, rather than one long lie-in. The number of nights it shows is simple arithmetic, not a medical prediction.
Making the earlier bedtime stick
- Work back from your alarm with the bedtime calculator and pick the earliest realistic option.
- If you are flagging in the afternoon, a short 10-minute nap is gentler on your night than a long one.
- A soft, even sound like pink noise can mask household noise if an earlier bedtime means others are still up.
Questions
What is sleep debt?
Sleep debt is the difference between the sleep you need and the sleep you actually get, added up over several nights. For example, sleeping 6 hours a night for five nights with an 8-hour need adds up to 10 hours.
Can I catch up on sleep at the weekend?
Weekend lie-ins can help you feel less tired, but research suggests they do not fully undo a week of short nights. A steady schedule with a slightly earlier bedtime is a more reliable approach.
How long does it take to recover from sleep debt?
It varies. In one study it took about four days of extended sleep to recover one hour of sleep debt. Recovery is gradual, so spreading it over a week or two of earlier bedtimes is realistic.
How much sleep should I aim for?
Most adults need 7 to 9 hours, and adults over 65 need 7 to 8. Children and teenagers need more. Pick the target that leaves you alert during the day.
Sources
- Van Dongen HPA et al. The cumulative cost of additional wakefulness: dose-response effects on neurobehavioral functions and sleep physiology from chronic sleep restriction and total sleep deprivation. Sleep, 2003.
- Kitamura S et al. Estimating individual optimal sleep duration and potential sleep debt. Scientific Reports, 2016.
- Depner CM et al. Ad libitum Weekend Recovery Sleep Fails to Prevent Metabolic Dysregulation during a Repeating Pattern of Insufficient Sleep and Weekend Recovery Sleep. Current Biology, 2019.
- Hirshkowitz M et al. National Sleep Foundation’s sleep time duration recommendations: methodology and results summary. Sleep Health, 2015.
- National Institute of Neurological Disorders and Stroke. Brain Basics: Understanding Sleep. Reviewed February 25, 2025.
This tool gives general estimates for healthy adults and is not medical advice. If you are often tired despite enough time in bed, snore loudly, or struggle to sleep on most nights, talk to a doctor or a sleep specialist.