How Memory Works in the Brain: Encoding, Storage, and Forgetting

Photo: MART PRODUCTION / Pexels
Every memory you have — your first day of school, the layout of your childhood bedroom, how to ride a bicycle — is not stored anywhere in your brain as a complete file. It exists as a particular pattern of synaptic connections, distributed across many cortical regions at once, that gets reconstructed from those fragments every time you recall it. This reconstruction process is efficient and usually accurate enough to function well. It is also why memories can be altered, contaminated by new information, and sometimes assembled incorrectly from the beginning. Memory is more like a wiki page with multiple editors than a video recording.
The Three Stages: Encoding, Storage, Retrieval
Psychologists and neuroscientists divide memory processing into three stages, each of which can succeed or fail independently.
Encoding — the process by which incoming information is transformed into a neural representation that can be stored. Like compressing a file before saving it, encoding determines what information is retained and in what form. Attention is required for effective encoding: information that is not attended to typically is not encoded into long-term memory.
Storage — the retention of encoded information over time, distributed across synaptic connection strengths in neural networks. Unlike a hard drive, memory storage in the brain is not a stable static state but is subject to ongoing modification, consolidation, and reconsolidation.
Retrieval — the process of accessing and reconstructing stored information. Retrieval is not playback; it is reconstruction. Each act of recall reassembles the memory from its distributed components, which makes it susceptible to modification by the act of remembering itself.
Source: Tulving, E. & Craik, F.I.M. (eds.), The Oxford Handbook of Memory (2000) — Comprehensive framework for encoding, storage, and retrieval as distinct memory processes.
Failures at each stage produce different memory problems. Encoding failure means the information was never stored — you cannot remember a name you never attended to during an introduction. Storage failure includes decay and interference. Retrieval failure is familiar as the "tip of the tongue" phenomenon, where information is stored but temporarily inaccessible.
Types of Memory: Not All Memories Are the Same
The word "memory" covers several biologically distinct systems that operate differently, involve different brain regions, and can be dissociated by specific injuries.
| Memory Type | Subtype | Example | Key Brain Regions |
|---|---|---|---|
| Explicit (declarative) | Episodic | Memory of your last birthday | Hippocampus, prefrontal cortex |
| Explicit (declarative) | Semantic | Knowing Paris is in France | Hippocampus (encoding), neocortex (storage) |
| Implicit | Procedural | Riding a bicycle | Basal ganglia, cerebellum |
| Implicit | Priming | Recognizing a word faster after seeing it before | Neocortex |
| Implicit | Classical conditioning | Fear response to a stimulus | Amygdala |
| Working memory | — | Holding a phone number while dialing | Prefrontal cortex, parietal cortex |
Explicit (declarative) memory is what most people mean when they say "memory": consciously accessible facts and events. It divides into episodic memory (personally experienced events with their temporal and spatial context) and semantic memory (general world knowledge stripped of personal context).
Implicit memory operates below conscious awareness. When you ride a bicycle, you do not consciously recall "lean left to turn left" — the procedural memory runs automatically through the basal ganglia and cerebellum. Patients with severe hippocampal damage (like the famous patient H.M.) can still acquire new procedural skills even though they cannot consciously remember practicing them.
Source: Squire, L.R., Psychological Review (1992) — Influential taxonomy of memory systems and their dissociation by brain lesion; establishes declarative/non-declarative framework.
Working memory is the brain's scratch pad: the ability to hold a small amount of information in an active, manipulable state for seconds to minutes. It has a capacity of roughly 7 ± 2 items (Miller's 1956 estimate) or, by more recent measures accounting for chunking, closer to 4 discrete units. Working memory is strongly linked to intelligence and is supported by dorsolateral prefrontal cortex activity, which maintains neural representations through recurrent firing.
The Hippocampus: Gatekeeper of Long-Term Memory
The hippocampus, a curved structure in the medial temporal lobe of each hemisphere (humans have two, one per hemisphere), is the brain region most associated with long-term memory formation — but its exact role is subtle and often misunderstood.
The hippocampus does not store long-term memories. It encodes them, indexes them, and gradually transfers them to the neocortex. Think of it as the librarian rather than the library itself: it knows where each piece of information belongs and how to retrieve the scattered components of a memory from cortical storage sites, but the book ultimately lives on the shelf, not in the librarian's office.
This is supported by the temporal gradient of retrograde amnesia seen in patients with hippocampal damage. Old memories — encoded years or decades before the damage — are often largely intact, while recent memories (from the months preceding injury) are severely impaired. This is exactly what would be expected if the hippocampus's role is necessary for consolidation but becomes less necessary over time as memories are gradually established in the neocortex through repeated reactivation during sleep.
Source: Frankland, P.W. & Bontempi, B., Nature Reviews Neuroscience (2005) — Standard consolidation theory; hippocampal-neocortical transfer mechanism and temporal gradient of retrograde amnesia.
The hippocampus also plays a critical role in spatial memory and navigation. It contains place cells — neurons that fire selectively when the animal occupies a specific location in its environment. John O'Keefe discovered place cells in rats in 1971 (Nobel Prize in Physiology or Medicine, 2014, shared with May-Britt and Edvard Moser who discovered grid cells). The grid cells in the adjacent entorhinal cortex form a coordinate-like metric system for space; place cells in the hippocampus combine this with contextual information to produce location-specific representations.
Source: O'Keefe, J. & Dostrovsky, J., Brain Research (1971) — Discovery of hippocampal place cells in freely moving rats; foundational paper for spatial memory neuroscience.
Long-Term Potentiation: The Molecular Mechanism of Memory
Memory must ultimately be stored as something physical in the brain. The leading candidate — supported by decades of evidence — is changes in the strength of synaptic connections: specifically, the phenomenon of long-term potentiation (LTP).
Long-term potentiation (LTP) — a persistent strengthening of a synaptic connection following repeated or intense stimulation, lasting from hours to years. It was first described in detail by Bliss and Lømo in rabbit hippocampus in 1973.
LTP is often summarized by a principle attributed to Donald Hebb (1949): "neurons that fire together, wire together." More precisely: if neuron A repeatedly activates neuron B at the same time that neuron B is firing (or being activated by other inputs), the synapse from A to B strengthens. This is a form of Hebbian learning, and the NMDA receptor is the molecular coincidence detector that implements it.
The NMDA receptor is a glutamate receptor with a special property: its channel is normally blocked by a magnesium ion (Mg²⁺) even when glutamate binds. The Mg²⁺ is expelled only when the receiving neuron is already partially depolarized. This means the NMDA receptor opens — and triggers LTP — only when two conditions are met simultaneously: the presynaptic neuron releases glutamate AND the postsynaptic neuron is already active. The Mg²⁺ block makes the NMDA receptor a molecular AND gate.
When the NMDA receptor opens under these conditions, calcium ions (Ca²⁺) flood in. The Ca²⁺ activates kinases (notably CaMKII) that phosphorylate and insert additional AMPA receptors into the synapse, making it more responsive to future glutamate release. This is early-phase LTP — changes to existing synaptic proteins that last hours. Late-phase LTP requires new protein synthesis, activated through the CREB transcription factor, producing structural changes that can last for years — the physical substrate of long-term memory.
Source: Bliss, T.V.P. & Lømo, T., Journal of Physiology (1973) — Original full description of long-term potentiation in rabbit hippocampus; among the most cited papers in neuroscience.
Source: Malenka, R.C. & Bear, M.F., Neuron (2004) — Review of LTP and long-term depression mechanisms, NMDA receptors, AMPA receptor trafficking, and connections to memory.
The synaptic modification is bidirectional. Long-term depression (LTD) — the weakening of synapses with low-frequency asynchronous activity — allows the system to erase or reduce connections, which is as important for memory as strengthening. The relative balance of LTP and LTD across a neural network encodes information through a pattern of strengthened and weakened connections rather than any single strong synapse.
Why We Forget: Decay, Interference, and Adaptive Pruning
Forgetting is often framed as a failure. It is more accurately understood as an active and often adaptive process.
Passive decay does occur — synaptic connections that are never reactivated weaken over time. But the more significant mechanisms of forgetting are interference-based. Proactive interference occurs when older memories disrupt the recall of newer ones (you learned your old phone number so well that it intrudes when you try to recall your new one). Retroactive interference occurs when new learning disrupts previously stored memories.
Hermann Ebbinghaus quantified forgetting in the 1880s using himself as the only subject, memorizing nonsense syllables and testing retention at intervals. His forgetting curve showed that roughly 50% of newly encoded information is forgotten within an hour, 70% within 24 hours, with the rate of forgetting slowing as time passes. His related finding — the spacing effect — showed that information studied in spaced repetitions over time is retained far better than the same total study time concentrated in one session (massed practice). This effect is exploited by spaced repetition software and remains one of the most replicated findings in memory research.
Source: Ebbinghaus, H., Über das Gedächtnis (1885) — Original monograph establishing the forgetting curve and the spacing effect; foundational to memory science.
The brain also actively prunes memories during sleep. During slow-wave sleep, the brain selectively weakens synapses that were not strongly activated during the day in a process called synaptic homeostasis (Tononi and Cirelli's synaptic homeostasis hypothesis). This prevents the progressive saturation of the system with every waking moment's experience, preserving the signal-to-noise ratio that makes memory useful. For the connection between sleep and memory, see Why Do We Sleep: The Science.
Source: Tononi, G. & Cirelli, C., Sleep (2006) — Synaptic homeostasis hypothesis; proposes that slow-wave sleep serves to renormalize synaptic strength, enabling further learning.
False Memories: A Feature, Not a Bug
The reconstructive nature of memory means it is not merely a recording with occasional gaps — it is a generative system that fills in missing information using schemas, context, and subsequent experience. This produces false memories: recollections that feel subjectively real and certain but do not correspond to events that actually occurred.
Elizabeth Loftus demonstrated in the 1970s and 1980s that eyewitness memory is highly susceptible to post-event misinformation. In a series of experiments, subjects who witnessed a staged car accident were asked questions using different wording: "How fast were the cars going when they smashed into each other?" versus "...when they hit each other?" The "smashed" group gave higher speed estimates and were more likely to falsely report seeing broken glass that was not present in the original footage.
Source: Loftus, E.F. & Palmer, J.C., Journal of Verbal Learning and Verbal Behavior (1974) — Classic eyewitness testimony experiment demonstrating that post-event information alters memory representations.
In the 1990s, Loftus extended this to show that entirely false autobiographical memories — including memories of childhood events that never happened — could be implanted through suggestion and context. The "lost in a mall" study embedded a fabricated memory of being lost as a child in a shopping mall: about 25% of subjects came to recall the (entirely fabricated) event with genuine confidence.
False memories arise because the brain uses the same neural machinery to imagine future scenarios as it does to recall past ones. Memory and imagination both rely on the hippocampus and default mode network to construct experience from stored components. The border between remembering and imagining is a continuum, not a wall, and the emotional certainty that accompanies a recall does not reliably signal its accuracy.
This is not a design flaw. A memory system that is fast, flexible, and capable of generalization — useful for predicting the future from past patterns — must be constructive and therefore fallible. The alternative, a perfect photographic memory, would be slower to retrieve, harder to generalize from, and is not what evolution selected for.
The Role of Emotion and the Amygdala in Memory
Emotionally significant events are remembered better than neutral ones — a phenomenon called flashbulb memory in its strongest form (the vivid, confident recollection of what you were doing when something major happened). The mechanism involves the amygdala, an almond-shaped structure adjacent to the hippocampus that processes emotional salience.
When an event triggers strong emotion, the amygdala releases signals (including activation of norepinephrine pathways) that enhance hippocampal encoding — essentially flagging the experience as "important, encode this well." The result is better initial encoding and stronger consolidation. This is why traumatic events can produce especially persistent, intrusive memories; the same system that makes emotional memories durable also makes traumatic ones hard to suppress.
The amygdala's role is covered in more depth in the context of emotional processing in How the Brain Works: Neurons, Regions, and the Mind.
Source: McGaugh, J.L., Science (2000) — Review of amygdala modulation of memory consolidation; norepinephrine and stress hormones as memory modulators during encoding.
The Takeaway
Memory is not a storage system that retrieves files intact — it is a reconstruction system that reassembles experiences from distributed fragments each time they are recalled. The hippocampus orchestrates the encoding and initial indexing of new memories; LTP at the synaptic level is the molecular mechanism that makes connections stronger with use; sleep drives the transfer of those memories from hippocampal temporary storage to cortical long-term storage. Forgetting is partly decay, partly interference, and partly active pruning that keeps the system functional. And every act of recall slightly rewrites the memory being recalled — a property that makes memory flexible, generalizable, and occasionally wrong.
Read next:
- How the Brain Works: Neurons, Regions, and the Mind
- Why Do We Sleep: The Science
- The Hodgkin-Huxley Squid Axon Experiment
Sleep, Consolidation, and Why Cramming Fails
There is a widespread assumption that time spent studying is the primary variable in how well material is retained. The neuroscience of memory consolidation suggests a more precise model: time spent studying matters, but when that studying ends — and what happens in the hours that follow — matters at least as much. The mechanism is sleep, and its role in memory is specific enough to explain one of the most robust and consistently replicated findings in cognitive psychology.
Memory consolidation — the process by which a newly encoded, fragile memory trace is gradually stabilized into durable long-term storage. Consolidation occurs across two timescales: synaptic consolidation, which happens in the hours after learning via protein synthesis at recently potentiated synapses, and systems consolidation, which redistributes memory representations from the hippocampus to the neocortex over weeks to months and is heavily sleep-dependent.
The hippocampal-neocortical dialogue during sleep works roughly as follows. During waking encoding, the hippocampus binds together the cortical representations of an experience — linking the visual, auditory, semantic, and contextual elements stored in their respective cortical regions into a coherent episode. During subsequent slow-wave sleep, the hippocampus replays compressed versions of those newly encoded patterns back to the cortex, repeatedly reactivating the same cortical circuits. Each reactivation strengthens the direct cortical connections slightly. Over many nights, the cortex gradually builds a representation of the memory that no longer requires hippocampal retrieval — the memory has been "transferred" from temporary hippocampal storage into distributed cortical long-term storage.
Source: Diekelmann, S. & Born, J., Nature Reviews Neuroscience (2010) — Comprehensive review of sleep-dependent memory consolidation; hippocampal-neocortical dialogue model, stage-specific consolidation, and the evidence from human and animal studies.
The specific neural signature of this process has been identified: sharp-wave ripples (SWRs) — brief (50–100 ms), high-frequency (150–250 Hz) bursts of synchronized activity in the hippocampus that occur predominantly during slow-wave sleep and quiet rest. Electrode recordings in rodents have shown that during SWRs, the hippocampus replays sequences of place-cell activity that occurred during waking exploration — sometimes in forward order, sometimes in reverse — at 10–20 times the original speed. The replay is not random; it preferentially reactivates sequences associated with rewarded or novel experiences. When SWRs are selectively disrupted in sleeping animals (without otherwise disturbing sleep architecture), spatial memory performance on subsequent testing is significantly impaired.
Source: Buzsáki, G., Neuron (2015) — Review of hippocampal sharp-wave ripples; their role in memory consolidation, offline replay of waking experience, and systems-level communication with the neocortex.
Sleep spindles — the 12–15 Hz bursts of oscillatory activity characteristic of N2 sleep — appear to be the mechanism that coordinates the hippocampal signal with its cortical target. Spindles create brief windows of heightened cortical excitability that are timed to arrive during the down-to-up state transitions of slow cortical oscillations, just as hippocampal sharp-wave ripples occur. The three rhythms — slow oscillations, spindles, and sharp-wave ripples — nest within each other in a hierarchy that orchestrates memory transfer with remarkable precision. Individuals with more sleep spindles on a given night show better declarative memory performance the following morning, and this relationship holds across age groups.
The failure mode of massed practice — studying the same material in one long session — now has a mechanistic explanation. Massed practice encodes material into the hippocampus once, with a single window for synaptic consolidation before the memory must compete with subsequent encoding events. The spacing effect — the superiority of distributed practice sessions separated by time (and ideally sleep) — works because each retrieval and re-encoding session reactivates the hippocampal representation, triggers another round of synaptic consolidation, and provides another opportunity for sleep-dependent transfer to the cortex. Like a road that deepens with repeated use, the distributed neural pathway becomes more robust and less hippocampus-dependent with each reactivation cycle.
Source: Cepeda, N.J. et al., Psychological Bulletin (2006) — Meta-analysis of 254 studies on the spacing effect; distributed practice consistently outperforms massed practice across all measured timescales and material types.
The practical asymmetry is clear in the data. In a foundational study by Matthew Walker's group, subjects who learned a declarative word-pair task and then slept before testing improved by 20–30% compared to subjects who remained awake for the equivalent interval before testing — even when total time since learning was equated. Subsequent studies extended this to motor skill learning, emotional memory, and insight problem-solving. The sleep advantage persists even when only the final stage of a night's sleep (late-night REM and N2, which is disproportionately cut by early waking) is experimentally removed. Each sleep stage contributes to a different aspect of the consolidated memory, which is why both duration and architecture matter.
Cramming, in this frame, is not simply a matter of poor strategy. It exploits the brain's capacity for rapid encoding while bypassing the consolidation machinery that makes encoded information durable. Material learned under massed practice conditions fades rapidly because it never received the offline processing that stabilizes it — a problem no amount of re-reading during that same session can fix.
Q: Where exactly are memories stored in the brain?
A: Memories are not stored in a single location. They are distributed patterns of synaptic connection strengths across cortical networks, with different aspects of a memory (visual, auditory, emotional, contextual) stored in the regions that originally processed those features. The hippocampus indexes and helps retrieve these distributed fragments but is not the primary storage site.
Q: What is long-term potentiation and why does it matter?
A: Long-term potentiation (LTP) is the persistent strengthening of a synapse after repeated co-activation of pre- and postsynaptic neurons. It is the leading candidate for the cellular mechanism underlying learning and memory, supported by decades of evidence from hippocampal slice preparations and behavioral experiments in animals with pharmacological manipulation of LTP.
Q: Why do emotional events form stronger memories?
A: The amygdala detects emotional significance and releases neuromodulators (particularly via norepinephrine pathways) that enhance hippocampal encoding during emotional events. This modulation improves both initial encoding strength and subsequent consolidation, producing more durable memories for emotionally significant experiences.
Q: Are false memories real memories?
A: Yes, in the subjective sense — they feel as real as accurate memories and involve the same neural systems. False memories arise from the reconstructive nature of recall, which can incorporate post-event information, suggestions, or internally generated elements into the recollection. Emotional certainty does not reliably distinguish accurate from false memories.
Q: What causes forgetting?
A: Multiple mechanisms contribute: passive decay of unused synaptic connections, proactive and retroactive interference from similar memories, retrieval failure when the right contextual cues are absent, and active synaptic downscaling during sleep. Some forgetting is adaptive — a system that retained everything equally would be unable to generalize or prioritize.
Q: Can adults form new long-term memories without a hippocampus?
A: Not declarative long-term memories. Implicit memories — procedural skills, priming, conditioned responses — are largely hippocampus-independent and can be formed normally even with bilateral hippocampal damage. The case of patient H.M., who lost the ability to form new explicit memories after hippocampal surgery in 1953, remains the defining demonstration of this dissociation.
Follow new articles
Add SciHub101 to your feed reader to see new science and technology stories.
About the Author
SciHub101 is an independent science and technology publication founded and edited by Buğra Sözeri, a software engineer and app developer based in Türkiye. AI tools assist with drafting and research. Source documentation in the existing archive is uneven, and articles are being reviewed and corrected. The Editorial Team byline identifies editorial responsibility; it does not certify specialist or independent human review. Where we compare products, anything built by our own team is labelled as such — see the editorial guidelines and About page for how corrections and disclosures work.
Related Articles

How the Brain Works: Neurons, Regions, and the Mind
The brain runs on roughly 86 billion neurons, consumes 20% of your body's energy despite weighing only 2% of your body, and rewires itself with every new experience. Here is the mechanism behind all of it.

How the Lungs Work: Breathing and Gas Exchange Explained
Your lungs perform roughly 20,000 breath cycles per day, quietly swapping carbon dioxide for oxygen across a surface the size of a tennis court — all folded into a chest cavity the size of a shoebox. Here is the full mechanism, from the diaphragm's first pull to the moment oxygen binds hemoglobin.

How Memory Works — The Neuroscience of Remembering
From synaptic plasticity to the Ebbinghaus forgetting curve — discover the neuroscience of how memories form, consolidate, and fade in the human brain.

Why Do We Sleep: Stages, the Glymphatic System, and Memory
Sleep is not the brain going quiet — it is the brain running a completely different operating mode. During those hours, it flushes toxic proteins, consolidates memories, and resets emotional circuits. Here is what the science actually shows.


Why Do We Forget Things — The Neuroscience of Forgetting Explained — SciHub101
The neuroscience of forgetting: encoding failure, decay, interference, motivated forgetting, sleep's role in memory consolidation, and why forgetting is adaptive.