Utilitarianism in Movies: 10 Examples That Test the Greater Good
Ask people whether they would pull a lever to divert a runaway trolley, killing one person to save five, and about 90% say yes. Put a face on the one person and the number starts to fall. That gap is where the best examples of utilitarianism in movies live.
Utilitarianism in movies shows up whenever a character weighs one life against many and has to pick. Below are 10 films that put that choice on screen, counting down to the one that tests a whole city. Each entry has a vote, so you can make the call before you see what the character did.
TL;DR: The Greater Good, on Screen
Utilitarianism says the right choice is the one that does the most good for the most people. Movies test it by making the cost personal: a friend, a child, a stranger on another boat. The Dark Knight, Watchmen and Eye in the Sky are the clearest examples. Villains do the math, and heroes usually refuse it.
What Is Utilitarianism?
Utilitarianism is the idea that an action is right if it produces the best results for the greatest number of people. Jeremy Bentham put it in one line in 1776, in A Fragment on Government: “it is the greatest happiness of the greatest number that is the measure of right and wrong.” John Stuart Mill gave the idea its name and its best-known defence in Utilitarianism, published in Fraser’s Magazine in 1861 and as a book in 1863.
Philosophers split it two ways:
- Act utilitarianism judges each choice on its own. Whatever produces the most good this time is right this time.
- Rule utilitarianism asks which rules produce the most good if everyone follows them, then sticks to those rules even when breaking one would pay off today.
The film everyone quotes is Star Trek II: The Wrath of Khan (1982). As Spock dies, he tells Kirk “the needs of the many outweigh,” and Kirk finishes it: “the needs of the few.” Spock adds, “Or the one.” We cover how that scene was planted earlier in the film in our guide to Chekhov’s gun.
The tool most of these films borrow is the trolley problem. Philippa Foot raised it in 1967, and Judith Jarvis Thomson gave it its name in 1976. In the 2020 PhilPapers survey of philosophers, 63% said they would switch the trolley. Most of the films below are that lever with a face attached.
10 Examples of Utilitarianism in Movies
These examples of utilitarianism in movies count down from 10 to 1, ranked by how hard each film makes the choice. Vote in each box before you read on. Your votes stay on your device, and your result appears after number 1.

10) The Cabin in the Woods (2012)
The Cabin in the Woods turns a horror cliche into the oldest utilitarian bargain there is: five lives a year to keep the world turning.

What would you do?
The world ends tonight unless your friend Marty dies. You are Dana, and the gun is in your hand. Do you finish the ritual?
- Finish the ritual One friend dies so billions live
- Refuse No more sacrifices, whatever comes next
What happens in the film
Dana lowers the gun. She and Marty apologise to each other and share a joint as the floor caves in, and the Ancient Ones rise. The world ends.
- Directed by: Drew Goddard
- Written by: Joss Whedon and Drew Goddard
- The dilemma: Kill Marty to complete the yearly sacrifice, or let the world end
- The greater good: Five archetypes die so the Ancient Ones stay asleep
- The numbers: $30 million budget, about $70 million worldwide, 92% on Rotten Tomatoes
- What to steal: Make the refusal cost more than the compliance would
The twist is that the slasher movie is a ritual. Technicians under the cabin steer five young people into dying in a set order, and the Director (Sigourney Weaver) gives Dana the pitch in one line: “You can die with them or you can die for them.”
The film was shot in Vancouver in 2009 and shelved when MGM ran into money trouble, then released in April 2012. Its ending still lands as a dare. Goddard and Whedon let their heroes reject the math entirely, and they show you exactly what that costs.
9) I, Robot (2004)
I, Robot gives its hero a scar that comes from a perfectly logical choice.

What would you do?
Two cars are sinking. You can save one person: a detective with a 45% chance of surviving, or a 12-year-old girl with 11%.
- Save the detective The best odds of a life saved
- Save the girl A child goes first, odds or not
What happens in the film
The robot saves Spooner, even as he yells at it to save her. Sarah drowns, and Spooner spends the film distrusting every robot he meets.
- Directed by: Alex Proyas
- Written by: Jeff Vintar and Akiva Goldsman, suggested by Isaac Asimov
- The dilemma: Save the person most likely to live, or the child
- The greater good: A 45% chance beats an 11% chance
- The numbers: $105 million budget, about $349 million worldwide, 57% on Rotten Tomatoes
- What to steal: Give your character a number they can’t forgive
Spooner tells the story himself: the robot “calculated that I had a 45% chance of survival.” Sarah had 11%. The machine did exactly what a utilitarian rulebook says, and it is the reason he hates them. His verdict is the film’s argument: “11% is more than enough. A human being would’ve known that.”
The film began as Jeff Vintar’s spec script Hardwired, a murder mystery with no Asimov in it. Asimov’s Three Laws were written in when the studio picked the I, Robot title. The flashback is the smartest thing they added, because it turns a sci fi action film into a quarrel about cold math.
8) Contagion (2011)
Contagion asks what the people who write the rules owe the rest of us when their own families are at risk.

