2x2 Rubik's cube solver

Paint the colors of your 2x2 pocket cube (or scan it with your camera) and get the shortest possible solution, never more than 11 moves, in under a second, played back on a 3D cube one turn at a time. It all runs in your browser, with no sign-up.

Your 2x2 cube

Drag the cube to turn it.

Pick a color, then tap stickers on the net or the 3D cube. Any grip works; keep the same grip for every face.

I can only see two or three faces

The 3D view shows three faces at a time; your cube has six. Enter them one by one:

  1. Hold your cube any way you like and keep that grip in mind. Paint the face that points at you as Front.
  2. Turn the whole cube a quarter turn to the left, keeping the same face on top, and paint the face now in front as Right. Turn again for Back and again for Left.
  3. Back to the start, tip the cube toward you to look at the top: the edge nearest you belongs next to Front. Paint it as Top.
  4. Tip it the other way to look at the bottom, with the front edge at the top of what you see. Paint it as Bottom.

Hold the cube the same way again before you follow the moves. The solution never turns the back-bottom-left corner, so you can keep that corner pinched between your fingers.

How to use the 2x2 Rubik's cube solver

This 2x2 Rubik's cube solver finds the fewest moves that solve your own pocket cube. A 2x2 has no centers, so you can hold it in any grip; just keep the same grip while you enter it and while you follow the moves.

  1. Pick a color in the palette and tap the stickers that have it, on the flat net or on the 3D cube. Each color needs exactly 4 stickers; the counters show your progress.
  2. Fill all six faces, turning the whole cube to see each one. The help under the Solve button shows the order.
  3. Press Solve and follow the moves. The arrow on the 3D cube shows the layer to turn next and its direction.

You can also choose Type a scramble and paste a scramble from a timer app; it is applied to a solved cube held with white on top and green in front.

Shortest possible solutions

A 2x2 cube has 3,674,160 positions once you ignore which way the whole cube is held. That is few enough to check them all. When the page opens, the solver works out, in the background, the exact distance from solved for every one of those positions. Solving your cube then means stepping to a neighboring position that is one move closer, again and again, which gives a solution no other method can beat in the face turn metric (any turn of one face, quarter or half, counts as one move).

The longest any 2x2 position needs is 11 moves, and only 2,644 positions need that many. Most random positions take 8 to 10. The solutions only turn the top, right and front faces (U, R, F), so the back-bottom-left corner never moves; that is why no whole-cube turns are needed. Every solution is replayed on a separate cube model before it is shown, and our tests confirm the length against an independent search.

When the cube cannot be solved

The solver first checks that your colors make a real cube: 4 stickers of each color, every corner a real piece with three different colors that are not opposite each other, each corner exactly once, and the twist rule. A twisted corner is common on 2x2 cubes because corners pop out easily; if the colors are entered correctly and the message still says a corner is twisted, twist that corner back by hand.

A worked example

Type the scramble R U2 F' R2 U' F R' U (8 moves) and press Solve. The answer is 6 moves: R U R U2 F R2. The solver found a shorter route than undoing the scramble.

Tips

  • Pinch the back-bottom-left corner with your left hand; the moves never turn it, so your grip stays the same.
  • Moves are clockwise as you look straight at that face: R turns the right side up at the front, U turns the top row to the left.
  • For the 3x3, use the Rubik's cube solver.

To learn to solve the 2x2 on your own, follow how to solve a 2x2 Rubik's cube: a beginner method in three stages, with every step shown on a 3D cube.

Solver tested . Found a problem? Tell us.

Questions

Is the 2x2 solution really the shortest?

Yes, in the face turn metric, where any quarter or half turn of one face counts as one move. The solver has the exact distance of all 3,674,160 positions, so no shorter solution exists.

What is the most moves a 2x2 can need?

11 moves. Only 2,644 of the 3,674,160 positions need that many; most need 8, 9 or 10.

Which way should I hold my 2x2?

Any way, as long as you keep the same grip while you enter the colors and while you do the moves. The solution never turns the back-bottom-left corner, so you can keep holding that corner.

Why does the solver say a corner is twisted?

Either one corner's stickers were entered on the wrong sides, or a corner on your real cube has been twisted in place, which happens easily on a 2x2. Check that corner's three colors; if they are right, twist the corner back by hand.

Is it free?

Yes, free with no sign-up. Everything runs in your browser and nothing you enter is uploaded.