Short answer: the detective novel began with Edgar Allan Poe’s short story “The Murders in the Rue Morgue” in 1841, which introduced C. Auguste Dupin and the method of ratiocination. It grew into full novel form with Wilkie Collins’s The Moonstone in 1868, and became a mass reading habit with Arthur Conan Doyle’s A Study in Scarlet in 1887. Which of those counts as “the first” depends entirely on whether you mean the first story or the first novel.
That distinction is where most online arguments about this topic go wrong. A short story and a novel are different forms with different rules, and Poe and Collins are not really rivals — they did different jobs. The rest of this guide follows the line from the ancient riddles that came before, through Poe, Gaboriau and Collins, to Holmes and the hard-boiled writers who broke the rules again a generation later.
Table of Contents
- What Counts as the First Detective Novel?
- Which Earlier Stories Anticipated the Detective Novel?
- How Poe Invented the Modern Detective Story
- How Dupin’s Method Changed Crime Fiction
- How Émile Gaboriau Expanded the Detective into a Social Force
- How Sherlock Holmes Made Detective Fiction Accessible
- How Other Traditions Helped Shape the Detective Novel
- How the Hard-Boiled Detective Made the Genre Modern
- How the Detective Novel Developed After Its Beginnings
- Why the Genre’s Beginnings Are Still Debated
- Frequently Asked Questions
- Who invented the detective novel?
- What is the first detective story?
- Was Sherlock Holmes the first fictional detective?
- Was The Moonstone the first detective novel?
- How did hard-boiled detective fiction differ from classic mysteries?
- Where should a beginner start reading detective fiction?
- Conclusion
What Counts as the First Detective Novel?
A detective novel is a narrative in which a crime has already happened, an investigator works out what occurred, and the reader is given enough evidence to reach the same conclusion. That last part is the real requirement.
Four elements recur. The crime comes first, so the story is about discovery rather than prevention. The mystery is bounded, either by limited evidence or by a locked room that should not have been enterable. A named investigator supplies a method, so the solution follows from a rule rather than a coincidence. And the clues are laid out with fair play, meaning the reader could in principle solve it too.
Without the fourth element you get thrillers, not detective fiction. A protagonist who survives by luck is a different animal from a sleuth who reconstructs a past from physical traces.
Which Earlier Stories Anticipated the Detective Novel?
Stories that work by logical puzzle-solving are ancient. Herodotus reports a thief tale called Rhampsinitus, in which a young man breaks into a royal treasury, gets caught, and talks his way out by accusing the king of having planted an accomplice inside the household. The king, delighted, asks him to name the accomplice, and the young man names the king himself. It is a locked-room escape, told as a piece of courtly gossip.
Aesop’s “The Fox and the Sick Lion” is closer to a mystery. The other animals suspect the sick lion of faking his illness, and the fox offers to go in and confirm it, then emerges with a bandage over his paw to prove how attentive he was.
Biblical texts supply two more. “Bel and the Dragon” has Daniel exposing a fraudulent priest through a literal trap: he feeds the dragon a lump of pitch and butter. Susanna has two young men, each secretly appointed by different elders as her accuser, contradict each other about the tree in which she was caught, so the testimony falls apart and the elders are executed. Dorothy L. Sayers gathered tales of this type, calling them the primitives of detective fiction.
Greek tragedy gave the form its most influential recognition scene. In Sophocles’ Ajax the suicide’s body lies hidden in a remote camp; in Oedipus Rex the plague, the murder of Laius and the chorus’s pressure on the king create a problem with only one solution, arrived at by inference from evidence about the time of the crime. Aristotle used that scene to explain recognition by reasoning rather than by direct sight.
Boccaccio’s Decameron, written between 1348 and 1353, comes closer to the shape than any of these. A handful of its tales hinge on a concealed crime or a false accusation, and a few turn on a character working out what actually happened from traces left at the scene. Those are real recognition moments, but the investigator’s method is still not the point — the frame exists for the surprise and the joke.
None of these are detective fiction in the modern sense. The puzzle is usually a means to a different end — a joke, a scare, a trick, a trap. Nobody reconstructs a crime from evidence, and no investigator’s method is on display. They are predecessors of the whodunnit, not its first instances.
How Poe Invented the Modern Detective Story

