Latest
How Famous Memoirs Were Really Written: What the Collaborators DidStranger in a Strange LandProfiles in CourageDid I Ever Tell You This?: A MemoirFlorida RoadkillTeam of Teams: New Rules of Engagement for a Complex WorldMy Share of the Task: A MemoirWe Were Soldiers Once… and Young: Ia Drang, the Battle That Changed the War in VietnamThe Columbia Restaurant: Celebrating a Century of History, Culture, and CuisineA Tiger among Us: A Story of Valor in Vietnam’s A Shau ValleyTop Sergeant: The Life and Times of Sergeant Major of the Army William G. BainbridgeSailing True North: Ten Admirals and the Voyage of CharacterPodkayne of MarsMake Your Bed: Little Things That Can Change Your Life…And Maybe the WorldSam Walton: Made in America: My StoryI, RobotOpen: An AutobiographyShattered Sword: The Untold Story of the Battle of MidwayA World at Arms: A Global History of World War IIL.L. Bean: The Making of an American IconA Higher Standard: Leadership Strategies from America’s First Female Four-Star GeneralLife21 Days to Success Through Networking: The Life and Times of Gnik RowtenCampus BattlefieldThe Bell JarRight Wing RevolutionThe Sage of SagittariusTime for a Turning PointDesigning Casinos to Dominate the CompetitionLove’s Executioner and Other Tales of PsychotherapyBeneath a Scarlet SkyThe Library BookThe Phone Book: The Curious History of the Book That Everyone Uses But No One ReadsTrump: The Art of the DealThe MAGA DoctrineThe College ScamSea Stories: My Life in Special OperationsPa’anNetworking Your Way to SuccessMasters of NetworkingRadioSoldier for Life: Leader Lessons from the 12th Sergeant Major of the ArmyThe Melting Point: High Command and War in the 21st CenturyAmerican SoldierIt Doesn’t Take a HeroStop, in the Name of GodDoes Explicit Sex Sell Books? An Answer to The Absolute Degeneracy of Modern WritingThe Mary Sue: How a 1973 Star Trek Parody Became a Writing TermWhat the AI Writing Survey Says About Jobs, Freelancers and Fiction AuthorsHow Long Does Google Take? Crawling, Indexing and Recovery Times
The Writing King Your Ethical Ghostwriter. Your Story, Done Right.

Deus Ex Machina: The Unexpected Savior in Storytelling

TL;DR: Deus ex machina is the solution that drops out of the sky with no setup and no connection to anything before it, just when the hero is cornered and out of options. The writer waves a wand and the problem vanishes. The name is Latin for “god from the machine,” and it’s one of the oldest and laziest bad writing habits in existence.

You’re deep into a story. The tension is building. The hero is cornered, out of options, and you’re turning pages to see how they solve it.

Then a solution drops out of the sky with no setup, no logic, and no connection to anything that came before. The writer waves a wand and the problem vanishes.

That’s deus ex machina. It’s Latin for “god from the machine,” and it’s one of the oldest bad writing habits in existence.

I’m sick of it. There’s no cheaper trick in fiction, and readers feel the cheat the moment it happens even when they can’t name it. A writer who drops a rescue from the sky is telling the reader that everything they just read was decoration, and I think that’s a betrayal of the people who gave the book their time.

A person or thing (as in fiction or drama) that appears or is introduced suddenly and unexpectedly and provides a contrived solution to an apparently insoluble difficulty.Merriam-Webster

Where Does Deus Ex Machina Come From?

From ancient Greek theater, where a crane lowered an actor playing a god onto the stage to resolve the plot.

The practical problem for writers is simple: you’ve trapped your characters and you need to get them out.
Share on X

The term originates in ancient Greek theater. When a playwright wrote himself into a corner, a crane, the “machina,” would lower a god onto the stage to resolve everything. Euripides used it regularly. Aristotle criticized it, arguing that the resolution of a plot should arise from the story itself and from nothing outside it. That was around 335 BC, and the advice still holds. For more, see what bad movies teach writers about storytelling and using an animal’s pov.

