Featured image: custom illustration by Free Fitness Calculators.
Sleep quality is how well you sleep, not just how long. The standard research measure is the Pittsburgh Sleep Quality Index (PSQI): seven areas of your sleep, each scored 0 to 3, added into a global score from 0 to 21, where a score above 5 marks poor sleep. Hours still matter — the CDC recommends 7 or more hours a night for adults aged 18 to 60.
What sleep quality actually means
Good sleep has three parts: enough hours, sleep that is deep and unbroken, and waking up feeling rested. Duration is the easiest to measure, which is why most advice stops there — but eight hours with five wakings, an hour to fall asleep and an afternoon of dragging is not good sleep, even though the hours look fine.
The CDC draws the same line: getting quality sleep is not just about how many hours you sleep, but how well you sleep. More than 1 in 3 American adults say they do not get the recommended amount, and short sleep — under 7 hours — is linked with a higher chance of obesity, type 2 diabetes, high blood pressure, heart disease and depression.
Our sleep quality calculator scores your recent sleep in the same style as the PSQI, so you can see which part of your sleep is dragging the total down instead of guessing.
The PSQI: how sleep quality is scored
The Pittsburgh Sleep Quality Index was published by Buysse and colleagues in 1989 and is still the most widely used sleep questionnaire. It asks 19 questions about the past month and turns the answers into seven component scores, each from 0 (no difficulty) to 3 (severe difficulty). Add the seven together for the global score, from 0 to 21.
| Component | What it asks | Score 0 | Score 3 |
|---|---|---|---|
| Subjective sleep quality | How you rate your sleep overall | Very good | Very bad |
| Sleep latency | How long it takes to fall asleep | 15 minutes or less | Over 60 minutes |
| Sleep duration | Hours of actual sleep a night | 7 hours or more | Under 5 hours |
| Habitual sleep efficiency | Time asleep as a share of time in bed | 85% or more | Under 65% |
| Sleep disturbances | How often things wake you in the night | Never | Three or more times a week |
| Use of sleeping medication | How often you take something to sleep | Never | Three or more times a week |
| Daytime dysfunction | Trouble staying awake or keeping up enthusiasm | None | A big problem |
The duration bands are fixed: 7 or more hours scores 0, 6 to under 7 scores 1, 5 to under 6 scores 2, and under 5 hours scores 3. The cutoff comes from the original validation study, where a global score above 5 separated good sleepers from poor sleepers with 89.6% sensitivity and 86.5% specificity. A score of 0 to 5 is read as good sleep, 6 to 10 as moderately poor, and above 10 as significant difficulty.
Worked example: scoring a real week
Take someone who goes to bed at 11 pm and gets up at 6:30 am (7.5 hours in bed), falls asleep around 11:45 pm, sleeps about 6 hours 45 minutes, wakes once to use the bathroom, rates their sleep as fairly bad, takes nothing to sleep, but struggles to stay awake in afternoon meetings.
- Subjective quality: fairly bad = 2
- Sleep latency: 45 minutes most nights = 2
- Sleep duration: 6 hours 45 minutes = 1 (6 to under 7 hours)
- Sleep efficiency: 6.75 ÷ 7.5 = 90% = 0
- Sleep disturbances: waking once a night = 1
- Medication: never = 0
- Daytime dysfunction: regular afternoon sleepiness = 2
The total is 8 out of 21 — above the cutoff of 5, so poor sleep by the PSQI standard. The breakdown is the useful part: duration and efficiency are fine, so going to bed earlier would not fix much. The problem is latency and daytime function, which points at wind-down habits rather than bedtime. Our sleep debt guide explains how short nights add up, and our 90-minute sleep cycle guide shows how to time bedtime so you wake at the end of a cycle.
Sleep hygiene: what actually helps
Sleep hygiene is the set of daily habits that support steady sleep. No single habit fixes poor sleep on its own, and hygiene alone is not a treatment for chronic insomnia — but for the common pattern of late nights, bright screens and irregular hours, these are the changes with the best evidence behind them. Give any change two to three weeks before judging it: the trend over a fortnight is the test.
- Keep the same bed and wake times, including weekends. The CDC lists a consistent schedule as its first sleep tip, and the National Heart, Lung, and Blood Institute suggests keeping weekend variation to about an hour. A steady wake time anchors your body clock more than a steady bedtime does.
- Make the room dark, cool and quiet. The CDC advises a quiet, relaxing, cool bedroom, and bright light late at night pushes sleep later.
- Turn screens off at least 30 minutes before bed. That is the CDC's figure. The point is not only the light but the alertness: news, messages and work keep the brain switched on when it should be winding down.
- Watch caffeine timing. The CDC advises avoiding caffeine in the afternoon and evening, and the NHLBI notes its effects can last up to 8 hours. A coffee at 4 pm can still be active at midnight.
- Skip alcohol as a sleep aid. Alcohol may make you drowsy, but it fragments sleep later in the night. The CDC also advises avoiding large meals close to bedtime.
- Move during the day. Regular daytime activity is linked with better sleep, but finish hard exercise a few hours before bed so your body temperature and heart rate have time to fall.
When poor sleep needs a doctor
See a doctor if sleep problems happen on three or more nights a week for three months or longer, if you snore loudly and wake gasping or choking, if you fall asleep while driving or at work, or if daytime sleepiness is affecting your safety. Loud snoring with pauses in breathing can be sleep apnoea, which needs testing rather than better habits.
Frequently asked questions
What is a good PSQI score?
A global PSQI score of 5 or below is considered good sleep. Scores of 6 to 10 suggest moderately poor sleep, and scores above 10 suggest significant difficulty.
How many hours of sleep do adults need?
The CDC recommends 7 or more hours a night for adults aged 18 to 60, 7 to 9 hours for ages 61 to 64, and 7 to 8 hours for 65 and over.
Is the PSQI a diagnosis?
No. It is a screening questionnaire. A high score says your sleep is worth a closer look — a sleep diary, a conversation with your doctor, or a sleep study if apnoea is suspected.
This guide is general information, not medical advice. Talk to a doctor before changing your sleep, diet or exercise routine, especially if you have a health condition or take medication.


