How to Calculate Sleep Debt

6 min read · Updated September 26, 2026 · by the SolveCalcPro editorial team

How to Calculate Sleep Debt – feature image

Sleep debt is a simple idea with a simple formula, even though the biology behind it is complex. This guide shows how to calculate it from a week of data, what the CDC recommends for each age, and what actually helps you recover.

The formula

Sleep debt = (hours needed per night × nights) − hours actually slept. Needing 8 hours and sleeping 6, 6, 7, 8, 5, 9 and 6 hours over seven nights gives 56 − 47 = 9 hours of debt, an average of 6.714 hours (need 8) and 5 of 7 nights short of target. The sleep debt calculator does this from a list of nights.

How much sleep do you need?

Age groupRecommended sleep (CDC)
School age (6–12)9–12 hours
Teen (13–17)8–10 hours
Adult (18–60)7 or more hours
Adult (61–64)7–9 hours
Adult (65+)7–8 hours

These are ranges, not targets for everyone. Your own need within the range is the figure to use in the calculation.

Can you really pay it back?

Partly. Sleeping longer for several nights improves how people feel and perform, but research suggests a single long night or a weekend lie-in does not fully reverse a week of short sleep, and big swings in sleep timing have costs of their own. Treat the “nights to repay” figure as a rough guide: adding 30–60 minutes a night for a couple of weeks is more realistic and sustainable than trying to repay it all at once.

What helps recovery

  • Keep a regular bedtime and wake time, including weekends.
  • Add 30–60 minutes of sleep per night rather than one marathon night.
  • Cut caffeine early — see how much is left at bedtime with the caffeine calculator.
  • Dim lights and screens in the hour before bed; keep the bedroom cool and dark.
  • Avoid heavy meals and alcohol close to bedtime.

When to see a doctor

If you sleep enough but still feel exhausted, snore loudly, stop breathing at night, or struggle to sleep regardless of effort, talk to a doctor — conditions such as sleep apnoea and insomnia are common and treatable. This guide is general information, not medical advice.

Practice questions

Test yourself, then tap to check. Answers are calculated by the tools linked below.

  1. You need 8 hours a night and slept 5, 6, 6, 7, 6, 9, 8 hours this week. How much sleep debt do you have?
    Show answer

    Sleep debt: 9 hours · Time to repay at +1 hour a night: about 9 nights

  2. Three 12-oz coffees and a 12-oz energy drink, last one at 15:00, bedtime 23:00, half-life 5 hours. Total caffeine and how much is left at bedtime?
    Show answer

    Total caffeine today: 684 mg · Share of the 400 mg adult guidance: 171% · Still in your system at bedtime (8 h after your last drink): about 226 mg

  3. How many hours and minutes are there between 8:00 AM and 4:30 PM?
    Show answer

    Elapsed time: 8h 30m

Frequently asked questions

What is sleep debt?

The accumulated difference between the sleep you need and the sleep you get.

How many hours of sleep do adults need?

The CDC recommends seven or more hours a night for adults aged 18–60.

Can you catch up on lost sleep?

Partly, over several nights. A single long sleep does not fully undo a week of short nights.

How long does it take to recover from sleep debt?

It depends on the size of the debt; adding an hour a night for a week or two clears a modest one.

Try it yourself

Keep learning

Written and reviewed by the SolveCalcPro editorial team. Spot a mistake? Tell us. See our editorial policy.