The short answer
Sleep supports memory in two ways: it prepares your brain to take in new information, and it helps stabilize what you learned during the day. The CDC recommends 7 or more hours for adults aged 18 to 60 and 8 to 10 hours for teens. One night without sleep can make new learning harder.
When I was trying to understand my own trouble with concentration and learning, sleep was one of the first topics I looked into, because it affects everyone, with or without ADHD. This article covers what the research says. For the full set of habits, see my guide to improving memory and focus.
How does sleep help memory?
Think of the day as collecting new information and the night as organizing it. In their review in Nature Reviews Neuroscience, Diekelmann and Born describe how sleep supports the consolidation of newly learned memories. They propose that during deep, slow-wave sleep, memories that depend on the hippocampus are reactivated and gradually redistributed to the brain’s outer layer, the neocortex, while REM sleep may help strengthen connections in the cortex (Nature Reviews Neuroscience, 2010).
The same review notes that how much sleep helps depends on the learning conditions and on when sleep happens. Sleep is not a magic recorder, but it is an active part of how learning sticks.
What happens to learning after a night without sleep?
Sleep matters before learning too. In a study led by Seung-Schik Yoo and Matthew Walker, people who had gone one night without sleep showed significantly reduced activity in the hippocampus while they tried to learn new material, and they retained less than people who had slept (Nature Neuroscience, 2007).
That is why an all-nighter before an exam or a presentation can backfire: you trade sleep for study time, but the brain may be less able to store what you study.
Does lack of sleep affect focus and attention?
Yes, and attention seems to be hit especially hard. Lim and Dinges combined 70 articles, with 147 cognitive tests, on the effects of short-term total sleep deprivation, meaning less than 48 hours without sleep. They looked at six areas: simple attention, complex attention, working memory, processing speed, short-term memory and reasoning (Psychological Bulletin, 2010).
The effects ranged from small to large depending on the area. The largest effect was on lapses in simple attention: those moments when your mind goes blank and you miss something you would normally catch. Reasoning accuracy was the least affected.
Keep in mind that these studies looked at people kept awake on purpose, which is more extreme than a few short nights. Still, it fits what many of us notice: after a bad night, it is harder to stay on task, not only harder to remember.
How many hours of sleep do you need?
These are the CDC’s recommendations by age (CDC):
| Age group | Recommended sleep |
|---|---|
| Teens, 13 to 17 years | 8 to 10 hours |
| Adults, 18 to 60 years | 7 or more hours |
| Adults, 61 to 64 years | 7 to 9 hours |
| Adults, 65 years and older | 7 to 8 hours |
How common is short sleep?
Very common. According to a 2026 data brief from the CDC’s National Center for Health Statistics, 30.5% of US adults slept less than 7 hours on average in a 24-hour period in 2024 (NCHS Data Brief No. 559). If you are short on sleep, you are far from alone, and small changes can still help.
What does this mean for students and workers?
Put together, the research points to a few practical rules for busy weeks:
- Before an exam: spread your study over the days before, so the last night can be for a short review and sleep, not a marathon.
- Before a presentation or interview: rehearse earlier in the day or earlier in the week, then sleep. You need attention on the day, and attention is what suffers most from lost sleep.
- After a training or class: a normal night of sleep is part of how that new information gets stored. You do not need to do anything special, just do not cut it short.
- During a demanding work period: if you have to choose between one more hour of late work and an hour of sleep, remember that tomorrow’s focus depends on tonight.

How can I sleep better when I have a lot to learn?
- Keep a steady schedule. Going to bed and waking up at similar times, including weekends, helps your body know when to sleep.
- Study earlier, review lightly at night. Do the hardest learning earlier in the day. In the evening, a short self-test is enough.
- Give yourself a wind-down window. Dim the lights and put work away before bed.
- Watch caffeine late in the day. Many people find it harder to fall asleep after an afternoon coffee.
- Plan for exam weeks. Spacing your reviews over several days, as explained in my guide to spaced repetition, makes all-nighters less tempting.
When is poor sleep a reason to see a doctor?
- you have trouble falling or staying asleep on most nights for several weeks;
- someone notices loud snoring, gasping or pauses in your breathing while you sleep;
- you feel very sleepy during the day even after enough hours in bed;
- sleep problems come with changes in mood, memory or concentration;
- you are considering a sleep aid or supplement and you take medication, are pregnant or breastfeeding, have a health condition, or have surgery scheduled.
Frequently asked questions
Is it better to sleep or study the night before an exam?
Research suggests sleep is part of how learning sticks. In one study, a night without sleep reduced the brain’s ability to form new memories. Spacing your study over earlier days lets you protect sleep the night before.
How many hours of sleep does an adult need?
The CDC recommends 7 or more hours per day for adults aged 18 to 60, 7 to 9 hours for ages 61 to 64, and 7 to 8 hours for adults 65 and older.
Does sleep help you remember what you studied?
Yes. Reviews of the research, such as Diekelmann and Born (2010), describe sleep as actively supporting the consolidation of newly learned memories.
Can poor sleep affect focus?
Sleep loss can affect attention and learning. If poor sleep is affecting your daily life, or you notice snoring with pauses in breathing, talk to your doctor.
Sources
- Diekelmann S, Born J. The memory function of sleep. Nature Reviews Neuroscience, 2010. pubmed.ncbi.nlm.nih.gov/20046194
- Yoo SS, Hu PT, Gujar N, Jolesz FA, Walker MP. A deficit in the ability to form new human memories without sleep. Nature Neuroscience, 2007. pubmed.ncbi.nlm.nih.gov/17293859
- Lim J, Dinges DF. A meta-analysis of the impact of short-term sleep deprivation on cognitive variables. Psychological Bulletin, 2010. pubmed.ncbi.nlm.nih.gov/20438143
- Centers for Disease Control and Prevention (CDC). About sleep: how much sleep do I need? www.cdc.gov/sleep/about/index.html
- Ng AE, Black LI, Adjaye-Gbewonyo D. Short sleep duration and sleep difficulties among adults: United States, 2024. NCHS Data Brief No. 559, CDC, 2026. www.cdc.gov/nchs/products/databriefs/db559.htm
Medical note: this article is for general information and does not replace advice from your doctor. If you have concerns about your memory, attention or sleep, talk to a qualified health professional. See our medical disclaimer. This page contains no affiliate links.

