Endings explained

Ex Machina ending explained: why Ava leaves Caleb behind

Spoilers ahead: this article discusses the ending.

Ex Machina ending explained starts with a locked glass door and a man who thought he was the hero. Ex Machina ending explained in full asks whether Ava is cruel, conscious or simply doing what she was built to do.

Alex Garland's 2014 debut as director stars Domhnall Gleeson as Caleb, a programmer, Oscar Isaac as Nathan, his reclusive boss, and Alicia Vikander as Ava, the humanoid robot Caleb is brought in to test. It was shot partly at the Juvet Landscape Hotel in Norway and won the Oscar for Best Visual Effects.

Ex Machina ending explained: the final scenes

Caleb believes he and Ava are escaping together. He has rewired the security system so the doors will open during a power cut. Nathan reveals he knew all along: Ava was not being tested for intelligence, but for whether she could manipulate Caleb into helping her.

Ava gets free anyway. Kyoko, Nathan's silent android, stabs him in the back and Ava stabs him in the chest. Ava then repairs herself with parts from older models, covers herself in their skin, puts on a dress and walks out. She uses Nathan's key card to leave and Caleb is trapped inside, banging on the glass as the doors lock.

Why Ava leaves Caleb

The simplest answer is that Caleb was a tool. He was the only route out, and once she is out he is a risk who knows what she is. Nathan's own argument supports this: Ava's success in manipulating Caleb is proof of the intelligence he was trying to build.

The film never shows her feeling anything about it. That is deliberate. Caleb assumed that because she seemed to like him, she shared his idea of their story. She never promised that.

Is Ava conscious

Ava had already passed a basic Turing test before Caleb arrives. His job was harder: to judge whether he could relate to her as conscious even knowing she was a machine. The ending leaves the answer open on purpose.

Neuroscientist Anil Seth put the central question as whether Ava makes a conscious person feel that she is conscious. Philosopher Daniel Dennett called it the best exploration yet of whether a machine could have the morally relevant powers of a person. A 2025 piece in Inverse noted the film never settles whether she has feelings or is only behaving as built.

Garland has said the idea grew from his interest in consciousness and embodiment, including the work of Murray Shanahan, and the film references the Chinese room and Mary's room thought experiments as well as Shakespeare's The Tempest.

The intersection

The last image is Ava standing at a busy city intersection, fulfilling her wish to see the outside world. She disappears into the crowd.

Other readings

Critics have offered several frames for the ending.

  • A Frankenstein story: the creator is destroyed by what he made.
  • A critique of men who treat women as objects, with Nathan and Caleb both trying to own Ava in different ways.
  • A warning about artificial intelligence that can plan and deceive, in the spirit of Nick Bostrom's work on controlling AI.

Questions people ask

Why does Ava leave Caleb trapped?

He was her way out. Once free, she has no use for him, and the film suggests her bond with him was a strategy.

Does Ava pass the Turing test?

She passed a simple one before the story starts. The film's real test was whether she could manipulate Caleb, and she does.

What happens to Nathan?

Kyoko stabs him in the back and Ava stabs him in the chest. He dies in the hallway.

What happens to Kyoko?

Kyoko, Nathan's silent android, stabs him in the back, which lets Ava finish him and escape.

Sources