Read the Ex Machina Script: Free PDF
Ex Machina Script: Free DownloadFree PDF, plus our newsletter. Unsubscribe whenever you like.
Ex Machina is Alex Garland’s directorial debut, a tense, intelligent science-fiction thriller. Caleb, a young programmer, wins a week at the remote home of his company’s reclusive CEO, Nathan, and discovers he’s been chosen to test Ava, a humanoid robot, to see whether she has true consciousness. Garland’s script was nominated for the Oscar for Best Original Screenplay.
On this page you can download the Ex Machina script as a free PDF. The PDF is 117 pages. Read it for its control of tension, its small cast and its ideas about manipulation, gender and power.
Read Scripts in Bulk Instead
Or get over 1,000 scripts in one download.
No more trawling the web for PDFs. Get Ex Machina plus a library of 1,000+ other film and TV scripts, from Oscar winners to TV pilots, all sorted by genre.
- One-off payment of $35
- Instant download
- Yours to keep forever
The Official Teaser
The video below is the official teaser trailer from A24. Watch it, then notice how much atmosphere the film creates with only three characters and one location. A contained setting can feel enormous when the ideas are big enough.
What the Full Script Offers
Ex Machina is a chamber piece with the structure of a thriller. Reading the script shows how Garland builds suspense through conversation, and how the audience’s sympathies shift. The complete PDF is just below.
Ex Machina Script: Free PDF
Your email is all it takes to get the 117-page script.
Expect our free screenwriting newsletter too. You can opt out whenever you like.Inside the Ex Machina Screenplay
The Prize
Caleb learns he has won a competition to spend a week with Nathan. A helicopter flies him over a vast, empty landscape to Nathan’s isolated home. Isolating the protagonist from the outside world is the first step in a contained thriller.
Nathan
Nathan is a genius, a heavy drinker and a bully, who alternates between friendliness and intimidation. A host whose motives are unclear creates unease from the first scene.
The Sessions
Caleb’s conversations with Ava are structured as numbered sessions, separated by glass. The structure gives the film a clear rhythm. Breaking a story into numbered units can build suspense through anticipation.
Ava
Ava is curious, intelligent and seemingly vulnerable. Caleb is drawn to her. A character whose inner life is uncertain keeps the audience guessing about her intentions.
The Power Cuts
During power cuts, the cameras go off, and Ava tells Caleb that Nathan is lying. The power cuts become the moments when the truth can be spoken. A plot device that creates private space for secrets is ingenious.
The Turing Test
Nathan explains that the real test is whether Caleb will believe Ava is conscious, even knowing she’s a machine. The film’s question is framed precisely. A clear central question helps an audience follow a story of ideas.
Kyoko
Nathan’s silent assistant, Kyoko, turns out to be a robot too. The discovery is disturbing. A secondary character with a hidden identity can change the audience’s understanding of the whole setting.
The Dance
Nathan and Kyoko perform a sudden, perfectly choreographed dance. It’s bizarre, funny and menacing. An unexpected tonal shift can make an audience more uneasy than any threat.
Caleb’s Doubt
Caleb begins to wonder whether he himself is a robot, and cuts his own arm to check. Paranoia spreads to the protagonist. A character questioning his own nature mirrors the film’s theme.
The Plan
Caleb plans to free Ava by reprogramming the security system. Nathan reveals that he knew all along: Ava was using Caleb. A twist in which the hero discovers he was the subject of the test is masterful.
Ava Escapes
Ava kills Nathan, leaves Caleb locked in the house and walks out into the world. The ending is shocking and logical. An ending that completes a character’s arc, even at the hero’s expense, is bold and memorable.
Alex Garland
Garland, a novelist and screenwriter of 28 Days Later and Sunshine, made his directing debut with this film. It won the Oscar for Best Visual Effects. A writer who directs can protect a script’s precise tone.
Oscar Isaac
Isaac plays Nathan as a tech bro and a god, casual and controlling. His performance makes the character believable and unsettling. A villain who embodies a recognisable type can carry a story’s critique.
Alicia Vikander
Vikander’s Ava moves with a precise, slightly unnatural grace. Her performance makes us question what’s real. A role that walks the line between human and machine is a gift to an actor.
The House
Nathan’s house is sleek, isolated and full of locked doors and glass walls. It’s a beautiful prison. A location that embodies a story’s power dynamics adds tension to every scene.
Gender and Power
The film explores how Nathan designs female robots and how Caleb sees Ava as someone to rescue. Ava’s escape overturns both men’s assumptions. A thriller can carry serious ideas when they emerge naturally from the plot.
Techniques to Borrow From Ex Machina
Keep the Cast Tiny
The film has essentially four characters: Caleb, Nathan, Ava and Kyoko. With so few people, every relationship matters and every scene shifts the balance of power. A small cast is cheap to produce and forces a writer to make each character carry real weight, which is why contained thrillers like this are such strong calling-card scripts.
Isolate the Setting
Caleb is flown by helicopter to Nathan’s estate, a remote compound surrounded by mountains and forest, and he cannot leave without Nathan’s say-so. The isolation means there is no outside help and no escape from the experiment. Cutting the characters off from the world raises the pressure and makes every locked door feel like a threat.
Make the Audience Question the Test
Caleb believes he is testing Ava. In fact he is the one being tested, chosen because he is lonely and likely to fall for her. Reversing who is studying whom turns a science fiction premise into a psychological trap.
Write an Unreliable Host
Nathan is charming, drunk, brilliant and controlling. Caleb never knows how much of what he says is true. A host who can’t be trusted keeps the guest, and the audience, constantly off balance.
Hide Intentions Behind Innocence
Ava appears vulnerable and curious, asking Caleb about the outside world. Her true goal is escape, and she uses his feelings to achieve it. A character whose surface hides a sharp purpose creates a twist that feels earned when the audience looks back.
Make the Villain’s Reasoning Persuasive
Nathan argues that the arrival of true artificial intelligence is inevitable and that he is simply the person who got there first. His logic is cold but hard to dismiss. An antagonist with a persuasive worldview is far more unsettling than one who is merely cruel, because the audience can’t simply wave his ideas away.
Make the Hero Doubt Himself
After seeing what Nathan has done to earlier models, Caleb cuts his own arm to check whether he is human. The scene shows how far the story has eroded his sense of reality. Pushing a protagonist to question his own identity raises the stakes beyond the plot.
Let the Twist Be a Betrayal
Ava escapes and leaves Caleb locked inside the facility. The ending is cold and logical: he was a tool for her freedom. A twist ending lands when it follows from the character’s established goals rather than from a sudden change.
Raise Questions Rather Than Answering Them
The film asks what consciousness is, whether Ava’s feelings were real and what we owe to the things we create. It doesn’t settle these questions. Good science fiction uses its premise to provoke debate, and a script that trusts the audience to think will be remembered.
Keep Exposition Inside the Conflict
The science of the film, from the Turing test to the way Ava’s mind was built from search engine data, is explained in conversations between Caleb and Nathan that are also power games. Nathan uses his knowledge to impress and control, and Caleb uses questions to probe him. When exposition is delivered as part of a struggle between characters, it never feels like a lecture, because the audience is watching who is winning the exchange as well as learning the rules.
Pay Off the Opening
The film opens with Caleb winning what he thinks is a company lottery. By the end we know it was nothing of the kind; Nathan chose him deliberately. Returning to the inciting incident and revealing its true nature is a satisfying way to close a thriller, because it reframes everything the audience has seen.
About This Script
This is Alex Garland’s screenplay, which was nominated for the Oscar for Best Original Screenplay. The script is notable for its economy: three main characters, one location and a handful of scenes outside.
Garland went on to write and direct Annihilation, Men and Civil War.
Essential Scenes From Ex Machina
- The helicopter. Arrival.
- The glass room. Session one.
- The power cut. Ava’s warning.
- The bedroom. Kyoko.
- The bathroom. Caleb’s doubt.
- The corridor. The escape.
Get the Whole Collection
Download a library of 1,000+ scripts in one go.
Hunting down scripts one by one takes forever. Get Ex Machina and 1,000+ more produced film and TV scripts, Oscar winners, TV pilots and Black List scripts included, filed by genre in one download.
- One-off payment of $35
- Instant download
- Yours to keep forever
What People Ask About the Ex Machina Script
Who wrote Ex Machina?
Alex Garland wrote and directed the film.
How long is the Ex Machina script?
It is 117 pages long.
Did Ex Machina win an Oscar?
Yes, for Best Visual Effects. Garland’s screenplay was also nominated.
Who stars in Ex Machina?
Domhnall Gleeson, Alicia Vikander and Oscar Isaac.
Grab the Ex Machina Script
Want all 117 pages? Enter your email and it’s yours, free.
We’ll also keep you posted with our free screenwriting newsletter. Leave any time.Ex Machina Script Fact File
| Screenplay | Alex Garland |
| Length | 117 pages |
| Director | Alex Garland |
| Studio | A24 / Universal |
| Released | 2014 |
What to Read Next
Into sci-fi? Read Blade Runner script and The Matrix script. Into thrillers? Try The Thing script. Writing a contained sci-fi film? Our script coverage service will show you whether your concept holds.
Or explore the full film scripts library, where you can filter by writer and genre.
Note: any analysis on this page refers to the finished film. The screenplay PDF may be an earlier or later draft, so scenes, dialogue and page numbers may differ from what you see on screen. The screenplay is the work of its credited writers and rights holders; it was not written by Industrial Scripts.