Zriddle logo

The history of the Einstein riddle (the zebra puzzle)

Play today's puzzle

Five houses in a row as colour tiles, with a calendar tile and a zebra tile

Nobody knows who wrote the zebra puzzle. The oldest known printing is in Life International magazine on 17 December 1962. There is no evidence that Albert Einstein or Lewis Carroll wrote it, and the popular claim that only 2% of people can solve it has no known source.

Where did the zebra puzzle first appear?

The earliest known version was published in Life International, the overseas edition of Life magazine, on 17 December 1962. A 2009 paper by Dylan and J. Vassberg, "Is Einstein's Puzzle Over-Specified?", includes a scan of that original page, and Wikipedia's article on the puzzle cites it for the date.

That version had 15 statements, starting with "There are five houses", and ended with two questions: "Who drinks water? Who owns the zebra?" According to the Wikipedia article, the 25 March 1963 issue printed the solution along with the names of several hundred readers from around the world who had solved it. We have not been able to see that issue ourselves.

The puzzle had no author's name. A puzzle collection page kept by John Burkardt at Florida State University recalls reading it "in the International Edition of Life Magazine, back in 1962", which fits the date.

Did Einstein write the riddle?

There is no evidence that he did. The story that Einstein made it up as a boy is an urban legend, and it is sometimes told about Lewis Carroll instead. Nobody has produced any evidence that links either man to the puzzle.

The puzzle itself argues against both. The 1962 version names American cigarette brands, and some of them did not exist yet when the two men could have written it. Old Gold went on sale in 1926 and Kool in 1933. Lewis Carroll died in 1898, and Einstein, born in 1879, was a grown man by the 1920s.

The name "Einstein's riddle" has stuck anyway. Books and websites still use it, and so do we on this site, because it is the name many people search for.

Can only 2% of people solve it?

There is no known source for this number. It usually travels with the fish version, as a challenge to the reader. We have found no study, survey or quote from Einstein that backs it up. As early as March 2001, a programmer posting on the Python mailing list noted that he could find no confirmation that Einstein wrote the riddle or that he said only 2% of people could solve it.

In practice, the puzzle needs patience and tidy notes, not genius. In March 1963 Life named several hundred readers who had sent in the right answer.

The zebra version and the fish version

Two versions are common today. They have the same structure, so a solution method for one works for the other.

  • The zebra version is the 1962 Life International puzzle. It uses an Englishman, a Spaniard, a Ukrainian, a Norwegian and a Japanese man, an ivory house, orange juice, and the cigarette brands Old Gold, Kools, Chesterfield, Lucky Strike and Parliament. It asks two questions, and neither water nor the zebra is mentioned in any clue.
  • The fish version uses a Brit, a Swede, a Dane, a Norwegian and a German, a white house, beer, and the brands Pall Mall, Dunhill, Blends, Blue Master and Prince. The green house moves to the left of the white house, and an extra clue says the Blends smoker's neighbour drinks water. It asks only "who owns the fish?".

We could not find who wrote the fish version or when it first appeared. It was already circulating online with the Einstein story by 2001. Both versions, with the answers, are on our Einstein's riddle page and the answer page.

The zebra puzzle in computer science

The puzzle is a neat example of a constraint satisfaction problem: a set of variables (which house each item is in) and rules they must obey. That has made it a standard test for computer programs.

  • In 1993 Patrick Prosser used it to compare nine search algorithms in "Hybrid Algorithms for the Constraint Satisfaction Problem" (Computational Intelligence). He described it as 25 variables and 122 constraints and ran 450 versions of it with different search orders.
  • It is a common teaching exercise for programmers: Rosetta Code has a "Zebra puzzle" task solved in dozens of languages, and Exercism has a "zebra-puzzle" exercise on many language tracks.
  • In 2025, researchers released ZebraLogic, a test of how well large language models handle logic grid puzzles of this kind.

Zriddle's own puzzles come from the same idea. A generator deals a random answer and picks true clues, and a solver checks that exactly one arrangement fits before a puzzle is used. You can read more on the about page.

Questions about the riddle's history

Who invented the zebra puzzle?

Nobody knows. It was printed without an author's name in Life International on 17 December 1962, which is the earliest known version.

Why is it called Einstein's riddle?

Because of a legend that Einstein wrote it as a boy. There is no evidence for this, and some of the cigarette brands in the 1962 version did not exist until the 1920s and 1930s.

Is it true that only 2% of people can solve it?

No source for that figure has ever been found. It appears to be part of the same legend.

Sources

Related guides

All of them are listed on the guides page.

Play today's puzzle