How many combinations does a Rubik's Cube have?

Updated:

A standard 3x3 Rubik's Cube has exactly 43,252,003,274,489,856,000 reachable positions, about 43 quintillion. Here is where that number comes from, why every one of those positions can be solved in 20 moves or fewer, and how the other WCA puzzles compare.

The short answer: 43 quintillion

The number of positions you can reach by turning a 3x3 Rubik's Cube is 43,252,003,274,489,856,000. In words that is forty-three quintillion, two hundred fifty-two quadrillion and change, or roughly 4.3 × 10¹⁹. Every one of them can be reached from the solved state by ordinary turns, and every one of them can be turned back to solved.

Two things are worth knowing before the maths. First, the count treats the cube as fixed in space: the centres never move relative to each other, so rotating the whole cube in your hands does not create a new position. Second, it counts positions of the pieces, not ways of painting stickers. Mathematicians often call these positions permutations or elements of the cube group, while cubers usually say combinations or states. They all mean the same thing here.

How the number is calculated, step by step

A 3x3 has 8 corner pieces and 12 edge pieces that move. The 6 centres stay put and define the colour of each face. The count multiplies how many ways each group of pieces can be arranged and oriented, then removes the cases that cannot happen on a real cube.

StepFactorValueWhy
Place the corners8!40,3208 corners can go into 8 slots in any order.
Twist the corners3⁷2,187Each corner has 3 orientations, but the last one is forced by the other seven.
Place the edges12!479,001,60012 edges can go into 12 slots in any order.
Flip the edges2¹¹2,048Each edge has 2 orientations, but the last one is forced by the other eleven.
Permutation parity÷ 2÷ 2Corner and edge permutations must be both even or both odd, so half the arrangements are impossible.

Putting it together: 8! × 3⁷ × 12! × 2¹¹ / 2 = 88,179,840 × 980,995,276,800 / 2 = 43,252,003,274,489,856,000.

The three restrictions come from what a single face turn does. A quarter turn twists corners in a way that always keeps the total twist a multiple of three, it flips edges in pairs, and it cycles four corners and four edges at the same time, which changes the parity of both permutations together. No sequence of turns can break these rules, so a single twisted corner, a single flipped edge or exactly two swapped edges never appears on a cube that has only been turned.

Why you can't just count sticker arrangements

A tempting shortcut is to count every way of arranging the 48 non-centre stickers. That gives a much larger and meaningless number, because stickers are glued to pieces. A corner always carries the same three colours in the same clockwise order, and an edge always carries its two colours. Most sticker layouts would need a corner with two white stickers or a blue sticker next to a green one on the same edge, which no real cube can show.

A better question is what happens if you take the cube apart and put the pieces back at random. Then all three restrictions from the table disappear: any corner can be twisted, any edge flipped, and any two pieces swapped. That gives 8! × 3⁸ × 12! × 2¹² = 519,024,039,293,878,272,000 assemblies, exactly 12 times more (3 for corner twist × 2 for edge flip × 2 for parity).

Only 1 in 12 of those random reassemblies can be solved by turning. The other eleven twelfths fall into eleven separate "universes" that can never reach the solved state. That is why a cube that someone reassembled carelessly, or a corner that popped and was put back twisted, can leave you stuck on a case that does not exist in any algorithm sheet. The fix is not a new algorithm but taking the offending piece out and putting it back correctly.

God's number: every position in 20 moves

God's number is the largest number of moves an optimal solver, one that always finds the shortest solution, would ever need. For the 3x3 it is 20 in the half-turn metric, where any turn of a face by 90° or 180° counts as one move.

This was proved in July 2010 by Tomas Rokicki, Herbert Kociemba, Morley Davidson and John Dethridge. They split the 43 quintillion positions into about 2.2 billion sets of roughly 20 billion positions each, cut that down using symmetry, and solved every remaining set on computer time donated by Google, about 35 CPU-years in total. The first position known to need 20 moves is the superflip, where every edge is flipped in place and everything else is solved. Estimates put the number of distance-20 positions at around 490 million, a vanishingly small slice of the whole.

In the quarter-turn metric, where a 180° turn counts as two moves, God's number is 26. Rokicki and Davidson finished that proof in August 2014. Only one position, the superflip combined with the "four-spot" pattern, and its two rotations are known to need 26 quarter turns.

For speedcubers the practical point is that a scramble is never "too far" from solved. Your 50 to 60 moves of CFOP are well above 20 because human methods trade move count for recognition speed and finger tricks. Fewest Moves competitors try to close that gap, and good FMC solutions usually land somewhere in the 20s.

