Deus Ex Machina: Latin for “Don’t Do This in Your Story”

By the time you reach the end of your book, you’re sometimes out of steam, sometimes out of ideas, sometimes sick of your story, and sometimes just plain wrong about how to end it. As a result, you might find yourself walking through yellow caution tape into the pothole of deus ex machina before you realize the danger.

“What is this deuced deus ex machina?” you ask. “It’s all Greek to me,” you say.

Well, actually, it’s Latin. If we wanted to get technical, we could talk about how the phrase literally translates “god from a machine” and was originally a reference to the “god” (played by an actor) who descended (via a “machine”) at the end of Greek and Roman plays to solve the mortal characters’ problems and put everything in order for a happy ending.

However, for our 21st-century English purposes, we’d be just as accurate to say it translates “don’t do this in your story.”

5 Reasons to Avoid Deus Ex Machina

At first glance, deus ex machina—the idea of all the plot problems being fixed in one fell swoop—might seem like a good idea. But the only thing deus ex machina is guaranteed to secure is readers’ low opinion of your book. This plot device might have worked for the ancient Greeks and Romans (although Aristotle might—and did—argue that point), but for modern authors it presents a number of difficulties.

Let’s examine five of the problems deus ex machina can create in your story.

1. Deus Ex Machina Robs…

…cohesiveness by introducing a new element at the eleventh hour. To reach full potential, every piece of your story must be part of a consistent whole.

For Example: If the cavalry has no place in your western, the Climax in which it charges in to save the pioneers won’t seem logical or resonant.

2. Deus Ex Machina Frustrates…

…readers by taking power out of the characters’ hands. Readers want to see characters put under excruciating pressure, so they can then observe the characters’ reactions and, usually, their tenacity, skill, and courage in escaping and triumphing.

For Example: When the damsel tied to the railway tracks is saved at the last minute by a handsome stranger, the heroine herself becomes a non-factor.

3. Deus Ex Machina Endangers…

…suspension of disbelief through unlikely coincidences. Miracles may occasionally happen in real life, but in fiction coincidences tend to make readers scoff.

For Example: When your characters escape their mafia debts by winning the lottery or being adopted by a little old lady millionaire, the result is both unsatisfying and difficult to believe.

4. Deus Ex Machina Cheats…

…readers by eliminating proper foreshadowing. In order to achieve resonance, stories need to provide all the puzzle pieces to readers by the time they reach the Climax. The foreshadowing found in the characters’ previous struggles will lead up to the moment when they use the lessons learned in those struggles to overcome this ultimate challenge.

For Example: When the hero suddenly develops magical powers at the last moment, his escape from danger won’t be satisfying because it’s too different from the one readers expected.

5. Deus Ex Machina Disappoints…

…readers by removing characters from danger too soon. After waiting 300 pages to reach the Climax, readers want to see the characters sweat. They want to see them pushed to the very brink of their physical, mental, and moral endurance—and then rise up from their own ashes to conquer both inner and outer demons.

For Example: When the avenging angel swoops in to save the characters, the result is anticlimactic. Instead of thrilling readers, your ending is more likely to have them heaving your book across the room.


Deus ex machina comes in many different guises, but once you learn how to look for it, you can squish it on sight and save your readers from wanting to think up uncomplimentary Latin translations.

Wordplayers, tell me your opinions! Have you ever written a story that ended with deus ex machina? Tell me in the comments!

Click the “Play” button to Listen to Audio Version (or subscribe to the Helping Writers Become Authors podcast in Apple Podcast or Amazon Music).


Love Helping Writers Become Authors? You can now become a patron. (Huge thanks to those of you who are already part of my Patreon family!)

Sign Up Today

hwba sidebar pic

Sign up to receive K.M. Weiland’s e-letter and receive her free e-book Crafting Unforgettable Characters: A Hands-On Introduction to Bringing Your Characters to Life.

About K.M. Weiland | @KMWeiland

