WikiNano.
Rubik's Cube Lab

A hands-on guide · the 3×3×3 puzzle

Rubik's Cube Lab

The cube beside this text is live. Drag a sticker to turn its layer, drag the dark background to look around. Read on to learn how the puzzle works, how cubers write down moves, and a 7-step method that solves any scramble.

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

positions are possible. Every one of them can be solved in 20 moves or fewer, and the computer solver in chapter 5 finds solutions that short. The method you'll learn here uses about 150 moves, and you can learn it in an evening.

Start lesson 1
01

Play

A sandbox that behaves like a real cube, with an undo button a real cube doesn't have.

Controls

Drag a stickerTurns the layer under your finger in the direction you drag. Grab an edge-middle sticker on a 3×3 to turn a middle slice.
Drag the dark backgroundLooks around the cube. Double-click it to reset the view.
U D R L F BTurn a face clockwise. Hold Shift for counterclockwise.
M E S · X Y ZMiddle slices, and whole-cube rotations.
Ctrl Z / Ctrl YUndo and redo.

Move pad

Every button is one turn in standard notation (chapter 3 explains the letters).

Run a sequence

Type moves separated by spaces. Brackets repeat: (R U R' U')6 runs that sequence six times.

Try:
02

How it works

Six faces, nine stickers each. Underneath: 26 small pieces around a hidden core, and they come in only three kinds.

6
Centers

One sticker each. They're fixed to the core, so they spin but never move. A center's color is the color its whole face will be when solved.

12
Edges

Two stickers. An edge is always an edge: turns move it between the 12 edge spots and can flip it over.

8
Corners

Three stickers. A corner is always a corner: it travels between the 8 corner spots and can twist three ways.

Solve pieces, not stickers

The white and red edge belongs between the white center and the red center. Nowhere else can it go. Once you stop chasing single stickers and start placing whole pieces next to their centers, the puzzle starts to make sense. Every method, from beginner to world-record, works this way.

What's inside

At the heart is a three-armed core, like a jack. The six centers are screwed onto its arms, which is why they can spin but never move. Every edge and corner has a foot that hooks under its neighbors, so the pieces hold each other in place while any layer turns.

The color scheme

Almost every cube uses the same layout. Opposite faces are fixed pairs:

White is opposite yellow
Green is opposite blue
Red is opposite orange

Hold white on top and green in front, and red is on your right. That's the standard starting position for scrambles.

Why you can't fix just one piece

Every face turn moves 8 pieces at once: 4 edges and 4 corners. To fix one piece without wrecking the others, you need a sequence of turns that moves a few pieces and puts everything else back where it was. Those sequences are called algorithms, and a whole solving method is just a handful of them used in a good order.

Bigger and smaller cubes

Switch sizes in the bar under the cube. The pieces grow fast:

SizeCornersEdge piecesCenter piecesStickers

On even sizes (2×2, 4×4, 6×6) there are no fixed centers, so the corners tell you which color goes where. Big cubes are usually solved by reduction: build the centers, pair up matching edge pieces, then finish like a 3×3 (sometimes with an extra "parity" fix a 3×3 never needs).

03

Notation

Cubers write moves with single letters. Learn these and you can follow any tutorial in the world.

  • Each letter names a face: Up, Down, Right, Left, Front, Back.
  • A plain letter is a quarter turn clockwise, as if you were looking straight at that face.
  • A ' (say "prime") means counterclockwise. A 2 means a half turn.
  • Watch L, D and B: seen from the front, clockwise for them looks backwards. R pushes the right column up; L pulls the left column down.

Quiz: name that move

A little cube makes one turn from solved (white on top, green in front). Which move was it?

Which move was that?
0 / 0
04

Solve it in 7 steps

The layer-by-layer method: first the white layer, then the middle, then the yellow layer. You need five short algorithms, and each step has a button that sets up a cube for you to practise on.

  • Hold the cube with the yellow center on top the whole time. White starts on the bottom and stays there.
  • Practise this step sets up the cube with every earlier step already done. Hint tells you the next move group. Show me plays this step with a caption for each part.

After the beginner method

Once this feels easy, most people move on to CFOP, the method nearly every speedcuber uses: a cross, then the first two layers built as corner-and-edge pairs, then the last layer in two algorithms. Full CFOP uses 57 orientation algorithms (OLL) and 21 permutation algorithms (PLL) and averages around 57 moves. The friendly halfway point is "2-look" last layer: 10 algorithms for orientation and 6 for permutation. They're all in chapter 6.

Other popular methods are Roux, which builds blocks and leans on the M slice, and ZZ, which fixes every edge's orientation first so the rest needs no F or B turns.

05

Solvers

Two ways to solve the cube on screen: the 7-step method with a caption for every part, or a computer search that finds a solution close to the shortest possible.

Loading the fast solver's lookup tables…

How the fast solver works

It uses Herbert Kociemba's two-phase algorithm. Phase 1 turns the cube until every edge and corner is oriented correctly and the four middle-layer edges sit somewhere in the middle layer. From there, phase 2 finishes the job using only U and D turns plus half turns of the four sides, which never undo phase 1. Both phases search with lookup tables of how far each state is from its goal, about 4 million entries built in your browser when this page loads.

Solve your own cube

Copy the colors of a real cube onto the screen cube, then let either solver walk you through it.

  1. Hold your real cube with the white center on top and the green center facing you.
  2. Press Start painting, pick a color, and click stickers on the screen cube or on the flat map. Drag the background to see the other sides.
  3. Press Check colors. The lab tells you if a sticker is wrong or the cube can't be solved.