How other puzzles compare

The same counting idea works for every WCA puzzle. Smaller puzzles have few enough positions that computers have solved every one of them optimally. Big cubes have numbers so large that God's number is unknown.

PuzzlePositionsGod's number
2x23,674,16011 (HTM), 14 (QTM)
Pyraminx933,120 without tips, 75,582,720 with tips11 without tips
Skewb3,149,28011
3x343,252,003,274,489,856,000 (≈ 4.3 × 10¹⁹)20 (HTM), 26 (QTM)
Clock1,283,918,464,548,864 (12¹⁴)–
4x47,401,196,841,564,901,869,874,093,974,498,574,336,000,000,000 (≈ 7.4 × 10⁴⁵)unknown
Megaminx≈ 1.01 × 10⁶⁸unknown
5x5≈ 2.83 × 10⁷⁴unknown
6x6≈ 1.57 × 10¹¹⁶unknown
7x7≈ 1.95 × 10¹⁶⁰unknown

The 2x2 count is 8! × 3⁷ divided by 24, because a 2x2 has no fixed centres and every position can be held in 24 orientations. That works out to 7! × 3⁶ = 3,674,160. The Pyraminx figure is often quoted both ways: the four tips each have 3 orientations, so adding them multiplies the count by 81, and each tip adds at most one move to the optimal solution. On the Clock, each of the 14 dials (9 on the front, 5 more on the back that are not shared with the front) can point to any of 12 hours independently.

The 4x4 is where things grow fast. It has 24 edge pieces instead of 12, and 24 centre pieces that come in identical groups of four, so many arrangements look the same. The full formula is 8! × 3⁷ × 24! × 24! / (4!⁶ × 24). From there every extra layer multiplies the count by an enormous factor, which is why big-cube scrambles feel so different from 3x3 ones.

What this means for random-state scrambles

A random-state scramble starts by picking one of the 43 quintillion positions with equal probability, then computes a sequence of moves that reaches it. That is what the WCA uses for 3x3 and what the 3x3 scrambler on this site generates. The alternative, random-move scrambling, just strings together 20 or 25 random turns. It is fast, but some positions come up more often than others and short sequences can leave pieces suspiciously close to solved.

Because every position is equally likely, a random-state scramble is completely fair: you get easy crosses and lucky skips exactly as often as they happen in nature, no more and no less. The size of the space also means repeats are essentially impossible. Even after about 7.7 billion random-state scrambles there would only be a coin-flip chance that any two of them, anywhere, matched.

The move sequence itself is usually around 20 moves long, because the generator looks for a short solution to the chosen position and then reverses it. If you want to know how to read those sequences, see the scramble notation guide.

How big is 43 quintillion, really?

Numbers with 20 digits are hard to picture, so here are a few ways to feel the scale:

  • One position per second: going through every 3x3 position would take about 1.37 trillion years, roughly a hundred times the current age of the universe.
  • A billion positions per second: even a computer checking a billion positions every second would need about 1,370 years.
  • Stacked cubes: if you scrambled one standard 57 mm cube into each position and stacked them, the tower would be about 260 light-years tall.
  • Covering the Earth: laid side by side, the same cubes would cover the entire surface of the Earth, oceans included, in about 275 layers, a blanket around 16 metres thick.

And yet any of those positions is at most 20 moves from solved, and a beginner with a layer-by-layer method can solve every single one of them. That combination of a huge state space and a small, learnable set of tools is a big part of why the cube is still fun after fifty years.

FAQ

How many combinations does a Rubik's Cube have?

A standard 3x3 has 43,252,003,274,489,856,000 reachable positions, about 4.3 × 10^19. It is calculated as 8! × 3^7 × 12! × 2^11 / 2.

What is God's number?

It is the maximum number of moves needed to solve any position optimally. For the 3x3 it is 20 in the half-turn metric (proved in 2010) and 26 in the quarter-turn metric (proved in 2014).

How many combinations does a 2x2 have?

A 2x2 has 3,674,160 positions. God's number for the 2x2 is 11 moves in the half-turn metric and 14 in the quarter-turn metric.

Can a Rubik's Cube be unsolvable?

Only if it was taken apart or a piece was twisted by hand. Turning alone can never make a cube unsolvable, but a random reassembly has only a 1 in 12 chance of being solvable.

Will I ever get the same scramble twice?

With random-state scrambles, practically never. There are 43 quintillion equally likely positions, so you would need billions of scrambles before a repeat became even a coin flip.

Keep reading