How to Calculate Your Sleep Debt and Pay It Back
Work out your sleep debt from a two-week sleep log, understand how much sleep adults need and plan a realistic recovery with earlier bedtimes.

How to Calculate Your Sleep Debt and Pay It Back
Most people know when they have had one bad night. Few notice the slow build-up from many slightly short nights, yet half an hour lost every night adds up to a full night's sleep in about two weeks. That accumulated shortfall is sleep debt. This guide shows how to measure it and plan recovery with the free sleep debt calculator.
How much sleep do you need?
The American Academy of Sleep Medicine and the Sleep Research Society recommend at least seven hours a night for adults. Many people feel best with seven and a half to nine. Teenagers need more, around eight to ten hours. Your own need is easiest to find on a holiday without alarms: after the first few nights of catching up, the amount you settle into is close to your need.
The calculator starts with an example of eight hours; move the slider to your own number.
Keep a two-week log
For each night, enter the time you went to bed, the time you woke up and roughly how many minutes you were awake in the night. The calculator works out hours slept, handling times after midnight automatically. Two weeks is a good window because it includes several weekends and shows patterns that one week can hide.
How the debt is calculated
For every night, the calculator takes your need minus the hours you slept. A short night adds to the debt; a long night pays some back. The running total is drawn as a red line on the chart, over bars showing each night's sleep against your need.
In the example log, 14 nights average about 7.1 hours against a need of 8. The total debt is 12 hours. Short nights alone account for 12.75 hours, with a long Saturday lie-in repaying three quarters of an hour.
Paying it back
The recovery plan asks two questions: when do you usually wake up, and how much extra sleep can you add each night? With a 7:00 wake-up and an eight-hour need, bedtime is 23:00. Adding an hour a night means going to bed at 22:00, and at that rate a 12-hour debt is repaid in 12 nights. A table lists each night with the debt remaining.
Repaying gradually works better than one huge lie-in. Sleeping until noon at the weekend shifts your body clock later, making it harder to fall asleep on Sunday night and harder to get up on Monday. Earlier bedtimes keep your wake-up time steady.
Making earlier nights possible
- Set an alarm for bedtime, not just for waking.
- Dim lights and screens an hour before bed.
- Keep caffeine to the morning and early afternoon.
- Keep the bedroom cool, dark and quiet.
- If you nap, keep it to 20 to 30 minutes and before mid-afternoon.
When debt is not the problem
If you spend enough time in bed but still feel exhausted, the issue may be sleep quality rather than quantity. Loud snoring, gasping or pauses in breathing, frequent waking, or falling asleep during the day despite enough time in bed are reasons to see a doctor; conditions such as sleep apnoea are common and treatable.
Reading your chart
Tall bars that reach the dashed need line are good nights. A red running-debt line that keeps climbing means the shortfall is building; a line that flattens or falls means you are holding steady or repaying. Weekends often show a dip in the line followed by a rise on Monday and Tuesday, which is the pattern earlier bedtimes on work nights can fix.
Limits
The calculator counts time in bed minus time awake; it cannot measure sleep quality or stages. It is a planning aid and not medical advice.



