Riley Andersen, Kaitlyn Diaz, grows up inside a bustling mind where five core emotions guide every choice: Joy, Sadness, Fear, Disgust, and Anger. These feelings, personified, keep Riley connected to her memories, which are stored as colorful orbs that travel from short-term to long-term memory each night. The most important memories become floating islands that shape Riley’s personality, with Joy taking the lead and often trying to curb Sadness, whom she sees as a troublemaker.
When Riley and her family relocate from Minnesota to San Francisco for her father’s job, life instantly shifts. On Riley’s first day at a new school, Sadness somehow retroactively tugs at joyous moments, turning a bright morning into a teary moment in front of classmates. That instant heartache marks Riley’s first truly sad core memory. Joy, determined to keep Riley buoyant, tries to purge the sorrow by sending the memory away through a pneumatic tube, but the struggle with Sadness goes awry and accidentally frees all of Riley’s core memories from Headquarters, leaving Joy, Sadness, and the core memories adrift.
With Joy and Sadness missing, Anger, Fear, and Disgust scramble to conjure new, happy memories—yet their attempts are clumsy and often disrupt Riley’s relationships with family, friends, and hobbies. As these faulty attempts pile up, Riley drifts away from the people who care about her. In the absence of the original core memories, the islands begin to crumble, and the personality map slides toward a bleak place—the Memory Dump, where memories fade into nothingness as they’re forgotten.
Lost in the vast territory of Riley’s long-term memory, Joy and Sadness meet Bing Bong, a pink elephant and Riley’s childhood imaginary friend. Bing Bong suggests boarding the legendary train of thought that could ferry them back to Headquarters, offering a glimmer of hope. Meanwhile, Anger, intent on restoring Riley’s happiness, convinces Fear and Disgust that Riley should run away and return to Minnesota, where her bright memories were first formed. Joy, Sadness, and Bing Bong do reach the train, but a cascade of collapsed islands derails their plan. A failed attempt to return via a recall tube leaves Joy and Bing Bong stranded as the ground gives way beneath the tube, plunging them into the Memory Dump.
Within the Memory Dump, Joy stumbles upon a memory that reveals a core truth: Sadness isn’t a nuisance to be avoided, but a signal that Riley needs support from others. This breakthrough reframes the purpose of Sadness, showing that emotional honesty can invite care and connection. Joy and Bing Bong attempt to escape using a song-powered wagon, driven by memory fuel, yet their ascent falters under their own weight. In a poignant moment, Bing Bong sacrifices himself—leaving the wagon so Joy can slip free and escape to safety, while Bing Bong fades away.
Back in Riley’s life, Anger’s reckless plan short-circuits the mind’s control console, pushing Riley toward a depressive drift as she boards a bus back to Minnesota. Joy reunites with Sadness, returning to Headquarters where a surprising collaboration begins: Sadness takes the helm, and together they reboot the console by removing the idea bulb and restarting Riley’s emotional engine. This shift prompts Riley to break down and tell her parents the truth—that she misses her old life in Minnesota. Her mom and dad respond with warmth, admitting they miss their daughter’s old home too, which helps Riley feel understood and supported.
With Sadness guiding the process, Joy joins hands with her to create a new kind of core memory—one that carries both happiness and sadness. A new island forms, symbolizing Riley’s growing acceptance of her life in San Francisco. As time passes, a version of Riley at age twelve settles into her new routines: she has made fresh friends, picked up new hobbies, and learned how to navigate the balance of her changing emotions. Inside Headquarters, the emotions marvel at the renewed, multicolored core memories that now energize Riley, and the console expands so they can work together as a team. They even glimpse a red alarm light labeled “PUBERTY,” but decide it’s a development to address later, not a crisis to fear in the present.
In this longer view, the film leaves Riley more grounded than before: she has the resilience to adapt, the capacity to lean on those who care about her, and a deeper understanding that every feeling has a purpose in shaping who she becomes.