FreeFitnessCalculators
Medically ReviewedFormula Verified · Last Reviewed: November 2026

Sleep Quality Index Calculator

Assess your rest using the clinically-validated Pittsburgh Sleep Quality Index (PSQI) methodology. Analyze seven key domains of sleep health.

Sleep Habits

Based on the past month

hrs
min
hrs
min
min

Awaiting Data

Enter your sleep habits from the past month to generate a clinical-grade quality score.

Sleep Quality Calculator – Measure Efficiency & Clinical Sleep Health

Quick answer: Sleep quality is more than hours in bed. This calculator scores your sleep with the Pittsburgh Sleep Quality Index (PSQI): seven components — quality, latency, duration, efficiency, disturbances, medication and daytime function — each scored 0–3, for a total out of 21. A total above 5 indicates poor sleep; the result is also shown as a 0–100% quality score.

Updated November 2026 · Scoring verified against the PSQI (Buysse et al., 1989) — see “Understanding the PSQI Standard” below.

PSQI Assessment Standard
Sleep Efficiency Tracking
90-Minute Cycle Analysis

How to Use the Sleep Calculator

Whether you are struggling with insomnia or simply trying to optimize your recovery for athletic performance, benchmarking your sleep is the first step toward improvement. Follow these steps to generate your assessment:

1

Track Your Bedtime

Determine exactly how much time you spend physically in bed. This includes time spent reading, scrolling, or trying to fall asleep.

2

Estimate True Sleep

Input your best estimate for how many hours and minutes you were actually unconscious and asleep.

3

Identify Disturbances (PSQI)

Answer the subjective questions regarding how long it takes you to fall asleep (latency), how often you wake up, and whether you rely on sleep medications. The calculator will cross-reference this with your efficiency score to generate a global rating.

What is Sleep Efficiency?

Sleep efficiency is the most important mathematical metric used in sleep medicine to determine the continuity of your rest. It measures the ratio of time you spend actually sleeping compared to the total time you spend in bed.

(Total Sleep Time / Time in Bed) × 100

A healthy adult should aim for a sleep efficiency of 85% or higher. If your efficiency drops below 85%, it typically indicates sleep fragmentation (frequent awakenings) or prolonged sleep latency (taking too long to fall asleep). Clinicians often treat low efficiency with Sleep Restriction Therapy (SRT), which involves deliberately reducing time in bed to consolidate sleep into a single, uninterrupted block.

Understanding the PSQI Standard

While sleep efficiency is a great mathematical tool, it doesn't capture how you actually feel during the day. This is why our calculator integrates the principles of the Pittsburgh Sleep Quality Index (PSQI).

Developed in 1989, the PSQI is the clinical "gold standard" questionnaire for measuring subjective sleep quality over a 1-month interval. It evaluates sleep across several distinct domains:

Sleep LatencyHow long it takes you to transition from wakefulness to sleep. A healthy latency is between 10 and 20 minutes. Regularly taking longer than 30 minutes to fall asleep is a sign of difficulty getting to sleep.
Sleep DisturbancesHow often you wake up due to temperature issues, bathroom trips, or bad dreams. Frequent awakenings prevent you from reaching the restorative Deep Sleep and REM stages.
Sleep MedicationThe frequency of using chemical aids (prescribed or OTC) to induce sleep. True sleep quality relies on the brain's natural ability to initiate sleep.

In clinical settings, a high PSQI score (usually above 5) indicates poor sleep quality and warrants further investigation for disorders like Sleep Apnea.

How the score is built: all seven components

The PSQI (Buysse et al., Psychiatry Research, 1989) scores seven components from 0 (no difficulty) to 3 (severe difficulty) over the past month. The sum is the global score out of 21; above 5 indicates poor sleep. This calculator follows the same structure, then inverts the total into a 0–100% quality score (100% − total ÷ 21 × 100) for easier tracking:

ComponentWhat it scores0 vs 3
C1 · Subjective qualityYour own rating of your sleepVery good → very bad
C2 · LatencyMinutes to fall asleep + how often it takes >30 min≤15 min → >60 min
C3 · DurationHours actually slept≥7 h → <5 h
C4 · EfficiencyHours slept ÷ hours in bed≥85% → <65%
C5 · DisturbancesHow often you wake (temperature, bathroom, dreams, pain)Never → 3+ times/week
C6 · MedicationHow often you use sleep aidsNever → 3+ times/week
C7 · Daytime dysfunctionTrouble staying awake + low enthusiasm in the dayNone → severe

Worked example: a PSQI total of 4

Say you rate your sleep “fairly good” (C1 = 1), take 20 minutes to fall asleep once a week (C2 = 1), sleep 7½ hours (C3 = 0), spend 8 hours in bed for 94% efficiency (C4 = 0), wake once a week (C5 = 1), never use sleep aids (C6 = 0), and feel slightly low on enthusiasm (C7 = 1). Total = 4 out of 21 — below the >5 line, so “Good” sleep — and the quality score is 100 − (4 ÷ 21 × 100) = 81%. To plan the timing behind better scores, try the Sleep Time Calculator and the Sleep Debt Calculator.

The Math Behind 90-Minute Sleep Cycles

Human sleep is not a flat line of unconsciousness; it is a highly structured architecture consisting of multiple stages that loop throughout the night.

A typical sleep cycle lasts approximately 90 minutes. During a single cycle, your brain progresses from Light Sleep (Stages 1 and 2), descends into Deep Sleep (Slow-Wave Sleep, crucial for physical recovery), and finally rises into REM (Rapid Eye Movement, crucial for cognitive processing and memory consolidation).

