Home › 2x2 Solver

2x2 Rubik's Cube Solver

Get the shortest possible solution for any 2x2 cube, never more than 11 moves, animated move by move. Paint your cube's colors below, then press Solve.

Hold your cube any way you like and keep it that way. Enter each side as you see it.

Top
Right
Front
Bottom
Left
Back

Front face

Or type a scramble

Pick a color, then click the stickers to match your cube.

How to Use the 2x2 Solver

  1. Pick up your cube and hold it any way you like. Keep holding it that way until you're done. The side facing you is the front, and the side pointing up is the top.
  2. Enter the colors. Pick a color, then click each sticker of that color on the net. On a phone, you paint one face at a time in the large grid: tap a face on the net (or use Next face) to choose it. For the right, back and left sides, turn the whole cube so that side faces you, with the same side still on top. For the top, tip the cube toward you, so the row nearest the back goes at the top of the grid. For the bottom, tip it up, so the row nearest you goes at the top. Each color appears exactly four times; the palette counts down.
  3. Press Solve. The solver checks that your cube is possible, then finds the shortest solution.
  4. Follow the moves one at a time, holding the cube the same way you entered it. Use ◀ and ▶ to step back and forth, or press Play to watch the whole solve.

No cube in your hand? Press Random scramble to try it, or type a scramble like R U2 F' R U' R2 under Or type a scramble. Typed scrambles start from a solved cube with white on top and green in front.

How to Hold the Cube

A 3x3 cube has fixed center stickers that tell you which side is which. A 2x2 has no centers, so the solver doesn't ask you to hold it a particular way. Instead, it looks at the corner you entered at the back, bottom left and builds the whole solution around that corner. That corner never moves during the solution, and every move turns the right, top or front side. That's why you only see the letters R, U and F.

The one rule: don't turn the whole cube in your hands until you've finished the moves. If you lose track, enter the colors again.

The solver assumes the standard color scheme: white opposite yellow, green opposite blue and red opposite orange. With white on top and green in front, red is on the right.

What the Moves Mean

Each letter is one side of the cube. R is the right side, U the top (up) and F the front. A letter on its own means a quarter turn clockwise, as you look straight at that side. An apostrophe means counterclockwise, and a 2 means turn it twice, in either direction.

MoveWhat to do
R / R'Turn the right side away from you (the front stickers go up) / toward you
U / U'Turn the top layer to the left (the front stickers go left) / to the right
F / F'Turn the front side clockwise, like a steering wheel to the right / to the left
R2, U2, F2Turn that side twice (a half turn)

The Rubik's Cube notation guide explains every letter, including the whole-cube rotations x, y and z.

"This Cube Can't Be Solved": What It Means

A 2x2 that was only ever scrambled by turning can always be solved. If the solver says yours can't, a color was most likely entered wrong. The message says what it found, and for a corner problem that corner is outlined in red:

Unlike a 3x3, a 2x2 can't have two pieces swapped or an edge flipped: it has no edges, and any two corners can be swapped by turning. A twisted corner is the only impossible case that isn't a typo.

Why the Solutions Are the Shortest Possible

With the back-bottom-left corner held still, a 2x2 has exactly 3,674,160 positions. That is small enough to list every one. When the page loads, the solver works outward from the solved cube, one move at a time, and records how many moves each position is from solved. To solve your cube, it looks up your position and picks a move that brings it one step closer, again and again until it reaches solved. Every step gets one move closer, so no shorter solution exists.

The table also shows the longest any position can need: 11 moves, counting a half turn like R2 as one move. That number is called God's number for the 2x2. Only 2,644 positions need all 11. If every position is equally likely, about half need exactly 9 moves, and the average is about 8.8 moves.

Everything runs in your browser. Your cube's colors are never sent anywhere.

Want to Solve It Yourself?

The beginner method for a 2x2 needs only a few short move sequences. See how to solve a 2x2 step by step, or learn the 2x2 algorithms of the faster Ortega method.

2x2 Solver FAQ

Is this 2x2 solver free? Do I need an app?

It's free, with no account and no limit. It runs in your web browser on a phone, tablet or computer, so there's nothing to install.

Does it work for the Pocket Cube or a mini cube?

Yes. The Pocket Cube, the mini cube and the 2x2 speedcubes are all the same puzzle: eight corners and no centers. Stickerless cubes work too, as long as they use the standard colors.

Why does the solution only use R, U and F?

Because the corner at the back, bottom left stays fixed. Turning the left, bottom or back side would move it, and every position can be solved without those turns.

Can the solution be shorter than my scramble?

Usually, yes. The solver doesn't see your scramble, only the colors, and it finds the shortest way back. A 20-move scramble never needs more than 11 moves to undo.

What if the solver says my cube is already solved but it isn't?

Check that you entered every side as it looks right now. If each side shows one color, the cube is solved even if white isn't on top.