“The Murders in the Rue Morgue,” published in April 1841, assembled every ingredient the form needed in about 2,000 words. The narrator is unnamed and sits with Dupin in a cramped Paris room above a shuttered bookseller’s shop. A double murder in the Rue Morgue has baffled the police because the doors were barred from inside and the windows sealed. Dupin solves it by walking the ground and examining a hair, a rag and a coolness in the room’s atmosphere that finally makes sense in July.
Poe also wrote his own defence of the invention: “He wrote,” his biographer asserted, “invented the detective story in order that he might not go mad.” The claim is audacious, and the “in order that he might not go mad” line is frequently cited as evidence that Poe cared more about the puzzle than the murder.
Two further Dupin stories followed in the same vein. “The Mystery of Marie Roget” (1842) sends the investigator to a provincial police house after a young woman disappears. “The Purloined Letter” (1844) drops the murder entirely and tests a detective who is forced to find a stolen letter he has no interest in reading. Poe fixed the template: a private, brilliant outsider with time and money, a city police force that fails on technique rather than on effort, and a solution that arrives as a spoken demonstration.
How Dupin’s Method Changed Crime Fiction
Dupin does not guess. He reconstructs. The strength of Poe’s construction is that the reader is handed the same physical evidence the detective is, and the method is always the same in outline: separate the meaningful detail from the incidental, note what each item rules out, then build the single sequence that fits every observation without contradiction.
Two features of that method carried forward. The detective is an outsider with time — he has no caseload, no paperwork and no chain of command, so nothing slows him down. And he is eccentric, uninterested in money and uninterested in the criminal once the puzzle resolves. Holmes inherits the pose almost wholesale; so, in a quieter register, do Monk and the police of later crime fiction.
What later writers dropped was Poe’s frame. The inside narrator who admires and misunderstands the detective only partly survives, and it disappears entirely once Holmes tells the story himself.
How Émile Gaboriau Expanded the Detective into a Social Force
Gaboriau carried the form into French police procedure. L’Affaire Lerouge (1865) is the important one: a provincial wedding turns into a homicide when the groom is found shot in a room he could not have left, and the case exposes a fraudulent marriage, a missing fortune and the complacency of a small town. Unlike Dupin, Monsieur Lecoq is not an amateur. He is an officer of the Sûreté nationale, and the novel follows his methods — questioning, disguise, observation of a suspect’s hands, the construction of a trap to force a confession.
Two things changed here. The detective became an employee of the state rather than a private gentleman, which meant the investigation could be shown as a routine with paperwork and budget constraints. And the crime acquired a social meaning, because it grew out of a marriage scheme and a village’s unwillingness to question a respectable family.
Gaboriau wrote most of the rest of his output as sequels driven by Lecoq’s failures, and by the time he died in 1873 he had made the working policeman a permanent figure in the genre.
How Sherlock Holmes Made Detective Fiction Accessible
“A Study in Scarlet” ran in Beeton’s Christmas Annual in 1887, and Holmes appeared there already established by implication — Watson’s opening line has him reading Sherlock Holmes’s monograph on the subject of cigar ash and learning he has been a police consultant for years. Conan Doyle invented a character readers are meant to believe has been around for some time, which is exactly what a serial form needs.
What Doyle actually contributed was structural. Holmes supplies the method, Watson supplies the narration, and the case supplies a self-contained unit that can end without ending the partnership. That arrangement let a story appear, be reprinted, be sold separately in book form, and be picked up again a year later with the reader already inside the world.
The real model behind the manner was Dr Joseph Bell, a surgeon in Edinburgh who Doyle had worked under, and whose habit of reading people from small physical details Doyle turned into Holmes’s method. Conan Doyle also acknowledged Poe directly, describing The Murders in the Rue Morgue as the model for the Dupin-derived detective that Holmes belongs to.
He later tried to kill Holmes off, and the resulting public outcry is itself part of the genre’s history — the moment when detective fiction stopped being a story and became an audience expectation.
How Other Traditions Helped Shape the Detective Novel
The British line runs through the country-house mystery and the serial. Collins put out The Woman in White (1860), which has no detective at all and still uses withheld information and multiple narrators as its engine. Then The Moonstone (1868), serialised in All the Year Round, assembled the genre rulebook: a valuable object, a country-house setting, an apparently closed room, a bungling village constabulary, a competent professional investigator named Sergeant Cuff, a cast of false suspects, a reconstruction of the crime and a solution withheld until near the end.
There were earlier claims, and they are worth naming. Sarah Burney’s The Hermitage (1839) turns on a murder concealed by a locked room and solved by inference. Charles Felix’s The Notting Hill Mystery (serialised 1862-63) predates The Moonstone and is the strongest pre-Collins claim; it circulates mostly as a footnote in Julian Symons’ Bloody Murder. Fergus Hume’s The Mystery of a Hansom Cab (1886) was a global bestseller two years before Conan Doyle’s first Holmes story and sold far more copies, though Doyle dismissed it as a piece of nonsense.
In France and the United States, the same decade produced locked-room puzzles and police procedurals that sat alongside these. The setting mattered more each decade. Who could enter the room, which floorboard gave way, which of the family had the means — class and physical space became part of the plot machinery.
How the Hard-Boiled Detective Made the Genre Modern

