Skip to main content
Calcimator

PSQI Sleep Quality Calculator

Calculate the Pittsburgh Sleep Quality Index (PSQI) global score from seven component scores to assess overall sleep quality.

About this calculator

The PSQI sleep-quality calculator accepts seven component ratings, each coded from 0 to 3, matching the Pittsburgh Sleep Quality Index that Daniel Buysse and colleagues published in 1989 as a self-rated questionnaire assessing sleep quality over the past month. It rounds each entry to a whole number, limits it to that range, and adds the components to form a Global PSQI Score from 0 to 21. Larger component codes represent worse sleep conditions in every field, including subjective quality, latency, duration, efficiency, disturbances, medication use, and daytime dysfunction. Since the global result is a simple sum, all seven components have equal one-point influence. The Poor Sleeper output is binary. It remains 0 for global scores through 5 and becomes 1 only when the sum is greater than 5.

Worst Component reports the position of the largest component: 1 for quality through 7 for daytime dysfunction. Ties are resolved by input order because the search changes its selection only when it encounters a strictly larger score. For example, equal maximum ratings for quality and latency leave quality, component 1, selected. This implementation starts from already-derived component codes rather than the full questionnaire responses used to derive them. It does not calculate actual sleep efficiency from bed and sleep times, combine disturbance sub-items, or assess causes such as breathing disorders, pain, schedules, substances, mood, or medication effects. The result is therefore a compact arithmetic summary of the seven values entered, not a diagnosis of insomnia or another sleep disorder.

Inputs

Results

Global PSQI Score

4 / 21

Poor Sleeper (Score > 5)

0 (0=No, 1=Yes)

Worst Component1 (1=Quality, 2=Latency, 3=Duration, 4=Efficiency, 5=Disturbance, 6=Medication, 7=Dysfunction)

Figures current as of 1989. Source: Buysse DJ, Reynolds CF 3rd, Monk TH, Berman SR, Kupfer DJ. The Pittsburgh Sleep Quality Index: a new instrument for psychiatric practice and research. Psychiatry Res. 1989;28(2):193-213.

How to Use This Calculator
  1. Rate each of the 7 PSQI component questions: subjective sleep quality, sleep latency, duration, efficiency, disturbances, medication use, and daytime dysfunction.
  2. Base your answers on your typical sleep over the past month.
  3. Review the Global PSQI Score: 0–5 = good sleeper, 6+ = poor sleeper.
  4. Check Worst Component to identify the primary driver of poor sleep for targeted intervention.
  5. Combine with PHQ-9 and GAD-7 scores to assess whether sleep problems are driving mood and anxiety issues.

What each input means

Subjective Sleep Quality
0 = Very good, 1 = Fairly good, 2 = Fairly bad, 3 = Very bad.
Sleep Latency
0 = ≤15 min to fall asleep, 1 = 16-30 min, 2 = 31-60 min, 3 = >60 min.
Sleep Duration
0 = >7 hours, 1 = 6-7 hours, 2 = 5-6 hours, 3 = <5 hours.
Sleep Efficiency
0 = ≥85% efficiency, 1 = 75-84%, 2 = 65-74%, 3 = <65%.
Sleep Disturbances
0 = Not during past month, 1 = Less than once a week, 2 = Once or twice a week, 3 = Three or more times a week.
Daytime Dysfunction
0 = No problem, 1 = Only a slight problem, 2 = Somewhat of a problem, 3 = A very big problem.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Subjective Sleep Quality = 1, Sleep Latency = 1, Sleep Duration = 0, Sleep Efficiency = 0 = 7 input(s) provided
  2. Calculate Global PSQI Score
    Global PSQI Score
    4 = 4
  3. Calculate Poor Sleeper
    Poor Sleeper
    0 = 0
  4. Calculate Worst Component
    Worst Component
    1 = 1

Figures and sources

Engine last updated . Checked against 4 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

How is the Global PSQI Score formed?

The engine rounds and limits each of the seven component entries to 0–3, then sums them without additional weighting. One extra point in any component adds one point to the global result.

What score changes the Poor Sleeper indicator?

The indicator is 0 at global scores from 0 through 5 and switches to 1 at 6. It is a binary threshold output, not a graded measure of how poor sleep is — this is the same global-score-above-5 cutoff Buysse et al. validated as distinguishing poor from good sleepers in the original 1989 PSQI paper.

What happens when several components share the worst score?

The calculator reports the earliest tied component in its fixed order. Quality precedes latency, duration, efficiency, disturbances, medication, and daytime dysfunction because only a strictly greater later value replaces the current selection.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Health & Fitness.