Sleep and memory
How learning works · Published · Evidence: Moderate · About this guide
Sleep and memory are linked: sleep after learning appears to help consolidation, the settling of new memories, and across 177 articles people recalled more after sleep than after the same time awake, a modest average effect [1][2]. A night without sleep before learning made new material harder to keep [3]. These are group averages from mostly short lab studies, not a rule for how much you should sleep.
Most people know that a short night leaves them slow and foggy the next day. Memory research points to something more specific: sleep appears to help keep what you learned the day before. This article describes what studies of sleep and learning have found, how large the effects are, and where the evidence is still uncertain. It is about learning, not sleep health. If your sleep itself worries you, a doctor or another health professional is the right person to ask.
What happens to a new memory while you sleep?
A memory is fragile when it first forms. Over the following hours and days it is gradually stabilised and connected to what you already know, a process researchers call consolidation.
Two reviews by Jan Born and colleagues summarise the leading account [1][4]. During sleep, the brain appears to reactivate recently learned material. Memories that at first depend on the hippocampus, a structure deep in the brain that helps record new events, are gradually reorganised into longer-term networks in the cortex, the brain's outer layer. Deep sleep (slow-wave sleep) is linked to this reactivation, and REM sleep, the stage associated with vivid dreams, may help stabilise the reorganised memories. One of the reviews puts it this way: the waking brain is tuned for taking in new information, the sleeping brain for consolidating it [4]. How well this account holds up is debated (see the last section).
An older idea is that sleep helps passively: little new happens while you sleep, so less competing material crowds out what you learned [4]. The two ideas are not exclusive, and a 2021 review argues that several processes contribute [2]. One prediction of the active, reactivation account, that a night's sleep makes fresh memories resistant to similar material learned the next day, was supported mainly by two influential experiments. A replication of the later one, with more than twice as many participants, found that the people who slept still remembered more overall but were no better protected against the new material. The authors note that one failed replication cannot show that sleep plays no such role [5].
How big is the benefit of sleeping after learning?
The basic finding has been studied for about a century: people tend to recall more after a period of sleep than after an equally long period awake. A 2021 meta-analysis pooled 823 results from 177 articles published between 1967 and 2019 [2]. It found a moderate average benefit of sleep (a standardised effect size of g = 0.44). When the authors corrected for possible selective reporting of results, the estimate shrank to g = 0.28 but stayed statistically reliable. In everyday terms, that is a real but modest shift in a group's average, and it says little about any one person.
The same analysis found the benefit was larger when material had been studied more than once rather than seen a single time, and larger for a night's sleep than for a daytime nap. For words, it was also larger when people had to recall them freely than when they only had to recognise them. In two small experiments with high-school students learning English–German vocabulary (12 and 14 students), words learned in the evening, with sleep a few hours later, were forgotten less than words learned in the morning. When everyone learned in the evening, a night without sleep left recall lower two days later, even after recovery sleep. This traced the difference to sleep rather than to the time of day [6].
What does an all-nighter cost?
An all-night study session can cost memory in more than one way, and the research separates them.
Learning after a sleepless night. A 2021 pair of meta-analyses looked at studies in which people missed at least one full night of sleep [3]. When the sleepless night came before learning, people later remembered less of what they learned after it: a moderate-to-large effect (g = 0.62, or about 0.46 after a correction for possible publication bias). In a brain-imaging experiment, people who had missed a night's sleep showed less hippocampal activity while learning and retained less afterwards [7]. On this evidence, an all-nighter before a day of lectures is likely to make that day's learning harder to keep.
Material learned before a sleepless night. When people learned while rested and then stayed awake through the following night, the cost was smaller (g = 0.28, or about 0.17 after correction), and smaller for facts and words than for practised skills. It was larger when people were tested straight after the sleepless night than when they had slept to recover first [3].
The test itself. A meta-analysis of short-term total sleep loss (up to 48 hours awake) found the largest effect on lapses in simple attention, such as missing a signal you are watching for. It found moderate effects on working memory and complex attention, smaller ones on short-term memory, and a small, not statistically significant effect on reasoning accuracy [8]. These were short laboratory tests, not exams. They suggest that attention and holding information in mind suffer most, and they cannot show how an exam goes after a sleepless night.
Short nights, not only lost ones. A 2024 meta-analysis of sleep restriction, in which people slept between 3 and 6.5 hours, compared with 7 to 11 hours in the comparison conditions, found a small cost to forming new memories (g = 0.29). Overall, it was not statistically different from the cost of a night with no sleep at all, although when the sleep loss came after learning, a full night without sleep cost more than a short one [9].
The authors of the deprivation meta-analyses add a caution: most of the studies they pooled were small and statistically weak, and there were signs of publication bias, so the precise numbers are provisional [3].
Should you nap instead of studying?
Two experiments speak to the trade-off that tempts people to cram. In one, 84 young adults spent about five hours learning detailed facts about species of crabs and ants. Halfway through, they spent an hour napping, taking a break or restudying what they had already seen [10]. Thirty minutes after the learning ended, the nap and restudy groups both gave more confidently correct answers than the break group. A week later, only the nap group was still significantly ahead of the break group on that measure; counting all correct answers, no group differed at one week. The nap and restudy groups did not differ significantly at either test, so the fair reading is that the hour of sleep did about as well as an hour of extra study, not better.
In the other, 40 young adults learned the French translations of 16 Swahili words to a perfect score and relearned them 12 hours later [11]. Those who learned in the evening and slept before relearning needed about half as many practice rounds as those who learned in the morning and relearned that evening, and they recalled more a week and six months later. It is one small study, and in its design sleep went with time of day. A 2021 study of 52 young adults learning facts found that sleeping between two sessions helped people keep what they had learned but did not speed up relearning, and the advantage a week later was no longer significant [12]. Together they suggest, without settling it, that study spread across days, with nights of sleep between sessions, may hold up better than a single cram.
Is it better to sleep or study the night before an exam?
The evidence on this one night is thin: a single correlational study in one class looked at it directly, and the sleep-deprivation studies above add that losses were larger when people were tested straight after a sleepless night [13][3]. In one college chemistry class, 88 students wore consumer sleep trackers through a 14-week semester [13]. Longer and better sleep in the week and month before a test, and more regular sleep across the semester, went with better grades, while sleep on the single night before a test showed no relation to that test's score. This is a correlation from one class: it cannot show that sleep caused the grades, and other habits may travel with good sleep. A null result in one class also does not show that the night before is unimportant: in the deprivation studies above, losses were larger when people were tested straight after a sleepless night [3]. The finding is consistent with the idea that sleep across a course matters, not only the night before the exam.
What the research does not say
- How much sleep you personally need. These studies compare groups under controlled conditions. How much sleep is right for an individual is a health question for a health professional, not something this research answers.
- That sleep can replace study. The sleep benefit was larger for material studied more than once [2]. Sleep appears to work on what you learned while awake; it does not add what you did not learn.
- That one bad night wipes out earlier learning. Memory losses after a sleepless night were smaller once people had slept to recover before the test, though a small loss remained (g ≈ 0.18) [3].
- How, and how strongly, sleep does its work. A 2021 review by two researchers in the field, one of whom co-wrote the 2013 review above, reports that several key findings could not be replicated or held only under certain conditions, and that sleep's effects on memory look smaller, more dependent on the task, less tied to deep sleep and shorter-lived than once assumed [14].
- How the numbers carry over to real courses. Most of the studies used word lists, word pairs, facts and lab tasks over hours or days, mostly with young adults. How far the effect sizes transfer to months of coursework has been tested much less.
Related articles
-
How memory works
How a memory is encoded, stored and retrieved, how little working memory holds, and why failing to recall something does not mean it is gone.
-
Why do we forget what we study?
Why you forget what you study: new learning can disturb fresh memories, similar ones compete, cues change. Forgotten often means out of reach, not gone.
-
The forgetting curve
Ebbinghaus's forgetting curve explained: why forgetting is fast, then slow, what his savings data show, and why "70% forgotten in a day" misreads them.
-
Why cramming feels like it works, and why it fails
Cramming can carry you through a test that is hours away, which is why it feels efficient. What it costs weeks later, and why learners misjudge it.
-
Exam study plan: planning your reviews before an exam
Start from the exam date: how far apart to space reviews, what to do in each one, and an example four-week revision plan, with the limits of the evidence.
-
Exam stress and memory
What stress does to recall in exams, what a well-known 2016 experiment found about practice tests under pressure, and how far later studies support it.
Sources
- [1] Diekelmann, S., & Born, J. (2010). The memory function of sleep. Nature Reviews Neuroscience, 11(2), 114–126. review · doi.org/10.1038/nrn2762 ↩ Back to the text
- [2] Berres, S., & Erdfelder, E. (2021). The sleep benefit in episodic memory: An integrative review and a meta-analysis. Psychological Bulletin, 147(12), 1309–1353. meta-analysis · doi.org/10.1037/bul0000350 ↩ Back to the text
- [3] 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. meta-analysis · doi.org/10.1037/bul0000348 ↩ Back to the text
- [4] Rasch, B., & Born, J. (2013). About sleep's role in memory. Physiological Reviews, 93(2), 681–766. review · doi.org/10.1152/physrev.00032.2012 ↩ Back to the text
- [5] Bailes, C., Caldwell, M., Wamsley, E. J., & Tucker, M. A. (2020). Does sleep protect memories against interference? A failure to replicate. PLOS ONE, 15(2), e0220419. replication · doi.org/10.1371/journal.pone.0220419 ↩ Back to the text
- [6] Gais, S., Lucas, B., & Born, J. (2006). Sleep after learning aids memory recall. Learning & Memory, 13(3), 259–262. experiment · doi.org/10.1101/lm.132106 ↩ Back to the text
- [7] Yoo, S.-S., Hu, P. T., Gujar, N., Jolesz, F. A., & Walker, M. P. (2007). A deficit in the ability to form new human memories without sleep. Nature Neuroscience, 10(3), 385–392. experiment · doi.org/10.1038/nn1851 ↩ Back to the text
- [8] 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. meta-analysis · doi.org/10.1037/a0018883 ↩ Back to the text
- [9] Crowley, R., Alderman, E., Javadi, A.-H., & Tamminen, J. (2024). A systematic and meta-analytic review of the impact of sleep restriction on memory formation. Neuroscience & Biobehavioral Reviews, 167, 105929. meta-analysis · doi.org/10.1016/j.neubiorev.2024.105929 ↩ Back to the text
- [10] Cousins, J. N., Wong, K. F., Raghunath, B. L., Look, C., & Chee, M. W. L. (2019). The long-term memory benefits of a daytime nap compared with cramming. Sleep, 42(1), zsy207. experiment · doi.org/10.1093/sleep/zsy207 ↩ Back to the text
- [11] Mazza, S., Gerbier, E., Gustin, M.-P., Kasikci, Z., Koenig, O., Toppino, T. C., & Magnin, M. (2016). Relearn faster and retain longer: Along with practice, sleep makes perfect. Psychological Science, 27(10), 1321–1330. experiment · doi.org/10.1177/0956797616659930 ↩ Back to the text
- [12] Cousins, J. N., Teo, T. B., Tan, Z. Y., Wong, K. F., & Chee, M. W. L. (2021). Sleep after learning aids the consolidation of factual knowledge, but not relearning. Sleep, 44(3), zsaa210. experiment · doi.org/10.1093/sleep/zsaa210 ↩ Back to the text
- [13] Okano, K., Kaczmarzyk, J. R., Dave, N., Gabrieli, J. D. E., & Grossman, J. C. (2019). Sleep quality, duration, and consistency are associated with better academic performance in college students. npj Science of Learning, 4(1), 16. observational study · doi.org/10.1038/s41539-019-0055-z ↩ Back to the text
- [14] Cordi, M. J., & Rasch, B. (2021). How robust are sleep-mediated memory benefits? Current Opinion in Neurobiology, 67, 1–7. review · doi.org/10.1016/j.conb.2020.06.002 ↩ Back to the text