Sleep quality
From the YapSpan Longevity Wiki · Updated 2026-09-29
Sleep quality is how well a person sleeps, as distinct from how long. It is usually described by how quickly sleep begins, how often and how long a person wakes during the night, sleep efficiency (the share of time in bed actually spent asleep) and whether the person feels rested afterwards [1]. It is measured with questionnaires such as the Pittsburgh Sleep Quality Index, and objectively with laboratory sleep recordings or wrist-worn movement monitors [2].
Sleep quality is partly inherited. In a study of 1,218 middle-aged male twins, genes explained 34% of the variation in sleep quality scores and the rest was explained by each person's individual environment and experiences, with no contribution from the family environment the twins shared [3]. The best-measured influences on a given night are caffeine, alcohol, light exposure, bedroom temperature, the regularity of the sleep schedule, physical activity and stress.
Persistent poor sleep with daytime impairment is diagnosed as insomnia, for which cognitive behavioral therapy (a structured talking therapy that changes sleep habits and thoughts about sleep) is the recommended first treatment [4]. The sleep quality chart shows how these factors compare, and the relationship between sleep and lifespan is covered in sleep duration and mortality.
- Genes explained 34% of the variation in sleep quality scores in 1,218 middle-aged male twins [3].
- Caffeine reduced total sleep by 45 minutes and sleep efficiency by 7% across 24 studies [5].
- To avoid lost sleep, a 107 mg coffee was estimated to need at least 8.8 hours before bedtime [5].
- A week of natural light only moved the internal clock about 2 hours earlier [6].
- Sleep was most efficient with bedroom air at 20 to 25°C in older adults monitored at home [7].
- Cognitive behavioral therapy shortened the time to fall asleep by about 19 minutes in 20 randomised trials (studies that assign participants to groups by chance) [8].
Related deep dives and quizzes
- Deep dive: The 8 things that matter most for your sleep
- Deep dive: Bryan Johnson's Ten Sleep Power Laws: what each one asks and how strong the evidence is
- Deep dive: Top 10 insomnia remedies, ranked by the evidence
- Quiz: Sleep quiz
- Quiz: Bryan Johnson's Ten Sleep Power Laws quiz
- Quiz: Stress quiz
- Chart: Sleep quality chart
- Quiz: Life Quiz
- Charts: What Matters charts
- Quizzes: All quizzes
Longevity posts, plain English
Occasional notes when we publish: what the studies say, without hype. Unsubscribe anytime.
YapSpan estimates are for reflection and entertainment only. They are not medical advice, a diagnosis, or a prediction of any individual outcome. Check with a doctor before making any medical decision.