Sleep Debt Calculator
Enter your sleep goal and the hours you slept each of the last 7 nights. You'll see your sleep debt, your average shortfall, how many nights fell short, and an earlier bedtime in 15-minute steps.
Sleep Debt Calculator
Your sleep goal
Adults: 7 or more (AASM, CDC). Teens 13-17: 8 to 10 (CDC).
The AASM and Sleep Research Society recommend 7 or more hours a night for adults.
Hours asleep, last 7 nights
Count time asleep, not time in bed: leave out the time it took to fall asleep and any long wake-ups. Use decimals: 6.5 is 6 h 30 min, 6.75 is 6 h 45 min. Each day means the night that starts that evening.
Wake time
Used for the bedtime plan. Leave it blank to see only your sleep debt.
Night by night
| Night | Asleep | Vs goal |
|---|
Your bedtime plan
Your typical night (the middle of your 7)
—
Be asleep by
—
Move your bedtime 15 minutes earlier at a time, and keep your wake time the same.
The AASM suggests going to bed 15 or 20 minutes earlier each night before a clock change. Use the same pace here, or stay on a step for a few nights if you lie awake.
These are times to be asleep. If it usually takes you a while to fall asleep, get into bed that much earlier.
This is arithmetic, not a diagnosis or medical advice. If you regularly have trouble sleeping, or worry that you sleep too little or too much, talk to your healthcare provider.
Goal4
Habit Tracker & Streaks
Make your earlier bedtime a nightly habit
Add a daily habit such as "Lights out by 11" with a goal of 1 and a reminder before it. Tap it when you make it; the streak counts nights in a row.
Free · No sign-up needed
How the sleep debt calculator works
This calculator is general information, not medical advice.
The NHLBI calls the total sleep you've lost your sleep debt. Its example: lose 2 hours of sleep each night and you'll have a sleep debt of 14 hours after a week. The calculator does the same sum over your last 7 nights. For each night it takes your goal minus the hours you slept, keeps only the nights that came up short, and adds those shortfalls together.
Two more numbers come from that total. Your average shortfall per night is the debt divided by 7, counting every night, including the ones that met your goal. Nights under your goal is a plain count.
Why extra sleep isn't subtracted
A night over your goal doesn't reduce your debt. The NHLBI defines sleep debt as sleep lost, not as a running balance, and lab studies suggest a long night doesn't simply cancel a short one. In a lab study of 15 healthy young men, a typical shortfall of about 1 hour took about four days of extended sleep to recover (Kitamura 2016). In another, adults who slept in on the weekend after a week of short nights still showed metabolic effects once the short nights started again (Depner 2019). Your extra sleep still shows, on its own line under the results.
An example week
Here is the week the calculator opens with, against an 8-hour goal:
| Night | Asleep | Vs 8 h goal |
|---|---|---|
| Mon | 6 h 30 min | 1 h 30 min short |
| Tue | 7 h | 1 h short |
| Wed | 6 h | 2 h short |
| Thu | 6 h 30 min | 1 h 30 min short |
| Fri | 7 h 30 min | 30 min short |
| Sat | 9 h | 1 h over |
| Sun | 8 h | On goal |
The shortfalls add up to 6 h 30 min of sleep debt. That's 56 minutes a night on average, with 5 of 7 nights under the goal. Saturday's extra hour shows separately and isn't subtracted.
Enter time asleep, not time in bed: leave out the time it took to fall asleep and any long stretches awake in the night. Each day means the night that starts that evening, so Friday is Friday night into Saturday morning.
How much sleep do you need?
The American Academy of Sleep Medicine (AASM) and the Sleep Research Society say adults "should sleep 7 or more hours per night on a regular basis to promote optimal health" (joint consensus statement). They report that regularly sleeping less than 7 hours is associated with weight gain and obesity, diabetes, high blood pressure, heart disease and stroke, and depression. Those are associations: the studies link short sleep with these outcomes, which isn't the same as showing that it causes them.
Recommended sleep by age (CDC)
| Age | Sleep a night |
|---|---|
| 13 to 17 | 8 to 10 hours |
| 18 to 60 | 7 or more hours |
| 61 to 64 | 7 to 9 hours |
| 65 and older | 7 to 8 hours |
Source: CDC, About Sleep. The NHLBI's chart differs slightly: 7 to 8 hours for adults, and 8 to 10 for teens 13 to 18.
Need also varies from person to person. The consensus statement notes that it's influenced by genetic, behavioral, medical and environmental factors. That's why the goal is yours to set: pick the amount you feel best on, anywhere from 6 to 10 hours in quarter-hour steps. Below 7 hours, the calculator shows a note with the adult recommendation.
Can you pay back sleep debt?
The research doesn't give a simple yes. In the lab, recovery took longer than simple arithmetic would suggest, and weekend lie-ins didn't prevent the metabolic effects of short nights.
In Kitamura's 2016 study, 15 healthy young men were given 12 hours in bed a night for 9 nights. Their typical shortfall of about 1 hour took about four days of extended sleep to recover. That's one small lab study, but it's a reason not to count one long night against several short ones.
Depner's 2019 study concluded that weekend recovery sleep "is not an effective strategy to prevent metabolic dysregulation" from repeated short sleep. The NHLBI adds that naps can give a short-term boost in alertness, but "you can't really make up for lost sleep" with them. Extra sleep on days off might help you feel better, it says, but can upset your body's sleep-wake rhythm. For people recovering from sleep debt, the AASM and the Sleep Research Society say sleeping more than 9 hours a night "may be appropriate."
How rested you feel may not tell you much. In a lab study of 48 healthy adults aged 21 to 38, people kept to 4 or 6 hours in bed a night for 14 days built up cognitive deficits, yet their sleepiness ratings suggested they "were largely unaware of these increasing cognitive deficits" (Van Dongen 2003). That's one reason to look at the number. The calculator reports the arithmetic only and doesn't label your total as mild or severe.
Closing the gap with an earlier bedtime
Keep your wake time steady. The CDC lists going to bed and getting up at the same time every day among its sleep habits, and the NHLBI suggests keeping weeknight and weekend schedules within about an hour of each other. So the plan holds your wake time fixed and moves only the time you're asleep by.
It moves that time 15 minutes at a time. The step size comes from the AASM's daylight saving advice: go to bed 15 or 20 minutes earlier each night before the clock changes. It isn't AASM guidance for sleep debt: the plan only borrows the pace. If you lie awake at a new step, stay on it for a few nights before you move on. The plan starts from your typical night, the middle value of your 7, so how short your shortest night was, or how long your longest, doesn't move it.
Every time in the plan is when to be asleep, not when to get into bed. If it usually takes you a while to fall asleep, get into bed that much earlier. A steady wind-down helps too: see these evening routine habits for better sleep.
An earlier bedtime is also a habit you can track. In Goal4, add a daily habit such as "Lights out by 11" with a goal of 1 and a reminder before it, then tap it on the nights you make it. The streak counts the nights in a row, and the contribution grid shows the weeks filling in. A reminder can stay quiet on chosen weekdays, but that only silences the reminder: the streak still needs every night. Goal4 doesn't read your sleep or connect to health apps, so the hours themselves stay with this calculator.
If you regularly have trouble sleeping, or you worry that you sleep too little or too much, talk to your healthcare provider. The CDC, the AASM and the Sleep Research Society all give that advice.
Frequently Asked Questions
Common questions about sleep debt calculator
How do you calculate sleep debt?
Subtract each night's sleep from your goal, keep only the nights you fell short, and add those up. The NHLBI calls the total sleep lost your sleep debt. Its example: losing 2 hours a night gives a sleep debt of 14 hours after a week. This calculator does that sum over your last 7 nights and shows any extra sleep on a separate line.
How much sleep do I need?
The AASM and the Sleep Research Society say adults should sleep 7 or more hours a night on a regular basis. The CDC lists 7 or more hours for ages 18 to 60, 7 to 9 for ages 61 to 64, 7 to 8 for 65 and older, and 8 to 10 for teens 13 to 17. The NHLBI's chart shows 7 to 8 hours for adults and 8 to 10 for teens 13 to 18. Need varies from person to person, so set your goal at the amount you feel best on.
Does sleeping in on the weekend cancel out my sleep debt?
Not in this calculator, and not fully in the research. Extra sleep shows on its own line but isn't subtracted. In a lab study, young adults who slept in on the weekend after a week of short nights still showed lower insulin sensitivity once the short nights resumed (Depner 2019). The NHLBI notes that extra sleep on days off might help you feel better but can upset your body's sleep-wake rhythm.
How long does it take to recover from sleep debt?
There's no fixed rule. In one lab study, 15 healthy young men had 12 hours in bed a night for 9 nights, and their typical shortfall of about 1 hour took about four days of extended sleep to recover (Kitamura 2016). The AASM and the Sleep Research Society say sleeping more than 9 hours a night may be appropriate for people recovering from sleep debt. This calculator shows the size of the gap. It doesn't predict a recovery time.
Can a nap make up for lost sleep?
Not fully. The NHLBI says naps may give a short-term boost in alertness and performance, but napping doesn't supply all the other benefits of nighttime sleep, "so you can't really make up for lost sleep." It suggests adults nap for no more than 20 minutes, and take naps earlier in the afternoon if they make it hard to fall asleep at night.
Why does the bedtime plan move in 15-minute steps?
The plan moves in small steps rather than one big jump. It borrows the pace the AASM suggests before a daylight saving change: going to bed 15 or 20 minutes earlier each night. It also keeps your wake time the same, in line with CDC and NHLBI advice to get up at the same time every day. If you lie awake at a new step, stay on it for a few nights before moving on. For bedtimes built from 90-minute sleep cycles instead, try the Sleep Schedule Calculator.
Can Goal4 track my sleep?
Not automatically. Goal4 doesn't read sleep from a watch and doesn't connect to Apple Health or Health Connect. What it can track is the habit behind a steadier bedtime: add a daily habit such as "Lights out by 11" with a goal of 1, set a reminder before it, and tap it on the nights you make it. The streak counts the nights in a row you kept it, and the contribution grid shows which nights you made it. The Habit Streak Calculator shows how those streaks build.
When should I talk to a doctor about my sleep?
The CDC says to talk to your healthcare provider if you regularly have problems sleeping or notice signs of a sleep disorder. The AASM and the Sleep Research Society say people concerned they're sleeping too little or too much should consult their healthcare provider. This calculator does arithmetic. It can't diagnose anything.