Memory depends on a web of biological, behavioral, and environmental factors, many of which you can control and some of which you cannot. Sleep, stress, diet, physical activity, attention, and even air quality all shape how well your brain encodes new information and retrieves it later. At the cellular level, the hippocampus sits at the center of most of these influences, and nearly every factor on this list either strengthens or weakens the connections between neurons there. Understanding which levers actually matter, and how much, can change the way you study, sleep, eat, and manage your daily routine.
How Sleep Shapes What You Remember
Sleep is not just downtime for the brain. During deep slow-wave sleep and REM sleep, recently formed memories are replayed and reorganized. Research shows that these two sleep stages play distinct, not just complementary, roles. A greater proportion of REM sleep relative to slow-wave sleep is linked to a transformation in how memories are stored: individual item details become less sharp while broader category-level patterns strengthen. In other words, slow-wave sleep helps preserve the specifics, while REM sleep helps your brain extract the gist and generalize from experience.
Sleep also activates the brain’s waste-clearance system, called the glymphatic system. During sleep, the space between brain cells expands substantially, allowing cerebrospinal fluid to flush out metabolic byproducts, including amyloid-beta, a protein linked to cognitive decline. In waking hours, the volume of that interstitial space runs around 13 to 15 percent; during sleep, it jumps to roughly 22 to 24 percent, dramatically improving fluid flow and waste removal.1PubMed Central. The Sleeping Brain: Harnessing the Power of the Glymphatic System through Lifestyle Choices Poor sleep quality and sleep apnea are both associated with worse glymphatic function, and that impaired clearance in turn disrupts the brain network connections that support memory.2Molecular Psychiatry. Effects of sleep on the glymphatic functioning and multimodal human brain network affecting memory in older adults
The Cost of Chronic Stress
A burst of stress before a test can sharpen focus, but chronic stress is reliably damaging to memory. The culprit is cortisol, the main stress hormone produced by the adrenal glands. When cortisol stays elevated for weeks or months, it impairs various memory tasks that depend on the hippocampus.3PubMed Central. Stress effects on the hippocampus: a critical review Structurally, prolonged cortisol exposure causes dendrites, the branching extensions of neurons that receive signals, to retract and simplify. This dendritic retraction is a reversible form of damage: remove the stress and the branches can regrow, but only up to a point.4PubMed Central. Chronic stress-induced hippocampal vulnerability: the glucocorticoid vulnerability hypothesis
When cortisol stays high long enough, the hippocampus can actually shrink. This kind of atrophy is a hallmark of conditions marked by chronically elevated cortisol, including major depression, PTSD, and Cushing’s syndrome.5PubMed Central. The impact of stress and glucocorticoids on memory The practical takeaway is that stress management is not a luxury add-on to cognitive health. Anything that reliably lowers your baseline cortisol, whether it is exercise, sleep, social connection, or professional support, is directly protecting the brain region most responsible for forming new memories.
Physical Exercise and BDNF
Aerobic exercise is one of the most consistently supported ways to boost memory. The main mechanism involves a molecule called BDNF (brain-derived neurotrophic factor), which acts as a kind of fertilizer for brain cells. Both treadmill running in animal models and aerobic exercise in humans increase BDNF production in the hippocampus, and when researchers blocked BDNF signaling in mice, the cognitive benefits of exercise vanished.6Frontiers in Neuroscience. Exercise-Mediated Neurogenesis in the Hippocampus via BDNF Aerobic exercise also reduces memory interference, the tendency for similar memories to bleed into one another, partly through promoting the growth of new neurons in the hippocampus.7Frontiers in Neuroscience. Adult hippocampal neurogenesis reduces memory interference in humans: opposing effects of aerobic exercise and depression
An interesting wrinkle: combining strength training with aerobic exercise may blunt some of the memory-related gains. In one rat study, adding either low- or high-intensity strength exercise on top of aerobic exercise suppressed the aerobic-induced increases in BDNF.8PLOS ONE. Strength exercise weakens aerobic exercise-induced cognitive improvements in rats This does not mean you should skip the weights. Resistance training has its own cognitive benefits, and the finding has only been tested in animals. But if your primary goal is memory, aerobic work appears to carry the heavier load.
Diet, Sugar, and the Hippocampus
What you eat affects the hippocampus in ways that go beyond general health. Diets high in both fat and sugar have been shown in aged rats to impair spatial learning, working memory, and the production of new neurons in the hippocampus, while also ramping up neuroinflammation.9PubMed Central. Effects of High-Fat and High-Fat High-Sugar Diets in the Anxiety, Learning and Memory, and in the Hippocampus Neurogenesis and Neuroinflammation of Aged Rats Sugar on its own is problematic, too. Adolescent rats consuming high-fructose corn syrup showed impaired spatial learning and memory alongside elevated inflammatory markers specifically in the hippocampus.10PubMed. Effects of sucrose and high fructose corn syrup consumption on spatial memory function and hippocampal neuroinflammation in adolescent rats While human dietary studies are harder to control, the animal evidence consistently points to excess sugar and processed fat as drivers of hippocampal inflammation and memory decline.
The flip side of this is the gut microbiome. The bacterial ecosystem in your intestines communicates with your brain through the vagus nerve, through immune signals, and through metabolites like short-chain fatty acids. Disrupted gut bacteria, known as dysbiosis, sends unhealthy signals to the brain that promote inflammation, oxidative stress, and increased permeability of both the intestinal barrier and the blood-brain barrier.11PubMed Central. How the gut microbiome shapes learning and memory: A comprehensive review In mice whose gut bacteria were wiped out with antibiotics, supplementation with butyrate, a fatty acid normally produced by healthy gut microbes, preserved spatial cognition and blood-brain barrier function.12PubMed Central. Butyrate preserves entorhinal-hippocampal spatial coding and blood brain barrier integrity in mice with depleted gut microbiome A diet rich in fiber supports butyrate-producing bacteria, which is one reason dietary quality and memory are increasingly studied together.
Alcohol and Memory Blackouts
Alcohol’s effect on memory is dose-dependent and direct. At sufficient concentrations, alcohol disrupts the hippocampus so thoroughly that it blocks the transfer of short-term memories into long-term storage, producing the phenomenon commonly known as a blackout.13PubMed Central. What happened? Alcohol, memory blackouts, and the brain The mechanism involves two hits at once: alcohol boosts inhibitory signaling while simultaneously suppressing the excitatory receptors that are essential for strengthening synaptic connections.14Journal of Addiction Medicine. Alcohol-Induced Blackout: Phenomenology, Biological Basis, and Gender Differences The result is that the brain cannot perform the synaptic strengthening needed to form lasting memories. Blackouts are not the same as passing out; a person in a blackout is awake and functioning but will have no memory of what happened. Even moderate drinking impairs encoding to a degree, though full blackouts require a rapid spike in blood alcohol concentration.
Multitasking and Divided Attention
You cannot remember what you never properly encoded in the first place, and attention is the gateway to encoding. People who frequently juggle multiple media streams, switching between a phone, a laptop, and a television, tend to perform worse on tests of both working memory and long-term memory.15PubMed Central. Media multitasking and memory: Differences in working memory and long-term memory The issue seems to be attentional scope: habitual multitaskers develop a wider, less selective net, allowing irrelevant information to compete with what they are trying to learn. They also show reduced ability to filter out interference, which hurts their capacity to switch between tasks cleanly.16PubMed Central. Cognitive control in media multitaskers The finding that working-memory deficits propagate forward into weaker long-term recall suggests that chronic distraction does not just make you feel scattered; it erodes the raw material from which lasting memories are built.
Why Emotional and Novel Experiences Stick
You probably remember where you were during a shocking news event but not what you had for lunch last Tuesday. Emotion and novelty are two of the strongest natural amplifiers of memory. Recordings from neurons inside the human amygdala and hippocampus show that neural activity increases sharply when people encounter emotionally arousing words they later remember, but not for arousing words they forget. The interaction between arousal and successful encoding is visible at the single-neuron level.17PubMed Central. Neuronal activity in the human amygdala and hippocampus enhances emotional memory encoding This emotional boost depends partly on the brain’s adrenaline-related signaling: blocking beta-adrenergic receptors weakens the amygdala-hippocampal interaction that normally makes emotional memories so durable.18PubMed Central. Beta-adrenergic modulation of emotional memory-evoked human amygdala and hippocampal responses
Novelty works through a different but overlapping channel involving dopamine. In animal experiments, exploring a novel environment within about 30 minutes of a weak learning event converted a fragile, short-lived memory into a persistent one lasting at least 24 hours. This rescue effect required dopamine D1/D5 receptors in the hippocampus and could be blocked by interfering with protein production shortly after exploration.19PubMed Central. Relevance of synaptic tagging and capture to the persistence of long-term potentiation and everyday spatial memory The practical implication is that a boring study session followed by something genuinely new and interesting may actually help the preceding material stick better, because the dopamine released by the novel experience can be “captured” by recently formed but fragile memory traces.
Retrieval Practice and Spacing
The way you study matters at least as much as how long you study. Two strategies consistently outperform rereading and highlighting: retrieval practice (testing yourself on material rather than passively reviewing it) and spacing (distributing study sessions over time rather than cramming). Research confirms that combining these two strategies produces stronger, more durable memories than either one alone.20Nature Reviews Psychology. The science of effective learning with spacing and retrieval practice Adding variability across practice sessions, such as changing the format of questions or the context in which you review, can further boost the benefits.21PubMed Central. The role of variable retrieval in effective learning
Mnemonic strategies offer another route to stronger encoding. The method of loci, where you mentally place items along a familiar spatial route, is the technique used by competitive memory athletes. Brain imaging reveals that training in this method shifts activation patterns during both encoding and recall, recruiting spatial and visual processing regions more heavily.22NeuroImage. Changes in brain activation associated with use of a memory strategy: a functional MRI study After just six weeks of practice, participants who trained in the method of loci showed stronger coupling between the hippocampus and the neocortex during memory consolidation, and their gains persisted for at least four months with no further practice.23PubMed Central. Durable memories and efficient neural coding through mnemonic training using the method of loci
Caffeine and Its Limits
Caffeine is the most widely consumed psychoactive substance in the world, and its relationship with memory is more nuanced than “coffee helps you think.” A well-known experiment found that caffeine taken after a study session, not before, enhanced the consolidation of memories tested 24 hours later, following an inverted U-shaped dose curve where moderate doses worked best.24PubMed Central. Post-study caffeine administration enhances memory consolidation in humans However, more recent work complicates the picture: in a face-recognition task, caffeine given after encoding actually reduced accuracy and increased false alarms compared to placebo.25Scientific Reports. Caffeine reduces accuracy in face recognition memory consolidation The discrepancy may come down to what type of memory is being tested. Caffeine seems to help when the task involves distinguishing similar items from each other, but it may hurt when the task requires recognizing specific faces. Treating caffeine as a blanket memory enhancer oversimplifies the evidence.
Air Quality and Environmental Exposure
One of the less intuitive threats to memory is the air you breathe. Particulate air pollution, especially the ultrafine particles from vehicle exhaust and industrial sources, can reach the brain and trigger inflammation. In animal studies, exposure to fine particulate matter caused selective shrinkage of CA1 hippocampal neurons, a region critical for memory, and reduced levels of a key receptor protein involved in memory formation.26Translational Psychiatry. Particulate air pollutants, APOE alleles and their contributions to cognitive impairment in older women and to amyloidogenesis in experimental models Diesel exhaust particles, specifically, increased markers of oxidative stress and inflammation in the hippocampus and impaired spatial learning in mice exposed for just five to seven hours a day.27PubMed Central. Learning and memory disorders related to hippocampal inflammation following exposure to air pollution Epidemiological work in humans supports the direction of these findings, particularly for older adults and people carrying certain genetic risk factors for dementia. This is an area where the science is still catching up to the problem, but the evidence so far suggests that long-term exposure to polluted air is a genuine and underappreciated risk factor for memory decline.
Aging and Circadian Rhythms
Some degree of memory decline with age is normal and does not signal dementia. Age-associated memory impairment, the kind where you forget a name or misplace your keys more often than you used to, is considered a feature of normal aging rather than a harbinger of Alzheimer’s disease.28PubMed. Age-associated memory impairment. Normal aging or warning of dementia? Recognizing which changes are typical and which are red flags is important because early detection of actual neurodegenerative processes opens more treatment options.29PubMed Central. The knowledge of memory aging questionnaire (KMAQ) in a Brazilian sample: a questionnaire for informants to recognize early signs of dementia
One underappreciated factor in age-related memory is the stability of your circadian rhythm. Older adults with more regular daily sleep-wake cycles show greater hippocampal activation during memory tasks and perform better on tests of episodic memory. The connection is not just correlational: imaging work shows that circadian stability predicts hippocampal activity, which in turn predicts memory scores.30PubMed Central. The Interactive Role of Sleep and Circadian Rhythms in Episodic Memory in Older Adults Keeping a consistent schedule, getting morning light, and avoiding erratic bedtimes may do more for an aging memory than any supplement on the market.
Why Your Brain Actively Forgets
Forgetting feels like a failure, but the brain actually invests energy in erasing certain memories. Active forgetting is now recognized as a regulated biological process, not just passive decay. At the molecular level, a protein called Rac1 plays a central role. In fruit flies, activating Rac1 in memory-storing neurons accelerated forgetting, while inhibiting it extended memory from hours to over a day.31Frontiers in Systems Neuroscience. Neural, Cellular and Molecular Mechanisms of Active Forgetting The same mechanism has been confirmed in mice: inhibiting Rac1 in the hippocampus extended object recognition memory beyond its normal lifespan, while activating it accelerated memory loss within 24 hours.32Current Biology. Hippocampal Activation of Rac1 Regulates the Forgetting of Object Recognition Memory
This is not a design flaw. Active forgetting increases behavioral flexibility and clears out information that is no longer relevant. Dopamine neurons regulate these forgetting pathways, connecting the process to the same reward and novelty signals that help strengthen important memories.33Molecular Psychiatry. Active forgetting and neuropsychiatric diseases When these forgetting circuits malfunction, the consequences can be severe. Conditions like PTSD, where intrusive memories resist being cleared, and certain forms of cognitive rigidity may involve dysregulated active forgetting. The brain needs to both write and erase, and memory quality depends on the balance between the two.
How Memories Get Distorted
Even memories that feel vivid and certain are not recordings. Every time you recall an event, the memory enters a temporarily unstable state and must be re-stabilized, a process called reconsolidation. During that window, the memory is vulnerable to being updated or contaminated. In one experiment, participants who were reminded of a list of objects before seeing a new list later misattributed items from the second list as belonging to the first. Without the reminder, the mix-up did not happen.34PubMed. Episodic memory reconsolidation: updating or source confusion? Your emotional state, physiological arousal, and exposure to misleading information after the fact all increase the likelihood that a memory will be reshaped in ways you do not notice.35PubMed Central. Cognitive and neural mechanisms underlying false memories: misinformation, distortion or erroneous configuration?
This has real consequences beyond academic curiosity. Eyewitness testimony, personal narratives, and even your memory of conversations you had yesterday are all subject to reconsolidation-driven distortion. The more often you retell a story, the more opportunities there are for new information or emotional coloring to be woven into it. Confidence in a memory’s accuracy, unfortunately, does not track well with its actual accuracy. Understanding this does not mean you should distrust everything you remember, but it is worth knowing that memory is fundamentally reconstructive, not reproductive. The brain builds a plausible version of the past rather than playing back a tape.