Skip to content
🕵️ How to write a detective story: key rules

🕵️ How to write a detective story: key rules

What makes a detective novel a bestseller

Detective fiction remains one of the most profitable genres in literary fiction. According to NielsenIQ, in 2025 the fiction segment grew in 15 of the 19 book markets analyzed, and crime fiction was the main driver of that growth (NielsenIQ, 2025). Mystery, thriller, and crime consistently account for about 17-20% of all adult fiction sales in the US (From Whispers to Roars / Publishers Weekly, 2025). If you are writing a detective novel, you are entering a market with real reader demand.

A good detective novel is built on fair play with the reader, a charismatic investigator, at least three plausible suspects, and an ending that surprises without contradicting the evidence. Below we break down each of these elements step by step, with proven genre rules and real market data.

💡 Quick overview:

  • Come up with the crime and the solution first, then build the plot backwards.
  • Place clues fairly, in plain sight of the reader.
  • Create at least three suspects with real motives.
  • Prepare a resolution that surprises but follows logically from the text.
  • Edit the manuscript and check the logical connections before publishing.

Fair play rules: the foundation of the genre

Detective fiction differs from all other prose because it is a game between author and reader governed by agreed rules. These rules are not a marketing invention: in September 1928, S.S. Van Dine published "Twenty Rules for Writing Detective Stories" in The American Magazine, and in 1929 the priest and writer Ronald Knox formulated his "Decalogue" of ten detective fiction commandments (Wikipedia: Golden Age of Detective Fiction). In 1930, leading British authors of the golden age formed the Detection Club, whose members pledged to follow these principles of fair play.

The essence is simple: the solution must be presented so that an attentive reader could theoretically arrive at it on their own. The culprit must be mentioned early on, supernatural forces are excluded, and the detective is forbidden from relying on unexplained intuition or lucky coincidence. These constraints discipline the author and keep the game fair. Modern authors like Freida McFadden prove that the classic rules still work today: her novel "The Housemaid" was the number one bestseller in France, Spain, and Wallonia in 2025 (NielsenIQ, 2025). The genre has been alive for over a hundred years, but its core mechanics have barely changed.

The short video below breaks down the key element of detective fiction that beginning authors most often miss.

If you plan to monetize your writing, it makes sense to look into the business side as well. On the marketplace you can discuss the detective genre with colleagues and editors before approaching publishers with your manuscript.

A compelling opening and structure

The first pages decide the fate of a book. From the opening paragraphs, the reader should be asking "what happened?" and want to turn the page. You do not have to open the novel with a dead body, but tension and withheld information should appear early. A professional technique: first come up with the crime and the identity of the culprit, then build the narrative in reverse. That way clues fall into the text naturally rather than retroactively.

Investigation board with evidence photos and documents

