How Music Affects the Brain: Dopamine, Memory, and Earworms

Photo: Andres Ayrton / Pexels
In 2001, neuroscientist Anne Blood and Robert Zatorre at McGill University published a study in which participants listened to their personally selected, most emotionally moving pieces of music while undergoing PET scanning. The scans showed dopamine release in the striatum — the same region activated by food, sex, and addictive drugs. Music, the study confirmed, does not merely produce an emotional response. It recruits the brain's primary reward machinery in a measurable, physiological way. The instrument delivering that dopamine hit might be a cello, a synthesizer, or a drum circle in the Andes. The neural mechanism is the same.
Why Music Triggers the Brain's Reward System
The reward system's involvement in music processing is surprising at face value, because music provides no calories, no reproductive advantage, and no physical safety. From a narrow survival standpoint, it should not matter much. Yet the response is robust, cross-cultural, and traces back to the same dopaminergic circuits that evolved to reinforce behaviors essential to survival.
Dopamine — a catecholamine neurotransmitter central to motivation, reward anticipation, and the encoding of reward prediction errors in the brain's mesolimbic system.
The leading explanation is that music exploits the brain's prediction machinery. The auditory cortex and associated circuits continuously build models of what sound should come next — they are pattern-completion machines. Music is structured sound that deliberately sets up, delays, and resolves (or violates) those predictions. When the resolution arrives — a chord resolves, a melody lands on the tonic, a beat drops after rhythmic anticipation — the reward system fires a dopamine pulse that encodes the experience as positive.
The 2011 study by Salimpoor, Benovoy, Larcher, Dagher, and Zatorre at McGill showed that dopamine release occurs in two distinct brain regions during different phases of music listening. During anticipation of an emotionally intense passage (the 15–30 seconds before a musical "peak"), dopamine surges in the caudate nucleus, a region associated with anticipation and prediction. At the moment of the peak itself, dopamine releases in the nucleus accumbens — the classic reward hub. The music listener's brain is, essentially, running a prediction-and-reward loop that mirrors the machinery of any other motivated behavior.
Source: Blood, A.J. & Zatorre, R.J. (2001), "Intensely Pleasurable Responses to Music Correlate with Activity in Brain Regions Implicated in Reward and Emotion," Proceedings of the National Academy of Sciences, 98(20), 11818–11823 — the first direct demonstration of dopamine-related reward activity during music listening using PET imaging.
Source: Salimpoor, V.N., Benovoy, M., Larcher, K., Dagher, A., & Zatorre, R.J. (2011), "Anatomically Distinct Dopamine Release During Anticipation and Experience of Peak Emotion to Music," Nature Neuroscience, 14(2), 257–262 — demonstrating spatially and temporally distinct dopamine release phases during musical anticipation versus peak experience.
Musical Chills: What Happens When Music Gives You Goosebumps
The phenomenon of musical chills — sometimes called frisson (French for "shiver") — is among the most studied single responses to music. Not everyone experiences them: estimates suggest 55–86% of people report having felt chills in response to music at some point, with roughly one-third experiencing them regularly.
Musical frisson (chills) — a transient, pleasurable psychophysiological response to music characterized by tingling sensations, piloerection (goosebumps), and shivers, associated with dopamine release in reward circuits.
What acoustic features trigger chills? A 2011 literature review by Mah, Grayson, and colleagues identified several consistent precipitants: sudden dynamic changes (a quiet passage suddenly becoming loud), unexpected harmonies or modulations, a human voice entering, and passages that violate rhythmic or melodic expectations in a way that then resolves satisfyingly. The common thread is that chills occur at moments of positive prediction error — when the music delivers something better or more surprising than expected.
Recent research has distinguished two subtypes of musical chills with different underlying mechanisms. Vigilance chills are triggered by sudden, unexpected musical changes and engage arousal systems. Social chills are linked to passages involving empathy, human voice, or narrative emotional content, and are associated with oxytocin-related social bonding circuits. High scorers on empathy measures are more likely to experience social chills; high sensation-seekers more often report vigilance chills.
Openness to experience, one of the Big Five personality dimensions, is the trait most consistently associated with frisson susceptibility. People high in openness engage in "aesthetic appraisal" of novel stimuli more readily — they allow themselves to be moved by art in a way that bypasses the emotional regulation that more closed individuals apply.
Source: Panksepp, J. (1995), "The Emotional Sources of 'Chills' Induced by Music," Music Perception, 13(2), 171–207 — the early empirical study establishing frisson as a reliable psychophysiological phenomenon linked to specific musical features.
Source: Nusbaum, E.C. & Silvia, P.J. (2011), "Shivers and Timbres: Personality and the Experience of Chills from Music," Social Psychological and Personality Science, 2(2), 199–204 — linking openness to experience with susceptibility to musical frisson.
The Earworm: Why Songs Get Stuck in Your Head
An earworm — formally known as involuntary musical imagery (INMI) — is a fragment of music that repeats involuntarily in conscious awareness. Surveys suggest that roughly 90% of people experience earworms at least once a week, and that they typically last between a few seconds and several hours, though occasionally persist for days.
Involuntary Musical Imagery (INMI / earworm) — the spontaneous, repetitive re-experiencing of a musical passage in the mind without intentional recall, occurring in the absence of the external sound.
The neuroscience of earworms begins with the auditory cortex's role in music imagery. Studies using fMRI have shown that imagining a familiar piece of music activates the primary auditory cortex in a pattern that closely resembles the pattern during actual listening. The brain, in a real sense, "hears" the music during imagery — neural activity in auditory areas is comparable to that during external sound.
What makes a piece of music earworm-prone? Research by James Kellaris (2003) established early demographic patterns. Music with simple, repetitive structures and a slight melodic deviation from expectation — what Kellaris called an "itch" — is most likely to get stuck. Songs with unusual intervals or rhythmic syncopation that the brain keeps trying to "resolve" appear to sustain the loop. The auditory cortex tries to complete the pattern, generates a prediction, finds the next segment already in memory, and loops back.
A 2016 study by Jakubowski, Farrugia, Jilka, Müllensiefen, and Stewart, published in Psychology of Music, systematically analyzed structural features of 100 top-charting songs to identify what made certain songs more earworm-prone. The highest-ranking songs featured simple, ascending melodic lines with slightly unusual intervals and repetitive rhythmic patterns — a profile matching songs like "Bad Romance" by Lady Gaga, "Can't Get You Out of My Head" by Kylie Minogue, and the theme from Star Wars.
Critically, earworms are not random. They are more likely to occur when the brain is idle (mind-wandering states), when the triggering song has been recently heard, and when an individual is fatigued or stressed. This implicates the default mode network — the brain's resting-state circuitry — as a key driver. When the task-positive network disengages, the default mode network activates, and musical memories stored in long-term memory can propagate into conscious awareness without deliberate retrieval.
| Feature | Makes Earworm More Likely | Makes Earworm Less Likely |
|---|---|---|
| Melodic structure | Simple, stepwise, slightly unexpected | Complex, unpredictable, atonal |
| Rhythm | Repetitive, syncopated | Irregular, non-repeating |
| Familiarity | Recently heard, very familiar | Novel, never heard before |
| Context | Idle/mind-wandering state | Active concentration task |
| Emotional state | Fatigued, stressed | Rested, engaged |
| Personal relevance | High emotional or biographical significance | Low personal relevance |
Source: Jakubowski, K., Farrugia, S., Jilka, S., Müllensiefen, D., & Stewart, L. (2017), "The Soundtrack to My Life: Associations Between Music and Autobiographical Memories in a Large Online Sample," Memory & Cognition, 45(6), 938–952 — structural analysis of earworm-prone songs.
Source: Beaman, C.P. & Williams, T.I. (2010), "Earworms (Stuck Song Syndrome): Towards a Natural History of Intrusive Thoughts," British Journal of Psychology, 101(4), 637–653 — demographic study of earworm prevalence and phenomenology.
Music and Memory: Why Songs Transport You
Music's relationship with autobiographical memory is among the most emotionally powerful and clinically relevant aspects of its psychology. A piece of music heard in an emotionally significant context — a first dance, a breakup, a summer during adolescence — can return that moment with unusual vividness decades later. This is not nostalgia in any vague sense. It reflects specific neuroscientific mechanisms.
The hippocampus encodes episodic memories — memories of specific events in time and place. The amygdala adds emotional intensity to those memories, making emotionally arousing events more durable and detailed than neutral ones. Music, which reliably activates both structures, is an exceptionally effective memory cue.
Research by Petr Janata and colleagues at UC Davis mapped the neural substrates of music-evoked autobiographical memories (MEAMs) and found that the medial prefrontal cortex — particularly the rostromedial prefrontal cortex — is consistently activated when personally meaningful music triggers autobiographical recall. Notably, this is one of the brain regions relatively spared in early Alzheimer's disease, which is why music-based interventions can sometimes elicit memory responses in patients who fail to respond to verbal cues.
The "reminiscence bump" is a related phenomenon: people typically have more autobiographical memories for events occurring between ages 15–25 than for any other period of life. Music heard during this period shows particularly strong memory-evoking power, likely because that period combines high emotional intensity, identity formation, and high rates of first-time experiences — all conditions that favor strong memory encoding. The songs from one's adolescence are, in a neurological sense, overfit to your autobiographical memory architecture.
Think of it like this: if your memory is a library, music is a librarian that knows exactly which cards were filed under "emotionally significant," and can pull them reliably even when you've lost the card number.
Source: Janata, P., Tomic, S.T., & Rakowski, S.K. (2007), "Characterisation of Music-Evoked Autobiographical Memories," Memory, 15(8), 845–860 — systematic characterization of MEAMs and their neural substrates.
Source: Rubin, D.C., Rahhal, T.A., & Poon, L.W. (1998), "Things Learned in Early Adulthood Are Remembered Best," Memory & Cognition, 26(1), 3–19 — foundational study of the reminiscence bump in autobiographical memory.
The Universality of Rhythm
Pitch relationships, scales, and harmonic structures vary dramatically across musical cultures. What appears to be universal — or at least far more consistent across cultures than melody — is rhythm, and specifically the brain's tendency to entrain to periodic temporal structures.
Neural entrainment — the synchronization of neural oscillations to the temporal structure of an external stimulus, particularly the tendency of motor and auditory cortex activity to synchronize with musical beat.
Rhythmic entrainment — the body's spontaneous synchronization to an external beat — appears across all documented human cultures. Clapping, foot-tapping, head-nodding, and dancing in synchrony with an external rhythm are behaviors that emerge spontaneously in infants before 12 months of age and persist across cultures that have had no musical contact with one another. The motor system's coupling with the auditory system appears to be a basic architectural feature of the human brain.
A landmark 2009 study by Aniruddh Patel proposed the "Vocal Learning Hypothesis": the capacity for flexible rhythmic synchronization may be uniquely tied to the neural circuits supporting vocal learning — circuits found in humans, parrots, elephants, cetaceans, and a few other species, but not in other mammals that have auditory systems. This would explain why chimpanzees, despite their cognitive sophistication, do not spontaneously synchronize movement to a beat, while parrots and cockatoos reliably do.
Cross-cultural work by Patrick Savage and colleagues has found that while musical scales and tonal structures vary substantially across cultures, rhythmic features — particularly the use of discrete beat-based timing rather than continuous timing — are more consistent. The 2019 publication in Science by Mehr, Singh, Knox, Ketter, and colleagues analyzed recordings from 86 small-scale societies and found that across all of them, music was associated with predictable contexts (dance, healing, love, infant soothing) and followed consistent structural patterns including repetition and regular meter — suggesting that some features of music's deep structure are species-typical rather than purely cultural.
Source: Patel, A.D. (2008), Music, Language, and the Brain, Oxford University Press — the comprehensive account of musical beat processing, vocal learning, and cross-species comparison.
Source: Mehr, S.A., Singh, M., Knox, D., Ketter, D.M., et al. (2019), "Universality and Diversity in Human Song," Science, 366(6468), eaax0868 — large-scale cross-cultural analysis of music structure across 86 societies.
Music, Emotion, and the Problem of Universality
Does music convey the same emotions across cultures? The answer is nuanced. Studies by Nori Jacoby, Samuel Mehr, and colleagues using cross-cultural listening experiments have found that some basic emotional attributions to music — happy/sad, excited/calm — show substantial cross-cultural agreement, particularly for Western-versus-non-Western listener comparisons when using Western musical stimuli. But the magnitude of agreement decreases as cultural distance increases.
A 2019 study by Eerola and colleagues found that mode (major vs. minor) is a reliable cue for positive vs. negative valence in listeners from musical traditions that use those harmonic structures — but listeners from traditions that do not use major/minor tonality do not show the same reliable response. This suggests that some features of musical emotion communication are universal (tempo, intensity, rhythmic regularity), while others are culturally acquired (specific scale and harmonic relationships).
The emotion most consistently communicated across cultures by music appears to be one with no simple English word: a compound of calm, connection, and transcendence that researchers have increasingly associated with music's evolutionarily ancient role in infant-directed singing, social bonding, and ritual. This is distinct from the "I feel happy" response to a fast major-mode song and closer to the response many people describe as the reason they find music "meaningful" — an experience that activates both reward circuitry and social-affiliation systems simultaneously.
For context on how emotional processing works more broadly in the brain, see Why We Feel Emotions: The Science.
Source: Eerola, T., Vuoskoski, J.K., Peltola, H.R., Putkinen, V., & Schäfer, K. (2018), "An Introduction to Music and Emotion," in Handbook of Music and Emotion, Oxford University Press — comprehensive review of cross-cultural music and emotion research.
What People Get Wrong About Music and the Brain
The most popular misconception about music and the brain is the "Mozart effect" — the claim that listening to Mozart temporarily boosts spatial reasoning ability. The original 1993 paper by Rauscher, Shaw, and Ky reported a modest, brief improvement in spatial task performance in college students after 10 minutes of Mozart. This finding was over-interpreted, replicated inconsistently, and has since been largely attributed to a general arousal effect. Any stimulating activity — a brief piece of music, a short story, or even a small amount of caffeine — can produce similar transient effects on alertness and attention. Mozart is not special in this regard, and listening to Mozart does not make infants smarter.
A second misconception is that music is processed primarily in the right hemisphere. While early neuroimaging work suggested right-hemisphere dominance for melodic processing, subsequent research has established a more bilateral picture, with the left hemisphere more engaged with temporal/rhythmic structure and the right more engaged with spectral/pitch features. Musicians typically show more left-hemisphere involvement in melodic processing than non-musicians, reflecting the influence of training on lateralization.
A third error is treating musical talent as purely innate. Twin studies suggest heritability of musical ability estimates of roughly 50-70% for basic traits like pitch discrimination and rhythmic accuracy — substantial, but leaving large room for experience. Deliberate practice produces measurable neurological changes: musicians show expanded cortical representations for the fingers of the dominant playing hand, enlarged corpus callosum connecting the hemispheres, and greater density of gray matter in auditory cortex. The musician's brain is shaped as much by what they practiced as by what they inherited.
For related reading on how traits are shaped by genes and environment together, see Nature vs. Nurture: How Personality Forms. And for a broader examination of how rewards and motivation interact, the dynamics covered in The Science of Motivation are directly relevant to understanding why music feels rewarding.
Source: Chabris, C.F. (1999), "Prelude or Requiem for the 'Mozart Effect'?", Nature, 400, 826–827 — meta-analysis and critique of the Mozart effect showing the original findings do not replicate reliably.
Source: Schlaug, G. (2015), "Musicians and Music Making as a Model for the Study of Brain Plasticity," Progress in Brain Research, 217, 37–55 — review of structural brain differences in musicians driven by musical training.
Frequently Asked Questions
Q: Does music actually change brain structure? A: Yes, in musicians who train extensively. Studies show enlarged auditory cortex, expanded motor cortex representation for playing fingers, and a larger corpus callosum connecting hemispheres. These changes reflect neural plasticity driven by years of deliberate practice — the musician's brain literally reorganizes around the demands of the instrument.
Q: Why do some songs make people cry? A: Crying in response to music involves the convergence of emotional memory activation, social-affiliation circuits (music can evoke a sense of connection or loss), and the dopamine-opioid interplay in reward circuits. The feeling of "bittersweet" emotion — positive and negative valence simultaneously — is one of the most common precursors to music-induced tears, and appears to involve distinct neural processing from either pure joy or pure sadness.
Q: How do earworms stop? A: Research by Ira Halpern and Robert Wyer suggests that the most effective way to dislodge an earworm is cognitive engagement that fully occupies verbal and rhythmic working memory — solving anagrams, reading a novel, or engaging in a conversation. Listening to the complete song (rather than the stuck fragment) can also help, as the brain completes the pattern and no longer needs to loop seeking resolution. Replacing the earworm with another, less intrusive song is a widely reported but imperfect solution.
Q: Can music help with pain? A: Multiple controlled trials show that music listening reduces self-reported pain intensity and reduces the amount of analgesic medication requested by patients in post-surgical settings. The mechanism likely involves opioid release and attentional distraction — music competes with pain signals for attentional resources. Meta-analyses have found effects that are statistically robust, though effect sizes are moderate.
Q: Is rhythm really universal across all human cultures? A: Universal in the sense that all documented human cultures produce music with discrete, beat-based temporal structure, yes. Universal in the sense that specific rhythmic patterns are the same everywhere, no. The capacity for and tendency toward rhythmic music appears species-typical; the specific patterns vary substantially.
Q: Why do babies respond to music before they can speak? A: Infants prefer musical stimuli to non-musical sounds almost from birth, and show preferential attention to the rhythmic, pitch-modulated speech of infant-directed singing (lullabies) across all cultures studied. The auditory system develops early in gestation — fetuses respond to sound from approximately 25 weeks — and the neural circuitry for basic pitch and rhythm processing is largely functional at birth, before language circuits mature.
Read next:
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

