God’s Number: every Rubik’s Cube can be solved in 20 moves
However scrambled a Rubik’s Cube is, it can be solved in 20 moves or fewer. That number is called God’s number, because it is the length of the longest solution that a solver who always knew the shortest route would ever need. It was proved in 2010, 36 years after Ernő Rubik made the first cube in 1974.
The result does not mean that a person can solve a cube in 20 moves. It means that a shortest solution of 20 moves or fewer exists for every position. Finding that solution for a given scramble takes a computer, and fast human methods use far more moves because they trade efficiency for steps that can be recognised and done without thinking.
Where the 43 quintillion comes from
A standard cube has 8 corner pieces and 12 edge pieces. The centres never move relative to each other, so they act as a fixed frame. The corners can be arranged in 8! ways and each can be twisted in three ways, but once seven corners are set the twist of the last one is forced, giving three to the power of seven rather than eight. The edges can be arranged in 12! ways and each flipped in two ways, and again the last flip is forced, giving two to the power of eleven.
One more restriction halves the total: every quarter turn cycles four corners and four edges at once, so the corner arrangement and the edge arrangement are always both odd or both even. Multiply it out and divide by two and you get 43,252,003,274,489,856,000 positions that can be reached by turning the faces. Taking the cube apart and reassembling it at random would reach twelve times as many, most of them unsolvable.
What counts as a move
God’s number depends on how moves are counted. The figure of 20 uses the half-turn metric, where turning any face by a quarter turn or a half turn counts as one move. In the quarter-turn metric, where a half turn counts as two moves, the answer is 26, which was proved in 2014.
Both results have two halves. The lower bound needs one position that cannot be solved in fewer moves. For the half-turn metric that position had been known since 1995, when Michael Reid showed that the superflip, the position where every edge is in its home slot but flipped the wrong way round, needs exactly 20 moves. The upper bound is the hard half: it needs proof that no position anywhere needs 21.
How the proof was done
Checking positions one at a time was never an option, even for a large computer. The team that finished the proof in 2010, Tomas Rokicki, Herbert Kociemba, Morley Davidson and John Dethridge, split the positions into large sets that share a structure, so that each set could be solved in one sweep rather than position by position. Symmetry did a great deal of the work: a position and its rotations and mirror images need the same number of moves, so only one of each family had to be checked.
The team did not find an optimal solution for every set. For each one it was enough to show that everything in it could be solved in 20 moves or fewer, which is much faster than finding the shortest solution. Google donated the computer time for the final run. When it finished, no position had needed more than 20 moves, and the superflip showed that 20 could not be lowered.
The proof closed a search that had been narrowing for decades. In the early 1980s the best known upper bound was in the fifties, and it came down step by step as better algorithms and faster computers arrived, while the lower bound crept up until the two met at 20.
What it means for solving a cube
For somebody learning to solve a cube, God’s number is mostly a reassurance. A beginner method that takes over a hundred moves is not doing anything wrong: it is using a small set of sequences that each fix a few pieces without disturbing the rest, and those sequences are long because they have to leave everything else alone.
The number does matter in competition. Fewest moves is an official event in which solvers get a scramble, pen and paper, and a time limit to write down the shortest solution they can find. Even with an hour to search, finding a solution of around 20 moves by hand is a strong result.
It also shows how short the distance always is. A random scramble looks hopeless, but no position is further than 20 moves from solved. The difficulty is entirely in knowing which moves they are.


