Symbol cipher

Dancing Men Cipher: The Sherlock Holmes Code Explained

A row of little stick figures doing their own dances, and a flag that marks the end of a word. Meet the cipher that Sherlock Holmes cracked in chalk.

The Dancing Men cipher comes from Arthur Conan Doyle's Sherlock Holmes story The Adventure of the Dancing Men (1903). Rows of stick figures keep turning up in chalk at a country house. They look like a child's doodles, but they are a secret message, and Holmes cracks it.

Each letter has its own dancer, and the key never changes. So, like the other symbol ciphers, solving is reading: look the figure up and write down the letter.

A Cipher Munch Dancing Men puzzle with each letter shown as a stick figure in a pose, and a row of key figures above the keyboard
A Dancing Men puzzleOne figure per cell. Tap it, then type the letter you read.
The Dancing Men Options sheet listing Show translation table, Add spaces and other display switches
Dancing Men OptionsAdd spaces turns the gaps between words on or off.

How it works

There are 26 different poses, one for each letter. There is no pattern in the poses, so they have to be learned a few at a time. Start with the most common letters, E T A O I N S, which make up most of any message. A few help you spot them: D, G and T are doing handstands, and B holds both arms straight out.

In the story there are no gaps between words. Instead, the last figure of each word holds a flag. A flag figure is the same letter as the plain one, so read the body first and treat the flag as a word break. The very last word has no flag, because the message simply ends.

A worked example

You do not even need the key to start. Suppose the message has a four-figure word where the first and last figures are identical, and the middle two are different from each other and from the ends. In letter terms that is the pattern 1-2-3-1. English words with that shape include THAT, TEXT, DEAD and TEST. Now look at the neighbouring words and see which fits. Do the same with a two-figure word (its second figure holds the flag): it is probably a short word like OF, TO, IN, IT, IS or AT. The figure you see most often is probably E, which is exactly how Holmes got started.

Solving tips

In the app

Tap a figure, then type the letter you read. With Auto fill letters on, every copy of that figure fills in. The Options screen has Show translation table (the key under the board, which you can switch off to test your memory) and Add spaces. Turn Add spaces off to play it the story way: the gaps disappear, the last figure of each word holds a flag, and the table gets a Word end row of flag figures. With spaces off you can double-tap a figure to pencil a thick bar after it for "a word ends here". You also get Show letter frequencies, Highlight frequencies, Highlight multiple letters, Highlight errors when complete and Reveal a letter. Print / share makes a paper copy with room to write, without the key.

Practise with flashcards

Open Reference & Flashcards and pick the Dancing Men deck. Flip the cards, swipe them into Know or Still learning (with undo), then try the multiple-choice Test. Aim to know E, T, A, O, I, N and S without looking.

Is it on the Codebusters test?

Dancing Men is not one of the ciphers in the 2027 Science Olympiad Codebusters rules for Division C (high school). It does turn up in Division A, the elementary-school version some states run. Rules change by year and by event, so check yours. If the dancers click for you, try Pigpen next, and read up on letter frequency analysis, the trick Holmes used.

Decode the dancers

Cipher Munch has Dancing Men puzzles on iPhone, iPad and Android, with a free Starter pack. No ads, no account, and it works offline.