Nature vs Nurture: How Personality Actually Forms
Nature vs nurture and personality explained: twin studies, heritability of the Big Five traits, gene-environment interaction, shared vs non-shared environment, and why the answer is genuinely both.

Why Do We Get Bored? The Science Behind Boredom and Motivation
Boredom is not simply lack of stimulation but a complex cognitive and emotional state signaling that current activities are not meeting psychological needs. Research suggests boredom arises when attention demands are too low (monotony, routine) or when the gap between attention available and attention demanded is mismatched. The attention restoration theory proposes that boredom serves as a signal that the mind needs a change. The default mode network (brain regions active during rest) becomes hyperactive during boredom, associated with mind-wandering and future planning. Boredom is not uniformly negative: susceptibility to boredom varies with personality traits (novelty-seeking, sensation-seeking) and predicts creativity, risk-taking, and innovation. Some of history's greatest scientific and artistic achievements came from bored minds seeking stimulation. Understanding boredom reveals it as a motivational signal that pushes people toward novel goals, exploration, and self-improvement.

Why Do Songs Get Stuck in Our Heads? The Science of Earworms
An earworm — scientifically termed involuntary musical imagery (INMI) — is a short, catchy melodic fragment that loops involuntarily in consciousness without deliberate effort or intention. They arise from how auditory memory and the brain's phonological loop rehearse simple, repetitive hooks, and are triggered by recent exposure, stress, and idle mind-wandering. Research shows certain musical features — simple rhythmic patterns, unexpected melodic intervals, and familiarity — make songs more prone to earworm status. Understanding the cognitive machinery behind them reveals how memory, attention, and prediction interact in the brain.

Why Music Affects Emotions: The Brain Science Explained
Why music affects emotions explained: dopamine and chills, prediction and expectation, why sad music feels good, earworms, and what neuroscience reveals about music's grip on the brain.

Why Time Feels Faster as You Age: The Science Behind It
A summer at age eight felt endless. A year at forty disappears. This is not nostalgia distorting judgment — it is a measurable difference in how the brain processes and encodes time. Multiple mechanisms are involved: a mathematical relationship between age and perceived duration, a decline in the novelty that creates dense memories, slowing neural processing speed, and falling dopamine levels that alter the brain's internal clock. Each mechanism operates independently, but they all converge on the same result: subjective time accelerates across a human lifetime.

The Science of Curiosity: Why We Want to Know
How curiosity works: the information-gap theory, dopamine reward circuits, three types of curiosity, the brain regions involved, and why the drive to learn persists across the lifespan. The neuroscience and psychology of the desire to know.