Deus ex machina: parts diagramA hand-drawn parts diagram titled Deus ex machina, fig. 1, in service since ancient Greek theater, still squeaks. On a stage, a big wooden crane, part A, labeled the author, swings out over the action. Its rope, part B, is labeled plausibility, fraying, and its strands are coming apart. Hanging from the rope is a box with a god in it, part C, the god, may contain eagles. Below, a stick-figure hero, part D, is cornered against a wall, now a passenger in their own story, while three spear-carrying stick figures close in; the wall is part E, the corner you wrote in Act 2. A tired writer turns the crank, part F, the deadline, it's Friday. An empty dotted outline on the stage floor is part G, where the setup should be, empty since Act 1. In front of the stage, part H, the audience, feels the cheat even if they can't name it.Deus ex machina: parts diagram(fig. 1. in service since ancient Greek theater. still squeaks.)zzDEUS!!?!hm.boo?!ABCDEFGHA. Crane: the authorB. Rope: plausibility, frayingC. The god (may contain eagles)D. Hero: cornered. Now a passenger.E. The corner you wrote in Act 2F. Crank: the deadline (it's Friday)G. Where the setup should be (empty since Act 1)H. Audience: feels the cheat, can't name it
Deus ex machina: parts diagramA hand-drawn parts diagram titled Deus ex machina, fig. 1, in service since ancient Greek theater, still squeaks. On a stage, a big wooden crane, part A, labeled the author, swings out over the action. Its rope, part B, is labeled plausibility, fraying, and its strands are coming apart. Hanging from the rope is a box with a god in it, part C, the god, may contain eagles. Below, a stick-figure hero, part D, is cornered against a wall, now a passenger in their own story, while three spear-carrying stick figures close in; the wall is part E, the corner you wrote in Act 2. A tired writer turns the crank, part F, the deadline, it's Friday. An empty dotted outline on the stage floor is part G, where the setup should be, empty since Act 1. In front of the stage, part H, the audience, feels the cheat even if they can't name it.Deus ex machina: parts diagram(fig. 1. in service since ancientGreek theater. still squeaks.)zzDEUS!!?!hm.boo?!ABCDEFGHA. Crane: the authorB. Rope: plausibility, frayingC. The god (may contain eagles)D. Hero: cornered. Now a passenger.E. The corner you wrote in Act 2F. Crank: the deadline (it's Friday)G. Where the setup should be (empty since Act 1)H. Audience: feels the cheat, can't name it

The device has survived for two thousand years because it solves a real problem writers face: how to get your characters out of an impossible situation.

The temptation is obvious. You’ve written your hero into a corner so tight that no logical escape exists, and instead of rethinking the story, you invent an escape with no foundation in what came before. It works mechanically. It resolves the plot. But it betrays the reader’s investment in the story.

Watch: The Starship Tech that Never Fails, Adam Schwartz

Why Is Deus Ex Machina Bad Writing?

The fundamental problem with deus ex machina is that it breaks the contract between writer and reader.

When someone reads a story, they’re investing time and attention on the assumption that the events will follow some internal logic. The hero doesn’t have to win. The ending doesn’t have to be happy. But the writer has to earn it. When the resolution comes from nowhere, the writer retroactively wastes the reader’s investment. The clues they tracked and the possibilities they weighed turn out not to matter, because the answer was never in the story.

Television produced the most infamous version of this cheat. Dallas killed off Bobby Ewing in its eighth-season finale in May 1985, after Patrick Duffy left the show to pursue other roles. The ratings dipped without him, and Larry Hagman persuaded Duffy to come back. On May 16, 1986, the season finale ended with Pam waking up to find Bobby alive in the shower.

When the show returned that fall, the audience learned that the entire season they’d just watched had been Pam’s dream. Every storyline from that year was wiped out to fix a casting problem. According to the Television Academy, some fans felt shortchanged after investing a year in episodes that no longer counted.

I’d call that the purest example of a writer breaking the contract with the audience. The producers wanted their star back, and the viewers paid for it with a year of attention that suddenly counted for nothing.

It also destroys character development. If a character doesn’t solve their own problem through skill, sacrifice, or growth, their arc is meaningless. A hero who never works for the win never changes, and the reader can feel it. When an external force swoops in to handle the climax, the protagonist becomes a passenger in their own story, and I think that’s the worst thing you can do to a character you’ve spent a whole book building.

Mark Twain put it well: “Truth is stranger than fiction, but it’s because Fiction is obliged to stick to possibilities; Truth isn’t.” Fiction has to play by its own rules. Deus ex machina is the writer breaking their own rules.

Are the eagles in The Lord of the Rings a deus ex machina?

The most famous modern example, and the one that generates the most debate, is the eagles in The Lord of the Rings.

I’ve read the books multiple times since I first picked up that big red edition in 1969, and I’ve seen all three Jackson films in both theatrical and extended versions. The eagles are deus ex machina. They just swoop in and save the day.

It happens more than once. An eagle rescues Gandalf from the top of Orthanc. The eagles arrive at the Battle of the Black Gate to turn the tide. And most famously, after Frodo and Sam are stranded on the slopes of Mount Doom with lava closing in, the eagles appear out of nowhere to carry them to safety.

Tolkien defenders argue the eagles were established earlier in the story and therefore aren’t deus ex machina. I disagree. Eagles existing in the world isn’t the same as a logical reason for them to appear at the right moment.

The eagles show up because the plot needs them, and nothing in the story demanded their arrival. That’s the definition of the device. It threw me out of the book, and it threw me out of the movie.

Tolkien was a genius. The Lord of the Rings is among the greatest works of fiction ever written. But even great writers reach for the easy solution sometimes, and the eagles are the easy solution.

When It Works: War of the Worlds

Not every deus ex machina is a failure. H.G. Wells’ War of the Worlds uses the device deliberately and effectively. The Martians are invincible. Humanity throws everything it has at them and nothing works. Guns, artillery and military strategy all prove useless. The reader is watching the extinction of the human race in real time.

Then the Martians die. Earth’s bacteria kill them, and no human weapon ever does. They have no immune system for a planet they didn’t evolve on. It’s a deus ex machina in the strictest sense: a solution that comes from outside the characters’ actions. It works because it serves the theme. Wells is saying humanity was helpless and survived on biological luck, and cleverness had nothing to do with it. The deus ex machina is the message.

This is the rare case where the device is the right choice. Wells wasn’t lazy. He was making an argument about human insignificance in the face of forces beyond our control. The “contrived” ending is the point of the book.

I tell writers to look at intent. Wells built the whole book to point at that ending, so the rescue lands as an argument. The lazy version gets chosen at the last minute by a writer who’s run out of ideas and hopes the reader won’t notice, and the reader always does.

How to avoid a deus ex machina

Keep the ending earned, not gifted

✓

Plant the solution early

The rescue should use something the reader already saw established.

✓

Let the hero solve it

The protagonist’s choices, not luck, should resolve the climax.

✓

Make it cost something

An easy, painless save reads as cheating; a hard one earns belief.

✓

Follow the story’s own rules

Resolutions must obey the logic the book already set up.

How to avoid a deus ex machina: plant the solution early, let the hero solve it, make it cost something, and stay inside the story’s own rules.

How Do You Avoid Deus Ex Machina?

The practical problem for writers is simple: you’ve trapped your characters and you need to get them out. The temptation to reach for an external rescue is strong, especially late in a draft when you’re tired and the deadline is close. Resisting it takes four steps.

First, work backward from the resolution. If you know how the climax ends, you can plant the elements earlier in the story that make the ending feel inevitable instead of contrived. The best plot twists are the ones where the reader looks back and realizes the answer was there all along.

Second, let your characters solve their own problems.

The resolution should come from something the protagonist knows, has, or becomes during the course of the story. If your hero needs a weapon to defeat the villain, that weapon should exist in the story before the final chapter. If your hero needs a skill, they should have learned it or struggled with it earlier.

Third, if you find yourself reaching for a deus ex machina, that’s a signal your plot needs restructuring. The impossible corner your character is in might mean you need to go back and change the setup. Sometimes the best fix for a broken ending is rewriting the middle.

Fourth, test it with a simple question: could a reader have predicted this resolution was possible based on what came before?

They don’t need to have predicted it would happen. But the elements that make it possible should already be in the story. If the answer is no, you’ve got a deus ex machina on your hands.

A deus ex machina in a finished book is hard to forgive. A draft is allowed to have one, because drafts are where you find out what’s broken. Publishing it means the writer saw the problem, decided the reader wouldn’t mind, and shipped it anyway, and that’s a choice to cheat the people who trusted the story.

Frequently Asked Questions

What is deus ex machina?
Deus ex machina is a plot device where a seemingly unsolvable problem is suddenly resolved by an unexpected, unearned intervention, a contrivance with no setup or logical connection to what came before. The term, Latin for “god from the machine,” comes from ancient theater where a god was lowered in to fix the plot. Today it signals lazy storytelling.
Why is deus ex machina considered bad writing?
Because it breaks the implicit contract with the reader that problems will be solved through the logic of the story and the characters’ choices. An unearned, out-of-nowhere rescue feels like cheating, deflating the tension the writer built and undermining the characters’ agency. Readers feel manipulated instead of satisfied.
How do you avoid deus ex machina?
By setting up solutions in advance and letting characters work for their resolutions. If a tool, ally, or escape is going to save the day, plant it earlier so the payoff feels inevitable instead of convenient. Resolutions should grow out of the characters’ choices and the world’s established rules, not arrive from nowhere to bail them out.

Writing It Yourself? Keep Going.

If you want a professional in your corner while you write, my writing coaching works one on one without taking the pen out of your hand. The Plot Handbook takes this topic deeper.

About the Author
Richard Lowe, professional ghostwriter

Richard Lowe is a professional ghostwriter and author with 113+ books authored and 54+ ghostwritten. Before writing full time he spent 33 years in enterprise technology, including 20 years as Director of Computer Operations and Technical Services at Trader Joe's. He writes nonfiction, fiction and memoir, and works with executives and experts on books that build authority.

More about Richard Lowe →

Disclaimer

The views and opinions expressed in this blog post are solely those of Richard Lowe and are based on personal experience and research. This content is for informational purposes only and should not be construed as professional legal, financial, accounting, or business advice. Always consult with qualified professionals before making important business or legal decisions. Richard Lowe is not a lawyer, accountant, or licensed professional advisor, and this content does not establish any professional relationship.

6 comments
Was this useful?

Leave a comment