Sleep Debt Calculator

Log bedtimes and wake times for the last two weeks, set your sleep need and see your total sleep debt, a chart and how many nights it takes to repay.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Set your need

    Choose how many hours you need a night.

  2. 2
    Log nights

    Enter bedtime, wake time and minutes awake for each night.

  3. 3
    Read the debt

    See the total, the average and the running debt on the chart.

  4. 4
    Set a wake time

    Enter your usual wake-up time.

  5. 5
    Plan recovery

    Choose extra sleep a night and read your recovery bedtime.

  6. 6
    Export

    Download or print the log and plan.

About this tool

Sleep debt is the gap between the sleep you need and the sleep you get, added up over days. A single short night is easy to notice. Several nights that are each half an hour short are not, yet over two weeks they add up to a whole lost night, with effects on mood, concentration and reaction time. This calculator makes the debt visible. Set your sleep need; adult guidance from the American Academy of Sleep Medicine and the Sleep Research Society is 7 hours or more, and the tool starts at 8 hours as an example. Log each night with the time you went to bed, the time you woke and any minutes awake in the night. The tool works out hours slept, compares each night with your need, adds the balances into a running total and draws both on a chart. The recovery plan then works out how many nights of extra sleep would repay the debt at the rate you choose, the bedtime you need for your usual wake-up time and a night-by-night table of debt remaining. The log can be exported or printed.

How the debt is counted

Hours slept are the time between going to bed and waking, minus the minutes you were awake in the night. Each night's balance is your need minus the hours slept, so a short night adds to the debt and a long night repays some of it. The total over the nights counted, 7 to 28, is your sleep debt. The tool also shows the debt from short nights alone, ignoring long nights, which shows how much sleep you lose before weekend lie-ins.

Paying it back

Sleep debt is best repaid gradually. Going to bed 30 to 60 minutes earlier for a week or two works better than sleeping until noon at weekends, which shifts your body clock later and makes Monday harder. Short naps of 20 to 30 minutes can help in the afternoon. The recovery plan uses your wake-up time and your extra-sleep setting to give one bedtime for every night until the debt is cleared.

Setting your need

Needs vary. A good test is a holiday week without alarms: after the first few nights, the amount you settle into is close to your need. Teenagers generally need more than adults, about 8 to 10 hours.

Worked example

Over 14 nights a person sleeps between 6 and 8.75 hours, an average of 7.1 hours, against a need of 8 hours. The nightly balances add up to a debt of 12 hours (12.75 from short nights, less 0.75 repaid by one long night). Going to bed an hour earlier, at 22:00 for a 07:00 wake-up, repays it in 12 nights.

Limits

The calculator counts time in bed minus time awake; it cannot measure sleep quality or stages. Loud snoring, pauses in breathing, frequent waking, or sleepiness despite enough time in bed can be signs of a sleep disorder and are reasons to see a doctor. This is not medical advice.

Worked example

Need 8 h, 14 nights averaging 7.1 h → debt 12 h; +1 h a night (bed 22:00) clears it in 12 nights.

Quick facts

Frequently asked questions

What is sleep debt?

The total shortfall between the sleep you need and the sleep you get, added up over a number of nights.

How much sleep do adults need?

The AASM and Sleep Research Society recommend 7 or more hours for adults. Individual needs vary; many people do best with 7.5 to 9.

Can you catch up on lost sleep?

Partly. Short-term debt can be eased with earlier nights and short naps over several days. Long weekend lie-ins can disturb your body clock.

How is hours slept calculated?

Time from going to bed to waking, minus minutes awake in the night. Times after midnight are handled automatically.

How long will it take to repay my debt?

The recovery plan divides the debt by the extra sleep you add each night, from 15 minutes to 2 hours.

Does the tool measure sleep quality?

No. It only counts time. Poor quality sleep despite enough time in bed is worth discussing with a doctor.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages