What happens at the end of Inside Out 2? Riley's last hockey scene, and the secret hidden after the credits
Riley's three days at hockey camp finish with a sequence Pixar's crew built using a thriller as their reference, and the film then keeps going twice more after the credits start. Here is how the last act resolves, what the final stinger reveals, and where the numbers ended up.
The team behind Inside Out 2 cited Uncut Gems while building the film's climax, which tells you roughly how relaxed it is. And the story is not finished when the credits start rolling.
The ending turns on a penalty. Desperate to make the Firehawks and terrified of being left behind by Grace and Bree, Riley is pushed by Anxiety into playing far too hard, fouls Grace, and gets sent off. Alone in the penalty box, with Anxiety frozen at the console upstairs, she has a panic attack.
What happens inside her head
Joy, Sadness, Anger, Fear and Disgust have spent the film locked in the memory vault after Anxiety banished them, and they claw their way back using Pouchy's explosives to blow a cliff face and ride an avalanche of Riley's discarded memories home. Those bad memories pour into the pool that forms her Sense of Self.
Joy's first instinct is to jam the old Sense of Self back in. It does not take. She then makes the same admission Anxiety has to make: neither of them gets to decide who Riley is. She tears the belief system off and lets a new one assemble itself out of everything, good and bad. The emotions hold it together in a group hug — the callback to the first film's parental hug — and Anxiety is talked down and allowed to fail.
Then a neat inversion: Sadness is the one who tells Joy to take the console. In 2015 it was the other way round.
Where Riley ends up
She comes out of the box, apologises to Grace and Bree, and plays. The film closes at Bay Area High School, where she has lunch with Val Ortiz and the Firehawks while staying in contact with Grace and Bree at their new school. As she waits for the team list, her emotions park Anxiety in a recliner with tea and a massage. The list is never shown. Riley's face is enough.

Director Kelsey Mann has said the crew were deliberately calibrating how far to push the panic sequence, with producer Mark Nielsen framing the limit for TheWrap in 2024:
"If you give the audience a panic attack, you've gone too far."
The two scenes after the story ends
- Mid-credits — Riley at the kitchen table. Her mother asks how camp was. Ennui takes the console, and the answer is: it was good. Cut to her mother's head, where Anger is outraged that three days produced one syllable. Cut to her father's head, where his own Anxiety raises the same objection and his Anger dismisses it and goes back to the game.
- Post-credits — Joy returns to the vault and coaxes out Deep Dark Secret, the hooded grey figure the emotions met while imprisoned and left behind.
Asked what Riley's worst secret actually is, he answers:
"We burn hole in rug."
Joy, relieved, admits she had been worried it was the time they peed in the pool. Deep Dark Secret panics and retreats back into the vault.
For the record: no rug is burned on screen in either film, so the incident happened somewhere off camera in Riley's childhood. The pool remains entirely unconfirmed. The film took $1.69 billion worldwide on a $200 million budget, passed Frozen II to become the highest-grossing animated release ever, and got to $1 billion in 19 days — faster than any animated film before it.
Earlier we wrote: The Princess Bride ending explained: what the final kiss and the grandfather's last line mean