K.M. Weiland is the award-winning and internationally-published author of the acclaimed writing guides Outlining Your Novel, Structuring Your Novel, and Creating Character Arcs. A native of western Nebraska, she writes historical and fantasy novels and mentors authors on her award-winning website Helping Writers Become Authors.


  1. Here’s a great podcast explaining how to make it work, with examples and more on what the god showing up actually means about the Greek protagonist. The author needs to do a lot of work before the god shows up.

  2. Thanks for sharing the link. I’ll be interested in the opposite viewpoint.

  3. Great post, K.M. All great points. Thanks for sharing the guidance.


  4. Glad you found it useful, James!

  5. Great post! I hope I’ve eliminated this problem by choosing to go along with the ending my characters said must take place. I guess I’ll let my critter and beta readers decide it they were right. 😉

  6. I can see how a weak ending can ruin a good story but I do like having all the threads neatly tied.

  7. @Lorna: Characters are almost always right!

    @Bella: It’s absolutely possible to tie off all the loose ends without resorting to a weak ending that puts the power of action into the hands of someone other than your main character.

    • Henry Tjernlund says

      Agreed. I’m tired of the hero’s journey ending where the hero pulls one last ultimate thing out of THEIR ass, which if it had been there then why didn’t they use that first? Nothing wrong with having the day saved by a higher power if it’s done well.

      Thus I disagree with this article.

      • K.M. Weiland | @KMWeiland says

        “Done well” equals “properly foreshadowed”–in which case it’s not deus ex machina at all. Actually, I think we could make the argument that what you’re talking about here–the unforeshadowed weapon or technique that the hero thinks of only at the last minute–is a form of deus ex machina in itself.

  8. Solving problems through an act of god, the guy desperate for money suddenly winning the lottery, or the baddie who has everybody beaten conveniently dropping dead from a heart attack, always feels hollow in fiction even though it would be an amazing thing in real life. It’s just too easy and if anyone could have solved the chracters’ difficulties, why would anyone want to read it?

    Very interesting post, cheers.

    Moody Writing

  9. Problems solved through outside influences often feel like cheating. If all the character’s problem needed all along was a little pixie dust, why didn’t the author just sprinkle it at the beginning before putting his poor character through the ringer for no good reason? It’s not good logic. And readers, for all their creative whimsy, are very logical creatures.

  10. Oh, yes, I’ve realized this is the main issue with the second novel in my series. Yikes. At least I realized it before I uploaded it somewhere like Amazon. Why in the world didn’t that happen on page 200 instead of waiting till page 500. None of this bad stuff would’ve happened and my characters could’ve lived far happier lives. Yeah, it’s time to revise. Thanks for posting about this flaw, K.M.

  11. This is one of those whoopsies we often stick into stories without even realizing what we’ve done. Deus ex machina has a nasty habit of masquerading under the guise of innocent-looking plot twists. A good beta reader – even if he can’t call the flaw by name – can help us figure out when the ending isn’t satisfying.

  12. I think you are right about avoiding this kind of ending. I wonder about my own MS with this issue. It isn’t anything like winning the lottery, but at the last minute one of the MC’s changes course and does the one thing that she knows she isn’t “allowed” to do which solves the conflict. It could have had disastrous results, but ends up working. However that wasn’t the only conflict in the book, and not the only thing that gets solved, so it avoids the pixie dust question. It’s just so easy to write yourself into a corner and not know how to write your way out, lol. Great post!

  13. So long as you’ve foreshadowed “the one thing” your character ends up doing, you’re probably safe. The problems with that type of ending arise when the change in course comes out of the blue.

  14. This has come in a timely manner for me. The ending of my current WIP has thrown me. I thought I had it all worked out and now I’m having second thoughts on how to see it go through. There are too many choices and I am very indecisive. But one thing I am certainly not doing is leaving fate up to someone other than my MC. I hate those (above mentioned) endings as well. They rarely work. I think my own problem will come with lots and lots of revisions in loo of better prep work, creating more of an internal struggle for the MC so that its more clear what SHE has to overcome to succeed.

    huh…think I just solved my own problem right there =)

  15. Endings are second only to beginnings in toughness. I don’t think I’ve ever ended with one that didn’t take me at least three attempts to get it right in the first draft. And I always end by swearing that I’ll make sure I have fewer loose ends to tie off in the next book!

  16. Stephen King did this at the end of Needful Things. Instead of the characters finding a way to win, he let some completely out-of-left field thing defeat the antagonist in the most ridiculous way. It was a tiresome book to begin with and I only finished it to see how the conflict resolved. Total robbery.

  17. Many of my early stories are full of deus ex machina plotting, but in the books I’ve published, I made great use of foreshadowing to forestall the betrayal a reader would feel had I made no reference to it before.

    In several episodes of the Star Trek franchise, I see it a lot. A character whose fear of transporter accidents seems to be fulfilled, winds up being more confident about transporting when it’s over. Kirk’s overriding obsession to kill a monster sometimes has an illogical turnaround in the end: “Maybe you thought we were invading you.” Sitcoms like The Brady Bunch and The Facts of Life are notorious for this as well.

    If an author has to use miracles, make sure reasons for it are in place, such as the enemy’s disbelief in them, coupled with the hero’s plea to God for help. And they’re always subtle. No Red Sea parting, no flash of thunder, as in amateurish attempts. Just small things that can be interpreted in “natural” terms by unbelievers. Still, it’s good to not recommend it to beginning writers, as the temptation is too strong to make it an epic event.

    ~ VT

  18. I’m working on the last chapters of a rough draft right now. Even though I don’t have a god being lowered onto the stage, you’ve made me put some thought into what’s going on with my MC. Thank you!

  19. Great post! It’s quite odd really, we were always taught that it was a good thing in school. Guess they were lying.

  20. @cvwriter: Haven’t read that one – and don’t think I will now!

    @Victor: You make a good point. We tend to think of Miracles as capital-letter events. But, outside of the Old Testament, that’s rarely how they appear anymore. Sometimes the sunrise is a miracle. Sometimes a phone call is a miracle. Sometimes a jammed gun is a miracle.

    @VV: Yep, put on that old thinking cap. Never hurts to brainstorm half a dozen ideas for the conclusion, so you can then pick and choose the best one.

    @Aimee: Really? I’ve never run across deus ex machina being taught as a preferable thing. That’s a little disturbing.

  21. I can smell the writers from “Lost” burning already. Great post at usual K.M

  22. I haven’t gotten around to watching Lost yet, but, from what I’ve heard about the ending, it sounds like a prime example of this.

  23. Good post. To answer your question. Yes. My current effort. Need to rewrite the ending though because I recognise the problem. Thanks.

  24. Rewrites – what would we do without them? Glad the post was useful.

  25. Thank you! I received some good advice about avoiding deus ex machina. Imagine taking all the nuts and bolts, the scenes of the story and all their components, characters, back story, dialogue, etc, and look at them hard. See if you can synthesize them together to form a solution to your present dilemma. If not, you will probably need to go write in a scene to set up for the conclusion. Great reminder. Thank you again!

  26. Yep. To be consistent and resonant, the finale needs to include as many of the previous elements as possible. And that is definitely even tougher than it sounds.

  27. LOL, I’m perpetually writing deus ex machina’s into my stories but fortunately I’m bright enough to see them and kill them (but not bright enough not to write them in the first place 😉
    Great post.

  28. Sometimes we just have to write things to get them out of our systems. I’m that way with character backstory info dumps. Write’ em and delete ’em. Write ’em and delete ’em.

  29. You are spot on! This device really annoys me as a readers. Which means it’s a good idea to avoid it as writers! But can be awfully tempting when we feel suck in a corner. Just goes to show that easy is rarely ever best when it comes to the world of writing.

    Thanks for the insight, K.M!

  30. I know! How great would it be if we could solve all our plot problems with a bolt of lightning and a Charlton Heston-esque voice from the sky. But, really, I don’t think we’d end up getting much more satisfaction from that than our readers do.

  31. It wasn’t until I wrote a fanfiction book that I figured out how to finish a book. You would call my ending deus ex machina, but I actually wrote the last chapter first. I had to take the characters from where they were to where I wanted them to be knowing all along that I was going to use the ending I chose. It was hinted at very early in the book, and alert readers would’ve caught the information. If they didn’t the first time around, they surely would in the second reading. For me, I can’t finish a book until I’ve seen the ending. Sooo I get the first chapter and the characters set then head to the ending. The rest can fit inside, and there will be small hints to where the story is heading. Not everyone likes a deus ex machina ending, but there are a few readers out there who do (probably the same ones who liked the movie Knowing). I have every intention of writing another novel with a similar ending, and it’s pre-planned, not a last-minute cop out.

  32. So long as the ending is foreshadowed, you’re probably safe, although I would suggest that if a reader has to read the book twice to catch the foreshadowing, it probably isn’t strong enough. Everything should click into place at the climax. Even if the reader didn’t consciously think about the foreshadowing *when* he read it, he should be able to remember it at the climax and go, “Oh, so that’s what that was all about!”

  33. Yes! The deus ex machina! I always think that Data from Star Trek: The Next Generation was the ultimate DEM. the writers could get the crew into any and all trouble and NO PROBLEM we’ll just have Data come along and save them because he doesn’t breathe/doesn’t eat/can’t be hurt/is as strong as ten men/etc.

  34. Haha! Great example. And it *almost* works, just because the character is a long-established part of the story.

  35. Peter Hamilton’s Night’s Dawn trilogy is the very worst case of this I’ve ever seen. Three fat novels, with the situation getting worse on every page, and, just as you’re starting to look at the diminishing wadge of pages in book 3 and thinking, “How the hell is he going to resolve all this in so little space?”, up pops the old deus and waves a magic wand.

    Despite this, it doesn’t seem to have done Hamilton’s career any harm.

  36. It’s amazing what popular authors can get away with. Just goes to show, you can break every rule in the book, so long as you’re brilliant – and sometimes when you’re not.

  37. Anonymous says

    Thanks for a thought-provoking article!

    One thing I’d add is that not all stories are about conflict and resolution. If your book is a black comedy with a downtrodden hero, then a deus ex machina ending might work in spite of the fact – or even because of the fact – that it renders his efforts arguably moot. I can’t think of an example, but I suspect a tongue-in-cheek deus ex machina could be used to create bathos, and work to humorous effect precisely because it is a big let down.

    Going back to more traditional story- and character-driven fiction, I think some deus ex machinas are worse than others. I think the least offensive are ones where we feel the protagonist has at least *earned* the assistance or indulgence by doing a great or noble act, which – even though it failed to secure victory in story terms – represents some kind of victory over the self, and the successful completion of an “inner journey”.

  38. Good points. We can always find at least one story that breaks every general rule. Comedy and satire tend to be able to break more rules than other genres. And I’ll definitely concur that there are varying degrees of offense offered by deus ex machina.

  39. It’s a great literary example but interestingly enough Deus Ex is also a story that is layered with a number of subtle twists and turns that all center on the manipulations of humanity. Kind of interesting how the concept was twisted.. great literary analysis.

  40. Actually, I’m not referring to any one story here – just the deus ex machina technique in general. Glad you enjoyed the post!

  41. How do you rate the ghosts at the end of Lord of the Rings from this point of view? I know they didn’t solve all the problems, but they were a pretty big help that seemed to make the humans deaths in the battles a bit pointless.

  42. What are your thoughts on miracles that don’t save the characters out of danger in one grand swoop, per se, but are believed, trusted God for, and foreshadowed? I’m a firm believer that Jesus is still in the miracle-working business, so a lot of that reflects in my writing and, hopefully, encourages readers to believe Him for big things. I definitely don’t want to make readers scoff, but I also don’t want the theology in my writings to make God out to be anything less than the Almighty He is. Do you have any thoughts about that?


    • K.M. Weiland | @KMWeiland says

      Miracles, of any kind, only work in fiction if they are “the point”–in the sense that they are properly foreshadowed and built up to, and then paid off in a way that makes them matter beyond a simple and convenient way to move the plot. I’ve read more than one Christian novel that, in my opinion, severely weakened both its plot and theme by throwing miracles around too casually.


  1. […] It’s basically Tip Number One to Cheat Your Way Out of Creating an Actual Plot. (Read this excellent post by K.M. Weiland talking about this further.) […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.