What is a zebra puzzle?

A zebra puzzle is a logic puzzle with a row of places (usually houses) and several categories of items (such as colours, pets and drinks). Each place gets exactly one item from every category, and a list of true clues lets you work out the only arrangement that fits. It is also called Einstein's riddle or Einstein's puzzle, and it is a kind of logic grid puzzle.
You solve it by reasoning, not by guessing or by knowing facts. Every clue rules something out, and when you have ruled out enough, only one answer is left.
Why is it called a zebra puzzle?
The name comes from the best-known puzzle of this kind. Its oldest known printing, in Life International magazine on 17 December 1962, had 15 statements about five houses and ended with two questions: "Who drinks water? Who owns the zebra?" Neither the water nor the zebra is mentioned in any clue, which is part of the fun.
The other common name, Einstein's riddle, comes from a legend that Albert Einstein wrote it as a boy. There is no evidence that he did. Our history of the Einstein riddle sets out what is known, and the Einstein's riddle page has the classic puzzle to try.
The three parts of a zebra puzzle
| Part | What it is | Example |
|---|---|---|
| The row | A line of places, numbered from the left. Order matters, so "left of" and "next to" have a meaning. | Houses 1 to 5, or bags on a carousel |
| The categories | Groups of items. Each category has one item per place, and every item is used exactly once. | Colour, pet, drink, nationality |
| The clues | True statements that link items to each other or to places. Together they allow only one answer. | "The tea drinker lives next to the red house." |
The classic puzzle has 5 houses and 5 categories, so 25 items to place. Smaller ones are easier: Zriddle's Easy puzzles have 4 places and 3 categories.
Clues come in a few set shapes: "same as" (the cat owner drinks milk), "in place 2", "at one of the ends", "directly left of", "next to", "somewhere between", and "not" versions of these. The clue types guide explains all 12 that Zriddle uses.
A tiny zebra puzzle, solved
Three houses and three categories: colour ( red, blue, green), pet (🐱 cat, 🐶 dog, 🐰 rabbit) and drink (☕ coffee, 🍵 tea, 🥛 milk). Four clues:
- The milk drinker owns the cat.
- House 3 is green.
- The person in the green house drinks coffee.
- The dog owner lives directly left of the red house.
Try it before reading on. It takes a minute or two.
Clues 2 and 3. House 3 is green, and the green house drinks coffee, so coffee is in house 3.
Clue 4. Red cannot be house 1, because nothing is to the left of house 1 for the dog owner to live in. Red cannot be house 3, because that is green. So red is house 2, and the dog is in house 1, directly to its left. Blue is the only colour left, so house 1 is blue.
| House 1 | House 2 | House 3 | |
|---|---|---|---|
| Colour | |||
| Pet | 🐶 | 🐶🐱🐰 | 🐶🐱🐰 |
| Drink | 🍵🥛☕ | 🍵🥛☕ | ☕ |
Clue 1. The cat and the milk must share a house. The cat can be in house 2 or 3. Milk can be in house 1 or 2. The only house both can be in is house 2. That leaves the rabbit for house 3 and tea for house 1.
| House 1 | House 2 | House 3 | |
|---|---|---|---|
| Colour | |||
| Pet | 🐶 | 🐱 | 🐰 |
| Drink | 🍵 | 🥛 | ☕ |
Answer: house 1 is blue, with the dog and tea. House 2 is red, with the cat and milk. House 3 is green, with the rabbit and coffee. We checked this puzzle with the same solver that checks every Zriddle puzzle: exactly one arrangement fits, and every clue is needed.
The how to play page has a second small puzzle, solved clue by clue in the same way.
How is a zebra puzzle different from other logic puzzles?
- Compared with Sudoku: Sudoku has no list of clues. You fill digits into a grid using one fixed rule (no repeats in a row, column or box). A zebra puzzle is all about reading clues written as sentences.
- Compared with other logic grid puzzles: a typical logic grid puzzle matches categories to each other (which person ate which snack). A zebra puzzle adds a row, so position is one of the categories, and clues like "next to" and "directly left of" become possible. Our guide to logic grid puzzles shows the classic tick-and-cross grid and how it relates.
- Compared with riddles: a riddle has a trick or a play on words. A zebra puzzle has no trick. Every clue means exactly what it says.
Where can you play zebra puzzles?
- Zriddle has four new zebra puzzles every day, free: Easy (4 places, 3 categories), Medium (5 by 4), Hard (5 by 5) and Expert (6 by 5).
- The practice board deals as many extra puzzles as you like, and starts with a coached three-house puzzle if you are new.
- Past daily puzzles, with clues and answers, are in the puzzle archive.
- For pencil and paper, the printable zebra puzzles come as PDFs with answers.
- The classic five-house puzzle can be played on the Einstein's riddle board.
New to them? The tips for beginners are a quick start, and the solving strategies go deeper.
Questions about zebra puzzles
Is a zebra puzzle the same as Einstein's riddle?
Yes. Zebra puzzle, Einstein's riddle and Einstein's puzzle are names for the same kind of puzzle. "Einstein's riddle" often means one famous example in particular, the five-house puzzle that asks who owns the zebra or, in another version, who owns the fish.
Do you need to guess to solve a zebra puzzle?
Not if the puzzle is well made. Every Zriddle puzzle is checked to have exactly one answer that can be reached by reasoning. On Expert, a step may need a short "what if" test, which is still logic: you try an option and see that it breaks a clue.
Are zebra puzzles good for kids?
Small ones are. A three-house puzzle like the one above suits children who can read the clues, and there are printable zebra puzzles for kids.
How hard is the original zebra puzzle?
It takes patience rather than genius. When Life printed the solution in March 1963, it named several hundred readers who had solved it. The claim that only 2% of people can solve it has no known source.
Related guides
- Worked examples with answers: three puzzles solved step by step.
- How to make a zebra puzzle: write your own and check it has one answer.
- The "2% can solve it" myth: where the claim comes from and how hard the riddle really is.
All of them are listed on the guides page.
