HomeWriting Resources › How to Write a Mystery Story

How to Write a Mystery Story

You want a practical, structural answer to 'how do I actually write a mystery story,' not a list of famous detective novels or subgenre definitions. You need a repeatable process you can apply to your own case today, whether it is a short story or a full novel-length investigation.

Short Answer

Writing a mystery story means working out your solution before you draft a single scene, then planting fair clues that let readers solve it alongside your investigator. Start with the crime and its true explanation, then follow a 7-step structure from discovery through reveal. The genre succeeds when the ending feels both surprising and inevitable.

Examples

1. Cozy mystery: an amateur sleuth with local knowledge

A florist in a small coastal town notices the missing person everyone assumes drowned actually left behind flowers ordered for an anniversary they never got to celebrate, and starts asking questions the police have already stopped asking.

Cozy mysteries rely on an amateur sleuth's local knowledge and community ties; the florist's professional detail (the flower order) gives her a specific, credible reason to keep investigating.

2. Detective mystery: a professional with personal stakes

A detective assigned to investigate a break-in at her own childhood home discovers the intruder was searching for something specific her late father hid decades ago, something she never knew existed.

Detective mysteries typically follow a trained professional; grounding the case in her own family history raises personal stakes beyond routine casework.

3. Procedural mystery: evidence-driven investigation

A forensic team processing a routine burglary scene finds a fingerprint that matches a person who has been officially dead for six years, forcing the lead investigator to question every closed case that detective ever touched.

Procedural mysteries center the mechanics of investigation itself; an impossible piece of physical evidence gives the team a concrete, escalating puzzle to work through methodically.

4. Locked-room mystery: an impossible crime

A valuable painting vanishes from a sealed gallery room with no other exits, no broken locks, and a guest list of exactly six people who all swear they never left the adjoining room during the twenty minutes it disappeared.

Locked-room mysteries promise an impossible-seeming crime with a rational solution; a tightly bounded time window and suspect list keeps the puzzle fair and solvable.

5. Amateur sleuth mystery: an unlikely investigator

A retired postal worker who has delivered mail on the same route for thirty years notices a house that stopped receiving mail two months ago still has lights turning on and off every evening, and starts quietly investigating before anyone else notices the pattern.

Amateur sleuth mysteries work best when the investigator's ordinary routine gives them a specific, believable vantage point the police would never think to check.

6. Historical mystery: a case buried by its era

A junior clerk at a shipping office in the 1920s finds a decades-old ledger entry that does not match any known cargo manifest, and realizes the discrepancy points toward a disappearance the company has spent a generation quietly covering up.

Historical mysteries benefit from period-specific institutional silence; a company with the power to bury an inconvenient truth for decades raises stakes without needing modern forensic tools.

Step-by-Step Writing Guide

  1. Work out your solution before you write a single scene — Decide who committed the crime, how, and why, before drafting your opening. Every clue and red herring you write afterward needs to make logical sense once this solution is revealed.
  2. Choose your investigator and their personal stake — Decide whether your investigator is a professional or an amateur, and what personal reason -- beyond simple curiosity -- makes them the right person to pursue this specific case.
  3. Build a suspect list with real, competing motives — Give three to six characters a believable reason to want the crime's outcome, even if only one is guilty. Each suspect's motive should hold up under scrutiny, not collapse the moment they are questioned.
  4. Plant clues fairly, in view of the reader — Every piece of evidence your investigator eventually uses to solve the case should appear on the page before the reveal, even if its significance is not obvious at the time it appears.
  5. Add at least one credible red herring — Give a suspect who is ultimately innocent a genuine, misleading reason to look guilty. A mystery with no red herrings is usually too easy to solve too early.
  6. Escalate the investigation with a midpoint reversal — Introduce a piece of evidence partway through that overturns your investigator's working theory. This keeps momentum building instead of letting the middle of your story sag.
  7. Reveal the solution through the investigator's own reasoning — Resolve the mystery through your investigator connecting the clues you have already shown the reader, rather than through a last-minute confession or unearned coincidence. This is what makes an ending feel both surprising and fair.

Common Mistakes

  • Introducing the real culprit for the first time in the final chapter. Give your culprit a genuine, visible presence earlier in the story, even while their true motive stays hidden.
  • Withholding a crucial clue from the reader until the reveal, then presenting it as fair play. Make sure every piece of evidence the investigator uses to solve the case has already appeared on the page.
  • Resolving the mystery with a coincidence or an unprompted confession instead of the investigator's reasoning. Have your investigator actively connect existing clues to reach the solution, rather than being told the answer.
  • Making every suspect equally suspicious with no real differentiation in motive or opportunity. Give each suspect a distinct, specific motive and a distinct reason they could or could not have committed the crime.
  • Skipping a midpoint reversal, so the investigation moves in a straight line with no surprises. Introduce evidence partway through that overturns your investigator's current theory and forces them to reconsider the case.

Start this story in DeepCrafter? DeepCrafter will start from this exact premise -- no API keys, no model setup.

FAQ

Should I know who did it before I start writing?
Yes. Mystery is one of the few genres where working out your ending first is essential -- every clue and red herring needs to logically support a solution you already know, or the mystery will not hold together on a reread.
How many suspects should a mystery have?
Most mysteries work well with three to six credible suspects -- enough to create genuine uncertainty without overwhelming the reader's ability to track motives, alibis, and opportunity for each one.
What is 'fair play' in mystery writing?
Fair play means every clue the investigator uses to solve the case appears on the page before the reveal, giving the reader a genuine, honest chance to solve the whole case themselves, even if a clue's exact significance is not obvious the moment it first appears.
What is the difference between a cozy mystery and a procedural?
Cozy mysteries typically follow an amateur sleuth in a small community with violence kept off the page. Procedurals center a professional investigation team and the methodical, evidence-driven mechanics of a real investigation carried out from start to finish.
How do I write a satisfying red herring?
Give an innocent suspect a genuine, independently believable motive or secret -- something true about them that looks suspicious but is not actually connected to the crime you are investigating in any real way.

Home

Explore

I Write Like

Profile