WIPIVERSE All articles

Shannon number

The Shannon number is a well-established concept in chess mathematics and computer science: a conservative lower bound on the game-tree complexity of chess, equal to approximately 10¹²⁰ possible games. It is named after the American mathematician and information theorist Claude E. Shannon, who introduced the estimate in his 1950 paper "Programming a Computer for Playing Chess," published in The Philosophical Magazine. That paper is widely credited with founding the field of computer chess.

Shannon's calculation

Shannon's estimate was not an exhaustive count but a deliberately rough calculation intended to demonstrate the impracticality of solving chess by brute-force search. His assumptions were:

  • In a typical position, there are of the order of 30 legal moves (Shannon cited data from the psychologist Adriaan de Groot's analysis of master games).
  • A move by White followed by a move by Black therefore yields roughly 30 × 30 ≈ 10³ possibilities.
  • A typical game lasts about 40 such pairs of moves (80 plies, or half-moves), ending at resignation rather than checkmate — a conservative assumption, since a machine calculating to mate would search further.

Multiplying these factors gives about 30⁸⁰ ≈ 10¹²⁰ variations. Shannon noted that a machine evaluating one variation per microsecond would require more than 10⁹⁰ years to calculate the first move.

Positions versus games

Shannon also distinguished the number of possible positions from the number of possible games. For positions he gave an estimate of the general order of 64!/(32!·(8!)²·(2!)⁶), roughly 10⁴³ (other renderings cite approximately 3.7 × 10³⁴ for a related formulation). This count includes some illegal positions (for example, pawns on the first rank or both kings in check) and excludes positions arising after captures and promotions.

Subsequent work has tightened the position bounds. Victor Allis (1994) calculated an upper bound of 5 × 10⁵² and estimated the true figure at around 10⁵⁰; later results proved an upper bound of 8.7 × 10⁴⁵, and 4 × 10³⁷ in the absence of promotions. John Tromp and Peter Österlund estimated the number of legal chess positions at roughly (4.822 ± 0.028) × 10⁴⁴.

Allis also estimated the game-tree complexity to be at least 10¹²³, based on an average branching factor of 35 and an average game length of 80 plies.

Comparisons and related figures

The Shannon number is frequently compared with the estimated number of atoms in the observable universe, usually placed at roughly 10⁷⁹–10⁸¹, to illustrate the scale of chess's combinatorial explosion. A separate and much smaller figure is sometimes cited for "sensible" games — those excluding obviously self-destructive moves — estimated at about 10⁴⁰, based on roughly three sensible choices per ply over 80 plies.

Significance

The Shannon number is a standard illustration of combinatorial explosion and is often referenced alongside related measures such as state-space complexity (the number of positions) and game-tree complexity (the number of move sequences). It is generally treated as a famous order-of-magnitude benchmark rather than an exact count, and it is commonly misattributed as the number of legal chess positions. It motivated Shannon's broader argument that practical chess programs must rely on selective search and position evaluation rather than exhaustive enumeration — an approach that underlies modern chess engines.

References

  • Shannon, Claude E. (March 1950). "Programming a Computer for Playing Chess." The Philosophical Magazine, 7, 41 (314), 256–275.
  • Allis, Victor (1994). Searching for Solutions in Games and Artificial Intelligence (Ph.D. thesis), University of Limburg.
  • Tromp, John (2022). "Chess position ranking." GitHub.
  • Steinerberger, Stefan (2015). "On the number of positions in chess without promotion." International Journal of Game Theory, 44 (3), 761–767.
Browse

More topics to explore

    Browse all articles