When Sleep Changes the Mind: Emotion, Memory and Mental Health

Warmly lit reading alcove reflected in dark teal glass above a quiet city at night.

Sleep supports more than the feeling of being rested. Research connects it with how we learn, sustain attention and respond emotionally, while showing why sleep difficulties and mental health need to be understood together.

After a disturbed night, an ordinary task can demand more concentration, and a manageable worry may feel harder to put aside. Such experiences raise a psychological question: how does sleep influence the way we encounter the next day?

Experiments show that losing sleep can change aspects of memory, attention and emotional functioning. Longer-term studies also connect persistent sleep difficulties with anxiety and depression. These findings matter, but they answer different questions. A laboratory experiment can establish an immediate effect under controlled conditions; it cannot, by itself, explain why someone develops a mental-health condition. Understanding the psychology of sleep requires both evidence and context.

Sleep is more than simply switching off

Sleep involves changing patterns of brain activity, rather than uniform inactivity. Non-rapid eye movement sleep comprises three stages: N1, the transition from wakefulness; N2, a more established stage of sleep; and N3, deep or slow-wave sleep. Rapid eye movement sleep, or REM, involves a different pattern of activity and usually markedly reduced muscle tone (National Heart, Lung, and Blood Institute [NHLBI], 2022a).

These stages recur across the sleep period. Deep non-REM sleep is more prominent earlier, while REM periods generally become longer later. This changing arrangement is called sleep architecture. Hours in bed therefore cannot tell us how much sleep occurred, how fragmented it was or how its stages were distributed.

Non-REM sleep is implicated in sleep regulation and memory processing; sleep more broadly supports physiological maintenance. REM has proposed roles in emotional learning and memory, but its precise contribution remains debated. Neither phase has one exclusive psychological job, and dreaming can occur outside REM (Lutz et al., 2026; Mutz & Javadi, 2017).

What happens to memory when we sleep?

Learning involves several processes. Encoding is taking in new information; consolidation concerns its subsequent stabilisation and reorganisation; retrieval is accessing it later. Sleep can contribute at more than one point.

A contemporary review describes evidence that previously encoded information is reactivated during sleep, with coordinated non-REM brain rhythms helping communication between memory systems. This supports an active contribution to consolidation, rather than sleep serving only as time without distraction (Lutz et al., 2026).

Declarative memories, such as facts and events, and procedural learning, such as acquiring a skill, are both studied, but their results are not interchangeable. Meta-analyses found that an entire night without sleep before learning impaired later memory, and deprivation after learning also had a detrimental effect. The size varied with task and testing conditions, and the authors identified publication bias and low statistical power (Newbury et al., 2021).

These experiments support protecting sleep around learning. They do not show that every memory improves equally, that sleep replaces practice, or that one shortened night produces the same effect as total deprivation.

Why poor sleep can affect attention and decision-making

Sustained attention is among the functions most consistently affected by sleep loss. A meta-analysis of short-term total deprivation found particularly substantial effects on lapses in simple attention, alongside changes in working memory and processing speed. Effects on reasoning accuracy were smaller and not statistically clear (Lim & Dinges, 2010).

Research on partial sleep restriction also finds poorer cognitive performance, including executive functioning (Lowe et al., 2017). These higher-order abilities include holding information in mind, inhibiting an unsuitable response and changing approach when circumstances change. Decision-making and error monitoring draw on overlapping abilities, but different tests place different demands on them. There is no single percentage by which being tired reduces judgement.

Repeated restriction matters too. In a controlled study, participants allocated four or six hours in bed nightly across two weeks developed accumulating performance deficits. Their subjective sleepiness did not fully track that deterioration (Van Dongen et al., 2003). Feeling accustomed to a schedule therefore did not demonstrate that performance had recovered.

In everyday terms, slower reactions and intermittent lapses can make following instructions or checking detailed work harder. The laboratory evidence supports that possibility without establishing how any particular person will perform in a specific workplace.

The relationship between sleep and emotional regulation

Emotional functioning includes mood, responses to particular events and attempts to regulate those responses. Sleep research needs to distinguish them.

A preregistered meta-analysis covering 154 experimental studies found that total deprivation, partial restriction and disrupted sleep reduced positive affect and increased anxiety symptoms. Findings for negative affect and depressive symptoms were more variable and depended on the sleep manipulation (Palmer et al., 2024). Poor sleep does not simply turn every emotional response up: some measured responses were blunted.

Emotion regulation is another part of the picture. A separate meta-analysis found a small adverse effect of sleep restriction on adaptive regulation. Crucially, all studies contributing to that particular analysis involved young people, limiting conclusions about adults (Tomaso et al., 2021). Differences between reviews can reflect which outcomes, age groups and forms of sleep loss they combine.

