calc-hub.eu
← Back to calculators

2×2 Cube Solver

Paint the stickers like your cube and get the shortest solution.

How to read the moves

Hold the cube like the diagram: the face you painted on top is up and the second face of the middle row is toward you. Each letter turns one face a quarter turn clockwise as you look at that face: U is up, R is right, F is front. A prime (R') means counter-clockwise and a 2 (R2) means a half turn.

How the solver works

The solver keeps one corner in place, which leaves 3,674,160 possible positions reachable with the moves U, R and F. It searches from your cube and from the solved cube at the same time and joins the two paths, so the result is always a shortest solution (at most 11 moves).

Frequently asked questions

  • How do I enter my cube’s colors?

    Pick a color from the palette and click the stickers in the diagram so that they match your cube, holding it as shown. Each of the 6 colors must appear exactly 4 times and any color arrangement works. Press Solve when all 24 stickers are filled. Scramble gives you a random cube to try.

  • How do I read the solution?

    Each letter is a clockwise quarter turn of one face as you look at it: U up, R right, F front. An apostrophe (R') means counterclockwise and a 2 (R2) a half turn. Example: R U R' means turn the right face clockwise, the top face clockwise, then the right face counterclockwise.

  • Is the solution the shortest possible?

    Yes. The solver searches from your cube and from the solved cube at the same time and joins the two paths, so the result is always a shortest solution, with at most 11 moves.

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

    The solver treats one corner as fixed. That leaves 3,674,160 possible positions, and all of them can be reached with turns of the U, R and F faces alone, so the other three faces are never needed.

  • Why does the solver say my cube is not possible?

    Colors that look right can still describe a cube that cannot exist, for example because of one wrong sticker, two swapped stickers or a twisted corner. Check each face against your cube. Peeled and re-stuck stickers are a common cause.

Everything runs in your browser; the colours you paint never leave your device. If the solver reports an error, check that you copied the colours correctly, since a single wrong sticker makes the cube impossible.