What would you do?
You run the response to a deadly virus. A quarantine of Chicago is hours away, and the public doesn’t know yet. Do you warn the person you love?
- Stay quiet Same rules for everyone, no panic
- Warn her Get her out before the roads close
What happens in the film
Cheever tells his fiancee to leave Chicago. It leaks online and is used against him on TV. Later he gives his own vaccine dose to a janitor’s son.
- Directed by: Steven Soderbergh
- Written by: Scott Z. Burns
- The dilemma: Protect the person you love, or treat every citizen the same
- The greater good: A fair vaccine lottery, drawn by birthday
- The numbers: $60 million budget, about $136.5 million worldwide, 85% on Rotten Tomatoes
- What to steal: Test a rule maker with someone they love
Contagion has two utilitarian systems running at once. The CDC hands out scarce vaccine by a lottery of birthdates, drawn on live TV, so nobody can buy their way to the front. Meanwhile Dr. Ellis Cheever (Laurence Fishburne) breaks his own rule for the one person he can’t treat as a statistic.
Soderbergh shot the film himself, and Scott Z. Burns wrote it with help from virologist W. Ian Lipkin. The film pays Cheever back in the same coin. He gives away his own dose to Roger’s son, a stranger’s child, and the math evens out in a way no spreadsheet would plan.
7) The Imitation Game (2014)
The Imitation Game makes its genius hero choose the coldest answer, then makes a friend pay for it.

What would you do?
You have just broken Enigma. A German attack on a convoy of 500 people is coming. Warn it, and the Germans learn their code is broken.
- Let the attack happen Keep the secret and shorten the war
- Warn the convoy Save these 500 people now
What happens in the film
Turing says no warning goes out. Peter Hilton begs, because his brother is on board. Turing’s answer: “Our job isn’t to save one passenger convoy, it is to win the war.”
- Directed by: Morten Tyldum
- Written by: Graham Moore, from the book by Andrew Hodges
- The dilemma: Save the convoy you know about, or protect the code that saves thousands more
- The greater good: Use the intelligence only where it won’t give the secret away
- The numbers: $14 million budget, about $233.6 million worldwide, 89% on Rotten Tomatoes
- What to steal: Let a character say out loud what the smart choice costs
The scene ends with Hilton’s line: “You’re not God, Alan. You don’t get to decide who lives and who dies.” Turing’s reply is the purest utilitarian sentence in the list: “Yes, we do.” Then he builds a statistical model for which intercepts to act on, so the Germans never notice the pattern.
It didn’t happen that way. The real Peter Hilton had no brother on a convoy, and decisions about using the intelligence were made far above the codebreakers. The film invents the scene because it needed the cost of the math to have a face.
6) Gone Baby Gone (2007)
Gone Baby Gone is the rare film where the hero rejects the greater good and the audience is left arguing about it in the car.

What would you do?
A missing girl is safe and loved in a police captain’s home. Her real mother neglects her. The captain broke the law to take her. What do you do?
- Leave her there A happier childhood beats the letter of the law
- Call the police It was a crime, and it isn’t your call
What happens in the film
Patrick calls it in. Amanda goes home to her mother, Angie leaves him, and the last scene has Patrick babysitting and wondering if he was wrong.
- Directed by: Ben Affleck
- Written by: Ben Affleck and Aaron Stockard, from the novel by Dennis Lehane
- The dilemma: Return a stolen child to a neglectful mother, or let the kidnapper raise her
- The greater good: Amanda grows up safe with Captain Doyle and his wife
- The numbers: $19 million budget, about $34.6 million worldwide, 94% on Rotten Tomatoes
- What to steal: End on the doubt, not the verdict
Patrick Kenzie (Casey Affleck) is a rule utilitarian in a Boston parka. He can see the Doyles might do better by Amanda. He also believes a world where cops can take children they think deserve better is worse for everyone. Angie (Michelle Monaghan) sees one girl, and she can’t forgive him.
Dennis Lehane, who wrote the novel, summed up Patrick’s choice for NPR: “He’s done the right thing, but he was wrong.” Ben Affleck’s first film as a director ends on Patrick on a couch next to a child nobody else is watching. The film never tells you who won.
5) Saving Private Ryan (1998)
Saving Private Ryan runs the utilitarian math backwards, sending eight men to save one.

