Free 2×2 Pocket Cube Solver — Optimal in 11 Moves
Cube net — click a sticker to fix it
8×6 grid of 24 stickers — 4 per face in the standard cross layout.
3D preview — drag to orbit
Twist the cube — try out moves
Click any move to twist the cube. Manual moves clear the active solution — treat this as a sandbox for learning notation or trying algorithms.
How the 2×2 solver works
The 2×2 (Pocket Cube) has only 3,674,160 reachable states — small enough to solve from scratch by bidirectional breadth-first search with no precomputed pruning tables. We BFS forward from the input state and backward from the solved state, alternating expansion of the smaller frontier until the two meet. With branching factor 6 (after deduping same-face moves), each side reaches depth ~6 with about 47,000 states; the meet typically happens within 100 milliseconds in pure JavaScript.
Solutions are guaranteed optimal — every cube is solved in at most 11 moves (God's Number for the 2×2 in face-turn metric, proven 1981). For comparison, the 3×3 has 4.3 × 1019 states and needs the Kociemba two-phase algorithm with megabytes of pruning tables; the 2×2 doesn't.