How many combinations does a 3x3 cube have?

A 3x3 cube has 43,252,003,274,489,856,000 positions. Build that number step by step, see how big it is, and learn why 20 moves always solve it.

A Rubik's Cube has 43,252,003,274,489,856,000 positions. That is about 43 quintillion. Still, every one of them can be solved in 20 moves or fewer. On this page you can build the big number yourself and see how people proved the 20.

Jump to: build the number, how big it is, God's number, the superflip or a random position.

A solved cube in front of a night sky filled with countless tiny cubes, with the words "43 quintillion" above it
Every one of these positions can be reached from a solved cube by turning.

Where the number comes from

A 3x3 cube has 26 pieces you can see. The 6 centers never move against each other, so they don't change the position. That leaves 8 corners and 12 edges to count.

For each corner, you can ask two things: which spot is it in, and which way is it turned? You can ask the same about each edge. Switch on the cards below one at a time and watch the number grow.

All five steps together

43,252,003,274,489,856,000

43 quintillion, 252 quadrillion, 3 trillion, 274 billion, 489 million, 856 thousand

40,320 × 2,187 × 479,001,600 × 2,048 ÷ 2

The ! sign means factorial. 8! is 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1. The first corner can go into any of 8 spots, the next one into any of the 7 spots left, and so on down to the last corner, which gets the last spot.

You might expect 38 for the corner twists, with one 3 for each corner. But turning can never twist just one corner. Once you know how 7 corners are turned, the 8th has only one way left. The edges work the same way: 11 edges can flip either way, and the 12th must follow them.

The last step divides by 2. You can never swap just two pieces and leave the rest alone. If the corners have been swapped an odd number of times, so have the edges. That rule cuts the count in half, and you end up with 43,252,003,274,489,856,000.

Why there are 12 times more ways to build a cube

Now take a cube apart and put the pieces back at random. The three rules above no longer hold. The last corner can point 3 ways, the last edge can flip 2 ways, and any two pieces can swap. That gives 3 × 2 × 2 = 12 times as many cubes:

519,024,039,293,878,272,000

Only 1 in 12 of them can be solved by turning. The other 11 have a twisted corner, a flipped edge or two swapped pieces, even if they look like a normal scramble. Our page about the unsolvable cube shows how to spot and fix each one.

What you countBy turningTaken apart
Corner twists37 = 2,18738 = 6,561
Edge flips211 = 2,048212 = 4,096
Two pieces swapped alonenever, so ÷ 2possible
Total43,252,003,274,489,856,000519,024,039,293,878,272,000

How big is 43 quintillion?

Numbers this big are hard to picture. Pick a comparison below. Your browser works out the answer from the full number, and the assumptions are listed under it.

about 1.37 trillion years

If you looked at one position every second, day and night, you would need about 1.37 trillion years. That is about 99 times the age of the universe.

43,252,003,274,489,856,000 ÷ 31,557,600 = 1,370,573,277,895 years

Assumptions: a year has 365.25 days, which is 31,557,600 seconds. The universe is about 13.8 billion years old.

God's number is 20

A scrambled cube on the left, a winding path of stepping stones, and the same cube solved on the right, with the label "20 moves"
Any position can be solved in 20 moves or fewer.

Imagine a perfect solver that always finds the shortest way to solve a cube. Now give it the hardest position there is. The number of moves it needs for that position is called God's number.

In July 2010, Tomas Rokicki, Herbert Kociemba, Morley Davidson and John Dethridge proved that God's number is 20. Every position can be solved in 20 moves or fewer, and some positions need all 20. To check all 43 quintillion positions, they combined clever math with about 35 years of computer time donated by Google. In other words, one computer processor working alone would have needed about 35 years.

Their full proof appeared in a math journal in 2013. The site cube20.org explains it in plain words.

What counts as one move?

The 20 uses the HTM, the usual way to count. Any turn of one face counts as one move, so R, R' and R2 are each one move. In the QTM, a half turn like R2 counts as two moves. With that rule, God's number is 26. Tomas Rokicki and Morley Davidson proved it in August 2014. Our notation page explains all the move letters.

How many moves each position needs

The chart shows how many positions need each number of moves, from 0 (the solved cube) to 20. Each line on the chart is a million times bigger than the line below it, so tiny and huge numbers fit on one chart. Tap or hover over a bar to see its number.

Positions by the fewest moves they need (HTM)

18 moves: about 29,000,000,000,000,000,000 positions (about 29 quintillion). That is about 67% of all positions.

