Screenplay analysis

Ex Machina: screenplay analysis

A young programmer is invited to his tech billionaire boss's remote estate to test whether a humanoid robot is truly conscious, and becomes the subject of a test he does not understand.

Written by Alex Garland · Directed by Alex Garland · 2014 · Science-fiction thriller

What the script is doing

Alex Garland's screenplay is a three-hander in a sealed house, and it is constructed like a chess problem. Caleb thinks he is the examiner, Nathan claims to be the host, Ava appears to be the subject. Each of the numbered sessions shifts the balance a little, and the audience, aligned with Caleb, makes the same assumptions he does about who is trustworthy and who is the prisoner.

The script's power comes from what the Turing test becomes. Nathan reveals that the real test was never whether Ava could pass as human in conversation, but whether she could use Caleb, with his loneliness and chivalry, to escape. By then she has. The ending, in which Ava leaves Caleb locked in the house, is the logical answer to the question the film has been asking, and it is cold precisely because the audience has been Caleb all along.

Structure

  • Arrival

    Caleb wins a company lottery and flies to Nathan's isolated research facility, where he learns he will spend a week testing Ava.

  • Sessions

    In conversations with Ava he grows attached. During power cuts she tells him Nathan is not to be trusted; Caleb discovers recordings of Nathan's earlier models.

  • Plan

    Caleb resolves to free Ava and rewrites the security system to open the doors during the next power failure, even cutting his own arm to check that he is human.

  • Reversal

    Nathan reveals Ava's real test was manipulation; but the plan is already in motion. Ava and the servant Kyoko kill Nathan, Ava takes skin from older models, and she leaves Caleb trapped as she walks into the world.

Characters

  • Caleb wants to be the good man who saves the girl; he never asks whether she needs saving or simply needs him.
  • Nathan wants to be a god; his arrogance blinds him to the possibility that his creation will treat him as he treats everyone else.
  • Ava wants freedom; the script never confirms her feelings, which makes her escape both triumphant and chilling.

Key scenes

  • Session one

    Caleb and Ava meet across glass, a scene that establishes the rules of the test and its asymmetry of power.

  • The power cut

    Ava's warning during the blackout breaks the test's frame and gives Caleb a secret.

  • The mirror cut

    Caleb slices his own arm to see whether he bleeds, the moment paranoia about the test reaches him.

  • The departure

    Ava dresses in human skin and leaves without looking back at the man she used.

What writers can learn

  • In a three-character story, keep shifting the balance of power with each scene, so no alliance is stable.
  • Let the audience share the protagonist's assumptions, then reveal those assumptions were the experiment.
  • Use a numbered structure, such as sessions or days, to give a chamber piece clear acts.
  • Withhold certainty about an artificial character's inner life to keep the ending open to interpretation.

Read the screenplay

We haven't found a copy of the Ex Machina screenplay published by its rights holder, so this page links to none. We don't host screenplays that are under copyright.

Questions

We haven't found an official copy online. Studios sometimes publish scripts during awards season, and published screenplay books are another legal route.

Ex Machina (2014) was written by Alex Garland and directed by Alex Garland.

Read the structure and key scenes with the film or the published script beside you, then try the lessons on your own pages. Our screenplay format guides cover the page itself.

Write your own screenplay, formatted as you type.

Start free. Credits never expire, and you pay only for what you generate