How Many Possible Chess Games Are There? (The Shannon Number)

There are about 10¹²⁰ possible chess games (the Shannon number) but only about 4.8×10⁴⁴ legal positions. See where the numbers come from, move by move.

Nobody knows the exact number of possible chess games, but the classic estimate is about 10¹²⁰ (a 1 followed by 120 zeros). It is called the Shannon number, after Claude Shannon, who worked it out in 1950. The number of different legal positions is far smaller, about 4.8 × 10⁴⁴. For comparison, the observable universe is thought to hold about 10⁸⁰ atoms: fewer than the possible games, but far more than the positions.

This guide explains where those numbers come from, why "games" and "positions" are not the same thing, how fast the count grows in the first few moves (we checked those numbers ourselves with a move generator), and why the rules make the number of games finite at all. The boards are interactive.

The short answer

What is countedNumberWhere it comes from
Legal first moves for White20counted
Possible games after one move each400counted
Possible games after two moves each197,281counted
Legal chess positionsabout 4.8 × 10⁴⁴John Tromp, 2021 estimate
Atoms in the observable universeabout 10⁸⁰common astronomy estimate
Possible chess gamesabout 10¹²⁰Claude Shannon, 1950 rough estimate

The first three rows are exact. The others are estimates, and the last one is only an order of magnitude: the real number of possible games could be much larger, as you will see below.

Counting the first moves: 20, 400, 8,902...

At the start of the game White has exactly 20 legal moves: each of the 8 pawns can move one or two squares (16 moves), and each knight can jump to two squares (4 moves). No other piece can move yet.

Chess diagram (How Many Possible Chess Games Are There? (The Shannon Number)): All 20 legal first moves: 16 pawn moves (green) and 4 knight moves (blue)…
Interactive board: All 20 legal first moves: 16 pawn moves (green) and 4 knight moves (blue). The bishops, rooks, queen and king are still boxed in.

Black also has 20 replies to each of them, so after one move by each side there are 20 × 20 = 400 possible games. After that the pieces get out and the numbers explode. Programmers call this count perft (short for "performance test"): the number of different move sequences of a given length from a position. Chess engines use it to check that their move generator is correct.

Half-moves (plies)Possible games (perft)
120
2400
38,902
4197,281
54,865,609
6119,060,324
73,195,901,860

We computed depths 1 to 5 ourselves with the open-source chess.js move generator; depths 6 and 7 are the published values from the Chess Programming Wiki. So after just three moves each there are already more than 119 million possible games, and every extra half-move multiplies the count by roughly 20 to 27.

Among the 197,281 games of two moves each, exactly 8 end in checkmate. They are all versions of Fool's Mate, the fastest checkmate in chess:

Chess diagram (How Many Possible Chess Games Are There? (The Shannon Number)): Fool's Mate, 1.f3 e5 2.g4 Qh4#: one of only 8 games out of 197,281 that end…
Interactive board: Fool's Mate, 1.f3 e5 2.g4 Qh4#: one of only 8 games out of 197,281 that end in checkmate after two moves each.

Games are not positions

A game is a sequence of moves. A position is what the board looks like (plus whose turn it is, castling rights and en passant). Many different games lead to the same position. Play 1.Nf3 Nf6 2.Nc3 Nc6, or 1.Nc3 Nc6 2.Nf3 Nf6, and you get the same board by two different routes. Players call this a transposition.

That is why the number of distinct positions grows much more slowly than the number of games. After two plies every one of the 400 games still gives a different position, but after three plies the 8,902 games reach only 5,362 different positions, and after four plies the 197,281 games reach only 72,078. (We counted these too, treating two positions as the same when the pieces, the side to move, castling rights and en passant possibilities are the same.)

Over a whole game the gap becomes enormous. There are about 10⁴⁴ positions but something like 10¹²⁰ games, because almost every position can be reached in a huge number of ways.

The Shannon number: where does 10¹²⁰ come from?