Most adults need to complete 5 full cycles per night to feel fully rested, which equates to exactly 7.5 hours of true sleep (not just time in bed).

Why You Wake Up Tired (Sleep Inertia)

Have you ever slept for 8 or 9 hours but woken up feeling like you were hit by a truck? This phenomenon is known as Sleep Inertia.

Mid-Cycle Awakenings

If your alarm goes off while you are in the middle of Deep Sleep (Stage 3), your brain is flooded with high-amplitude delta waves. Being forcefully pulled from this stage causes severe grogginess that can last for hours.

End-Cycle Awakenings

To defeat sleep inertia, you must time your alarm to go off at the end of a 90-minute cycle, when your brain has naturally returned to Light Sleep. Waking up at 7.5 hours often feels vastly superior to waking up at 8 hours.

Assumptions & limitations

Method: Pittsburgh Sleep Quality Index (Buysse et al. 1989) — seven components scored 0–3, total out of 21, above 5 indicating poor sleep — plus sleep efficiency (total sleep time ÷ time in bed × 100)

  • Every component is self-reported, so the score reflects perceived sleep over the past month, not measured sleep.
  • The 0–100% quality score is the calculator's own inversion of the PSQI total, not part of the published PSQI.
  • The PSQI screens for poor sleep but does not diagnose sleep disorders; only polysomnography does that.
  • Sleep efficiency divides self-estimated sleep time by time in bed, so it inherits any error in the sleep estimate.

Frequently Asked Questions

What is the Pittsburgh Sleep Quality Index (PSQI)?

The PSQI is a clinical questionnaire used by doctors and sleep researchers to assess sleep quality over a 1-month interval. It evaluates seven domains, including sleep latency, duration, efficiency, disturbances, and daytime dysfunction, generating a global score.

What is a good Sleep Efficiency percentage?

Sleep efficiency is calculated by dividing your total time asleep by the total time you spend in bed. A sleep efficiency of 85% or higher is generally considered normal and healthy. Anything below 85% suggests clinical sleep fragmentation or insomnia.

Why do I wake up tired after 8 hours of sleep?

Waking up tired after 8 hours of sleep is usually caused by 'sleep inertia'—waking up in the middle of a deep sleep phase rather than at the end of a 90-minute sleep cycle. It can also be caused by poor sleep efficiency, where microscopic awakenings disrupt your REM sleep.

How long is a normal sleep cycle?

A standard human sleep cycle lasts approximately 90 to 110 minutes. During this cycle, your brain moves through light sleep, deep restorative sleep, and finally REM (Rapid Eye Movement) sleep. You typically complete 4 to 6 cycles per night.

What does a high PSQI score mean?

In the PSQI scoring system, a higher number indicates worse sleep. A global sum of 5 or greater indicates poor sleep quality and severe difficulties in at least two domains, suggesting you should consult a sleep specialist.

Does taking sleeping pills improve my sleep quality score?

No. In clinical assessments like the PSQI, relying on sleep medications (prescribed or over-the-counter) actually increases your score (meaning worse quality), as healthy sleep is defined by the ability to initiate and maintain sleep naturally.

What is Sleep Latency?

Sleep latency is the amount of time it takes you to transition from full wakefulness to sleep after turning the lights off. A healthy sleep latency is between 10 and 20 minutes. Falling asleep instantly may indicate severe sleep deprivation.

Can alcohol ruin my sleep quality?

Yes. While alcohol acts as a depressant that may reduce sleep latency (helping you fall asleep faster), it severely fragments the second half of your night, suppresses REM sleep, and drastically lowers your overall sleep efficiency.

How can I improve my sleep efficiency?

You can improve efficiency through Sleep Restriction Therapy (SRT) and good sleep hygiene. This means strictly using your bed only for sleep, maintaining a cold room temperature, and getting out of bed if you cannot fall asleep within 20 minutes.

Is this calculator a substitute for a sleep study?

No. While this calculator uses the PSQI framework to evaluate your subjective sleep quality, it cannot diagnose medical conditions like Obstructive Sleep Apnea (OSA) or Narcolepsy. Only a clinical polysomnography (sleep study) can do that.

Clinical References & Database Sources

This sleep quality calculator scores your sleep with the Pittsburgh Sleep Quality Index, the clinical standard questionnaire, and the published guidance on healthy sleep. Its components and thresholds align with the sources below:

Buysse et al. (1989): The Pittsburgh Sleep Quality Index The original PSQI paper — seven components scored 0–3, a global score out of 21, with a total above 5 indicating poor sleep.
Spielman et al. (1987): Treatment of Chronic Insomnia by Restriction of Time in Bed The original study of sleep restriction therapy — deliberately reducing time in bed to consolidate sleep — the treatment this page describes for low efficiency.
Watson et al. (2015): Recommended Amount of Sleep for a Healthy Adult The joint consensus statement of the American Academy of Sleep Medicine and the Sleep Research Society: adults should sleep 7 or more hours a night on a regular basis.

Educational Disclaimer: The results provided by the Sleep Quality Calculator are estimates based on generalized clinical questionnaires (such as the PSQI). This tool is designed strictly for educational purposes, and should NOT be interpreted as medical advice. If you suffer from chronic insomnia, severe daytime sleepiness, or suspect you have a sleep disorder like Obstructive Sleep Apnea, you must consult with a licensed physician or a certified sleep specialist. Always consult your doctor for personal advice.

How this calculator was checked: Built from the Pittsburgh Sleep Quality Index (Buysse et al. 1989) — seven components scored 0–3, total out of 21 — plus sleep efficiency. Checked against the worked example on this page: the sample answers give a PSQI total of 4 ('Good' sleep) and a quality score of 81%. See our methodology