Sleep and memory are closely linked: if you sleep after learning, you typically remember more than after the same amount of time awake (Berres & Erdfelder 2021). In today’s view, the waking brain is tuned for taking in new information and the sleeping brain for strengthening it (Rasch & Born 2013). People who sleep too little learn less well and remember less reliably. Many of the details, however, come from animal research or small lab studies.
How memories are stored at night
New experiences and facts depend heavily on the hippocampus at first, a brain region thought of as temporary storage. According to the leading model, these fresh memory traces are reactivated during deep sleep and gradually built into the neocortex, the brain’s long-term storage. The REM sleep that follows may help stabilize them (Rasch & Born 2013). This process is called consolidation.
One clue for this replay comes from an animal study: in rats, nerve cells in the hippocampus and the visual cortex fired during deep sleep in the same sequences as they had while awake, and the two regions were in sync (Ji & Wilson 2007). Whether this replay strengthens the memory or only reflects it is still open.
Deep sleep for facts, REM for skills
Not all sleep is the same. The first half of the night is dominated by deep sleep, also called slow-wave sleep, while REM sleep prevails in the second half (Wagner & Born 2008). In a small study of 20 healthy men, the early, deep-sleep-rich part of the night mainly helped recall of word pairs, a form of fact learning (declarative memory). The late, REM-rich part did more for a motor skill (Plihal & Born 1997). REM sleep also seems to strengthen emotional memories (Wagner & Born 2008).
It isn’t quite that simple, though. After a night of sleep, participants performed a practiced motor task about 20 percent faster, while the same time awake brought no clear gain. The improvement was linked to light stage 2 (N2) sleep late in the night, not to REM sleep (Walker 2002). Later experiments trace such gains to fatigue during practice and to time of day (Rickard 2008). Still, a meta-analysis of 48 studies confirms a small benefit of sleep for motor skills (Schmid 2020).
Experiments during deep sleep show how close the link is: when an odor that had filled the room during learning was presented again in deep sleep, participants retained what they had learned better; during REM sleep, it had no effect (Rasch 2007). A meta-analysis of 91 experiments confirms the effect for deep and light sleep, although it is small (Hu 2020).
Why sleep deprivation harms memory
Sleep deprivation affects memory in several ways. First, learning gets harder: after a night without sleep, the hippocampus was clearly less active while people memorized new material, and they retained less (Yoo 2007). A meta-analysis found a medium-sized drawback for sleep loss before learning. Second, consolidation suffers: according to the same analysis, sleep loss after learning hurts too, but less. Most individual studies were small, though (Newbury 2021).
Third, false memories become more likely. In experiments with 145 healthy adults, participants learned word lists such as “night, dark, coal” that left out the word linking them all (“black”). When sleep deprived, they mistook such words for learned ones 88 percent of the time, compared with 75 to 77 percent without sleep loss. Caffeine before the test erased the difference (Diekelmann 2008).
Sleep and creativity: The hidden link
REM sleep is also linked to creative problem-solving. In one study, participants had to find a fourth word that connects three given words. Those who reached REM sleep during a nap did better afterward than after quiet rest or a nap without REM. The researchers suggest that REM sleep helps connect previously unrelated information (Cai 2009). Keep in mind that this is a single study.
Practical tips: How to optimize sleep for your memory
The research supports a few cautious takeaways. First: learn, then sleep. Vocabulary stuck better when sleep followed within a few hours of learning (Gais 2006). Most of your deep sleep happens early in the night (NHLBI). Second: give yourself time to wind down after studying, and don’t study in bed. The NHLBI suggests using the hour before bed for quiet time (NHLBI), and CBT for insomnia (CBT-I) teaches using the bed only for sleep and sex (AASM patient guide).
Third: stay active. Regular exercise slightly to moderately improves sleep time and sleep quality (Kredlow 2015); whether that also helps memory is still open. Fourth: skip alcohol in the evening. It delays the first REM period, reduces REM sleep at moderate and high amounts, and makes the second half of the night more restless (Ebrahim 2013). Fifth: a nap can help your memory. According to a meta-analysis, naps give fact and motor memory a small to moderate boost (Leong 2022); see more on the power nap. If you have trouble falling asleep at night, the NHLBI recommends limiting naps or taking them earlier in the afternoon (NHLBI).
When to see a doctor
Feeling forgetful after a short night is usually harmless. Start with your primary care doctor if:
- you’ve had trouble falling or staying asleep at least three times a week for at least three months. That is chronic insomnia, and most people with it should get CBT-I (AASM patient guide).
- you snore loudly, someone has noticed your breathing stop and start, or you’re so sleepy during the day that learning and focusing are hard. These can be signs of sleep apnea (NHLBI).
- you’re worried about your forgetfulness, or you forget things like how to use your phone or find your way home. Causes range from depression, thyroid problems, and reactions to certain medicines to dementia (MedlinePlus).
Conclusion: Learning without sleep is like writing without saving
Research on sleep and memory shows: if you sleep enough, you take in new information more easily and remember more.
The comparison is a bit too strict, since what you learn isn’t completely lost without sleep. Deep sleep matters most for facts, light sleep also plays a role for motor skills, and REM sleep seems to matter more for emotional memories and new connections. Much of this has been studied only in animals or small studies. The best study tip is still enough sleep the night after learning. The NHLBI recommends 7 to 9 hours a night for adults (NHLBI). For details, see how much sleep you need.
Frequently Asked Questions: Sleep and Memory
Why is sleep important for memory?
During sleep, especially deep sleep, fresh memory traces are reactivated and built into long-term storage (Rasch & Born 2013). A meta-analysis of 177 studies found a small to medium memory benefit after sleep compared with the same time awake (Berres & Erdfelder 2021).
Is sleep before or after studying more important?
Both matter. Sleep after studying helps consolidate what you learned. According to a meta-analysis, sleep loss before learning does even more harm, because your brain takes in new information less well (Newbury 2021).
Does waking up at night hurt your memory?
You may wake up briefly between sleep cycles, which is part of a normal night (NHLBI). For more, see why you might wake up at 3 a.m. With ongoing insomnia, studies show small to moderate effects on average, mainly on working memory and on remembering events (Wardle-Pinkston 2019). CBT-I is the recommended first treatment (AASM patient guide).