06

Algorithms

Every sequence here was checked on this page's cube model. Show case sets up the situation the algorithm solves; Play runs it on the cube.

07

Timer

For your real cube. Scramble it with the moves below (white on top, green in front), then time the solve the way competitions do.

…
0.00
Hold the spacebar (or press and hold here) until the time turns green, then let go to start.

Ao5 is the average of your last five solves with the best and worst dropped, the format used in official competitions. Times are saved in this browser only.

08

The math

Where 43 quintillion comes from, why 20 moves is always enough, and a few experiments you can run.

Counting the positions

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

Take a cube apart and snap it back together at random, and only 1 in 12 of the results can be solved by turning: a twisted corner (×3), a flipped edge (×2) or a single swap (×2) makes the rest unreachable.

How big is that?

God's number is 20

"God's number" is the most moves the best possible solution ever needs. In July 2010, Tomas Rokicki, Herbert Kociemba, Morley Davidson and John Dethridge proved it is 20, counting every quarter or half turn as one move. The proof took about 35 CPU-years of computer time, donated by Google. Counting only quarter turns, the answer is 26 (Rokicki and Davidson, 2014).

How many positions need each number of moves
Fewest moves needed, face-turn metric. Log scale: each gridline is 1,000× the one below.
Show as a table

Experiment: how many random turns scramble a cube?

The lab turns a solved cube at random, over and over, and counts how many of the 20 edges and corners are still solved after each turn. A truly random cube has, on average, 0.83 pieces solved by luck. The curve settles near that floor after about 20 turns, which is why scrambles are around 20 moves long.

Pieces still solved after n random turns
Average over 600 runs
Show as a table

Experiment: 7 steps vs. the computer

Both solvers on this page attack the same random cubes. The 7-step method averages around 150 turns because it solves one piece at a time and protects everything already done. The two-phase search lands right at the edge of what's possible.

Solution length on random cubes
Counting face turns
Show as a table

Repeat any sequence and it comes back

Repeat any sequence of moves enough times and the cube returns to where it started. The number of repeats is the sequence's order. R U takes 105 repeats; R U R' U' takes only 6. The largest possible order is 1,260.

Try:

Three things turns can never do

  • Twist a single corner. The corner twists always add up to a multiple of 3.
  • Flip a single edge. The edge flips always add up to an even number.
  • Swap just two pieces. Every turn is an even number of swaps overall, so corner and edge swaps come in matching pairs.

Make an impossible cube and ask the lab to solve it:

09

History and records

From a Budapest classroom to a 0.1-second robot.

  1. 1974Ernő Rubik, a Hungarian sculptor and architecture professor, builds the first cube in Budapest as a way to explore movement in three dimensions.
  2. 1975He patents the mechanism in Hungary.
  3. 1977The first test batches go on sale in Budapest toy shops as the Magic Cube (Bűvös kocka).
  4. 1980Licensed to Ideal Toy Corp and renamed Rubik's Cube. It debuts at toy fairs in London, Paris, Nuremberg and New York.
  5. 1982The first world championship, in Budapest on 5 June: Minh Thai of the USA wins with a 22.95-second solve against competitors from 19 countries.
  6. 2004Ron van Bruchem and Tyson Mao found the World Cube Association, which runs official competitions. By August 2026 more than 290,000 people had competed at over 17,500 events.
  7. 2010God's number is 20: Rokicki, Kociemba, Davidson and Dethridge prove no position needs more than 20 moves.
  8. 2014The same question counting only quarter turns is settled at 26 by Rokicki and Davidson.
  9. 2024The cube turns 50. Around 500 million have been sold, making it the best-selling puzzle ever.
  10. 2025Purdue University students' robot Purdubik's Cube solves one in 0.103 seconds, a Guinness record that beat Mitsubishi Electric's 0.305 seconds from 2024.
  11. 2026Teodor Zajder of Poland, age 9, makes the first official solve under 3 seconds: 2.76 at GLS Big Cubes Gdańsk in February. In June, Yiheng Wang of China sets a 3.51-second average.

Official 3×3 records

World Cube Association records as of 31 August 2026.

EventTimeHolderWhere and when
Single solve2.76 sTeodor Zajder (Poland)GLS Big Cubes Gdańsk, Feb 2026
Average of 53.51 sYiheng Wang (China)Hefei Cubing League 3x3 III, 17 Jun 2026
One-handed single5.62 sPatrick Ponce (USA)Mid-Atlantic Speedcubing Championship, Aug 2026
Blindfolded single11.56 sTommy Cherry (USA)Mid-Atlantic Quiet Championship, Jun 2026
Robot (Guinness)0.103 sPurdubik's Cube, Purdue UniversityAnnounced May 2025

About Rubik's Cube Lab

Turn a live 3D Rubik's Cube, learn the notation, follow a 7-step beginner method and watch each algorithm step by step.

Topic: Puzzles · Format: interactive simulation · Free, no sign-up · Updated 2026-10-15 · By Prince Vincent, WikiNano · Last reviewed 2026-10-15.

Inside this page

Common questions

How many positions can a Rubik's Cube have?
About 43 quintillion, which is 43,252,003,274,489,856,000.
What is God's number?
The maximum number of moves needed to solve any scramble, proven to be 20.
What is the easiest solving method for beginners?
The layer-by-layer method solves one layer at a time, starting with a cross and then the corners and edges.

Sources and further reading

Keep exploring