How to study
All-nighters and memory: what one night without sleep does to recall, and the plan that keeps the night and still passes
Should you pull an all-nighter before a test? What a night without sleep does to memory and attention, by the research, and an evening plan that keeps it.
An all-nighter trades the night that stores what you studied for a few more hours of studying it. Sleep after learning consolidates memory; a night without it leaves you encoding less, recalling less and reacting more slowly the next morning, by measured amounts. The better trade is a focused evening that ends by about 10 pm and a full night after it. Below: what the sleep research shows, the arithmetic of the two options, and an evening plan with clock times that fits the work in before the night.
Should I pull an all-nighter? The short answer
For a test: no. For a deadline you cannot move: sometimes unavoidable, and the last section is for that, with its limits named.
The question is really this: do you trust the extra hours more than you trust what sleep does with the hours you have already put in? Most students who stay up are not choosing more study; they are choosing to spend tomorrow morning tired, in exchange for study done on a brain that is already encoding less by midnight. Sleep is the fourth of the four moves in the hub of this section for a reason, and this page is the evidence for it. If the test is tomorrow and the real question is what to do with tonight, cramming, honestly is the companion to this page.
What sleep does to what you studied
A memory formed during the day is not finished when you close the book. During sleep it is reactivated and stabilised, a process called consolidation. Rasch and Born (2013) review the evidence across decades of studies: sleep after learning improves later recall, and the deep, slow-wave stages of sleep are implicated for facts and procedures of the kind a test asks for.
The timing matters too. Gais, Lucas and Born (2006) had students learn vocabulary and then either sleep within a few hours of learning it or stay awake through a normal day before sleeping. Recall was better when sleep came soon after learning. Studying in the evening and then sleeping is not just acceptable; it is the arrangement that makes the most of the evening.
In words, the two paths look like this:
- Learn, then sleep. The evening's work is reactivated overnight. In the morning the recall is stronger than it was when you stopped.
- Learn, then stay awake all night. Nothing is consolidated. In the morning the recall is weaker than when you stopped, and the brain that has to use it is tired.
The night is not time taken from studying. It is the part of studying that happens without you.
What one night without sleep does the next morning
Two measured effects, both from research on people kept awake for one night.
First, encoding is impaired. Yoo and colleagues (2007) kept healthy adults awake for a night, then showed them new material and tested their memory of it after they had recovered. Compared with rested people, the sleep-deprived group remembered markedly less, and the brain region that forms new memories was less active while they were learning. Whatever you study at 3 am is being written into a memory system that is partly switched off.
Second, attention, working memory and reaction time all fall. Lim and Dinges (2010) pooled seventy studies of short-term sleep deprivation and found the largest effects on simple attention, with working memory and speed also reduced. An earlier meta-analysis (Pilcher & Huffcutt 1996) put the average sleep-deprived person's performance at about the ninth percentile of rested people, that is, below roughly nine in ten of them, with mood affected even more than thinking.
The quotable finding is the third one, and it is the one that makes all-nighters feel safe. In a two-week study that restricted people's sleep (Van Dongen et al. 2003), their ratings of their own sleepiness levelled off after the first few days while their measured performance kept falling. Tired students do not feel as impaired as they are. The "I feel fine" at 7 am is not evidence of anything.
The arithmetic of the trade
| All-nighter | Evening plan, then sleep | |
|---|---|---|
| Study hours gained | About 7 (11 pm to 6 am), on a brain encoding less as the night goes on | About 4 of focused work (5 pm to 10 pm, with dinner) |
| Recall of what you studied | Reduced: nothing consolidated | Consolidated overnight |
| Attention at 9 am | Reduced, by the meta-analyses | Normal |
| Risk of a blank mid-test | Higher | The usual |
| How you will feel | Fine, by your own rating, which is the problem | Rested |
Seven hours is more than four. But the seven are not the same quality as the four, and they come with the costs in the right-hand rows. A four-hour evening of attempting and marking, followed by sleep, puts more into the room at 9 am than an all-night reread does.
The evening plan that keeps the night
For a 9 am exam. Clock times so the stop is visible.
- 5:00 pm — The list and the diagnostic (60 min). Write every idea the exam covers as a question. Attempt each once with the notes closed. Sort into three piles: can do, shaky, cannot. Testing yourself has the marking rules; the triage is the same one the cramming guide uses.
- 6:00 pm — The "cannot" pile (90 min). For each idea: read one worked example or explanation slowly, close it, redo it from memory, then do a sibling question with different details. Every wrong line into an error log with the right line beside it.
- 7:30 pm — Dinner (45 min). Away from the desk.
- 8:15 pm — The "shaky" pile (75 min). Recall first: the idea's name on a blank page, everything you know, then one quick problem each. Add to the error log.
- 9:30 pm — The error log, once (15 min). Read each wrong line; say the right line before you uncover it.
- 9:45 pm — Wind down. 10:00 pm — Stop. Screens off, the bag packed, the alarm set with margin.
- 11:00 pm — Asleep. Seven and a half to eight hours before a 7 am alarm. For teenagers the National Sleep Foundation's published recommendation is 8 to 10 hours a night, and for adults 7 to 9 (Hirshkowitz et al. 2015); the night before an exam is not the night to come in under it.
- 7:00 am — Up. Breakfast, daylight, and the error log once on the way in. Nothing new.
If it is the nerves rather than the material keeping you awake at 10 pm, if nerves are keeping you up has what lowers them, including a ten-minute writing exercise worth doing before bed.
Worked example: a biology exam, five units, one evening
A Grade 12 biology (SBI4U) student has an exam at 9 am covering five units. The 5 pm list has one question per big idea: biomolecules, cellular respiration, DNA replication, the action potential, population growth. The diagnostic sorts them: biomolecules and population growth can do, DNA replication and the action potential shaky, and cellular respiration cannot, specifically the electron transport chain, which the student can name and cannot explain.
The 6:00 block on the electron transport chain:
- Read one worked explanation, slowly. Electrons from NADH and FADH₂ pass along a chain of protein complexes in the inner mitochondrial membrane; three of those complexes pump protons across the membrane as the electrons pass; oxygen is the final electron acceptor and becomes water; the proton gradient drives ATP synthase, which sits in the same membrane and makes ATP as protons flow back through it.
- Close it and redraw from memory. The membrane as a line, the chain along it, the three places protons are pumped, where oxygen takes the electrons, where ATP synthase sits. Compare with the explanation. The student forgot that oxygen is the acceptor and drew the protons flowing the wrong way. Both go in the error log. Redraw once more.
- A sibling question. What happens to ATP yield when oxygen is absent? With no final acceptor the chain stops; the proton gradient is not maintained, so ATP synthase stops; NAD⁺ is regenerated by fermentation instead; and the cell is left with the 2 ATP that glycolysis makes per glucose, against the roughly 30 to 32 ATP that textbooks give for full aerobic respiration. Checking the arithmetic the way a marker would: glycolysis uses 2 ATP and makes 4, so 4 − 2 = 2 net, and that is the standard figure.
By 6:30 the chain has been drawn twice from memory and explained once in a new situation. That is more than an hour of rereading the chapter at 2 am would give, and the sleep after it is what keeps the second drawing in place for 9 am.
If you truly cannot avoid it
Sometimes the deadline is an essay due at 8 am that is not written, and the choice is already made. Then, with the limits named:
- Caffeine before midnight if you use it, and none after about 2 am, so it is not still in you when you finally sleep. This page does not give doses.
- A 20-minute nap around 3 am if you can take one. Set an alarm; longer and you wake worse.
- Daylight at 7 am. It helps the body register that the day has started.
- No driving. Reaction time after a night awake is measurably slower, and you will not feel it.
- Sleep the next night properly. Recovery sleep restores alertness; it does not retrieve what was encoded badly.
One health line. A pattern of all-nighters, or not being able to sleep when you try, is worth a conversation with a doctor or the school's counsellor. This page is about one night, not about sleep in general.
The decision, in three lines
- For a test, sleep. A four-hour evening of self-testing plus a full night beats an all-nighter at 9 am.
- Spend the evening on attempts, not rereading, and stop by 10 pm.
- Next time, start earlier, so the night before has less to carry: the plan that starts a week out is the version of this with seven days in it.
Chapter 8 of the free playbook is the one-page version: write the worry down, then sleep.
Questions students ask
Is it better to sleep or stay up and study?
Sleep, after a focused evening. Sleep consolidates what you learned, and a night awake lowers recall, attention and working memory the next morning. The hours you gain by staying up are lower-quality hours than the ones you would have had rested, and you use them on a brain that encodes less.
How much sleep should I get before an exam?
A full night. For teenagers the published recommendation is 8 to 10 hours, for adults 7 to 9. More important than the exact number is not cutting it short: a seven-hour night after a four-hour evening of self-testing beats a two-hour night after nine hours of rereading.
Does an all-nighter help if I have not studied at all?
A little, for tomorrow, and it costs the attention you need to use what you crammed. The evening plan on this page covers more ground than an all-nighter, because the time goes into attempting and marking rather than reading, and the sleep afterwards stores it. Triage first, then sleep.
Can I recover from an all-nighter by sleeping the next day?
Partly. Sleeping afterwards restores alertness, but the material you studied while sleep-deprived was encoded less well in the first place, and the exam has already happened. Recovery sleep is for the day after. It is not a substitute for the night before.
What should I do the morning of the exam?
Eat, get daylight, and recall your error log once: ten minutes, no new material. Arrive early enough not to rush. If you did not sleep, do the same, and do not drive yourself if you can avoid it; reaction time after a night awake is measurably slower.
Put tonight's studying on rails
YSR Studies turns your notes, lectures and course into cards that come back before you forget, a tutor that makes you try first, and a map of what you know. Free, five hours a month, no card asked.
Read next
- How to studyCramming: what works the night before, and what is already lost
- How to studyTest anxiety: what actually lowers it before an exam, and what makes it worse
- How to studyHow to study for a test in one week: the day-by-day plan (and what changes for finals, three days, or one)
- MethodsActive recall: how to study by testing yourself (five ways to do it tonight, and how to grade yourself honestly)
Sources
- Rasch, B., & Born, J. (2013). About sleep's role in memory. Physiological Reviews, 93(2), 681–766. https://doi.org/10.1152/physrev.00032.2012
- Gais, S., Lucas, B., & Born, J. (2006). Sleep after learning aids memory recall. Learning & Memory, 13(3), 259–262. https://doi.org/10.1101/lm.132106
- 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. https://doi.org/10.1038/nn1851
- 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
- Pilcher, J. J., & Huffcutt, A. I. (1996). Effects of sleep deprivation on performance: A meta-analysis. Sleep, 19(4), 318–326. https://doi.org/10.1093/sleep/19.4.318
- 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
- Hirshkowitz, M., Whiton, K., Albert, S. M., et al. (2015). National Sleep Foundation's sleep time duration recommendations: Methodology and results summary. Sleep Health, 1(1), 40–43. https://doi.org/10.1016/j.sleh.2014.12.010