Skip to content

Sleep debt calculator

Record your recent nights to see where sleep fell short of your chosen target. The chart makes a run of shorter nights easier to spot.

Your inputs

Example values — edit to explore

0.1–24 h

Your last seven nights

Night 1 is the oldest. Leave a night blank if you do not have a record; enter 0 only for no sleep.

0–24 h

0–24 h

0–24 h

0–24 h

0–24 h

0–24 h

0–24 h

Recorded sleep shortfall

3h

3 of 7 nights recorded

Average recorded sleep
7.3 h
Nightly target
8 h
Sleep across your recorded week

Each bar shows recorded sleep. The dashed line is your chosen nightly target. Blank nights are not treated as zero.

Sleep duration (h)

04.596N17N29N3—N4—N5—N6—N7
Recorded sleepYour targetNot recorded
View chart values
Your last seven nightsRecorded sleep (h)Shortfall (h)
Night 162
Night 271
Night 390
Night 4Not recorded—
Night 5Not recorded—
Night 6Not recorded—
Night 7Not recorded—

Shortfall is the sum of each recorded night below your target. Longer nights do not cancel shorter ones. This is a record of hours, not a measurement of biological sleep debt or recovery time.

Your entries stay in this page. They are not saved or submitted.

Your entries are calculated in your browser.

What Helps Editorial

Updated

This sleep debt calculator totals the hours below your selected target on the nights you record. It measures a recorded shortfall, not biological sleep debt. A longer night does not subtract from earlier shortfalls, and a blank night is excluded. The eight-hour default is an editable comparison point, not a finding about how much sleep you need.

How to calculate your sleep shortfall

  1. 1Choose a nightly sleep target. Keep it consistent across the recorded period so that the nights are comparable.
  2. 2Enter estimated time actually asleep for each night, not simply time in bed. Use decimal hours: seven hours and thirty minutes is 7.5.
  3. 3Leave unknown nights blank. Review the recorded-night count, average sleep and shortfall chart together before comparing periods.

How the sleep debt calculation works

For each recorded night, shortfall = the greater of zero and target minus sleep. The total adds those positive shortfalls. Average sleep divides recorded sleep by the number of recorded nights; missing nights never enter that denominator.

NHLBI describes repeated sleep loss as accumulating sleep debt, but this sum is only a record against an assumed target. In a mainly NIH-funded trial of 159 healthy adults, some effects of five nights limited to four hours in bed persisted after one extended recovery night. That does not supply a personal repayment formula.

Example: three recorded nights

With an eight-hour target, nights of 6, 7 and 9 hours produce shortfalls of 2, 1 and 0 hours. The total is three hours, while average sleep is about 7 hours 20 minutes. The longer night does not erase the recorded shortfalls. Any remaining blank nights are excluded.

What the total leaves out

  • Your sleep need may differ from the target. The result does not measure impairment, diagnose a sleep disorder or judge fitness to drive.
  • This nightly log excludes naps. It also cannot assess sleep quality, breathing interruptions or the accuracy of a tracker estimate.
  • A zero shortfall only means the recorded nights met your chosen target. Persistent tiredness despite enough time for sleep deserves further assessment.

Common questions

Can a lie-in pay back the total?

Extra sleep may help recovery, but this tool cannot say that one extra hour cancels one lost hour. Its total records earlier shortfalls and does not predict a recovery date.

Why does an empty night not count as zero sleep?

Missing information is different from no sleep. Enter zero only if you did not sleep that night. Leaving it blank excludes it from both the total and the average.

Is eight hours the right target for everyone?

No. Sleep needs vary with age and between people. Eight hours is a starting assumption for this adult planning tool; changing it changes the result.

Sources, in their original language

  1. Sleep Deprivation and Deficiency: How Much Sleep Is Enough
  2. Neurobehavioral dynamics following chronic sleep restriction: dose-response effects of one night for recovery