Memory and Sleep

Danielle Pacheco

Written by

Danielle Pacheco, Staff Writer

Dr. Anis Rehman

Medically Reviewed by

Dr. Anis Rehman, Endocrinologist

Fact Checked Icon
Fact Checked

Our team of writers, editors, and medical experts rigorously evaluates each article to ensure the information is accurate and exclusively cites reputable sources. Learn More

Recency Statement Icon

We regularly assess how the content in this article aligns with current scientific literature and expert recommendations in order to provide the most up-to-date research.

Scientists and researchers have studied the relationship between memory and sleep for more than 100 years. The general consensus today is that memory consolidation – the process of preserving key memories and discarding excessive information – takes place during both the non-rapid eye movement (NREM) and rapid eye movement (REM) stages of your sleep cycle.

Recent studies also suggest that insufficient and excessive sleep can affect memory processing and other cognitive processes. A good night’s rest not only promotes good physical health but also enables our brains to function properly, so getting the recommended amount of sleep each night is key to consolidating memories.

How Are Memory and Sleep Connected?

Sleep and memory share a complex relationship. Getting enough rest helps you process new information once you wake up, and sleeping after learning can consolidate this information into memories, allowing you to store them in your brain.

A healthy adult’s sleep cycle consists of four distinct stages. The first two stages are considered light NREM sleep, and the third is deep (or “slow-wave”) NREM sleep. These three stages prepare your brain to learn new information the following day. Not sleeping or getting enough sleep can lower your learning abilities by as much as 40%.

During these NREM stages, the brain also sorts through your various memories from the previous day, filtering out important memories and eliminating other information. These selected memories will become more concrete as deep NREM sleep begins, and this process will continue during REM sleep. Emotional memories are also processed in the REM stage, which can help you cope with difficult experiences.

Most dreaming occurs in REM sleep. The thalamus of the brain transmits cues from your five senses to the cerebral cortex, a thin layer of the cerebrum that interprets and processes information from your memories. The thalamus is largely inactive during NREM stages, but when REM sleep begins, it will relay images, sounds, and other sensations to the cerebral cortex that are then integrated into your dreams.

How Does Sleep Deprivation Affect Brain Function and Memory?

People who don’t get enough sleep may experience the effects of sleep deprivation. Difficulty remembering things is one common symptom. Since the brain does not have sufficient time to create new pathways for the information you’ve recently learned, sleep deprivation often affects how memories are consolidated. Other potential cognitive impacts include trouble learning and focusing, reduced decision-making skills, and poor emotional and behavioral control.

How much sleep you should get each night largely depends on your age. In addition to adults, studies have concluded children experience stronger memory consolidation after a good night’s sleep. That said, excessive sleep can also lead to cognitive impairments. Every person should strive for the optimal amount of nightly sleep, as too little or too much can have negative repercussions.

Our recommendations for nightly sleep based on age are as follows:

Age Group Age Range Recommended Amount of Sleep per Day
Newborn 0-3 months 14-17 hours
Infant 4-11 months 12-15 hours
Toddler 1-2 years 11-14 hours
Preschool 3-5 years 10-13 hours
School-age 6-13 years 9-11 hours
Teen 14-17 years 8-10 hours
Young Adult 18-25 years 7-9 hours
Adult 26-64 years 7-9 hours
Older Adult 65 years or older 7-8 hours

Some studies have found sleep quality decreases with age. This is tied to slow-wave sleep. Slow waves are produced in an area of the brain known as the medial prefrontal cortex. The medial prefrontal cortex will deteriorate over time, and as a result, older people typically experience less slow-wave sleep during a normal sleep cycle and have a harder time processing memories.


Sleep Apnea and Memory Loss

Since sleep is so crucial to the formation and consolidation of memories, some sleep disorders are associated with memory problems. Insomnia, defined as persistent difficulty initiating or maintaining sleep, is known to cause daytime cognitive impairments including reduced memory functioning. Sleep disorders that lead to excessive daytime sleepiness such as narcolepsy can cause memory lapses.

One disorder, sleep apnea, may actually promote memory loss. Sleep apnea is characterized by the temporary cessation of the airway during sleep that can cause people to choke or gasp for air. Heavy snoring and excessive daytime sleepiness are other common symptoms of sleep apnea.

More than 900 million people across the globe live with obstructive sleep apnea (OSA), a subtype of the disorder that occurs when a physical blockage impedes the airway. OSA has long been linked to chronic depression. People with depression often have a difficult time processing memories, specifically autobiographical memories that pertain to their own experiences. People with OSA have also demonstrated difficulty with memory consolidation.

One study sought to explore the relationship between OSA and depression in terms of memory processing. The findings show subjects with OSA struggled more to form semantic memories, or individual facts from their personal history, than the control group. This is not surprising since healthy sleep is needed to properly consolidate semantic memories, and OSA causes sleep fragmentation that interferes with the sleep cycle. Interestingly, OSA did not affect the consolidation of episodic memories – or those related to events and experiences – to the same extent.

These results suggest sleep apnea can interfere with the memory consolidation process, causing people to have a hard time recalling certain memories of their own life. However, more research is needed to explore whether OSA leads to both depression and memory problems, or if OSA and depression independently affect memory consolidation.

  • Was this article helpful?
  • YesNo

About Our Editorial Team

Danielle Pacheco

Staff Writer

Danielle writes in-depth articles about sleep solutions and holds a psychology degree from the University of British Columbia.

Dr. Anis Rehman



Dr. Rehman, M.D., is a board-certified physician in Internal Medicine as well as Endocrinology, Diabetes, and Metabolism.


+10  Sources

Learn more about How Sleep Works