How to Cram for an Exam (the Least-Bad Way)
Cramming is a weak way to learn โ it produces memory that fades within days and performs worse under pressure than spaced study. But if you're reading this the night before an exam, that trade-off is already made, so the goal now is damage control: get the most retrievable knowledge into the least amount of time, without wrecking the one resource you still fully control, which is sleep.
Be honest about what cramming can and can't do
Cramming can get you through tomorrow's exam at an acceptable level if the material isn't completely new to you. It generally can't:
- Build knowledge you'll still have in a month
- Replace understanding you were supposed to build over a semester
- Make up for skipping sleep without a real cost to how you perform
If this is a one-time emergency, the plan below limits the damage. If this keeps happening every exam, the actual fix is upstream: building a study schedule and using spaced repetition so you're not starting from zero the night before next time.
Step 1: Triage ruthlessly in the first 15 minutes
Before you study anything, spend 15 minutes figuring out:
- What format is the exam (multiple choice, essay, problem sets)?
- What topics does it cover, and which ones are you already somewhat familiar with?
- Is there a study guide, old quiz, or practice set you can use as a proxy for what's tested?
Then rank topics into "already know this reasonably well," "partially know this," and "basically new to me." Spend almost no time on the first category tonight โ it's not where your hours are best spent.
Step 2: Spend most of your time on practice questions, not re-reading
Re-reading notes or slides feels productive but barely improves recall compared to retrieval practice, and that gap matters even more under time pressure. If you have any practice questions, old quizzes, end-of-chapter problems, or a study guide with sample questions, use those as your main activity:
- Answer from memory first, even if you're unsure
- Check immediately
- For anything wrong, look at just enough material to understand why, then move to the next question
This single habit (question, attempt, check, correct) will get you further in three hours than silently reading the same material for three hours.
Step 3: Use the partial-knowledge category as your highest-value target
Material you already know well doesn't need tonight's time. Material that's completely new to you is the hardest to absorb this late and the lowest return on your remaining hours. The sweet spot is the "partially know this" category: concepts you've seen before and can likely solidify with focused review and a few practice questions. Prioritize there first, then spend whatever's left on totally new material, accepting you won't master it.
Turn your own material into a study course
Upload a PDF, lecture recording or YouTube link. gigabrainz builds chapters, quizzes and spaced-repetition flashcards from it in a couple of minutes. Your first 3 courses are free, no card needed.
Try gigabrainz free โIf you already have lecture slides, a textbook chapter, or review notes for tomorrow's exam, gigabrainz can turn that material into a short set of quiz questions in a few minutes, which gets you to active recall faster than building your own study guide from scratch at midnight.
Step 4: Make a one-page summary sheet as you go
As you work through practice questions and review, jot down anything you keep forgetting or getting wrong onto a single page. This becomes your reference for quick review in the morning, when you won't have time or energy to dig back through a full night's notes. Keep it to one page on purpose: if it's longer, you haven't actually prioritized.
Step 5: Set a hard stop time and protect sleep
This is the part most students skip and it's the most important one. Memory consolidation: the process that moves what you studied into something you can actually retrieve under pressure: happens largely during sleep. Going into an exam on 3-4 hours of sleep after an all-nighter reliably performs worse than going in with 5-6 hours of sleep and slightly less material reviewed.
A workable rule for a genuine cramming night:
| Time before exam | What to do |
|---|---|
| Night before, early hours | Triage, practice questions on partial-knowledge topics |
| Night before, later hours | Build your one-page summary sheet |
| At least 5-6 hours before wake time | Hard stop. Sleep. No exceptions |
| Morning of | 20-30 minute light review of your summary sheet only |
| Right before the exam | No new material. Light skim of your summary sheet at most |
If you genuinely only have 4 hours of study time left before you must sleep to function tomorrow, spend all 4 on practice questions and the summary sheet, and still sleep. An extra hour of reading rarely outperforms the cost of an extra hour lost from sleep.
Step 6: Keep the morning review light
The morning of the exam, resist the urge to reopen every chapter. Review your one-page summary sheet, run through any flashcards you built the night before, and stop. Trying to learn new material in the last hour before an exam usually adds anxiety without adding retained knowledge: it's too late for anything except quick retrieval practice on what you've already touched.
What to do differently next time
If cramming is becoming a pattern rather than a one-time emergency, the fix isn't a better cramming technique: it's starting earlier with a realistic weekly study schedule and distributing review across days instead of hours. Even converting your notes into flashcards a week ahead and reviewing them for 15 minutes a day beats any version of cramming, including the version in this article.
Cramming for different exam formats
The approach above works best for multiple-choice and short-answer exams where recall and recognition matter most. A few adjustments for other formats:
- Essay exams: instead of trying to memorize full answers, memorize a short outline of key points and arguments for each likely topic. Practice writing a rough thesis statement and three supporting points from memory for each, rather than drafting full essays you won't have time to write out tonight.
- Problem-set or math-style exams: practice problems matter even more than usual here, since recognizing a problem type under pressure is a skill that only builds through doing problems, not reading about them. Spend almost all your remaining time working problems, not reviewing formulas.
- Open-note or open-book exams: your time is better spent organizing your notes (a clear index, tabs, or a one-page cheat sheet of where to find things) than trying to memorize content you'll be able to look up anyway. Practice finding information quickly under a mock time limit.
Caffeine, snacks, and other short-term aids
A moderate amount of caffeine can help alertness during a cramming session, but more isn't better: too much tends to increase anxiety and can hurt your sleep even further, compounding the problem. Avoid a large dose late in the evening if you still need to sleep before the exam; a bigger hit of caffeine 1-2 hours before the exam itself is more useful than one at midnight. Keep snacks simple and avoid a heavy meal right before studying late at night, since digesting a large meal tends to make you sleepy rather than sharp.
Why a single cramming session doesn't ruin long-term learning
If this is genuinely a one-off emergency and you generally study consistently otherwise, one cramming night won't meaningfully hurt your long-term retention of the subject as a whole: it just means this specific exam's material will fade faster than material you studied properly. The real risk is treating cramming as your default method across a whole course, since that compounds across every exam and leaves you with much weaker foundational knowledge heading into any later exam, class, or certification that builds on it.
If the exam is math or another problem-solving subject, use the approach in how to study for a math exam instead of rereading notes.
Frequently asked questions
Does cramming actually work?
It can get you through a single exam, but it produces weak, short-lived memory compared to spaced study. Treat cramming as damage control for a specific situation, not a study method to rely on going forward.
Is it better to pull an all-nighter or sleep before an exam?
Sleep, almost always. Memory consolidation happens during sleep, and research on sleep deprivation consistently shows worse recall and reasoning the next day, even when you covered more material by staying up.
What should I prioritize if I only have a few hours to cram?
Practice questions and active recall on high-yield topics, not re-reading. If you can only do one thing, do practice questions and check your answers immediately.
How much should I cram the morning of the exam?
Keep it light: review a condensed summary or flashcards you already made, for 20-30 minutes at most. Don't try to learn new material in the hours right before the exam.