How To Write A Locked-Room Mystery

How To Write A Locked-Room Mystery: The Secret To The Impossible Crime

Want to write a locked-room mystery? Discover how to create an impossible crime that keeps readers guessing until the final reveal.

What Is A Locked-Room Mystery?

A locked-room mystery revolves around a crime that seems impossible to solve. The victim is found in a locked room or sealed space. The killer seems to have had no way in or out.

Readers want answers to two key questions:

  1. Who committed the crime?
  2. How did they do it?

The how matters even more than the killer’s identity. You must create a puzzle, plant clues, and show how the crime happened.

What Is The Difference Between A Locked-Room And A Closed-Circle Mystery?

A locked-room mystery asks how a crime could happen in a sealed space. A closed-circle mystery asks who committed a crime within a small group of suspects who are cut off from the outside world.

How To Write A Locked-Room Mystery

1. Create The Crime And Design The Room

Start with a crime that makes everyone ask, ‘How could anyone have done this?’

A body is found in a locked room. The windows are shut. There are no footprints. Nobody saw anyone enter or leave. Every detail makes the crime seem impossible.

Example: In The Mystery of the Yellow Room, a woman is attacked in a room that appears to have been locked from the inside.

Map out the room, marking the doors, windows, furniture, locks, and possible entrances or exits.

Example: The Three Coffins shows how the details of a crime scene can form part of the puzzle. It also shows how false beliefs lead people astray.

Writing tip: Know why the crime seems impossible before you write the story.

2. Choose Your Victim Carefully

Give your victim a reason to matter to the story. They may have secrets, enemies, debts, or a past that gives someone a reason to kill them. Each suspect should have a clear link to the victim and something to hide.

Writing tip: Decide what your victim knows, what they have done, and who wants them dead. Use these details to create suspects, motives, and clues.

3. Work Out The Solution First

Solve the mystery before you start writing. Decide who did it, why they did it, and how they pulled it off. Work out how they made the room seem secure.

Here are seven possible ways to solve a locked-room mystery.

  1. A Secret Passage Or Hidden Exit — A hidden door or passage gives the killer a way in or out.
  2. A Delayed Mechanism — The killer sets something in motion before the room is locked. It causes the death later.
  3. A Misleading Lock Or Crime Scene — The detective gets the wrong idea about how the door was locked or where the victim died.
  4. A False Timeline — The victim died at a different time from the one first thought. This can expose a false alibi.
  5. A Misleading View Or Missing Trail — A reflection, a poor view, or a lack of footprints leads people to the wrong answer.
  6. A Killer Hiding In Plain Sight — The murderer stays in the room or passes through it without being noticed.
  7. A Staged Crime Scene — The killer changes the scene to make the crime look different from what really happened.

These are starting points. Choose a solution that suits your characters and setting, then work backwards so that the details fit.

Writing tip: Every clue should fit the final solution.

4. Create A Circle Of Suspects

Give each suspect a reason to attract the detective’s attention: a motive, a secret, a false story, or an opportunity to commit the crime.

Several suspects must seem capable of the murder. Their motives and actions should complicate the investigation.

Example: In The Chinese Orange Mystery, the unusual crime scene creates a puzzle while the suspects and their relationships add further complications.

Writing tip: Give each suspect something to hide. Make sure each secret has a clear role in the story.

5. Plant Clues And Red Herrings

Your clues should help readers work out how the crime was done. Think about what the killer leaves behind, what the detective notices, and what others get wrong.

Here are five ways to plant clues in a locked-room mystery:

  1. Use Physical Evidence. A scratch near the lock, a loose window catch, or a mark on the floor points to an unexpected way in or out.
  2. Question The Timeline. A witness hears a noise at a certain time, but the detective finds that it could not have come from the crime itself. The murder happened earlier than first thought.
  3. Make An Object Matter. A missing key, a moved chair, or a wet patch on the floor seems unimportant. Later, the detective discovers how it fits the solution.
  4. Use Witness Accounts. One witness says nobody entered the room. Another saw someone near the door. One of them misunderstood what they saw.
  5. Challenge First Impressions. Everyone believes the room is sealed, but the detective spots a flaw in the lock, a window that can be opened from outside, or a gap beneath the door.

You can also use red herrings to lead readers towards the wrong answer. A suspect lies about their movements, or a clue seems to point to one person when it has another explanation.

A genuine clue helps explain the crime. A red herring points readers in the wrong direction. Both must make sense in the story.

Writing tip: Show how your detective tests each theory, rules out false leads, and links the clues to prove how the crime was done.

6. Let The Detective Reconstruct The Crime

Show how the detective rules out false leads and links the clues. They do not simply name the killer.

Once the detective has enough evidence, they must test their ideas. They could examine the lock, question a witness, check the timeline, or find a new use for an everyday object.

Sherlock Holmes offers a useful rule: once you rule out the impossible, what remains must be the truth, however unlikely it seems. The final explanation must show how the crime happened, why it seemed impossible, and which facts people got wrong.

7. Deliver A Satisfying Reveal

The best solution makes readers think, ‘I should have seen that.’

Account for the important evidence and resolve the questions raised at the beginning. Do not add a vital fact at the last minute if readers had no chance to spot it.

A surprise ending works when the answer is unexpected but makes sense in retrospect.

Writing tip: Aim for an ‘Of course!’ ending. Readers should be surprised by the solution, but able to see how the clues led to it.

Locked-Room Mysteries To Read

Study these books to see how writers solve the puzzle of an impossible crime.

  1. The Mystery of the Yellow Room by Gaston Leroux — A young woman is attacked inside a securely locked room. Reporter Joseph Rouletabille must work out how the attacker got in and escaped.
  2. The Murders in the Rue Morgue by Edgar Allan Poe — C. Auguste Dupin investigates the brutal murders of two women in a Paris apartment.
  3. The Three Coffins by John Dickson Carr — Dr Gideon Fell investigates a series of crimes that seem impossible. The book also explores tricks used in locked-room mysteries.
  4. The Big Bow Mystery by Israel Zangwill — A man is found murdered in a room locked from the inside. The police must work out how the killer did it.
  5. The Chinese Orange Mystery by Ellery Queen — Ellery Queen investigates a strange murder. The way the crime scene is set up is a key part of the puzzle.
  6. Death and the Conjuror by Tom Mead — Magician Joseph Spector investigates the murder of a psychotherapist found in a study with locked doors and windows.
  7. The Murder at World’s End by Ross Montgomery— An under-butler and an elderly aristocrat try to solve the death of a viscount found in his locked study.
  8. The Twist of a Knife by Anthony Horowitz —A theatre critic is murdered in a London townhouse where every door and window is locked from the inside.

Locked-Room Mysteries To Watch

Study these shows to see how detectives solve the impossible crime.

  1. Death in Paradise — ‘Arriving In Paradise’ — A murder in a locked panic room presents a clear locked-room puzzle.
  2. Jonathan Creek — ‘Jack in the Box’ – An elderly comedian is found dead inside a bunker that appears impossible to escape.
  3. Agatha Christie’s Poirot — ‘Hercule Poirot’s Christmas’ — Poirot investigates the murder of a wealthy patriarch found in his locked study.
  4. Murder, She Wrote — ‘Murder at the Oasis’ — Jessica investigates a murder in a locked room, with several suspects to consider.
  5. CSI — ‘Random Acts of Violence’ — Nick Stokes investigates the death of an Internet company boss found in a sealed computer server room.

The Last Word

A locked-room mystery succeeds when a crime that seems impossible becomes logical once the truth is revealed. Design the crime carefully, plant clues, and challenge readers’ assumptions. The final explanation should surprise them, but everything should make sense once they know the answer.

Photo by Anastasiia Shyrokykh on Unsplash


by Amanda Patterson
© Amanda Patterson

More posts from Amanda:
  1. 10 Ways To Get Out Of A Writing Rut
  2. What Is A Denouement? How It Works In Fiction
  3. How To Name Characters: 10 Things To Consider
  4. How To Use The Five Senses In Your Writing
  5. What Is A Myth? 20 Myth-Inspired Writing Prompts
  6. Punctuation For Beginners: What Is Punctuation?
  7. What Is A Plot Twist? The Secret To Writing A Great One
  8. What Is A First Draft? How To Write And Finish Yours
  9. How To Write A Great Book Review
  10. How To Create Larger-Than-Life Characters

Top Tip: Sign up for our free daily writing links.

Posted on: 12th October 2026
(599 views)