The Adventure of the Dancing Men by Arthur Conan Doyle
Quick answer: The Adventure of the Dancing Men by Arthur Conan Doyle: full summary with the ending, the stick figure cipher explained, Abe Slaney, themes and Doyle's craft.
Rows of tiny stick figures, arms and legs flung about as if dancing, begin appearing at a Norfolk manor: chalked on a windowsill, scrawled on the sundial, left on paper in the garden. The squire thinks them a child's joke; his American wife faints at the sight. The Adventure of the Dancing Men appeared in the Strand in 1903, in The Return of Sherlock Holmes, and Doyle reportedly counted it among his own favourites.
It is the great cipher story of the canon, and one of its cruellest: Holmes cracks the code completely and still arrives after the shot has been fired. Students meet it for the frequency analysis scene; writers should study how a comic looking clue is steered into tragedy. Below: the complete plot with the ending, the characters, the themes, and the craft of the code that talks back.
The story in brief, ending included
Hilton Cubitt of Ridling Thorpe Manor brings Holmes a paper covered in dancing stick figures. His wife Elsie, American born, married him after warning that her past held painful associations she would never discuss, and he promised never to ask. A letter from America made her white; then the dancing men began appearing around the house, and Elsie's terror is now unmistakable, though she will not speak and Cubitt will not break his promise. Holmes collects each new message by post, quietly applying frequency analysis: the commonest figure must be E, the flags on some figures mark word endings, and guessed words, names above all, give up letter after letter. The messages resolve into appeals and then threats from one Abe Slaney, culminating in a line telling Elsie to prepare to meet her God. Holmes wires America, learns Slaney is a Chicago gangster, and hurries to Norfolk, too late. In the night, Ridling Thorpe has seen two pistol shots: Hilton Cubitt is dead, shot through the heart, and Elsie lies gravely wounded through the head, apparently a murderess and attempted suicide in the local police's reading.
Holmes reads the scene against that theory: a bullet hole through the window sash means three shots, not two, so a third person fired from outside. A woman's glove and the trampled flower bed confirm it. He then does what only he can: writes a message in the dancing men script and has it delivered to Slaney, who is lodging at a nearby farm. Believing only Elsie could write the code, Slaney walks straight into the manor and into handcuffs. His confession completes the story: he was Elsie's betrothed in Chicago, inside her father's criminal gang, the code being the gang's own secret writing; she fled that life, and he pursued her to reclaim her. At the window that night Cubitt fired at him and he fired back; he swears Elsie's wound came from her own hand after she saw her husband fall. Slaney is condemned to death, commuted to penal servitude on the mitigating evidence that Cubitt fired first. Elsie recovers, and Watson's last note reports her living out her widowhood at Ridling Thorpe, devoted to the poor and to her husband's estate, faithful to the man her silence helped to kill.
The characters and what they want
Hilton Cubitt wants his wife's peace and his own honour, and both are lethal: the promise never to ask is the trap the plot springs. Elsie wants her past erased, and her strategy of silence, meant as protection, delivers her husband to the bullet; Doyle is unsparing about the cost of secrets kept from love. Abe Slaney wants what he calls his rights over a woman who escaped him, entitlement wearing the costume of devotion, and his surrender to a forged message is the story's neat justice: the code that terrorised her arrests him. Holmes wants to outrun the cipher's timetable, and for once loses the race.
Themes and meaning
The themes: the past that will not stay buried, imported here from criminal Chicago to rural Norfolk; the destructiveness of secrecy inside marriage, since one conversation would have saved two lives; and communication itself, the story is literally about a language, who can read it, who cannot, and what illiteracy costs. The class and national contrast, English squire against American gangster, gives the collision its texture.
The sharper observation is that the cipher is the story's moral instrument, not just its puzzle. The dancing men look like children's drawings, and Doyle plays that innocence against mounting dread; the same marks mean nothing to Cubitt, terror to Elsie, and data to Holmes, so every character's fate is fixed by their degree of literacy in one script. When Holmes finally writes in it, authorship becomes the weapon: Slaney is captured by his own alphabet, the biter bit at the level of language itself. Few stories tie code and justice together so cleanly.
The craft: the readable code and the beaten clock
The cipher scene is a model of showing method honestly: E by frequency, flags for word breaks, a guessed name cascading through the alphabet, each step one the reader could take. Doyle then does something structurally bold for 1903: he lets the detective fail on time. The code is solved, the telegram sent, and the murder happens anyway, which converts the final act from prevention to justice and gives the tale its tragic weight. The lesson for writers is that competence and victory are separable; letting your expert be right and late is one of the strongest effects available, because it prices the stakes in blood without cheapening the expertise.
The technique worth stealing is the clue system with multiple literacies: design one artefact that different characters read at different depths, and your cast's knowledge gaps generate suspense automatically. The forged message ending completes the pattern, the investigator entering the code as a writer, and it lands because the story has taught the reader the script too. A contest entry built on one central device this disciplined, taught, escalated, then reversed, is what examiners of structure in any judged competition, Writory's included, tend to remember at scoring time.
What poets can take from this
- For exams, be able to outline the frequency analysis: E first, flag marked word breaks, then names revealing the rest.
- Note the three shot deduction from the hole in the window sash; it acquits Elsie of murder before she can speak.
- Treat the promise never to ask as the plot's engine: secrecy inside marriage is the story's true subject.
- Writers: let your expert solve the puzzle and still arrive late; rightness plus lateness equals tragedy.
- Design one artefact your characters read at different depths; the gaps do your suspense work.
- End a code story by having the hero write in the code; turning readers into authors closes the circle.
Try it yourself
Write a story around a private code shared by two people long separated, whose symbols begin appearing in your protagonist's ordinary world. The person who taught them the code is coming, and your protagonist's spouse or partner cannot read the warnings scrawled on their own house.
Questions
How does Holmes decode the dancing men cipher?
By frequency analysis: the most common stick figure must stand for E, figures carrying flags mark the ends of words, and probable words, especially the names Elsie and Abe Slaney, reveal the remaining letters message by message. He later writes his own message in the code to summon Slaney into arrest.
Who is Abe Slaney and what does he want?
A Chicago criminal, once betrothed to Elsie inside her father's gang, whose secret writing the dancing men are. He pursues her to Norfolk to reclaim her, moving from appeals to threats. In the night confrontation he shoots Hilton Cubitt after Cubitt fires at him.
Does Elsie Cubitt die at the end?
No. Her head wound is self inflicted after she sees her husband killed, and she survives it. Cleared by the evidence of the third shot through the window sash, she recovers and spends her widowhood at Ridling Thorpe caring for the poor and managing the estate.
By the Writory editorial team, reviewed by working poets. Updated July 2026.
Enter a Writory poetry contest
Enter the August contest and have your own poem read and scored.