In 1950 the American mathematician and engineer Claude Shannon published "Programming a Computer for Playing Chess", one of the first papers on chess computers. To show why a computer cannot simply look at every possible game, he made a quick back-of-the-envelope estimate:

Shannon never claimed this was exact. It is a rough estimate of the size of the game tree for games of typical length, and that is how it is used today. In the same paper he estimated the number of positions at roughly 10⁴³. Even an impossibly fast machine, he noted, would need more than 10⁹⁰ years to choose its first move by looking at every variation. That is still true: chess is not "solved", and engines play well by searching cleverly, not by checking everything.

Counting positions is harder than it sounds, because a position must be reachable in a real game: no pawns on the first rank, no nine queens with all eight pawns still on the board, no king left in check by the side to move, and so on. For a long time researchers could only give upper bounds, such as about 10⁴⁶·⁷ (roughly 4.5 × 10⁴⁶).

In 2021 the computer scientist John Tromp published a much better answer. He numbered every candidate position, picked a large random sample, and checked each sampled position for legality. His estimate is about 4.8 × 10⁴⁴ legal positions, with a small margin of error. That is roughly 480 billion billion billion billion positions: huge, but tiny next to 10¹²⁰.

For comparison, the estimate usually quoted for the number of atoms in the observable universe is about 10⁸⁰. There are fewer legal chess positions than atoms, but vastly more possible games.

Why the number of games is finite

Without draw rules, a game could go on forever: both players could move their knights out and back again for as long as they liked.

Chess diagram (How Many Possible Chess Games Are There? (The Shannon Number)): 1.Nf3 Nf6 2.Ng1 Ng8 brings back the starting position. Without draw rules…
Interactive board: 1.Nf3 Nf6 2.Ng1 Ng8 brings back the starting position. Without draw rules, this loop could be repeated forever, and the number of possible games would be infinite.

Under the FIDE Laws of Chess, two rules end such loops:

Because of these automatic rules, every game must end after a finite number of moves, so the number of possible games is finite too. It is just far too large to write down. For more on how draws work, see our draw rules guide.

What this means for players

You will never run out of new games. Even strong players leave the well-known opening moves within the first dozen or so moves, and from then on the position is often one nobody has seen before. That is why patterns, plans and calculation matter more than memorizing moves. Endgames are the one area where computers have looked at everything: tablebases contain perfect play for every position with up to seven pieces on the board.

Want to explore some of those 10¹²⁰ games yourself? Play a game against a friend or the computer, sharpen your eye with puzzles, or start from the beginning with free chess lessons. If you like chess numbers, read how many squares are on a chessboard next.

Sources

Frequently asked questions

How many possible chess games are there?

Nobody knows exactly. The standard estimate is about 10¹²⁰, the Shannon number, from Claude Shannon's 1950 paper. It assumes about 1,000 possibilities for each pair of moves and a game of about 40 moves. The true number is finite because of the automatic draw rules, but it is far too large to count.

Are there more chess games than atoms in the universe?

Yes, by a huge margin. The observable universe is usually estimated to contain about 10⁸⁰ atoms, while the number of possible chess games is around 10¹²⁰. The number of legal positions, about 4.8 × 10⁴⁴, is much smaller than the number of atoms, though.

How many possible moves are there in the first move of chess?

White has 20 possible first moves: 16 pawn moves (each pawn one or two squares forward) and 4 knight moves. Black has 20 replies, so there are 400 possible games after one move by each side.

How many chess positions are possible?

John Tromp's 2021 estimate puts the number of legal chess positions at about 4.8 × 10⁴⁴. Claude Shannon's older, rougher estimate was about 10⁴³. Both count positions that can actually arise in a game.

Has chess been solved?

No. There are far too many positions for a computer to check them all, so nobody knows whether the starting position is a win for White or a draw. Only endgames with up to seven pieces have been solved completely.

Can a chess game go on forever?

No. Under the FIDE Laws, a game is drawn automatically after fivefold repetition or 75 moves by each side without a capture or pawn move. Threefold repetition and the 50-move rule also allow a draw, but only if a player claims it.

Keep learning

Related guides