You can hit the gym every morning, chase your streaks, and still walk into an exam with a foggy head. A new study of two hundred thirty-five young adults in Riyadh suggests the edge you are really after might be won in bed, not on the treadmill: sleep quality — not exercise, and not even hours slept — was the lifestyle habit that tracked working memory, the mental scratchpad behind exams, focus, and everyday problem-solving.

The research was conducted by Sumyah Alnajashi and Albandri Alotaibi of the psychology department at King Saud University and published in the Journal of Adult Development, according to ScienMag's coverage of the findings. The team recruited Arabic-speaking adults aged eighteen to forty-six — the average age was about twenty-six and a half, and one hundred seventy-two of the participants were women — and asked them to complete online brain tasks alongside questionnaires about their sleep and activity habits.

The tasks were chosen to separate two distinct mental skills. Stroop and Flanker tests measured cognitive efficiency — roughly, how quickly the brain commits to a decision — while Corsi block-tapping and a digit-updating task probed working memory, the capacity to hold and juggle information for a few seconds at a time. Rather than relying on raw reaction times, the researchers applied a modeling approach that isolates decision speed from caution and motor noise, giving a cleaner read on efficiency, as described in the published paper itself (Journal of Adult Development).

Why sleep quality tracked working memory but exercise did not

The results were strikingly lopsided. Better sleep quality was a significant positive predictor of working memory, with a standardized coefficient of zero point two six five, while physical activity and sleep duration came out statistically nonsignificant for both cognitive factors. Age pulled scores down at a comparable magnitude, consistent with the slow erosion of working memory across adulthood. Taken together, the predictors accounted for roughly twenty-one percent of the variation in working memory — a substantial share for this kind of individual-differences research.

Cognitive efficiency told a different story: none of the lifestyle factors reliably explained it, and the model captured less than six percent of its variance. Sedentary behavior showed only marginal, mixed signals — slightly positive for working memory, slightly negative for efficiency — which the authors say fits a growing view that what you do while sitting matters more than the sitting itself. The headline, the researchers argue, is that the mind is not a single switch: different habits touch different cognitive systems, and studies that average them together can smear out real effects.

Why sleep quality is the real pre-exam upgrade

Working memory is the scratchpad behind reasoning, planning, and everyday problem-solving — the thing that holds a formula in mind while you work the next step, or keeps a paragraph's thread alive while you annotate it. If better sleep quality goes hand in hand with a stronger working memory, then the sharp-for-exams edge is a bedtime habit rather than a pre-dawn workout, at least according to this snapshot of young adult life.

That does not mean the gym is a waste of time. Large meta-analyses consistently show physical activity protects cognition in older adults — the effect may simply not have had time to surface in a sample whose average age sits in the mid-twenties. Exercise also remains a heavyweight for mood, stress, and long-term health, none of which this study disputes. Better sleep quality, though, is the factor this study ties most directly to sharper thinking in your twenties. What the findings really challenge is the comforting idea that a workout streak alone buys short-term mental sharpness.

The caveats worth knowing before you change anything

This was a cross-sectional snapshot, so it cannot prove that better sleep causes sharper memory — people with stronger minds might simply sleep better, or some third factor could drive both. The lifestyle data came from self-reports, which are noisy, and the sample skewed young and heavily female, which may have limited how much variation in exercise and sleep hours the team could actually detect.

The study also fills a genuine gap in the literature. Most large sleep-and-cognition studies have been run in North America, Europe, or East Asia, leaving Arabic-speaking adults and other non-Western populations dramatically underrepresented, as reported by ScienMag. Prior work has found that subjective sleep quality predicts cognitive performance in healthy young adults even when objective sleep measures do not — how rested you feel may capture fragmentation and stress that a tracker misses. The authors call for longitudinal and intervention studies to test whether improving sleep quality directly sharpens working memory over time.

The practical nudge is modest but useful: if you have been trading rest for late-night study marathons or early gym sessions, this research suggests that protecting the quality of your sleep may do more for your thinking than either sacrifice buys you. More coverage of the science of rest lives on GenZ NewZ's Mind & Body topic page, including why your cannabis habit may be undermining your sleep. Good sleep quality, the evidence keeps saying, is a cognitive habit — not a luxury.