A deus ex machina is a sudden, unearned solution to a story's problem: a person, power or lucky event that arrives from outside the plot, at the last moment, to save characters who could not have saved themselves. The phrase is Latin for "god from the machine". It is pronounced DAY-us eks MAH-kih-nuh, and Merriam-Webster also lists MACK-ih-nuh.
The name comes from the Greek theatre, where a crane lifted an actor playing a god over the stage to settle the plot. Aristotle complained about it more than two thousand years ago, and his rule is still the best fix a novelist has. Every quote below was checked in the original text or a standard translation.
What Does Deus Ex Machina Mean?
Literally, "a god from the machine". Merriam-Webster gives two senses. The modern one is "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". The older one is "a god introduced by means of a crane" in Greek and Roman drama "to decide the final outcome".
The key word is contrived. A rescue is not a deus ex machina because it is surprising, or because it comes from outside the hero. It is one when the story did nothing to earn it: no set-up, no cause, no choice by the characters that brought it about.
Three things usually mark one:
- It comes late. The problem looks hopeless, and the solution appears at the climax.
- It comes from outside. A new character, a new power, a coincidence or an act of nature solves it, not the people the story is about.
- It was never set up. On a second read there is nothing earlier in the book that points to it.
Where Does Deus Ex Machina Come From?
From the mēchanē, a stage crane in the Athenian theatre of the fifth century BC. An actor playing a god could be swung out above the stage building and appear in the air, to announce the gods' will and end the play. Merriam-Webster notes that Euripides "was one playwright who made frequent use of the device."
Euripides' Orestes is a clear case. Orestes is on the roof with a sword at Hermione's throat and the palace about to burn. Then, in E. P. Coleridge's translation, "Apollo appears from above with Helen", and calls down: "Menelaus, calm your anger that has been whetted; I am Phoebus, the son of Leto". The god announces that he saved Helen himself, orders Orestes to marry Hermione, and the quarrel is over.
The Latin deus ex machina is a translation of a Greek phrase, theos ek mēchanēs, a god from a machine (Merriam-Webster's etymology). It reached English late in the seventeenth century: Merriam-Webster dates its first known use to 1697.
What Did Aristotle Say About Deus Ex Machina?
He said the ending must come out of the story. In chapter 15 of the Poetics, in S. H. Butcher's translation:
"It is therefore evident that the unravelling of the plot, no less than the complication, must arise out of the plot itself, it must not be brought about by the 'Deus ex Machina'"
His examples follow at once: "as in the Medea, or in the Return of the Greeks in the Iliad."
He allowed the machine one job: "The 'Deus ex Machina' should be employed only for events external to the drama", that is, "for antecedent or subsequent events, which lie beyond the range of human knowledge, and which require to be reported or foretold". A god can tell the audience what happened before the play began, or what will happen after it ends. A god should not untie the knot.
His two examples are worth knowing. At the end of Euripides' Medea, Medea escapes punishment in a chariot given her by the Sun. In David Kovacs's translation she tells Jason, "your hand can never touch me: such is the chariot Helios my grandfather has given me to ward off a hostile hand." W. H. Fyfe's note on the passage calls it "a result not 'caused' by what has gone before". In Book 2 of the Iliad, the Greek army runs for the ships to sail home, and only Athena's intervention stops them: in Fyfe's note, "the arbitrary (i.e., uncaused) intervention of Athene".
Aristotle was not the first to complain. In Plato's Cratylus (425d, Harold N. Fowler's translation), Socrates likens taking an easy way out of an argument to "the tragic poets, who, when they are in a dilemma, have recourse to the introduction of gods on machines". Two Romans said the same:
- Horace, Ars Poetica 191-192: "nec deus intersit, nisi dignus uindice nodus / inciderit". In our translation: let no god step in, unless the knot is worthy of such a rescuer.
- Cicero, On the Nature of the Gods 1.53, has the Epicurean Velleius mock the Stoics, who are "ut tragici poetae cum explicare argumenti exitum non potestis, confugitis ad deum": like the tragic poets, when you cannot work out the ending of your plot, you run to a god.
Horace's line is the useful one for a novelist. It does not ban outside help. It says the help must be equal to the problem, and the problem must be one the story has built.
What Are Examples of Deus Ex Machina?
| Work | The rescue | Earned? |
|---|---|---|
| Euripides, Orestes (408 BC) | Apollo appears above the palace and settles every quarrel | No. The god arrives from outside and decides everything |
| Euripides, Medea (431 BC) | The Sun's chariot carries Medea away | Aristotle's own example of an ending not caused by the plot |
| Homer, Iliad, Book 2 | Athena stops the Greeks sailing home | Aristotle's second example |
| William Golding, Lord of the Flies (1954) | A naval officer lands just as Ralph is about to be killed | Sudden, but the irony is the point (below) |
| H. G. Wells, The War of the Worlds (1898) | The Martians die of earthly bacteria | Set up earlier in the book (below) |
| J. R. R. Tolkien, The Lord of the Rings | The Eagles carry Frodo and Sam from Mount Doom | Used, Tolkien said, sparingly (below) |
Lord of the Flies. The rescue at the end is often listed as a deus ex machina, and it is sudden. Golding's own statement on the book, written shortly after publication in a publicity questionnaire for his American publisher, Coward-McCann, shows the officer is not there to make things right: "The officer, having interrupted a man-hunt, prepares to take the children off the island in a cruiser which will presently be hunting its enemy in the same implacable way. And who will rescue the adult and his cruiser?" The rescue does not resolve the theme. It turns it round on the adults.
The War of the Worlds. The Martians die of disease, which reads like luck. Wells set it up. In Book Two, chapter 2, the narrator describes how Martian bodies differ from ours, and the last difference is "what one might have thought a very trivial particular. Micro-organisms, which cause so much disease and pain on earth, have either never appeared upon Mars or Martian sanitary science eliminated them ages ago." In chapter 6 the red weed from Mars dies of "A cankering disease, due, it is believed, to the action of certain bacteria". When the Martians fall in chapter 8, the narrator says it had come about "as indeed I and many men might have foreseen had not terror and disaster blinded our minds." Two plants, then the payoff: that is the difference between a deus ex machina and an ending the reader could have predicted.
The Eagles. Tolkien knew the risk. In a 1958 letter to Forrest J. Ackerman about a proposed film script (Letter 210 in The Letters of J. R. R. Tolkien), he wrote: "The Eagles are a dangerous 'machine'. I have used them sparingly, and that is the absolute limit of their credibility or usefulness." He put the word machine in quotation marks himself.
Is a Deus Ex Machina Always Bad?
No. It is bad when the reader feels cheated, and that happens when the story promised that the characters' choices would decide the ending, then took the decision away from them.
There are three cases where outside help works:
- It was set up. Wells planted the bacteria twice. The reader was told, and forgot. That is foreshadowing, not a god.
- It is the point. Golding's officer is sudden because the book wants the reader to see that the adults are no better. The rescue is ironic, and it asks a question instead of answering one.
- It is a joy the story has prepared for. Tolkien called the happy turn of a fairy story a eucatastrophe, "the good catastrophe, the sudden joyous 'turn'" ("On Fairy-Stories"). It can come late and from outside, but it only works when the characters have already done everything they could. Frodo reaches the mountain before the Eagles come.
Aristotle's own exception still holds too. A god, a narrator or an epilogue can tell the reader what happens after the story ends. That is not the machine untying the knot. The knot is already untied.
How Do You Avoid a Deus Ex Machina?
Make the ending come out of the story, as Aristotle said. In practice:
- Name the problem the climax must solve. Write it in one line: "Lena and Pip are cut off by the tide on the sands."
- Ask who solves it. The protagonist should do the deciding act, even with help. If a new character or a coincidence does it, rework the scene.
- Plant the solution early. Give the reader the tool, the skill, the ally or the fact well before it is needed, inside a scene about something else. Two plants are safer than one.
- Make it cost something. A rescue the hero pays for feels earned. A free one feels like a gift from the author. When one character gets free rescue after free rescue, readers call it plot armor.
- Pay a debt the story owes. An ally who arrives at the end should have a reason, set up earlier, to come.
- Use coincidence to cause trouble, never to end it. A lucky break that gets the hero into a mess is fine. One that gets them out is a deus ex machina.
- Read the climax backwards. For each thing that saves the day, find the earlier scene that set it up. If there is none, add one, or change the rescue.
This is the other side of Chekhov's gun. Chekhov's rule says a detail that is set up must pay off. The rule against a deus ex machina says a payoff must have been set up. Brandon Sanderson put the same idea into the first of his laws of magic: a magic that solves the problem has to be one the reader understands.
A Worked Example
Lena and her little brother Pip go out to the sandbanks at low tide to dig for cockles.
The deus ex machina version:
- The sands. They dig too long, and the tide turns.
- Cut off. The water closes behind them. The bank is shrinking. They cannot swim it.
- The rescue. A fisherman nobody has mentioned rows out of the mist and takes them home.
The fisherman solves the problem, the story has never seen him, and Lena does nothing. It is a god from a crane with a boat instead of a chariot.
The earned version:
- Gran's poles. Set-up: Gran shows Lena the old line of posts across the sands. "The cart road. Follow the posts and the bottom's firm. Step off and it isn't."
- The sands. They dig too long, and the tide turns.
- The broken watch. Set-up: Pip drops Lena's watch in a pool. She no longer knows how long they have.
- Cut off. The water closes behind them. The bank is shrinking.
- The posts. Rescue: Lena finds the first post through the mist, then the next, and walks Pip home along the cart road, waist-deep, counting.
Scene 1 plants the solution inside an ordinary moment. Scene 3 raises the cost. Scene 5 has Lena save them with something the reader saw and forgot. There is still help from outside (Gran's knowledge), but it was given in chapter one, and Lena has to use it herself.
How Do You Check for a Deus Ex Machina in Deckle?
Deckle is a novel-writing app, and its Outliner is a board of cards, one for every document in the book, each with a synopsis. That is enough to check that the ending is set up before you draft it.
- Open the Outliner on the Draft and add a card for each scene with Add › Scene.
- In each synopsis, say what the scene does: "Set-up: Gran shows Lena the posts across the sands."
- Find the rescue card. In its synopsis, write what solves the problem and who does it.
- Open a scene and make two labels, "Set-up" and "Rescue", each in its own colour (the pencil beside Status in the Inspector's Properties opens Edit labels & statuses).
- Set "Rescue" on the scene where the problem is solved, and "Set-up" on every scene that plants what solves it.
- Switch the Outliner to its list and read down the colours. Every rescue needs at least one set-up above it. A rescue with nothing above it is a deus ex machina.
- To fix one, add a set-up scene early with Add › Scene and drag it up the board, or write the plant into an existing scene's synopsis.
If the rescue comes from a character, give them a Codex entry and write down why they come and when the reader first meets them. When the draft is done, reading it for plot holes checks that nothing in the rescue contradicts an earlier scene.
Common Mistakes
- Calling every surprise a deus ex machina. A plot twist the story has clued is not one. The test is the set-up, not the shock.
- Introducing the rescuer at the climax. A new character who arrives to save the day is the classic case. Introduce them early, for another reason.
- New rules at the end. A power, a law or a gadget the reader learns about in the same scene it solves the problem is a god on a crane.
- A passive hero. Even an earned rescue goes flat if the protagonist only watches. Give them the last decisive act.
- "It was all a dream." Waking up erases the problem instead of solving it, and readers feel it as the same cheat.
- Fixing it with a single, obvious plant. If the set-up shouts, the reader sees the ending coming. Hide it in a scene about something else, and plant it twice.
What Do Deus Ex Machina Guides Get Wrong?
- "Aristotle coined deus ex machina." He wrote in Greek. His phrase in Poetics 15 is apo mēchanēs, "from the machine", with no god in it. Butcher's translation puts the Latin into Aristotle's mouth.
- "Horace Walpole coined the term." Some film-writing sites credit Walpole and The Castle of Otranto (1764). Merriam-Webster dates the first known English use to 1697, twenty years before Walpole was born, and the Latin is older still.
- "Medea is rescued by a god." In Aristotle's example no god appears. Medea escapes in the Sun's chariot, the gift of her grandfather Helios. Kovacs's stage direction has her "aloft in a winged chariot upon the mechane": the crane is there, the god is not. What Aristotle objects to is that the escape is not caused by the plot.
- "Outside help is always a deus ex machina." Horace allowed a god when the knot was worthy of one, and Tolkien's eucatastrophe depends on a turn the characters cannot make alone. The fault is the missing set-up, not the help.
FAQ
What does deus ex machina mean?
"God from the machine" in Latin. In fiction it means a sudden, contrived solution from outside the plot that saves characters who could not save themselves.
How do you pronounce deus ex machina?
DAY-us eks MAH-kih-nuh. Merriam-Webster also lists MACK-ih-nuh for the last word.
Where does the term come from?
From Greek tragedy, where a stage crane, the mēchanē, lifted an actor playing a god above the stage to settle the plot. The Latin phrase translates the Greek theos ek mēchanēs.
Who criticised the deus ex machina first?
One of the earliest surviving complaints is Plato's. In the Cratylus, Socrates mocks tragic poets who "have recourse to the introduction of gods on machines". Aristotle's Poetics 15 gives the rule: the unravelling of the plot "must arise out of the plot itself".
Is the ending of The War of the Worlds a deus ex machina?
It is often called one, but Wells set it up. Book Two, chapter 2 says Mars has no micro-organisms, and the red weed dies of bacteria in chapter 6, before the Martians do.
What is the opposite of a deus ex machina?
An ending that arises from the plot: the protagonist solves the problem with something the story has set up. The closest named idea is Chekhov's gun, the rule that every set-up must pay off.
What is the difference between deus ex machina and eucatastrophe?
Tolkien's eucatastrophe is "the sudden joyous 'turn'" of a happy ending. It can come late and from outside, but it works because the characters have done all they can first. A deus ex machina replaces their effort.
Sources
Retrieved 26 October 2026.
- Merriam-Webster, "deus ex machina": definitions, pronunciation, etymology, "Did you know?" note and first known use (1697).
- Aristotle, Poetics, translated by S. H. Butcher, Project Gutenberg eBook 1974, chapter 15.
- Aristotle, Poetics 1454b, translated by W. H. Fyfe (Harvard University Press, 1932), with notes, Perseus Digital Library; Greek text.
- Plato, Cratylus 425d, translated by Harold N. Fowler (Harvard University Press, 1921), Perseus Digital Library.
- Horace, Ars Poetica, lines 191-192, The Latin Library.
- Cicero, De Natura Deorum 1, section 53, The Latin Library.
- Euripides, Medea, translated by David Kovacs, Perseus Digital Library.
- Euripides, Orestes, translated by E. P. Coleridge, Perseus Digital Library.
- H. G. Wells, The War of the Worlds (1898), Project Gutenberg eBook 36, Book Two, chapters 2, 6 and 8.
- William Golding, statement on Lord of the Flies in a publicity questionnaire for Coward-McCann, as quoted in Lord of the Flies: Notes (Cliffs Notes) (archive.org) and in Harold Bloom (ed.), William Golding's Lord of the Flies (Chelsea House, 1996) (archive.org).
- Humphrey Carpenter (ed.), The Letters of J. R. R. Tolkien (1981), Letter 210, to Forrest J. Ackerman, June 1958 (archive.org).
- J. R. R. Tolkien, "On Fairy-Stories", on eucatastrophe, in Tree and Leaf (archive.org); also quoted in Verlyn Flieger, Splintered Light (archive.org).