Threat processing offers a more specific example. An experiment combining brain imaging and heart-rate measures found poorer discrimination between threatening and friendly facial cues after sleep deprivation (Goldstein-Piekarski et al., 2015). It investigated a particular social-perception task, rather than proving that tired people invariably perceive danger everywhere.

Brain imaging can identify changes associated with experimentally reduced sleep. It does not show that a rational brain system has switched off, or allow a scan to explain an individual's reaction. Sleep may influence the conditions under which stress is handled; relationships, circumstances and established coping patterns still matter.

Why sleep and mental health influence each other

Sleep disturbance can accompany anxiety and depression, while worry, rumination and low mood can disrupt sleep (Alvaro et al., 2013; NHS, 2024). These relationships do not mean that everyone with a mental-health difficulty has the same sleep profile.

A systematic review of longitudinal evidence supported a bidirectional relationship between insomnia and anxiety or depression, while emphasising the small and heterogeneous evidence base (Alvaro et al., 2013). A later meta-analysis found that insomnia predicted subsequent onset of several mental disorders, including depression and anxiety (Hertenstein et al., 2019). Preceding an outcome strengthens the case for relevance, but does not eliminate shared causes such as illness, adversity or ongoing stress.

Intervention trials provide a different test. Across 65 randomised trials, interventions that improved sleep also improved mental-health outcomes on average, including depression and anxiety symptoms (Scott et al., 2021). This supports sleep as a potentially useful treatment target, although a multicomponent intervention cannot isolate every mechanism involved.

In one trial involving older adults with insomnia, CBT-I reduced the occurrence of new or recurrent major depression compared with sleep education across follow-up (Irwin et al., 2022). This is meaningful evidence for that population, rather than a guarantee of prevention for everyone. Treating insomnia can complement wider mental-health care; it does not automatically resolve an anxiety or depressive disorder.

Circadian rhythms and the importance of timing

Sleep pressure builds during wakefulness, while circadian rhythms organise approximately 24-hour patterns of alertness and physiological activity. Light helps synchronise the central biological clock, and people differ in their preferred timing, often described as chronotype (NHLBI, 2022b).

Duration, quality and timing are separate dimensions. Someone may have sufficient opportunity to sleep yet struggle when work demands conflict with their biological timing. Night work can require wakefulness during the biological night and sleep when circadian signals favour alertness. Individual responses and practical constraints vary.

Light's effects depend partly on when exposure occurs. Its influence cannot be reduced to a rule that every screen or every evening light has an identical effect (Blume et al., 2019). Reasonably consistent timing and appropriate light exposure can support sleep, but an early bedtime is not a universal prescription. Shift patterns, caring responsibilities, housing and health all influence what is feasible.

When sleep difficulties become persistent

An occasional poor night differs from persistent insomnia. Clinical assessment considers difficulties initiating or maintaining sleep, their persistence and their daytime effects, alongside whether there is adequate opportunity to sleep. Insomnia should not be inferred from one disappointing night or a wearable's score (Buysse, 2013).

Patterns that develop around sleep may become relevant: monitoring the clock, anticipating failure or spending increasing time trying to force sleep. These processes may interact with pain, medication effects, anxiety or an unsuitable sleep environment. The relationship between coping and longer-term difficulty also appears in why avoidance can keep anxiety going, although insomnia requires its own assessment.

A psychological formulation can help organise these interacting influences. It should remain open to medical explanations. Persistent difficulties, marked daytime sleepiness, loud snoring or interrupted breathing warrant professional assessment, because another sleep disorder may require attention (NHS, 2024).

What psychological treatment for insomnia can offer

European and American guidelines recommend multicomponent cognitive behavioural therapy for insomnia, usually called CBT-I, as a first-line treatment for chronic insomnia (Edinger et al., 2021; Riemann et al., 2023).

CBT-I examines beliefs and expectations about sleep, sleep-related arousal and behaviours that may perpetuate difficulty. Stimulus control aims to rebuild the association between bed and sleep. Behavioural scheduling works with patterns of sleep and wakefulness, rather than simply increasing time in bed. Cognitive work can address catastrophic predictions about a poor night. Components are selected and adapted within treatment (Buysse, 2013).

This differs from sleep hygiene, which concerns habits and environmental conditions. Helpful general practices can support sleep, but the American guideline advises against sleep hygiene as the sole treatment for chronic insomnia (Edinger et al., 2021).

Evidence-based digital delivery can widen options. NICE recommends Sleepio for a defined primary-care population who would otherwise receive sleep-hygiene advice or sleeping pills, while identifying uncertainty about comparison with face-to-face CBT-I (National Institute for Health and Care Excellence [NICE], 2022). That recommendation should not be extended to every commercial sleep app.

