20 Questions strategy: the maths of a good guess
By One Extra · · Updated
In 20 Questions, one player thinks of something and the other gets twenty yes-or-no questions to work out what it is. Most people play on instinct, but a good 20 Questions strategy rests on one simple piece of maths. This guide explains it in plain English and ends with a cheat sheet. (New to the game? Start with how to play 20 Questions.)
Why twenty questions is more than it sounds
A yes-or-no answer has only two outcomes, so the most a single question can do is cut the possibilities in half. Keep halving and the numbers grow fast:
- 1 perfect question tells apart 2 possibilities.
- 10 perfect questions tell apart 1,024.
- 20 perfect questions tell apart 1,048,576.
That last number is 2 multiplied by itself twenty times (2^20). In theory, twenty perfect questions can pick one thing out of about a million.
The catch is the word perfect: a question only halves the options when the answer is a genuine 50/50. Real questions rarely are, so aim for as even a split as you can.
What makes a good question
Imagine a friend is thinking of a cat, a dog, a goldfish or a parrot. "Does it have fur?" splits them two and two, so whatever the answer, two options remain. "Is it a goldfish?" usually gets a "no" and leaves three. You learned little, unless you got lucky.
That leads to the core rule: the best question is one whose answer you can't predict. If you are already 95% sure the answer is "yes", asking teaches you almost nothing. Three habits follow:
- Aim for 50/50. Before you ask, estimate what share of the remaining possibilities would get a "yes". Close to half is great. One in ten is a waste, unless you are nearly done.
- Don't overlap. Once you know it's an animal, "Is it alive?" adds nothing. Each question should cut along a new line.
- Be precise. "Is it big?" Big compared to what? "Is it bigger than a microwave?" gives both players the same picture.
The best first questions
The first question matters most because the field is at its widest. Strong openers split everything into large, roughly even groups:
- "Is it a living thing?" Separates animals, plants and people from objects, places and most food. Agree in advance whether an apple counts as "alive", or the answer may mislead you.
- "Is it made by people?" Splits the natural world from the built one. In thecatcher's own list of 200 things, about half get a "yes", which makes it a near-perfect opener.
- "Is it bigger than a microwave?" Size questions work across every category, so they stay useful whatever the first answer was.
The classic three-way opener, "Is it animal, vegetable or mineral?", does a similar job in one go. You can read where it came from in our short history of 20 Questions.
Weak openers include "Is it a dog?" (a single guess) and colour questions, which split unevenly at the start.
The best opener also depends on who is thinking. If your cousin almost always picks an animal, "Is it an animal?" tells you little. Adjust to your opponent.
A quick 20 Questions cheat sheet
- Questions 1–3: the big category. Living or not? Made by people? Bigger than a microwave?
- Questions 4–10: narrow inside the category. Animal: pet or wild, lives in water, four legs? Object: kitchen, uses electricity, held in the hand? Place: natural or built, which continent?
- Questions 11–17: distinguishing details. Colour, sound, what it is used for, where you would see it.
- Questions 18–20: guess. Once you are down to two or three candidates, name the most likely one first.
- Throughout: track what is ruled out, and check surprising answers before throwing everything away.
Common mistakes
- Guessing too early. "Is it a cat?" at question three spends a whole question on one option.
- Fishing for your favourite. Asking about the answer you hope for instead of the question that splits best.
- Trusting one answer completely. People misunderstand questions. If a "no" contradicts everything else, check it.
Updating gently, not harshly
That last mistake points to a deeper idea. If your friend's dog is a hairless breed, they might honestly answer "no" to "Does it have fur?" Cross the dog off for good and you can never recover.
Better players, and better programs, weight options instead of deleting them. An answer that fits makes an option more likely; one that doesn't makes it less likely, but not impossible. If later answers keep pointing to the dog, it climbs back to the top. This is called Bayesian updating, after Thomas Bayes.
How thecatcher uses the same idea
thecatcher plays the guesser with this strategy. In Think mode it knows about 200 things in nine categories, from animals and food to places, jobs and characters. It doesn't know everything, and it doesn't guess real people.
Before each question it works out how much every possible question is expected to shrink its uncertainty, and asks the best one: the 50/50 rule done with arithmetic. With nothing learned on your device yet, it usually opens with "Is it mostly found outdoors?"
It weights rather than deletes. "Probably" counts as a fairly strong yes and "Don't know" changes nothing. Sometimes it shows six words and asks which feels closest. With "None of these" that is seven possible answers, so one pick can carry more information than a yes or no.
It guesses once one option holds at least 80% of the probability, or after 20 questions. In our own test runs with perfectly consistent answers, it finds each of its 200 things in about 10 questions on average. That is more than the 8 that perfect halving would need (2^8 is 256), because real questions never split exactly in half.
For details, see how thecatcher works and how guessing games guess what you're thinking. Your turn to think? Try our 20 Questions ideas, or stump the guesser with the hardest things to guess in 20 Questions.