The classic detective story structure looks like this: the setup (the crime and the detective's arrival), the investigation (gathering clues and questioning suspects), rising tension with red herrings, the climax (the reveal), and the resolution (justice restored). The inverted pyramid works differently here than in journalism: you hold back the most important secret until the end, but every scene must still move the investigation forward, otherwise the reader gets bored.

The pacing of information is critically important. If you reveal too much too early, the intrigue fizzles out; if too little, the reader loses the thread and puts the book down. Experienced authors use the principle of "metered disclosure": each chapter adds one significant clue and at the same time raises a new question. This rhythm holds attention and creates the feeling that the solution is near, even though the picture is actually coming together gradually. It is useful to map out a chronology of the crime separately from the chronology of the narrative, so you can see exactly what the reader learns and when.

The detective and the suspects

The protagonist serves as the emotional anchor of the book. They need to be charismatic, observant, and have a recognizable way of thinking, whether that is cold logic or intuitive empathy. But a detective without worthy opponents is dead on the page. Genre experts recommend at least three suspects besides the sleuth: fewer makes the solution obvious, while too many turns the ending into a coin toss (Now Novel: How to Write a Murder Mystery). Balancing clarity and uncertainty becomes the author's main task at the planning stage.

Every suspect should have a plausible motive, the opportunity to commit the crime, and something they are hiding, even if they are innocent. It is these secondary secrets that create depth and keep the reader guessing. A good technique is to give each suspect a life outside the crime: a profession, relationships, weaknesses, and their own fears.

Element

Why it matters

Common beginner mistake

The puzzle

Drives the plot and intrigue

Too simple, or conversely, an unfair solution

The sleuth

Emotional anchor and the reader's guide

A flawless hero with no weaknesses or doubts

Suspects (≥3)

Create uncertainty

An obvious culprit or cardboard characters

Clues

Make the solution fair

Hidden from the reader or appearing out of nowhere

Red herrings

Sustain suspense

Deception with no logical explanation after the fact

The reveal

The reward for paying attention

A deus ex machina instead of a prepared ending

Clues, red herrings, and the reveal

Clues work as the currency of trust between you and the reader. Rule eight of Knox's Decalogue explicitly requires that the detective must not find clues that are not immediately presented to the reader. Some clues may be misleading to muddy the trail, but the deception must have an explanation in the finale. When the reader closes the book, they should be able to mentally flip back through the pages and say, "everything was there, I just didn't notice it."

Author typing a manuscript on a vintage typewriter in a library

The reveal becomes the climax of the entire novel. All the details should come together into a single picture, and the reader should get answers to the key questions. The most common beginner mistake is called "deus ex machina": a sudden twin, an unknown poison, or a confession out of nowhere. The golden rule: the ending should surprise and yet feel inevitable. If after the unmasking the reader thinks "of course!", you have done your job.

Atmosphere, editing and polishing

Atmosphere turns a set of clues into a living world. Use details of the setting, weather, lighting and sentence rhythm to convey tension. Crime fiction especially benefits from a sense of place: a foggy city, an isolated mansion or a stifling provincial town becomes almost a separate character. The rhythm of short and long sentences also sets the pace: short phrases speed up the action, while extended descriptions give the reader a breather before the next twist.

After the draft is finished, the real work begins. Check that every clue is introduced fairly, that the timeline does not contradict itself and that the culprit's motive holds up under scrutiny. Give the manuscript to beta readers: a fresh eye catches logical holes the author no longer sees. According to Reedsy, professional mystery authors work out the crime and the culprit's identity down to the last detail before they start writing, so they can dole out information to the reader in measured doses (Reedsy: How to Write a Mystery).

A separate stage of editing should be devoted to "reverse reading": go through the text from the end, keeping the solution in mind, and check that every clue is in place and that none of them gives away the culprit too early. This technique helps catch both unfair omissions and accidental spoilers. It is useful to keep a list of all clues and red herrings with the chapter where they are introduced and where they "pay off". If a clue never plays a role, it either needs to be used or removed: extraneous details blur the focus and reduce the reader's trust in the ending.

Library shelves with a diverse collection of books in dim light

Promotion and the path to the reader

A finished manuscript is half the journey. The market is growing: the global crime, mystery and thriller segment reached roughly $21.5 billion in 2024 and is projected to exceed $33 billion by 2032 (Stellar Market Research, 2025). At the same time, competition is high: James Patterson alone sold about 8.9 million thriller copies in 2025 (Accio, 2025). To stand out, think through your positioning, cover and social media presence before launch.

Modern authors use BookTok and themed communities: viral recommendations on social media drove the growth of genre fiction in 2025 (NielsenIQ, 2025). Do not neglect feedback from editors and peers: professional copy editing is what separates an amateur text from one that is ready to compete on the shelf.

Consider the format as well. Audiobooks and digital editions are growing faster than print, and a mystery with its fast-moving plot is a great fit for listening on the go. Series also work in an author's favor: a reader who fell in love with your detective in the first book is more likely to buy the second and third. Many successful crime fiction authors build their careers on a cycle of novels with one protagonist, gradually growing a loyal audience. Start with one strong book, but design the world and characters so the story has room to continue.

⁉️🤔 Frequently asked questions about writing mysteries

How many suspects should a mystery have?

Most genre experts recommend at least three suspects besides the detective. Fewer makes the solution too predictable, while an excess of characters turns the ending into a lottery. The ideal setup is when every suspect has a motive, an opportunity and a secret of their own.

What is the fair play rule in a mystery?

Fair play means that all the clues needed to solve the case are presented to the reader before the resolution. The principle was formulated by Ronald Knox and S.S. Van Dine back in the late 1920s. The reader should theoretically have a chance to solve the crime on their own, relying only on the text.

Do you need to come up with the solution before you start writing?

Yes, nearly all professional mystery authors recommend this. Knowing the culprit and the mechanics of the crime in advance lets you place clues and red herrings fairly throughout the text. Otherwise the resolution will feel forced, and the early chapters will contradict the ending.

How profitable is the mystery genre?

Crime, mystery, and thriller account for roughly 17-20% of adult fiction sales in the US (From Whispers to Roars, 2025), and the global segment volume in 2024 was around $21.5 billion (Stellar Market Research, 2025). It is one of the most stable and in-demand genres in the book market, which is also confirmed by NielsenIQ data for 2025.

How to avoid a "deus ex machina" ending?

The key to success lies in preparation. Every twist in the resolution should rest on a clue the reader has already seen, even if they did not attach importance to it. Avoid sudden twins, unknown poisons, and confessions out of nowhere. A good ending surprises, but feels inevitable on rereading.

Start writing your detective story today

Detective fiction is a craft you can learn: fair play with the reader, a well-developed investigator, at least three suspects, and a resolution prepared in advance. The genre market is growing, and there is always room for a strong new voice. Start with one page, invent a crime and the person who committed it, then build the plot backward. Discuss your idea with editors and colleagues on the marketplace and take the first step toward publication today.