Code tool

Sleep Debt Calculator

Enter your own nightly target and actual sleep for each day. The calculator adds only the amount below that target.

In-browser processingNo account requiredPrivacy details ↗
Actual sleep by day (hours)

Use your own target. Each value must be from 0 to 24 hours.

This arithmetic tool does not set a universal health target, define medical sleep debt, diagnose a condition, or provide sleep advice.

A QUICK WALKTHROUGH

How to use this tool

  1. Your nightly target (hours)
  2. Actual sleep by day (hours)
  3. Calculate total shortfall

Cumulative hours below your target

Use your own target. Each value must be from 0 to 24 hours. This arithmetic tool does not set a universal health target, define medical sleep debt, diagnose a condition, or provide sleep advice.

Daily data

Enter your own nightly target and actual sleep for each day. The calculator adds only the amount below that target.

GOOD TO KNOW

Common questions

Cumulative hours below your target

Σ max(0, target − actual). This arithmetic tool does not set a universal health target, define medical sleep debt, diagnose a condition, or provide sleep advice.