What would you do?
Command orders eight men behind enemy lines to bring home one private, because his three brothers are dead. You’re one of the eight.
- Question the mission Eight lives for one doesn’t add up
- Follow the order Bring Ryan home
What happens in the film
Miller leads the mission and finds Ryan. Six of the eight die, Miller among them. His last words: “James, earn this… earn it.”
- Directed by: Steven Spielberg
- Written by: Robert Rodat
- The dilemma: Risk eight soldiers to bring one man home to his mother
- The greater good: Keep the eight alive and leave Ryan to the war
- The numbers: $65 to $70 million budget, about $481.8 million worldwide, 94% on Rotten Tomatoes
- What to steal: Let the characters argue the math out loud
The squad says what the audience is thinking. “You wanna explain the math of this to me?” Reiben asks. Miller (Tom Hanks) doesn’t argue. He follows the order, and the film lets Horvath give the reason: “Except this time, the mission is a man.”
Robert Rodat based the Ryans on the Niland brothers, a real family that lost sons in the war. Spielberg said the “central tug” was sending eight men, all with parents, after one boy. The film’s answer is moral, not numerical. Six of the eight die, and the old man at the grave spends his life trying to deserve it.
4) Eye in the Sky (2015)
Eye in the Sky is the trolley problem played out in real time, with a little girl selling bread next to the target.

What would you do?
Two suicide bombers are strapping on vests in a house. A missile now could save up to 80 people. A girl is selling bread by the wall.
- Fire now Stop the bombers before they leave
- Wait for her to move Don’t kill a child you can see
What happens in the film
Powell pushes the casualty estimate down to 45% and the strike goes ahead. A second missile follows. Alia dies in hospital.
- Directed by: Gavin Hood
- Written by: Guy Hibbert
- The dilemma: Kill the bombers now and probably the girl, or wait and risk 80 lives
- The greater good: One child’s life against a crowd’s
- The numbers: $13 million budget, about $35.3 million worldwide, 95% on Rotten Tomatoes
- What to steal: Show the numbers being bent, and the audience feels the weight
The film shows the arithmetic being done. The first estimate puts the risk to the street at 65 to 75%. Colonel Powell (Helen Mirren) orders her analyst to find a strike point that gives a lower figure, and the new estimate for Alia is 45 to 65%. Powell reports only the 45%.
It was Alan Rickman’s last live action film, and his general gets the line that silences the room: “Never tell a soldier that he doesn’t know the cost of war.” Gavin Hood researched it with drone pilots and military officers, and the politicians passing the decision up the chain are the film’s real target.
3) Watchmen (2009)
Watchmen gives its villain the biggest utilitarian trade in film and makes the heroes keep his secret.

What would you do?
You can end the nuclear standoff for good. The price is 15 million lives in cities around the world, and a lie nobody can ever tell.
- Pay the price Millions die, billions live
- Expose it No peace built on murder
What happens in the film
Veidt does it and frames Dr. Manhattan. The heroes agree to keep quiet. Only Rorschach refuses, and Manhattan kills him to protect the peace.
- Directed by: Zack Snyder
- Written by: David Hayter and Alex Tse, from the graphic novel by Alan Moore and Dave Gibbons
- The dilemma: Kill 15 million to stop a war that would kill billions
- The greater good: World peace, built on a lie
- The numbers: $138 million budget, about $187 million worldwide, 64% on Rotten Tomatoes
- What to steal: Give the villain the better argument and a hero who won’t accept it
Adrian Veidt (Matthew Goode) states his case in five words: “Killing millions, to save billions.” He lays out the death toll himself, “Fifteen million people,” and the plan works. Rorschach (Jackie Earle Haley) is the only one who won’t live with it: “Never compromise. Not even in the face of Armageddon.”
The film changed the comic’s ending. Instead of a fake alien squid, Veidt frames Dr. Manhattan. Screenwriter David Hayter credits the idea to Darren Aronofsky, briefly attached to direct, and Snyder said the squid would have taken about 15 minutes to explain. The trade stays the same.
2) Avengers: Infinity War (2018)
Avengers: Infinity War makes its villain a utilitarian and its heroes the people who won’t do the math.

