Home › Sleep Debt Calculator

Sleep Debt Calculator

Log the hours you actually slept, night by night. You get the accumulated shortfall, your average night, and how many nights of recovery it realistically takes — not just "sleep more".

Last updated

Recent nights

Enter hours slept per night. Night 1 is the most recent. Decimals are fine — 6.5, 7.25.

Your sleep debt

Accumulated sleep debt 0.0 h

On track

Average sleep per night8.00 h
Average shortfall per night0.00 h
Total sleep logged56.00 h
Total you should have had56.00 h
Nights below target0 of 7
Debt in full nights0.0

Recovery plan at 1.5 extra hours a night

Nights of recovery sleep0 nights
Sleep per night during recovery9.5 h
Calendar time0 days

A sleep debt of zero on paper does not mean your schedule is healthy — it only means the last several nights averaged your target. Consistency matters as much as the total.

How sleep debt is calculated

Sleep debt is the running difference between the sleep you needed and the sleep you got. Per night, the shortfall is max(0, target − actual) — a long night does not cancel the previous night's deficit, it just contributes nothing new. Sum the shortfalls over the window and you have your debt.

debt = Σ max(0, target − hours_slept_i)  for i = 1…
average night = Σ hours_slept_i ÷ n

Worked example: target 8 hours. Seven nights of 6, 7, 6.5, 5, 8, 7, 6 gives deficits of 2 + 1 + 1.5 + 3 + 0 + 1 + 2 = 10.5 hours. That is roughly one and a third full nights of sleep, accumulated inside a single week.

One honest caveat: the arithmetic is simple but the biology is not linear. Sleep debt is a useful planning model, not a bank account where each hour can be repaid one for one. The calculator gives you the magnitude and the direction; it does not promise an exact repayment date.

How much sleep you actually need

Age groupRecommended per 24 hours
Teenagers (13–18)8–10 hours
Adults (18–64)7–9 hours (AASM: 7 or more)
Adults 65+7–8 hours

Set the target field to what you need, not the average. If you function best on 7.5, entering 8 will manufacture a debt that is not real. A practical way to find your number: sleep without an alarm for a week of holiday, drop the first night, and average the rest.

What the research says about repaying it

Two findings matter more than the rest.

Restriction accumulates silently. In a widely cited laboratory study, participants limited to six hours a night for two weeks performed steadily worse on attention tasks, reaching impairment comparable to two nights without sleep — while their self-rated sleepiness levelled off after a few days. People felt adapted. They were not.

Recovery is partial and slow. Recovery sleep restores subjective alertness within one or two nights, but performance and some metabolic markers take longer, and a single long lie-in does not undo a week of restriction. Large weekend catch-up sleep also delays your circadian phase, which is why Sunday's extra four hours can make Monday morning worse.

A recovery approach that works

  1. Add, do not binge. One to two extra hours per night for several nights beats one ten-hour lie-in.
  2. Keep the wake time fixed. Move bedtime earlier, not wake time later, so your body clock stays anchored.
  3. Protect the first hour. No screens, no work email — the barrier to falling asleep is usually mental, not physical.
  4. Use short naps. Ten to twenty minutes in the early afternoon offsets part of a shortfall without wrecking the night.
  5. Cut caffeine after midday. Caffeine has a half-life of roughly five to six hours; a 3pm coffee is still a quarter strength at 9pm.
  6. Fix the schedule, not just the total. Going to bed at 1am and waking at 9am is not the same as 11pm to 7am even though both are eight hours.

What a sleep debt actually costs you

Chronic short sleep is associated with impaired glucose tolerance, increased appetite for calorie-dense food, reduced immune response, higher injury rates, and worse emotional regulation. After about 17–19 hours awake, reaction time degrades to a level comparable with a blood alcohol concentration above the legal driving limit in many jurisdictions. That is the number worth remembering the next time a late night feels harmless.

When this calculator is the wrong tool

If you consistently get seven to nine hours and still wake exhausted, the problem is probably not accumulated debt. Loud snoring, waking with a dry mouth or headache, needing the bathroom repeatedly, falling asleep while driving, or insomnia lasting more than three months all point to something a calculator cannot see. Sleep apnoea in particular is common, treatable, and routinely missed. Talk to a doctor.

Frequently asked questions

How much sleep do adults actually need?

Seven or more hours for adults 18–64 per the American Academy of Sleep Medicine, with seven to nine being the usual range. Over 65 is generally seven to eight. Individual needs vary; use the number you function well on.

Can I repay sleep debt on the weekend?

Partly. Alertness recovers quickly, deeper cognitive and metabolic effects do not. Long weekend lie-ins also shift your circadian rhythm later, which makes the following Monday harder.

Is sleep debt cumulative?

Yes. Attention performance degrades steadily across nights of six hours or less even after subjective sleepiness stops increasing — the dangerous part is that you stop noticing.

How long does recovery take?

A few short nights: one or two normal nights. Weeks of restriction: several nights to a couple of weeks of consistent adequate sleep. Subjective sleepiness recovers faster than performance.

Do naps help pay back sleep debt?

A 10–20 minute nap improves alertness without grogginess and offsets part of a shortfall. Longer naps cause inertia and can delay nighttime sleep.

When should I see a doctor instead?

If you sleep enough and still feel exhausted, snore heavily, wake gasping, or fall asleep while driving. Those suggest a sleep disorder rather than debt.