Magic Cube

Learn to solve the 3x3 colour cube in seven easy steps, then scramble one and solve it yourself.

Time0:00.0
Moves0

Moves

Speed
Your solves

Works on Windows, Mac, Linux, iPhone, iPad and Android, nothing to install.

What is Magic Cube?

Magic Cube teaches you how to solve the classic 3x3 colour cube, then gives you a bright 3D cube to scramble and solve yourself. Turn it with your finger, your mouse, the move buttons or the keyboard. It runs in your browser with nothing to install.

The lessons use the beginner's layer-by-layer method: seven short steps, each with one or two move patterns to remember. You can solve your first cube within an afternoon.

The seven steps

  1. White cross: a white plus sign on the bottom, each edge matching the centre beside it.
  2. White corners: drop each corner in with RU TL RD TR.
  3. Middle layer: slot the four middle edges in with the right or left move.
  4. Yellow cross: FR RU TL RD TR FL turns a dot, an L or a line into a cross.
  5. Yellow edges: RU TL RD TL RU TL2 RD TL swaps edges until they match their sides.
  6. Yellow corners in place: TL RU TR LU TL RD TR LD moves the corners to their right spots.
  7. Twist the corners: RD DL RU DR turns each corner until yellow faces up.

How to use it

  • Learn: read a step, tap a move pattern to watch it, then press Set me up to get a cube that is ready for that step. Grey out the rest hides the pieces you do not need yet.
  • Play: press Scramble and solve it. The timer starts with your first move.
  • Hint: shows the next step for the cube in front of you, in plain words, with the moves to do. Do it for me plays them on the cube. Solve it plays the whole solution.
  • Turning: drag a sticker to turn its layer, or drag the background to look around (double-click to reset the view). On a keyboard press H for a hint and Ctrl+Z to undo (see Move names below for the turning keys).

Your best time and recent solves stay on this device only. Solves where you used a hint are counted separately, so your best time is all your own.

Compare methods

There are many ways to solve the cube. The Compare tab solves the same scramble three ways and shows how many moves each takes: the beginner method taught here (often 120 to 180 moves), CFOP, the favourite of speed solvers (usually 55 to 75), and Petrus, a block-building method (also around 55 to 75). Press Play to watch any of them on the cube. A fourth row, Computer (two-phase), shows what a computer search finds, usually 20 to 22 moves, and can search further for a route of 20 moves or fewer. Computers have proved every scramble can be solved in 20 moves or fewer. The computer solver is cubejs by Petri Lehtinen and Ludovic Fernandez (MIT licence, kept in vendor/cubejs-LICENSE.txt).

Move names

Each move has two letters. The first is the side you turn: T top, D down (the bottom), F front, B back, L left, R right. The second is the way that side moves as you look at the front of the cube: L left, R right, U up, D down. So RU pushes the right side up, TL turns the top to the left and FR turns the front to the right, like a clock. A 2 on the end (TL2) means turn it twice. xU, yL and zR turn the whole cube.

Other guides use single letters for the same moves: TL is U, DR is D, RU is R, LD is L, FR is F and BL is B, and the opposite direction gets a dash (TR is U'). On a keyboard, press those letters, add Shift for the other way, and X, Y or Z to turn the whole cube.