Some behavioural components deliberately adjust time in bed and can initially increase sleepiness (Edinger et al., 2021). They need appropriate assessment and adaptation; the principles described here are not instructions for an unsupervised sleep-restriction programme.

Why common sleep advice can be misleading

Exactly eight hours is not a biological requirement shared by every adult. A professional consensus recommends seven or more hours regularly for adults, while recognising individual variation and circumstances in which longer sleep may be appropriate (Watson et al., 2015). The NHS gives seven to nine hours as an adult average (NHS, 2024). Neither establishes that more is always better.

Weekend recovery also deserves qualification. An experiment found that unrestricted weekend sleep did not prevent metabolic disruption when insufficient sleep resumed (Depner et al., 2019). Its outcome was metabolic, not recovery from depression or anxiety. It challenges a promise of complete reversal without showing that recovery sleep has no value.

Dreams raise a different misconception. Research investigates their content, associated brain activity and possible functions, with competing explanations still under discussion (Mutz & Javadi, 2017). This does not provide an established universal dictionary of dream meanings. A personally meaningful dream is not a diagnostic test.

What sleep research still cannot tell us

Measurement matters. Sleep diaries and questionnaires capture perceived sleep and distress. Polysomnography records physiological signals used to identify stages; actigraphy estimates patterns from movement. These methods answer different questions. Quiet wakefulness can resemble sleep on a movement-based measure, while feeling poorly rested remains clinically relevant even when a recording looks less disturbed (Riemann et al., 2023).

Experiments offer control, but a night of total deprivation in selected volunteers does not reproduce years of disrupted sleep in a person with illness or caring demands. Observational studies face confounding and reverse causality. Group averages can obscure substantial individual differences.

Memory research also contains small studies and publication bias (Newbury et al., 2021). Neuroimaging findings depend on the task and analysis; a difference in activation does not establish a complete psychological explanation. Treatment estimates likewise vary with comparison groups, adherence and follow-up. These limitations qualify the conclusions without making the evidence irrelevant.

Taking sleep seriously without making it another test

Sleep is part of how psychological functioning is supported, and persistent disruption can deserve treatment in its own right. Its importance does not require making every bad night a warning sign or treating perfect sleep as a personal achievement. A useful approach considers sleep alongside health, daily demands and the person's wider circumstances, with support directed towards difficulties that persist.

Seeking support: This article is educational, not individual medical or psychological advice. Contact a GP or appropriate clinician if sleep problems persist, significantly affect daily life or suggest another sleep disorder. Avoid driving when sleepy (NHS, 2024).

References

Alvaro, P. K., Roberts, R. M., & Harris, J. K. (2013). A systematic review assessing bidirectionality between sleep disturbances, anxiety, and depression. Sleep, 36(7), 1059–1068. https://doi.org/10.5665/sleep.2810

Blume, C., Garbazza, C., & Spitschan, M. (2019). Effects of light on human circadian rhythms, sleep and mood. Somnologie, 23(3), 147–156. https://doi.org/10.1007/s11818-019-00215-x

Buysse, D. J. (2013). Insomnia. JAMA, 309(7), 706–716. https://doi.org/10.1001/jama.2013.193

Depner, C. M., Melanson, E. L., Eckel, R. H., Snell-Bergeon, J. K., Perreault, L., Bergman, B. C., Higgins, J. A., Guerin, M. K., Stothard, E. R., Morton, S. J., & Wright, K. P., Jr. (2019). Ad libitum weekend recovery sleep fails to prevent metabolic dysregulation during a repeating pattern of insufficient sleep and weekend recovery sleep. Current Biology, 29(6), 957–967.e4. https://doi.org/10.1016/j.cub.2019.01.069

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. (2021). 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(2), 255–262. https://doi.org/10.5664/jcsm.8986

Goldstein-Piekarski, A. N., Greer, S. M., Saletin, J. M., & Walker, M. P. (2015). Sleep deprivation impairs the human central and peripheral nervous system discrimination of social threat. The Journal of Neuroscience, 35(28), 10135–10145. https://doi.org/10.1523/JNEUROSCI.5254-14.2015

Hertenstein, E., Feige, B., Gmeiner, T., Kienzler, C., Spiegelhalder, K., Johann, A., Jansson-Fröjmark, M., Palagini, L., Rücker, G., Riemann, D., & Baglioni, C. (2019). Insomnia as a predictor of mental disorders: A systematic review and meta-analysis. Sleep Medicine Reviews, 43, 96–105. https://doi.org/10.1016/j.smrv.2018.10.006