Hard-boiled fiction took the puzzle out of the middle and put violence and money in its place. Philip MacDonald’s The Rasp and the later work of Dashiell Hammett and Raymond Chandler put the investigator in first person, in a city that is indifferent to him, usually as a private eye without official standing and often without official backing.
The rules invert the classic model. The detective is not detached from violence; he is embedded in it and does his share. The narrator is unreliable in a specific way, fixingating on the cheap drink, the loose coat, the smart suit. The city becomes the antagonist, along with the city hall, the police force and the union local.
The puzzle is not solved so much as broken off. Where Poe’s investigator demonstrates that he can see everything, Chandler’s cannot tell whether what he has found is a clue or a coincidence, and the reader reads that uncertainty as the point.
How the Detective Novel Developed After Its Beginnings
The twentieth century split the form in two. The Golden Age of Detective Fiction, roughly 1920 to 1939, took the fair-play rule seriously enough to formalise it. Dorothy L. Sayers sorted the field into three branches in her 1929 Omnibus of Crime — the detective story proper, the mystery story with a puzzle but no detection, and the horror story — and defined the good ones by whether they were played fair with the reader.
Agatha Christie built the Golden Age’s most portable shape: an amateur or marginal investigator, a limited circle of suspects, a method explained at the end in the same terms as the clues. Authorised by the police rather than employed by them, Christie had something no working detective in Poe or Gaboriau had, which was the freedom to be wrong about everything except the last page.
Alongside that ran the police procedural, the private-eye line and, from the 1920s onward, spy fiction with its own first-person trickster. Television then fixed the form for a mass audience: one problem, one hour, one answer, repeatable to the same audience every week.
By the late twentieth century the centre of interest had moved. Corrupt institutions, past trauma, serial violence and unreliable memory replaced the impossible problem as the thing the reader came to watch being solved.
Why the Genre’s Beginnings Are Still Debated
Historians disagree because they are answering different questions. Here’s the field, laid out side by side.
| Work | Author | Date | Form | What it established |
|---|---|---|---|---|
| The Murders in the Rue Morgue | Edgar Allan Poe | 1841 | Short story | Analysis, rational method, first fictional detective |
| The Hermitage | Sarah Burney | 1839 | Novel | A near-miss locked-room murder, no investigator |
| The Woman in White | Wilkie Collins | 1860 | Novel | Multiple narrators and withheld information |
| The Notting Hill Mystery | Charles Felix | 1862-63 | Novel | A pre-Collins whodunnit, little read since |
| L’Affaire Lerouge | Emile Gaboriau | 1865 | Novel | The working police investigator |
| The Moonstone | Wilkie Collins | 1868 | Novel | The genre rulebook in novel form |
| The Mystery of a Hansom Cab | Fergus Hume | 1886 | Novel | The first whodunnit mass readership |
| A Study in Scarlet | Arthur Conan Doyle | 1887 | Novel | The investigator and chronicler, in serial |
Poe’s supporters argue that the form’s essential machinery — an investigator, a rule of inference, a solution the reader can verify — appeared in his hands and nowhere earlier. Collins’s supporters argue that Poe wrote a shape that had no room for society, class or consequence, and that The Moonstone is the first work where the detective novel means a novel.
Both positions survive scrutiny, which is a sign the question is malformed rather than that the evidence is thin. A genre is not a first instance. Poe assembled elements that had existed for centuries, but he assembled them into a repeatable commercial form, and that form is what detective fiction actually is.
The most defensible conclusion is a split verdict. Poe is the father of the detective story, Collins of the detective novel, and Doyle of the detective as an ongoing series character. Readers who come to this topic expecting one name usually find the argument more interesting once they understand that the name depends on the form.
Frequently Asked Questions
Who invented the detective novel?
Edgar Allan Poe is widely credited with inventing the modern detective novel because The Murders in the Rue Morgue (1841) introduced a recognizable detective, a puzzling crime, rational observation and a solution the reader can check. Wilkie Collins is usually given the credit for the novel length specifically, with The Moonstone in 1868. Doyle’s Sherlock Holmes made the form popular rather than new.
What is the first detective story?
The Murders in the Rue Morgue, published by Edgar Allan Poe in 1841, is commonly treated as the first modern detective story. It follows C. Auguste Dupin as he solves an apparently impossible murder in a sealed Paris apartment. Earlier puzzle tales exist, including Rhampsinitus in Herodotus, but none pairs a crime with an investigator’s method.
Was Sherlock Holmes the first fictional detective?
No. C. Auguste Dupin preceded Sherlock Holmes by forty-six years, and other investigators appeared in between. Doyle’s achievement was to make the detective partnership, especially the investigator narrated by someone else, into a repeatable series format. Many readers meet Holmes first and only later discover Dupin exists.
Was The Moonstone the first detective novel?
It is the strongest candidate but not an uncontested one. Sarah Burney’s The Hermitage (1839) has a locked-room murder and Charles Felix’s The Notting Hill Mystery (1862-63) predates it as a full whodunnit. What The Moonstone did was set out the conventions together in one novel: multiple narrators, a bungling local constabulary, a professional investigator and withheld clues.
How did hard-boiled detective fiction differ from classic mysteries?
Classic mysteries centred the puzzle: a limited setting, a closed circle of suspects and a rational solution. Hard-boiled fiction, from Hammett and Chandler onward, moved the centre onto the investigator and the city. Violence, corruption and slang replaced fair-play clue trails, and the narrator is unreliable rather than merely mistaken.
Where should a beginner start reading detective fiction?
Read Poe’s The Murders in the Rue Morgue first, because it is short and it shows the machinery. Then take Wilkie Collins’s The Moonstone at a pace, accepting that the first hundred pages are letters and character introductions. After that, Doyle’s A Study in Scarlet is easier than the later Holmes novels. Add Agatha Christie only once you want the puzzle form polished.
Conclusion
The detective novel began as a mechanism and became a habit. Poe supplied the mechanism in 1841: a crime, an investigator, a method and a checkable solution. Gaboriau put the investigator inside a police force and gave the crime social weight. Collins wrote down the rulebook in novel form in 1868. Doyle packaged it for serial readers in 1887, and every genre since has been either refining the puzzle or refusing it.
If you want to follow the thread, read The Murders in the Rue Morgue in a single sitting, then The Moonstone, then A Study in Scarlet. The gap between the first and the second is where most of the argument about origins actually lives.