Exact count Estimate

Show the numbers as a table
MovesPositions
01
118
2243
33,240
443,239
5574,908
67,618,438
7100,803,036
81,332,343,288
917,596,479,795
10232,248,063,316
113,063,288,809,012
1240,374,425,656,248
13531,653,418,284,628
146,989,320,578,825,358
1591,365,146,187,124,313
16about 1,100,000,000,000,000,000
17about 12,000,000,000,000,000,000
18about 29,000,000,000,000,000,000
19about 1,500,000,000,000,000,000
20about 490,000,000

Source: cube20.org. Counts for 0 to 15 moves are exact. Counts for 16 to 20 moves are estimates.

Counts from 0 to 15 moves are exact. Counts from 16 to 20 moves are careful estimates, so they say "about". Most positions, about 2 in 3, need exactly 18 moves. Only about 490 million need the full 20. That sounds like a lot, but it is only about 1 in 88 billion of all positions.

From 52 moves to 20: a short history

People started to look for God's number soon after the cube came out. By 1980 they knew that some positions need at least 18 moves. The reason is simple counting. Skip the move lists that waste moves, like R followed by R again, and count R L and L R only once, because they do the same thing. Then there are only about 20 quintillion different lists of 17 moves or fewer. That is fewer than the 43 quintillion positions, so some positions can't be reached in 17 moves.

Proving how many moves are always enough was much harder. Each new proof brought the top number down:

YearGod's number was known to beWho
198118 to 52Morwen Thistlethwaite
199018 to 42Hans Kloosterman
199218 to 39Michael Reid
199218 to 37Dik Winter
199520 to 29Michael Reid, who also proved that the superflip needs 20
200520 to 28Silviu Radu
200620 to 27Silviu Radu
200720 to 26Dan Kunkle and Gene Cooperman
200820 to 25Tomas Rokicki
200820 to 23Tomas Rokicki and John Welborn
200820 to 22Tomas Rokicki and John Welborn
2010exactly 20Tomas Rokicki, Herbert Kociemba, Morley Davidson and John Dethridge

All counts use the half turn metric. Source: the history table on cube20.org.

The superflip: a famous 20-move position

In the superflip, every corner is solved and every edge sits in its own spot, but flipped. Each face shows its own color in the center and the corners, with four other colors on the edges around the center.

In 1995, Michael Reid proved that the superflip can't be solved in fewer than 20 moves. It was the first position known to need all 20. Press play to watch it being made in exactly 20 moves.

R L U2 F U' D F2 R2 B2 L U2 F' B' U R2 D F2 U R2 U

The superflip has a neat trick: do the same 20 moves again and the cube is solved. You can open it in the simulator or give it to our solver. Our solver is built for speed, so it may find a solution a move or two longer than 20.

In the quarter turn count, the superflip together with a pattern called the four spot needs 26 quarter turns. Michael Reid proved that in 1998. You can find more pretty positions like these on our patterns page.

Try it: solve a random position

Press the button to get a random position. Every one of the 43 quintillion positions has the same chance to come up. Then our solver looks for a short solution and shows how many moves it needed.

Your position will show up here, with its solution.

Our solver uses Herbert Kociemba's two-phase method, described on his site. It is fast, but it stops looking after about 1.5 seconds, so it doesn't always find the shortest solution. In our tests it found 19 moves most of the time. A perfect solver would usually need 18, because 2 in 3 positions need exactly 18. The solver page solves your own cube the same way.

Questions people ask

How many combinations does a 3x3 cube have?

43,252,003,274,489,856,000, or about 43 quintillion. That counts every position you can reach by turning the sides.

What is God's number?

It is the most moves a perfect solver ever needs for a 3x3 cube. It is 20 when every face turn counts as one move, and 26 when a half turn counts as two.

Who proved that God's number is 20?

Tomas Rokicki, Herbert Kociemba, Morley Davidson and John Dethridge, in July 2010. They used about 35 years of computer time donated by Google.

Can I solve a cube in 20 moves?

Only with a computer's help, or a lot of luck. People solve in steps they can remember, and that takes more moves. In our tests, the CFOP mode of our solver needed about 60 moves, and the beginner mode about 160.

How many positions need all 20 moves?

About 490 million. That is about 1 in 88 billion of all positions. The superflip is the most famous one.

Why can you build 12 times more cubes than you can reach?

When you take a cube apart, you can twist one corner, flip one edge or swap two pieces. Turning can never do those things, so only 1 in 12 of the cubes you can build can be solved.