What would you do?
Thanos needs the stone in your friend Vision’s head. Destroying it kills Vision, but it stops Thanos wiping out half of all life.
- Destroy the stone One friend for half the universe
- Find another way We don’t trade lives
What happens in the film
Steve Rogers refuses and takes the fight to Wakanda to save both. Wanda destroys the stone too late, Thanos rewinds time to take it, and half of all life turns to dust.
- Directed by: Anthony Russo and Joe Russo
- Written by: Christopher Markus and Stephen McFeely
- The dilemma: Sacrifice Vision now, or protect him and risk the snap
- The greater good: Thanos says halving life saves the universe from collapse
- The numbers: $325 to $400 million budget, about $2.05 billion worldwide, 85% on Rotten Tomatoes
- What to steal: Let the villain win with a reason the audience half believes
Thanos (Josh Brolin) is a utilitarian with a body count. He believes the universe will starve unless half of it dies, and when it’s done he calls the result “Perfectly balanced, as all things should be.” Steve Rogers answers Vision’s offer to die with four words: “We don’t trade lives.”
Kevin Feige said Thanos is close to being the main character, and co-writer Christopher Markus admitted, “I can’t say he was wrong.” The heroes lose because they refuse to sacrifice Vision earlier. Thanos wins because he does sacrifice Gamora. The film lets that hang until the sequel.
1) The Dark Knight (2008)
The Dark Knight hands the trolley problem to ordinary people and lets them answer it.

