Sleep and Memory: What Your Brain Does With the Day
Dovy Paukstys
Founder, Komori Care

The All-Nighter Is a Terrible Deal
Everyone's done it. Big exam tomorrow, so you trade sleep for study hours. It feels responsible — more time with the material has to beat less.
It's a bad trade, and the reason is more interesting than "you'll be tired."
Sleep isn't downtime between learning sessions. It's part of the learning. The hours you spend unconscious are when your brain decides what today was worth keeping and moves it into long-term storage.
Skip that and you lose some of what you already learned — plus your ability to take in anything new the next day. That last part surprises people. We'll get there.
Key Facts
- Deep sleep favors facts and events; REM favors skills and emotional memories (Physiological Reviews, 2013)
- One night of sleep deprivation before learning impaired hippocampal activity during encoding, hurting later recall (Nature Neuroscience, 2007)
- Sleep spindles predicted how well new words got woven into existing knowledge (r = 0.59, n = 60) (Journal of Neuroscience, 2010)
- Cueing memories with sounds during sleep works — 91 experiments, 2,004 people, small but reliable (Psychological Bulletin, 2020)
- Deep sleep clusters early in the night; REM expands toward morning (StatPearls)
- The mechanism is still contested — two major theories disagree about what sleep does to your synapses (Neuron, 2014)
Two Kinds of Memory, Two Kinds of Sleep
Start with a distinction psychologists have used for decades.
Declarative memory is stuff you can state out loud. The capital of Peru. What you ate yesterday. Facts and events.
Procedural memory is stuff you can do but can't explain. Riding a bike. A guitar chord shape.
Sleep handles these differently, and the split maps roughly onto sleep stages. A healthy adult night runs about 5% N1, 45% N2, 25% deep N3, and 25% REM [^1]. Deep N3 clusters early; REM periods get longer as morning approaches [^1]. The two halves of your night do different jobs — see what happens while you sleep.
Cut your night short at either end and you're not losing "some sleep." You're losing a specific kind.
Deep Sleep and the Facts You Learned Today
The most-cited review of this field says it plainly: "declarative memory profits from SWS" — slow-wave sleep, the technical name for deep N3 [^2]. People who learn word pairs or spatial layouts and then get early-night sleep, which is loaded with deep sleep, retain more than people who stay awake the same interval [^2].
Deep sleep is defined by slow waves — big electrical rolls across the cortex, roughly one per second, the largest signal your brain produces. The leading idea is that they act as a timing signal, opening windows during which the hippocampus — a seahorse-shaped structure that holds new memories temporarily — hands material off to the cortex for permanent storage.
Which brings us to the spindles.
Sleep Spindles: One-Second Bursts
On an EEG trace of N2 sleep, you'd see quiet activity punctuated by tight bursts of fast waves, usually about a second long. They look like spindles of thread. Hence the name.
Sleep spindles are brief, powerful bursts of neuronal firing that flood cells with calcium — one of the triggers for the synaptic changes that store memories [^1].
The link to learning is direct. Rasch and Born report that training on motor tasks increased time spent in N2 and the density of fast spindles afterward, and that spindle density predicted how much people improved overnight [^2]. Your brain appears to make more spindles after you've learned something.
One study makes it vivid. Sixty participants learned made-up spoken words designed to compete with real ones — imagine learning "cathedruke" when you already know "cathedral." Half slept, half stayed awake. In the sleep group, the overnight change in how strongly the new word competed with the old one correlated with spindle count at r = 0.59 [^3].
Spindles didn't predict how many words people could recall. They predicted how well the new words got integrated into the existing vocabulary network — a different and arguably more important thing. Learning isn't adding facts. It's fitting them into what you already know.
Replay: Your Brain Runs the Day Again
Here's the finding that made this field famous.
When a rat runs a maze, particular hippocampal neurons — place cells — fire in a sequence matching the path. Afterward, while the rat sleeps, those same neurons fire in the same sequence again. The review describes entire spike trains from a task reemerging during subsequent sleep [^2]. The brain replays the day, often compressed, often many times over.
The dominant explanation is active systems consolidation: consolidation during sleep "originates from the repeated reactivation of newly encoded memory representations" [^2]. Each replay strengthens the cortical copy and loosens its dependence on the hippocampus. Over enough nights, the cortex holds it alone.
Well supported, and not the only model — we'll come back to that.
Steering It With Sound
If replay is real, you should be able to bias which memories get replayed. You can.
The technique is targeted memory reactivation. Pair something you're learning with a sound or a smell, then play that cue quietly during sleep to nudge the brain toward replaying it.
A 2020 meta-analysis pooled 91 experiments covering 2,004 participants and found it works: Hedges' g = 0.29 [^4]. Small, not a superpower — but reliable across a large body of work. The stage breakdown is the interesting part:
- N2 sleep: g = 0.32
- Deep slow-wave sleep: g = 0.27
- REM sleep: no effect
- Wakefulness: no effect
Cueing works during non-REM and not during REM [^4] — a real constraint on any theory of what REM does.
Practical note: this is a lab technique with careful sound calibration, not something a phone app has been shown to replicate. Playing your vocab list all night will wake you up, which costs more than the cueing gains.
REM, Skills, and Feelings
REM's role is murkier, and honest sources say so.
For procedural memory — the skills — the picture is mixed. Rasch and Born note REM "is involved in the processing of procedural memory" in some contexts, particularly complex motor tasks, while flagging that results across studies don't line up cleanly 1.
For emotional memory the evidence is stronger: emotional memories "are particularly strengthened across sleep, in particular when containing high amounts of REM sleep" 1. That's where "sleep on it" gets some support. But note what it means: strengthening the memory, not deleting the feeling. Sleep is not an eraser.
And here's why cutting your morning short is expensive. REM expands in the second half of the night 2. Waking two hours early doesn't cost you 25% of your sleep — it disproportionately costs you REM.
The Part That Surprises People: Sleep Before Learning
Everything above is about sleep after you learn. A second effect gets far less attention and matters just as much.
In 2007, researchers scanned people's brains while they memorized material. Some had slept normally; some had been kept awake one night. Then they compared brain activity during learning itself.
The finding: one night of sleep deprivation produced a significant deficit in hippocampal activity during memory encoding, which led to worse retention afterward 3.
The hippocampus is where new memories get written. Sleep-deprived, it doesn't write as well. This isn't about forgetting later — it's about failing to record now. The authors' framing: "sleep before learning is critical in preparing the human brain for next-day memory formation — a worrying finding considering society's increasing erosion of sleep time" 3.
So the all-nighter fails twice. You skip the consolidation sleep for what you already studied, and you arrive at tomorrow with a hippocampus that can't record properly. Sleeping badly Tuesday makes Wednesday's lecture harder to absorb, before Wednesday night even gets a chance to help.
Where the Science Is Still Arguing
I'd rather tell you what's contested than pretend it's settled.
The active systems consolidation model above says sleep actively replays and strengthens specific memories, moving them from hippocampus to cortex.
A competing framework, the synaptic homeostasis hypothesis (SHY), argues close to the opposite. During waking, learning strengthens connections all over the brain — metabolically expensive, degrading signal-to-noise, eventually saturating. During sleep, spontaneous activity "renormalizes net synaptic strength and restores cellular homeostasis," turning the whole system down so the strongest connections stand out 4.
One model says sleep builds specific memories up. The other says sleep turns everything down and the important stuff survives the fade. Not fully incompatible, and plenty of researchers think both run. But they aren't the same claim, and the field hasn't resolved it.
The fine detail is open too. A 2018 modeling study proposed spindles and slow oscillations do different jobs — spindles letting several competing memories replay at once, slow oscillations favoring strong memories and potentially letting weak ones fade. The authors were upfront that their model doesn't explain REM's role 5.
The "what" is solid: sleep matters for memory, hugely. The "how" is a live argument. Be suspicious of anyone selling certainty about the mechanism.
What to Actually Do
| Situation | What the research supports | Why |
|---|---|---|
| Studying for an exam | Sleep normally the night before studying, too | Deprivation impairs encoding at the hippocampus 3 |
| Cramming all night | Don't | Costs consolidation and next-day encoding 1 3 |
| Facts, names, dates | Protect the first half of the night | Deep sleep concentrates there 2 |
| A skill or instrument | Protect the second half | REM expands toward morning 2 |
| Emotionally heavy material | Full night, don't cut the morning | Emotional memory tracks REM-rich sleep 1 |
| Practicing before bed | Reasonable, low cost | Spindle density rose after motor training 1 |
| Sleep-learning apps | Skeptical | Lab cueing gives g = 0.29 under tight control 6 |
The first row is the useful one, because nobody plans for it. Everyone knows to sleep after studying. Almost nobody protects the night before.
Where Komori Fits
Direct about the limits: Komori cannot measure any of this. It won't tell you your deep sleep minutes, your REM, or your spindle count. Those need EEG — electrodes reading brain waves — and Komori has no electrodes and nothing worn on your body. Any device claiming precise stage data from a wrist or bedside sensor is estimating, not measuring.
What it's being built to do is narrower. When it ships, it's designed to log sleep position, movement and restlessness, bed-exit events, and room conditions — temperature, humidity, CO2, light, and noise — contactless and without a camera. It's a general wellness device. It doesn't diagnose anything.
The link to memory is indirect but real. The room conditions that fragment sleep — too warm, too loud, too much CO2 — break up the long uninterrupted stretches this post depends on. You can't fix what you can't see, and bedroom air is invisible.
Komori is designed to protect the conditions, not measure the neuroscience.
The Bottom Line
Your brain does real work while you're unconscious. It replays the day, sorts what matters, moves memories into permanent storage, and clears the decks for tomorrow.
Deep sleep in the first half handles facts. REM in the second half handles skills and feelings. Spindles appear to weave new material into what you knew. And sleep before learning matters about as much as sleep after — the part almost everyone gets wrong.
The mechanism is still argued about, and anyone claiming it's settled is overselling. But the practical conclusion has been stable for twenty years: the hours you cut from sleep to study are subtracted from the same process that would have made the studying stick.
If your sleep is consistently broken in a way you can't explain or fix, raise it with your doctor. Chronically fragmented sleep isn't a study-habits problem.
Footnotes
-
Rasch B, Born J. "About Sleep's Role in Memory." Physiological Reviews, 2013. ↩ ↩2 ↩3 ↩4 ↩5
-
Patel AK, et al. "Physiology, Sleep Stages." StatPearls Publishing, updated 2024. ↩ ↩2 ↩3
-
Yoo SS, et al. "A deficit in the ability to form new human memories without sleep." Nature Neuroscience, 2007. ↩ ↩2 ↩3 ↩4
-
Tononi G, Cirelli C. "Sleep and the price of plasticity: from synaptic and cellular homeostasis to memory consolidation and integration." Neuron, 2014. ↩
-
Wei Y, et al. "Differential roles of sleep spindles and sleep slow oscillations in memory consolidation." PLoS Computational Biology, 2018. ↩
-
Hu X, Cheng LY, Chiu MH, Paller KA. "Promoting memory consolidation during sleep: A meta-analysis of targeted memory reactivation." Psychological Bulletin, 2020. ↩
You can choose a position at lights-out. Knowing what you held until morning is the hard part.
Komori is a contactless monitor that logs which position you slept in, through blankets, with no camera and nothing to wear. Pre-launch — join the list and we'll tell you when it ships.
Keep reading
Want to see your sleep position data?
Get the Insider Pass and be first to experience Komori when it ships.


