Bedtime habits and sleep quality: what the science actually shows
The neuroscience of sleep onset, behavioural sleep medicine, and the evidence behind pre-sleep routines
Key takeaways: The evidence consistently supports a set of behaviours in the hours before sleep that promote faster sleep onset, better sleep continuity, and improved sleep quality. The strongest evidence exists for consistent sleep scheduling, light reduction in the evening (particularly blue-spectrum light from screens), caffeine avoidance in the afternoon and evening, and limiting alcohol close to bedtime. Pre-sleep cognitive arousal — an overactive, problem-solving mind at bedtime — is a key driver of insomnia and responds well to structured wind-down behaviours and cognitive techniques. Bedroom environment (temperature, darkness, noise) plays a supporting but meaningful role. Sleep hygiene advice alone is insufficient for clinical insomnia, where cognitive behavioural therapy for insomnia (CBT-I) represents the gold-standard treatment, but it remains valuable background guidance for the general population.
The phrase 'sleep hygiene' — used by sleep clinicians to describe a set of behaviours and environmental conditions conducive to good sleep — has become almost a cliché. But beneath the cliché is a substantial body of research examining exactly how and why pre-sleep behaviours influence sleep quality. This companion piece reviews that evidence, exploring the neuroscience of sleep onset, the physiological effects of common pre-sleep habits, and what behavioural sleep medicine tells us about preparing for sleep effectively.
The neuroscience of sleep onset: what has to happen before you can sleep
Sleep onset is not simply a matter of feeling tired. It requires the simultaneous convergence of two biological processes: a sufficiently high homeostatic sleep drive and a permissive circadian phase. When these align, sleep comes relatively easily. When pre-sleep behaviours disrupt either process — or when they maintain physiological arousal that opposes both — sleep onset is delayed and sleep quality is reduced.
Adenosine and the homeostatic drive
During wakefulness, adenosine accumulates in the brain as a metabolic by-product of neural activity. Rising adenosine levels create progressively stronger pressure to sleep — what is sometimes called 'sleep pressure' or 'sleep drive'. Caffeine works by competitively blocking adenosine receptors, temporarily masking this pressure without reducing the underlying accumulation. Sleep itself dissipates adenosine, which is one reason sleep feels restorative.
The homeostatic drive is relatively straightforward: the longer you are awake, the stronger the drive. Pre-sleep behaviours that maintain high arousal — vigorous exercise, stimulating cognitive activity, emotional conflict — do not reduce this drive, but can oppose it through competing activation of wake-promoting systems.
The circadian component: melatonin and the sleep window
The circadian system generates a near-24-hour oscillation in alertness and sleepiness, regulated by the suprachiasmatic nucleus (SCN) of the hypothalamus and entrained primarily by light. In the evening, as light diminishes, the pineal gland releases melatonin — not a direct sleep-inducer, but a signal that night has arrived, permitting the circadian system to allow sleep.
Dim light melatonin onset (DLMO) — the point at which melatonin secretion begins in dim-light conditions, typically around two hours before habitual sleep — is one of the most reliable markers of circadian phase. Evening light exposure, particularly light rich in short-wavelength (blue) content, suppresses melatonin and delays DLMO, effectively pushing the circadian sleep window later. This is the mechanism by which screen use in the evening interferes with sleep timing.
KEY RESEARCH
Gooley, J. J., Chamberlain, K., Smith, K. A., Khalsa, S. B. S., Rajaratnam, S. M. W., Van Reen, E., Zeitzer, J. M., Czeisler, C. A., & Lockley, S. W. (2011). Exposure to room light before bedtime suppresses melatonin onset and shortens melatonin duration in humans. Journal of Clinical Endocrinology & Metabolism, 96(3), E463–E472. https://doi.org/10.1210/jc.2010-2098
Cognitive and physiological arousal as an opposing force
Beyond the two-process model, a third factor is critical to understanding bedtime habits: arousal. Cognitive arousal — an active, ruminative, or problem-solving mind — activates wake-promoting neural circuitry and is one of the primary drivers of sleep-onset insomnia. Similarly, physiological arousal from stimulants, emotional stress, or vigorous physical activity maintains a state of sympathetic nervous system activation incompatible with the parasympathetic shift that accompanies sleep onset.
This is why simply 'trying harder' to sleep is counterproductive: the effort itself creates arousal. The goal of effective pre-sleep behaviour is to reduce arousal across all three dimensions — cognitive, physiological, and circadian — so that the homeostatic drive can do its work.
Light and screen exposure: the strongest evidence
Of all pre-sleep behaviours, the effects of evening light on sleep timing are among the most robustly documented. A systematic review and meta-analysis by Cajochen and colleagues found that evening light exposure — including from screens — consistently delays melatonin onset, lengthens sleep latency (the time taken to fall asleep), and reduces sleep efficiency. The magnitude of the effect depends on the melanopic content (the degree of blue-spectrum light) of the source, with high-melanopic sources such as LED screens producing larger delays than warmer-spectrum light.
KEY RESEARCH
Cajochen, C., Stefani, O., Schöllhorn, I., Lang, D., & Chellappa, S. (2022). Influence of evening light exposure on polysomnographically assessed night-time sleep: A systematic review with meta-analysis. Lighting Research & Technology, 54, 609–624. https://doi.org/10.1177/14771535221078765
Screen use compounds the light problem with a separate issue: cognitive and emotional engagement. Social media, news, games, and video content are designed to capture and sustain attention, creating a state of mental activation that persists beyond the screen-off moment. Population studies consistently show associations between greater pre-sleep screen time and shorter sleep duration, longer sleep-onset latency, and more frequent nocturnal awakenings.
Practical mitigation strategies — night-mode settings, blue-light-blocking glasses, screen dimming — reduce but do not eliminate the effect. The most effective approach remains reducing high-stimulation screen use in the 30–60 minutes before the intended sleep window, replacing it with lower-stimulation activity.
KEY RESEARCH
Schöllhorn, I., Stefani, O., Lucas, R., Spitschan, M., Slawik, H., & Cajochen, C. (2023). Melanopic irradiance defines the impact of evening display light on sleep latency, melatonin and alertness. Communications Biology, 6. https://doi.org/10.1038/s42003-023-04598-4
Caffeine: pharmacokinetics and sleep interference
Caffeine is the most widely consumed psychoactive substance in the world, and its effects on sleep are among the most extensively studied. Caffeine exerts its effects by competitive antagonism of adenosine A1 and A2A receptors. By blocking adenosine binding, caffeine reduces the subjective experience of sleepiness without reducing the underlying adenosine accumulation — meaning that when caffeine is cleared, the full weight of accumulated sleep pressure reasserts itself.
The half-life of caffeine in healthy adults is typically five to six hours, though this varies considerably with genetics (CYP1A2 enzyme variants), age, pregnancy, and concurrent medications. A 200mg dose (roughly one to two standard cups of coffee) consumed at 3 p.m. still has approximately 100mg active at 9 p.m. Multiple large systematic reviews and meta-analyses confirm that caffeine consumed in the afternoon or evening reduces total sleep time, increases sleep-onset latency, reduces sleep efficiency, and reduces slow-wave (deep) sleep — even when individuals report feeling unaffected.
KEY RESEARCH
Gardiner, C., Weakley, J., Burke, L., Roach, G., Sargent, C., Maniar, N., Townshend, A., & Halson, S. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764. https://doi.org/10.1016/j.smrv.2023.101764
A key finding from a 2024 randomised crossover trial by Gardiner and colleagues was that caffeine timing effects are dose-dependent and persist longer than many people assume: caffeine consumed up to nine hours before sleep onset can measurably reduce sleep quality. This suggests that for individuals sensitive to caffeine — or those with ongoing sleep difficulties — a caffeine cutoff of noon or early afternoon may be warranted.
KEY RESEARCH
Gardiner, C., Weakley, J., Burke, L., Fernandez, F., Johnston, R., Leota, J., Russell, S., Munteanu, G., Townshend, A., & Halson, S. (2024). Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep, 48. https://doi.org/10.1093/sleep/zsae230
Alcohol: the sedative that sabotages sleep
Alcohol's relationship with sleep is perhaps the most widely misunderstood in popular culture. Its sedative properties — which stem from enhancement of GABA-mediated inhibitory neurotransmission and suppression of glutamatergic excitatory activity — do genuinely accelerate sleep onset and increase subjective drowsiness. This is why many people use alcohol as a sleep aid.
However, as alcohol is metabolised — a process that produces acetaldehyde, a stimulating metabolite — the sleep-architecture effects shift dramatically. Alcohol reduces REM (rapid eye movement) sleep in the first half of the night and produces a REM rebound in the second half, characterised by more frequent awakenings, lighter sleep, and vivid or disturbing dreams. Slow-wave (deep) sleep is also disrupted, particularly at higher doses. The net result is that alcohol may shorten the time to sleep onset while significantly reducing overall sleep quality and leaving many people feeling unrefreshed despite adequate time in bed.
KEY RESEARCH
Baranwal, N., Yu, P., & Siegel, N. (2023). Sleep physiology, pathophysiology, and sleep hygiene. Progress in Cardiovascular Diseases. https://doi.org/10.1016/j.pcad.2023.02.005
Evening eating: timing, composition, and sleep
The relationship between food timing and sleep quality is mediated by several mechanisms: digestive activity, body temperature regulation, and the circadian influence of meal timing on peripheral biological clocks. Heavy meals close to bedtime prolong digestive activity, increase the likelihood of gastro-oesophageal reflux, and may elevate core body temperature — all of which oppose sleep onset.
Large population-based surveys have found associations between eating the day's largest meal in the evening and shorter sleep duration, poorer sleep quality, and more nocturnal awakenings. A cross-sectional study of university students found that the proximity of meals to bedtime was independently associated with shorter sleep duration and greater subjective insomnia symptoms, even after controlling for total energy intake.
KEY RESEARCH
Chung, N., Bin, Y., Cistulli, P., & Chow, C. (2020). Does the proximity of meals to bedtime influence the sleep of young adults? A cross-sectional survey of university students. International Journal of Environmental Research and Public Health, 17. https://doi.org/10.3390/ijerph17082677
A scoping review by Saidi and colleagues examining chrono-nutrition and sleep found consistent evidence that later eating patterns — regardless of total caloric intake — are associated with shorter sleep duration and later sleep timing. The authors suggest that meal timing acts as a secondary zeitgeber (time-giver), with late-evening eating potentially delaying circadian phase in a manner that compounds the effects of evening light exposure.
KEY RESEARCH
Saidi, O., Rochette, E., Dambel, L., St-Onge, M., & Duché, P. (2024). Chrono-nutrition and sleep: lessons from the temporal feature of eating patterns in human studies — a systematic scoping review. Sleep Medicine Reviews, 76, 101953. https://doi.org/10.1016/j.smrv.2024.101953
Exercise timing: a nuanced picture
Regular physical activity is consistently associated with better sleep quality and reduced insomnia symptoms across a wide range of study designs and populations. The mechanisms are multiple: exercise reduces arousal via physical fatigue, reduces depressive and anxiety symptoms that impair sleep, and may directly influence sleep homeostasis. However, the question of exercise timing — specifically whether vigorous exercise close to bedtime impairs sleep — remains actively debated.
Older guidance, based largely on the known thermogenic and sympathomimetic effects of vigorous exercise, recommended avoiding strenuous activity within two to three hours of bedtime. More recent research presents a more complex picture: several studies and meta-analyses find no significant detrimental effect of evening exercise on sleep in most people, and some find modest benefits. The key variable appears to be exercise intensity: high-intensity exercise within an hour of bedtime may delay sleep onset in some individuals due to residual sympathetic activation and elevated core body temperature, while moderate-intensity exercise appears largely benign.
The practically relevant conclusion is that regular exercise — at any time of day — is broadly beneficial for sleep, and that highly individualised responses to evening vigorous exercise mean blanket avoidance is not warranted for everyone. Those who notice a pattern of sleep disruption after late workouts should experiment with timing earlier.
KEY RESEARCH
Sejbuk, M., Mirończuk-Chodakowska, I., & Witkowska, A. (2022). Sleep quality: a narrative review on nutrition, stimulants, and physical activity as important factors. Nutrients, 14. https://doi.org/10.3390/nu14091912
Pre-sleep cognitive arousal and behavioural strategies
Pre-sleep cognitive arousal — the tendency to engage in ruminative thinking, worry, and mental problem-solving at bedtime — is one of the most robust predictors of sleep-onset insomnia. The experience is almost universal: lying in bed, unable to stop the mind running through tomorrow's challenges, replaying the day, or constructing elaborate scenarios.
The neuropsychology is clear: sustained cognitive engagement activates the prefrontal cortex and associated wake-promoting circuits, opposing the deactivation required for sleep onset. The amygdala's role in emotional memory processing also means that anxious or emotionally charged thought content is particularly disruptive.
Stimulus control and sleep restriction
Cognitive behavioural therapy for insomnia (CBT-I) — the gold-standard treatment for chronic insomnia, consistently superior to pharmacological intervention in head-to-head trials — incorporates several techniques directly relevant to pre-sleep habits. Stimulus control is a core CBT-I component: it involves reconditioning the association between the bed/bedroom and sleep, by limiting wakeful activities in bed. The principle is that beds should be used only for sleep and sex, not for reading, working, watching, or worrying. Patients who regularly engage in wakeful activities in bed have, over time, conditioned their nervous system to associate that environment with wakefulness — the opposite of what is needed.
KEY RESEARCH
Edinger, J. D., Arnedt, J. T., Bertisch, S. M., Carney, C. E., Harrington, J. J., Lichstein, K. L., Sateia, M. J., Troxel, W. M., Zhou, E. S., Kazmi, U., Heald, J. L., & Martin, J. L. (2020). Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine, 17, 255–262. https://doi.org/10.5664/jcsm.8986
Cognitive offloading: the 'thought dump'
One practically accessible technique for reducing pre-sleep cognitive arousal is prospective memory offloading — sometimes called a 'thought dump' or 'worry journal'. Writing down tomorrow's tasks, outstanding concerns, or intrusive thoughts before bed externalises them, reducing the cognitive load of holding them in working memory during the sleep period.
A notable experimental study by Scullin and colleagues found that writing a to-do list for the following day — as opposed to journalling about completed tasks — significantly reduced the time taken to fall asleep. The authors suggest that offloading future-oriented concerns is particularly effective because it provides a form of 'mental closure' that reduces cognitive rehearsal during the pre-sleep period.
Relaxation techniques and breathing
A range of structured relaxation techniques — including progressive muscle relaxation, diaphragmatic breathing, and mindfulness-based practices — have demonstrated efficacy in reducing both physiological and cognitive arousal before sleep. These techniques reduce sympathetic nervous system activity, lower heart rate and blood pressure, and shift attention away from ruminative thought content. Brief breathing exercises (such as slow, extended exhalation) activate the parasympathetic nervous system via the vagal nerve and can produce measurable reductions in heart rate within minutes.
Sleep environment: the bedroom as a sleep cue
The bedroom environment influences sleep through both physiological and conditioning mechanisms. Optimal core body temperature for sleep onset is typically associated with a room temperature of around 16–20°C (60–68°F) for most adults. Since sleep onset is accompanied by a natural drop in core body temperature — heat is dissipated through the extremities — a slightly cool room facilitates this thermoregulatory shift.
Darkness, as noted above, is a primary circadian signal. Even moderate light during sleep — from street lighting through curtains, or a phone screen briefly illuminated — can fragment sleep by suppressing melatonin and activating light-sensitive retinal cells that feed directly into the circadian system. Blackout curtains and avoiding light-emitting devices in the sleeping environment are supported interventions.
Noise is a third environmental variable. Acoustic disturbances during sleep produce measurable arousal responses — including transient shifts toward lighter sleep stages and brief micro-awakenings — even when the sleeper does not recall being disturbed. Continuous masking sounds (white or pink noise) may reduce the contrast between ambient noise and sudden disturbances, with some evidence of benefit for sleep quality in noisy environments.
KEY RESEARCH
De Pasquale, C., Kazzi, E., Sutherland, K., Shriane, A., Vincent, G., Cistulli, P., & Bin, Y. (2024). Sleep hygiene — what do we mean? A bibliographic review. Sleep Medicine Reviews, 75, 101930. https://doi.org/10.1016/j.smrv.2024.101930
Sleep schedule consistency: the overlooked dimension
Beyond individual pre-sleep behaviours, the consistency of sleep timing across the week represents a distinct and independently important variable. 'Social jet lag' — the discrepancy between biological sleep timing on free days and sleep timing on work or school days — is associated with poorer sleep quality, greater daytime sleepiness, higher rates of depressive symptoms, and poorer cardiometabolic markers, even when total sleep time is held constant.
A large prospective cohort study using accelerometer data from the UK Biobank found that irregular sleep onset timing — quantified as night-to-night variability in sleep onset — was associated with elevated cardiovascular risk independently of sleep duration. This suggests that behavioural factors affecting schedule regularity (including weekend sleep drift, late-night social activities, and variable alcohol consumption) carry consequences beyond those attributable to sleep duration alone.
KEY RESEARCH
Castro-Santos, L., Lima, M., Pedrosa, A., Serenini, R., De Menezes, R., & Longo-Silva, G. (2023). Sleep and circadian hygiene practices association with sleep quality among Brazilian adults. Sleep Medicine: X, 6. https://doi.org/10.1016/j.sleepx.2023.100088
The limits of sleep hygiene: important caveats
The evidence base for individual sleep hygiene recommendations is generally stronger for preventing sleep deterioration in the general population than for treating established insomnia disorder. Major clinical practice guidelines — including those from the American Academy of Sleep Medicine — are explicit that sleep hygiene advice alone is not an effective treatment for chronic insomnia disorder, and should not be offered as a standalone intervention for clinical presentations.
For individuals with established insomnia disorder, CBT-I — incorporating stimulus control, sleep restriction therapy, cognitive restructuring, and relaxation techniques — represents the recommended first-line treatment. Sleep hygiene advice is incorporated as a component of CBT-I but is insufficient alone.
It is also worth noting that a large cross-sectional survey found that some pre-bed rituals (dimming lights, soothing teas, reading) were not consistently associated with better sleep at the population level, and were sometimes observed more frequently in those already experiencing sleep problems. This finding reflects the difficulty of disentangling correlation from causation in observational data — people who sleep poorly may adopt more rituals, rather than rituals causing poorer sleep — but it does underscore that individual rituals without broader contextual support may have limited direct effect.
KEY RESEARCH
Edinger, J. D., et al. (2020). Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine, 17, 255–262. https://doi.org/10.5664/jcsm.8986
Summary: what the evidence supports
The pre-sleep period is a genuine determinant of sleep quality, acting through multiple physiological and psychological mechanisms. The evidence most consistently supports:
• Consistent sleep and wake timing, seven days a week, as the most important single behavioural variable for circadian regulation.
• Evening light reduction — particularly blue-spectrum light from screens — to support melatonin onset and reduce sleep-onset latency.
• Caffeine avoidance from early-to-mid afternoon for individuals experiencing sleep difficulties or those with slow caffeine metabolism.
• Alcohol avoidance close to bedtime, given its well-documented negative effects on sleep architecture despite facilitating sleep onset.
• Finishing the main meal at least two hours before the intended sleep window, with evidence supporting earlier and lighter evening eating for better sleep.
• Reducing cognitive and physiological arousal in the pre-sleep period through wind-down activities, cognitive offloading, and relaxation techniques.
• Maintaining the bedroom as an environment primarily associated with sleep, at a cool temperature and in darkness.
What the evidence supports with less certainty is the superiority of any specific wind-down ritual over another. The brain's capacity to form conditioned responses means that any consistently repeated pre-sleep behaviour can become an effective sleep cue. The content matters less than the repetition and the reduction in stimulation that accompanies it. Consistency, calm, and darkness are the core requirements. Everything else is personalisation.