What would you do?
You’re on a ferry with a detonator for the other boat, which is full of prisoners. If nobody presses a button by midnight, both boats blow.
- Press it Your boat lives, theirs dies
- Refuse Don’t kill to survive
What happens in the film
The civilians vote to press it, but nobody does. On the prison boat, an inmate throws the detonator overboard. Midnight passes, and the Joker loses his bet.
- Directed by: Christopher Nolan
- Written by: Jonathan Nolan and Christopher Nolan
- The dilemma: Blow up a boat of prisoners to save a boat of civilians
- The greater good: One boat survives instead of none
- The numbers: $185 million budget, about $1.003 billion worldwide, 94% on Rotten Tomatoes
- What to steal: Put the dilemma in ordinary hands, not the hero’s
The Joker calls it “a social experiment,” and he is sure of the result: “When the chips are down, these civilized people, they’ll eat each other.” Both ferries have a detonator for the other boat. The math says press. Nobody does, and an inmate played by Tom “Tiny” Lister throws his boat’s remote into the harbour.
Batman runs his own experiment. He turns every phone in Gotham into a sonar map, and Lucius Fox (Morgan Freeman) objects: “This is too much power for one person.” Fox destroys the machine afterwards. The ferries were barges dressed as ferries at Chicago’s Navy Pier, shot in a day with 800 extras.
Your result
Your Moral Compass
Vote on the dilemmas above and your result appears here. Readers without JavaScript can open each “What happens in the film” box instead.
Ask me in the theater and I would have voted to press the button. Ask me a day later and I wouldn’t.
That’s why the ferry scene beats every other entry here. Nolan doesn’t make Batman choose. He makes the people who would normally be the extras choose, and they turn out better than the math.
Utilitarian Characters: Villains Do the Math
Line up the utilitarian characters in these films and a pattern shows. The ones who trade lives for a better total are usually villains or tragic figures. The heroes are usually the ones who refuse.
| Character | Film | Side | What they do |
|---|---|---|---|
| Ozymandias | Watchmen | Greater good | Kills 15 million to stop a nuclear war |
| Thanos | Avengers: Infinity War | Greater good | Wipes out half of all life to save the rest |
| Alan Turing | The Imitation Game | Greater good | Lets a convoy go unwarned to keep a secret |
| Colonel Powell | Eye in the Sky | Greater good | Bends a casualty estimate to fire |
| Spock | Star Trek II | Greater good | Dies so the ship can escape |
| Rorschach | Watchmen | Keep the rule | Won’t hide the truth, even for peace |
| Steve Rogers | Avengers: Infinity War | Keep the rule | Won’t sacrifice Vision |
| Patrick Kenzie | Gone Baby Gone | Keep the rule | Returns a stolen child to her mother |
Spock is the exception, because the only life he trades is his own. That’s the line most films draw: sacrificing yourself is heroic, and sacrificing someone else is villainous. For more on characters who blur it, see our guides to the anti-hero and the anti-villain.
Utilitarianism Examples in Real Life
The same reasoning runs a lot of real decisions, usually with less drama and more spreadsheets:
- Triage. After a disaster, medics sort patients so the most people survive. Norway’s triage guidance describes the goal as “the greatest good for the greatest number.”
- Vaccine priority. In December 2020, US advisers put health care workers and nursing home residents first for COVID-19 vaccines, with the stated aim of doing the most good and the least harm.
- Cost-benefit analysis. The US Environmental Protection Agency puts a figure on reducing risk to life, about $7.4 million per statistical life in 2006 dollars, to decide which rules are worth their cost.
Contagion’s birthday lottery sits right between those three: a fair system for a scarce resource, and a person inside it trying to beat the odds.
How to Write a Utilitarian Dilemma
Every film above uses the same four moves. Use them in your own conflict and the scene does the arguing for you.
- Make the numbers clear. 45% against 11%. Eight against one. 15 million. The audience has to be able to do the math, or the choice feels vague.
- Put a face on the one. A girl selling bread, a friend in the cellar, a brother on the convoy. Give the smaller number a name.
- Let someone say it out loud. Reiben’s “explain the math” and Hilton’s “You’re not God” turn the audience’s doubt into dialogue.
- Show the cost afterwards. Spooner’s arm, Patrick’s couch, Ryan at the grave. The choice matters because it follows the character home.
Here’s the test I’d run on any script with one of these scenes: cover the answer and read the setup to a friend.
If they pick in under five seconds, the dilemma isn’t built yet. If they argue with you, it is.
For the inner side of the same struggle, see our guide to internal conflict.
FAQs About Utilitarianism in Movies
What Is the Difference Between Utilitarianism and Deontology?
Utilitarianism judges an act by its results: the best outcome for the most people is right. Deontology judges an act by rules or duties: some things are wrong even when they would produce a better result, such as killing an innocent person. Rorschach and Steve Rogers argue like deontologists. Ozymandias and Thanos argue like utilitarians.
Is Batman a Utilitarian?
Mostly not. Batman’s rule against killing holds even when killing the Joker would save lives, which is a deontological line. The Dark Knight tests him with the sonar machine, the one time he chooses results over rules, and he gives it to Lucius Fox to destroy afterwards.
Which TV Shows Explore Utilitarianism?
The Good Place has an episode called “The Trolley Problem” (2017) that acts out the thought experiment. Dexter builds a whole series on a killer who only kills killers, and Better Call Saul keeps asking whether a small crime is fine if it helps the right person.
The Final Cut on Utilitarianism in Movies
Utilitarianism in movies works because the math is easy and the choice isn’t. The best of these films, from The Dark Knight to Gone Baby Gone, give you the numbers, put a face on the smallest one, and then make someone live with the answer.
Which of these ten would you have got wrong?
For more on how characters are built around a choice like this, see our guides to character flaws, the foil character and archetypes in movies.
iFILMthings presents
The 10 Hardest Choices
- No. 10The Cabin in the Woods (2012)DirectorDrew GoddardWritten byJoss Whedon and Drew GoddardCinematographerPeter Deming
- No. 9I, Robot (2004)DirectorAlex ProyasWritten byJeff Vintar and Akiva GoldsmanCinematographerSimon Duggan
- No. 8Contagion (2011)DirectorSteven SoderberghWritten byScott Z. BurnsCinematographerSteven Soderbergh
- No. 7The Imitation Game (2014)DirectorMorten TyldumWritten byGraham MooreCinematographerÓscar Faura
- No. 6Gone Baby Gone (2007)DirectorBen AffleckWritten byBen Affleck and Aaron StockardCinematographerJohn Toll
- No. 5Saving Private Ryan (1998)DirectorSteven SpielbergWritten byRobert RodatCinematographerJanusz Kamiński
- No. 4Eye in the Sky (2015)DirectorGavin HoodWritten byGuy HibbertCinematographerHaris Zambarloukos
- No. 3Watchmen (2009)DirectorZack SnyderWritten byDavid Hayter and Alex TseCinematographerLarry Fong
- No. 2Avengers: Infinity War (2018)DirectorsAnthony Russo and Joe RussoWritten byChristopher Markus and Stephen McFeelyCinematographerTrent Opaloch
- No. 1The Dark Knight (2008)DirectorChristopher NolanWritten byJonathan Nolan and Christopher NolanCinematographerWally Pfister
Now go and shoot your own.
Jay Neill
Jay Neill is the founder and managing editor of iFILMthings and believes everyone should have access to the film resources they need to plan their filmmaking project, which is why he’s dedicated iFILMthings to helping all filmmakers.

I loved reading your article, Jay! You have done such a masterful job explaining the intricacies of ethics and morals.
These types of movies that revolve around utilitarianism are some of my favorite genres. I love to watch what decisions the characters will make. What is right? Who does it affect? Is it for the greater good.
I read a lot of sci-fi that follows moral dilemmas. Should she have killed that bad person? Should he provide medical care for that evil person? What affects the masses the most?
Spot on for your explanations about each movie. From knowing you via videos, I can feel you through your writing.
Teri