Irwin, M. R., Carrillo, C., Sadeghi, N., Bjurstrom, M. F., Breen, E. C., & Olmstead, R. (2022). Prevention of incident and recurrent major depression in older adults with insomnia: A randomized clinical trial. JAMA Psychiatry, 79(1), 33–41. https://doi.org/10.1001/jamapsychiatry.2021.3422

Lim, J., & Dinges, D. F. (2010). A meta-analysis of the impact of short-term sleep deprivation on cognitive variables. Psychological Bulletin, 136(3), 375–389. https://doi.org/10.1037/a0018883

Lowe, C. J., Safati, A., & Hall, P. A. (2017). The neurocognitive consequences of sleep restriction: A meta-analytic review. Neuroscience & Biobehavioral Reviews, 80, 586–604. https://doi.org/10.1016/j.neubiorev.2017.07.010

Lutz, N. D., Harkotte, M., & Born, J. (2026). Sleep’s contribution to memory formation. Physiological Reviews, 106(1), 363–483. https://doi.org/10.1152/physrev.00054.2024

Mutz, J., & Javadi, A.-H. (2017). Exploring the neural correlates of dream phenomenology and altered states of consciousness during sleep. Neuroscience of Consciousness, 2017(1), Article nix009. https://doi.org/10.1093/nc/nix009

National Heart, Lung, and Blood Institute. (2022a, March 24). How sleep works: Sleep phases and stages. https://www.nhlbi.nih.gov/health/sleep/stages-of-sleep

National Heart, Lung, and Blood Institute. (2022b, March 24). How sleep works: Your sleep/wake cycle. https://www.nhlbi.nih.gov/health/sleep/sleep-wake-cycle

National Institute for Health and Care Excellence. (2022). Sleepio to treat insomnia and insomnia symptoms (HealthTech guidance HTG624). https://www.nice.org.uk/guidance/htg624/chapter/1-Recommendations

Newbury, C. R., Crowley, R., Rastle, K., & Tamminen, J. (2021). Sleep deprivation and memory: Meta-analytic reviews of studies on sleep deprivation before and after learning. Psychological Bulletin, 147(11), 1215–1240. https://doi.org/10.1037/bul0000348

NHS. (2024, March 19). Insomnia. https://www.nhs.uk/conditions/insomnia/

Palmer, C. A., Bower, J. L., Cho, K. W., Clementi, M. A., Lau, S., Oosterhoff, B., & Alfano, C. A. (2024). Sleep loss and emotion: A systematic review and meta-analysis of over 50 years of experimental research. Psychological Bulletin, 150(4), 440–463. https://doi.org/10.1037/bul0000410

Riemann, D., Espie, C. A., Altena, E., Arnardottir, E. S., Baglioni, C., Bassetti, C. L. A., Bastien, C., Berzina, N., Bjorvatn, B., Dikeos, D., Dolenc Groselj, L., Ellis, J. G., Garcia-Borreguero, D., Geoffroy, P. A., Gjerstad, M., Gonçalves, M., Hertenstein, E., Hoedlmoser, K., Hion, T., … Spiegelhalder, K. (2023). The European Insomnia Guideline: An update on the diagnosis and treatment of insomnia 2023. Journal of Sleep Research, 32(6), Article e14035. https://doi.org/10.1111/jsr.14035

Scott, A. J., Webb, T. L., Martyn-St James, M., Rowse, G., & Weich, S. (2021). Improving sleep quality leads to better mental health: A meta-analysis of randomised controlled trials. Sleep Medicine Reviews, 60, Article 101556. https://doi.org/10.1016/j.smrv.2021.101556

Tomaso, C. C., Johnson, A. B., & Nelson, T. D. (2021). The effect of sleep deprivation and restriction on mood, emotion, and emotion regulation: Three meta-analyses in one. Sleep, 44(6), Article zsaa289. https://doi.org/10.1093/sleep/zsaa289

Van Dongen, H. P. A., Maislin, G., Mullington, J. M., & Dinges, D. F. (2003). The cumulative cost of additional wakefulness: Dose-response effects on neurobehavioral functions and sleep physiology from chronic sleep restriction and total sleep deprivation. Sleep, 26(2), 117–126. https://doi.org/10.1093/sleep/26.2.117

Watson, N. F., Badr, M. S., Belenky, G., Bliwise, D. L., Buxton, O. M., Buysse, D., Dinges, D. F., Gangwisch, J., Grandner, M. A., Kushida, C., Malhotra, R. K., Martin, J. L., Patel, S. R., Quan, S. F., & Tasali, E. (2015). Recommended amount of sleep for a healthy adult: A joint consensus statement of the American Academy of Sleep Medicine and Sleep Research Society. Journal of Clinical Sleep Medicine, 11(6), 591–592. https://doi.org/10.5664/jcsm.4758

Comments