What this calculator does
See how many hours of sleep you have missed this week, compared with the amount you aim for. Sleep debt is the running gap between the sleep you need and the sleep you actually get. One short night makes a small debt. A week of short nights adds up to a large one, even if no single night felt dramatic. Seeing the total in hours is often more persuasive than a vague sense of being tired.
Enter the hours you aim to sleep and how long you actually slept on up to seven nights. The calculator totals the week and subtracts it from your target. It then shows the debt (or any extra sleep), your average per night and how many nights fell short. It is a simple bookkeeping exercise, not a sleep assessment.
Where it's used
Why this math matters outside the classroom:
- Weekly total. Sleeping 6.5, 7, 6, 7.5, 6, 8 and 9 hours against an 8-hour target leaves a debt of 56 − 50, which is 6 hours.
- Average per night. Dividing 50 hours of sleep by 7 nights gives an average of about 7.1 hours a night.
- Sleep journals. People keep a sleep journal for a week and add it up before deciding whether to change their evening routine.
- Exam season. Students check how much sleep a week of late study nights cost them compared with their usual target.
- Rotating shifts. Workers on rotating shifts compare a week's total with their target to see how a schedule change affected their rest.
Grade level and standards: Grades 5–6; Common Core State Standards for Mathematics 5.NBT.B.7. © Copyright 2010. National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.
How to use it
- Enter the amount of sleep you aim for each night.
- Enter the hours you actually slept for each night you remember, using decimals for part hours (7.5 = 7 hours 30 minutes).
- Leave any night you are unsure about blank; it is skipped, and the target is counted only for the nights you entered.
- Read your sleep debt, average per night and the number of short nights.
What the inputs mean
- Sleep you aim for each night
- If you do not know your own need, a common reference point is that most adults are advised to get at least 7 hours a night. Some people need more.
- Night 1
- Count time actually asleep, not time in bed. If you lay awake for 45 minutes, subtract that. A sleep tracker or a simple diary helps.
Formula and method
Total slept = sum of the hours entered Target total = nightly target × number of nights entered Sleep debt = target total − total slept (a negative result is shown as extra sleep) Average = total slept ÷ number of nights entered
The main figure is a net balance: longer nights offset shorter ones within the week. Because some people prefer to see only the shortfall, the calculator also shows the hours missed on short nights alone, ignoring any nights above target.
Blank nights are left out of every total, so entering five nights compares five nights of sleep with five nights of target. Hours are converted to hours and minutes for display by rounding to the nearest minute.
Worked example
Someone aims for 8 hours and sleeps 7, 6.5, 6, 7.5, 6, 9 and 8.5 hours over a week.
- Total slept: 7 + 6.5 + 6 + 7.5 + 6 + 9 + 8.5 = 50.5 h.
- Target total: 8 × 7 = 56 h.
- Sleep debt: 56 − 50.5 = 5.5 h.
- Average: 50.5 ÷ 7 = 7.21 h a night. The five short nights alone missed 7 h, partly offset by the two longer nights.
Result: The sleep debt for the week is 5.5 hours (5 h 30 min), with an average of about 7 h 13 min a night.
Understanding the result
A debt of a few hours over a week is common, especially around work or school schedules. A large or growing debt, week after week, is a sign that your routine is not leaving enough time for sleep.
Sleeping longer at the weekend reduces the number. But it may not fully undo the effects of several short nights, and a very irregular schedule can itself make sleep harder. Steady, sufficient sleep on most nights is the usual goal.
If you are getting enough hours but still feel tired, or you regularly struggle to fall or stay asleep, that is worth raising with a healthcare professional. This calculator cannot detect sleep problems.
Assumptions and limitations
- The hours entered are time asleep, reasonably estimated.
- Your nightly need is the same every night.
- Extra sleep on one night offsets a shortfall on another in the net figure.
- It measures quantity only, not sleep quality, timing or regularity.
- It covers at most seven nights; longer-term debt is not tracked.
- It is not a medical tool and cannot identify any sleep disorder.
Frequently asked questions
How much sleep do I need?
Public health guidance commonly recommends at least 7 hours a night for adults, and more for teenagers and children. Individual needs vary; a useful sign is how you feel and function during the day.
Can I pay back sleep debt at the weekend?
Extra sleep does reduce the gap, and this calculator counts it. But catching up on one or two days may not reverse every effect of a short week, so spreading sleep more evenly is generally better.
Why are there two different shortfall figures?
Sleep debt is the net figure, where long nights offset short ones. "Hours missed on short nights only" adds up only the shortfalls, which shows how much was lost before any catching up.
What if I don't remember a night?
Leave it blank. The calculator skips it and adjusts the target to the number of nights you entered.
How this calculator is checked
Method: Arithmetic definition: sleep debt = (nightly target × nights entered) − total hours slept. The calculation is covered by automated tests with known reference values and edge cases. Last updated 2026-10-18. Found a problem? Tell us.
Embed this calculator
Put this Sleep Debt Calculator on your own website or blog for free. Paste this code where you want it to appear: