All posts
How-to

How to Write a Locked-Room Mystery

2026-10-14 · 6 min read

Plan, draft, edit and pitch the same book in one project.

Start writing free

The locked-room mystery is the purest, most ingenious form of the mystery — a crime (usually murder) committed under seemingly impossible circumstances, such as a victim found in a room locked from the inside. The puzzle is irresistible: how could the crime have been committed when it appears impossible? The locked-room mystery is a celebrated subgenre prized for its ingenuity, demanding a clever impossible setup and a fair, satisfying solution. Writing one is a feat of construction. Understanding its particular craft — building on the foundations of the mystery — helps you create an impossible-crime puzzle that delights.

This guide covers how to write a locked-room mystery.

What a locked-room mystery is

A locked-room mystery is a mystery in which a crime is committed under apparently impossible circumstances — the classic example being a murder victim found in a room locked from the inside, with no apparent way for the killer to have entered, committed the crime, and escaped. The "locked room" is the archetype, but the subgenre encompasses any impossible crime: a crime that seems it could not have been committed given the circumstances (sealed spaces, impossible disappearances, crimes with no possible perpetrator). The puzzle is the impossibility itself: the central question isn't just who did it but how it was possible. This makes the locked-room mystery the most puzzle-focused form of mystery, prized for ingenuity — the cleverness of the impossible setup and its solution. It's the ultimate test of mystery construction, built on the mystery genre's foundations with an added layer of impossibility.

Build on mystery fundamentals

A locked-room mystery is first a mystery, so it rests on the genre's fundamentals: you must know the solution first (how the impossible crime was actually done), construct the puzzle backward from it, plant fair clues, honor fair play (the reader has a genuine chance to solve it), and deliver a surprising-yet-inevitable reveal. All the mystery-writing craft applies, intensified by the impossibility. The locked-room mystery adds the special challenge of the impossible setup and its solution on top of the standard mystery requirements. So master the mystery fundamentals — they're the foundation — and then layer on the locked-room's particular demands. The impossible crime is a specialized, heightened form of mystery, not a different thing; it requires everything a mystery requires, plus the ingenuity of the impossibility. Build on the solid base of mystery craft.

Construct a genuinely impossible setup

The locked-room mystery's first special demand is constructing a setup that appears genuinely impossible — the crime must seem, to the reader and detective, as though it could not have been committed. The power of the puzzle depends on the impossibility being convincing: the reader must be genuinely baffled, unable to see how the crime was possible, for the eventual solution to delight. So build the impossible circumstances carefully and rigorously — establish the constraints (the locked door, the sealed room, the absence of any apparent means) firmly, so the impossibility is airtight and the reader is truly stumped. A weakly-constructed impossibility (where the reader easily spots how it was done) ruins the puzzle. The setup must present a crime that seems flatly impossible given the established circumstances — that's the hook and the challenge. Construct the impossibility rigorously, so the reader confronts a genuinely baffling puzzle. The convincing impossibility is the locked-room mystery's central hook.

Devise a clever, fair solution

The locked-room mystery's crux is the solution — the clever explanation of how the "impossible" crime was actually committed — and it must be both ingenious and fair. Ingenious: the solution should be clever and satisfying, revealing a method the reader didn't see but that makes sense — the "aha!" of understanding how the impossible was possible. Fair: like any mystery and twist, the solution must be fairly derivable — supported by clues the reader could have noticed, not dependent on withheld information or absurd contrivance. The solution must honestly explain the impossibility (no cheating with unestablished secret passages pulled from nowhere, the cardinal locked-room sin). The best locked-room solutions are clever yet fair — surprising, ingenious, and, in hindsight, supported and logical. This is the hardest part: devising an impossible-crime solution that's genuinely clever and plays fair. The ingenious, fair solution is the locked-room mystery's payoff — and its greatest construction challenge.

Plant clues and play fair with the impossibility

Crucially, the locked-room mystery must play fair about the impossibility — planting clues to the real solution so the reader has a genuine (if very hard) chance to solve it, and not cheating. This is where locked-room mysteries most often fail: cheating with the solution (a secret passage, a method, or a fact never established, sprung at the reveal to "explain" the impossible). Such cheats betray the reader. Instead, plant the clues to the true method fairly (present but disguised, as in any mystery), so the solution, when revealed, is supported by what the reader was shown — they could have figured it out. The constraints establishing the impossibility, and the clues to the real solution, must be laid honestly. Fair play is especially important (and challenging) in locked-room mysteries because the impossibility tempts cheating. So construct the puzzle and its solution with rigorous fairness — the impossibility genuine, the solution clever and fairly clued. Honest construction is what makes the locked-room mystery satisfying rather than a cheat.

The bottom line

Write a locked-room mystery by building on mystery fundamentals — knowing the solution first, constructing backward, planting fair clues, and honoring fair play and a surprising-yet-inevitable reveal — and then layering on the subgenre's special demands. Construct a genuinely impossible setup: establish the constraints rigorously so the crime appears flatly impossible and the reader is truly baffled (the convincing impossibility is the hook). Devise a clever, fair solution — an ingenious, satisfying explanation of how the impossible was actually possible, that's also fairly derivable and honest (no cheating with unestablished secret passages). And plant clues and play fair with the impossibility — planting the clues to the real method so the solution is supported, since the impossibility tempts cheating that betrays the reader. The locked-room mystery is the ultimate test of mystery construction, prized for ingenuity; built with a convincing impossibility and a clever, fair solution, it delivers one of fiction's most delightful puzzles.

Frequently asked questions

What is a locked-room mystery?

A locked-room mystery is a mystery in which a crime is committed under apparently impossible circumstances — classically a murder victim found in a room locked from the inside, with no apparent way for the killer to have entered and escaped. The subgenre encompasses any impossible crime, and the central puzzle is the impossibility itself: not just who did it, but how it was possible. It's the most puzzle-focused form of mystery.

How do I write a locked-room mystery?

Build on mystery fundamentals (know the solution first, construct backward, plant fair clues, honor fair play and a surprising-yet-inevitable reveal), then construct a genuinely impossible setup (establish the constraints rigorously so the crime appears flatly impossible), devise a clever and fair solution (ingenious yet honestly derivable), and plant clues to the real method so you play fair with the reader.

What makes a good locked-room solution?

It must be both ingenious and fair: clever and satisfying (revealing a method the reader didn't see but that makes sense — the "aha" of how the impossible was possible) and fairly derivable (supported by clues the reader could have noticed, not dependent on withheld information or unestablished contrivances). The best solutions are surprising, clever, and, in hindsight, supported and logical.

What's the cardinal sin of locked-room mysteries?

Cheating with the solution — explaining the impossible crime with a secret passage, method, or fact never established, sprung at the reveal. This betrays the reader, who had no chance to solve it. Because the impossibility tempts cheating, fair play is especially important: plant the clues to the true method honestly, so the solution is supported by what the reader was shown.

Related reading

Write studio

Somewhere to actually put the words

A clean chapter editor with your outline, characters and research one panel away, daily word goals, and import from .docx, .epub or .pdf. Free forever, with or without AI.

Start writing free7 days of everything, no card. Free forever to write.

Not ready for a workspace yet? Get the free six-part series on winning the writing game: finishing drafts, editing in the right order, querying with real math, and launching on a runway.