← Back

Sleep Regularity Outperforms Sleep Duration for Longevity

A consistent sleep schedule may predict longevity better than hours slept, challenging conventional advice.

We've all heard the mantra: get seven to nine hours of sleep per night. But a growing body of evidence suggests that when you sleep matters as much as how long. A 2023 study in Sleep—currently trending on Hacker News with over 440 upvotes—found that sleep regularity (consistency of sleep-wake timing) predicts all-cause mortality more strongly than sleep duration. That's a provocative claim, and the community has plenty to say.

What the Study Found

The study, led by Harvard and other institutions, analyzed data from over 60,000 participants in the UK Biobank. Using a Sleep Regularity Index (SRI) from seven-day accelerometer data, they found that irregular sleepers had a 53% higher risk of all-cause mortality compared to regular sleepers—after adjusting for age, sex, lifestyle, and sleep duration. Notably, sleep duration alone was not a significant predictor once regularity was accounted for. The authors controlled for shift work and employment status, but occupation was not included. The paper is open-access on Oxford Academic.

Why HN Is Skeptical

The Hacker News community, as ever, scrutinizes observational studies. Many commenters flagged the correlation-vs-causation problem. One wrote:

"It's not saying causation. You might measure the speed of your car by putting your hand out of the window and notice that the wind force on your hand is strong when the car goes fast. Putting your hand out of the window and then blocking the wind with a book doesn't make the car slow down."

Another pointed to omitted confounders:

"I wonder how much of this is driven by confounding variables they haven't accounted for... Any job that involves a lot of flying... get more cosmic radiation exposure, for example, and potentially more sleep disruption."

Others shared personal success stories: magnesium supplementation, morning sunlight, and strict routines. The thread balances scientific skepticism with a hunger for actionable advice.

My Take

The findings are compelling but not definitive. Sleep regularity probably does matter—circadian biology is robust: every cell has a clock, and irregular sleep disrupts that orchestration (see NIH overview on circadian rhythms). But this is observational. People with irregular sleep may also have chaotic lifestyles, higher stress, or jobs with other harms. The authors controlled for known confounders, but unmeasured factors like diet, social jetlag, or chronic stress could drive the association.

What's more interesting is the paradigm shift. For decades, public health focused on duration. Now consistency may be more critical. That aligns with emerging circadian medicine and how timing affects metabolism, immune function, and mental health. Practically, regularity is more actionable than hitting an arbitrary number: you can anchor your schedule even if you can't control how long you sleep.

Still, we need randomized trials or natural experiments to see if improving regularity alone reduces mortality. Until then, this is an association, not a prescription.

What This Means for Builders

If you're building health apps, wearables, or habit-tracking tools, this is a huge opportunity. Most sleep trackers obsess over duration and stages, but regularity is a neglected metric. You could:

  • Compute a Sleep Regularity Index from daily bedtime and waketime timestamps.
  • Provide feedback on seven-day rolling consistency.
  • Nudge users toward a fixed schedule—even if sleep is short, regular timing may mitigate harm.

Simple code to calculate a regularity score (in Python):

import numpy as np
from scipy.stats import circstd

def sleep_regularity(bedtimes, waketimes):
    # Convert times to hours as floats (e.g., 22.5 for 10:30 PM)
    bed_hours = np.array([t.hour + t.minute/60 for t in bedtimes])
    wake_hours = np.array([t.hour + t.minute/60 for t in waketimes])
    # Calculate circular standard deviation for each
    bed_std = circstd(np.radians(bed_hours * 15))  # 15 degrees per hour
    wake_std = circstd(np.radians(wake_hours * 15))
    # lower is more regular
    return (bed_std + wake_std) / 2

Beyond code, product teams should consider integrating circadian cues: light exposure tracking, meal timing, and social scheduling. The link between regularity and mortality may be murky, but the mechanism—reinforcing your internal clock—is well-established.

Should You Care?

If you're a researcher, clinician, or health-tech builder: yes. This paper adds weight to a paradigm shift from counting hours to maintaining rhythm. If you're an individual looking to improve sleep, this study gives you permission to stop chasing eight hours at all costs and instead focus on anchoring your schedule. But don't over-interpret—correlation is not causation. The best sleep advice remains: keep a consistent routine, minimize evening light, and get morning sunlight. That's backed by biology, not just statistics.


This post is based on the study published in Sleep and the Hacker News discussion.