Rubik's Cube

    Hold the cube with the yellow center on top and green in front. Pick a color and paint the squares; you can drag.

    How to get the most out of it

    To learn, not to set records

    The solution uses the beginner course method, so it is long (about 140 moves) but every step makes sense and links to its lesson. A computer can solve any scramble in 20 moves or fewer, but you cannot learn that solution.

    How to paint it right

    Look at each face straight on, in this order: top (yellow) with green at the bottom, then the side faces and finally the bottom. If you make a mistake, the solver tells you if a color is missing or extra, or if a piece is impossible.

    Follow it in 3D

    The 3D cube starts from your scramble. Play it, stop wherever you want and jump to any step. If a step is hard, open its lesson.

    How to use the 2x2 solver

    The 2x2 has only eight pieces, all of them corners, and that makes it possible to search through every possible solution and keep the shortest one, something that takes far more computing on the 3x3. This solver always does it. You have three ways to give it your cube:

    • Paint the 24 stickers on the flat net, four per face.
    • Type a scramble with the turns R, U and F, with prime (') and 2, like official scrambles.
    • Generate a random scramble to practise with.

    When you ask for the solution, a 3D cube plays it from your position, turn by turn.

    Why you can hold it any way you like

    On the 3x3 the centres set the colour of each face and you have to hold the cube in a particular way. The 2x2 has no centres: no face has a fixed colour, and the colour each face should have is decided by the position of the corners. That is why you do not need to look for white on top or green in front here. Pick up the cube however it is, paint what you see and the solver works out on its own how it is oriented.

    What does matter is not rotating the whole cube while you paint. Choose one face for the front and another for the top, and keep them that way for all six faces:

    1. Paint the front face and the top face exactly as you see them.
    2. Turn the whole cube around the vertical axis to see the right, back and left faces, keeping the same face on top, and paint each one looking at it straight on.
    3. Go back to the starting position and turn the cube until the bottom face is in front of you, with what was the front face now on top. Paint it like that.
    4. Check a corner: its three colours must be on the three squares that touch each other in the net.

    When you are about to follow the solution, hold the cube exactly as you held it while painting and compare it with the 3D cube before the first turn.

    How to type a 2x2 scramble

    Competition scrambles for the 2x2 use only three faces: R (right), U (up) and F (front). Those three are enough to reach any position, because on a 2x2 turning the left face is the same as turning the right face and rotating the whole cube. This way the bottom-back-left corner never moves and works as a reference.

    • A letter on its own is a quarter turn clockwise, looking at that face straight on.
    • With a prime, as in R', it is the same turn the other way.
    • With a 2, as in U2, it is a half turn, and the direction does not matter.

    An official scramble has about ten turns, for example R U2 F' R U' R2 F U' R'. If you copy it from a timer or a competition, apply it to a solved cube with white on top and green in front, which is how official scrambles are applied. The notation guide shows every turn animated.

    The optimal solution: what it means

    The 2x2 has 3,674,160 different positions if you do not count rotations of the whole cube. That is not many for a computer, which is why this solver can look at every combination of turns until it finds the shortest. No other solution has fewer moves, although there may be others of the same length.

    Any 2x2 position can be solved in 11 moves or fewer, counting a half turn as a single move. If you count half turns as two quarter turns, the maximum goes up to 14. The positions that need all 11 are a small minority, just over two thousand six hundred. Slightly more than half can be solved in 9.

    An optimal solution does not look like a method: you will not see one layer and then the other, but a series of turns in which everything falls into place at the end. To follow it, make the turns at the same time as the 3D cube and pause if you are unsure. As there are so few, if you make a mistake it is quicker to paint the cube again than to undo the turns.

    If the solver does not accept your cube

    With 24 squares it is easy to mix up two colours. Before looking for another cause, check these points:

    • Each colour appears four times. If there are five whites and three yellows, one of them is painted wrongly.
    • No corner repeats a colour or combines two opposite colours. A corner with white and yellow together, or with two greens, does not exist.
    • No two corners are the same. All eight are different; if two have the same three colours, one of them is wrong.
    • The order of the colours on each corner. If you paint two colours of a corner swapped, that piece does not exist on a real cube. If all three are shifted by one place, the corner ends up twisted in place, and that cannot come about by turning the faces.

    One difference from the 3x3: on the 2x2, two swapped corners with everything else in place can be solved, because there are no edges forcing pieces to move in pairs. The only position that is truly impossible is a twisted corner, and on a real cube it appears when someone has twisted it by hand or put the cube back together wrongly after taking it apart. In fix my cube we explain how to put it right.

    Learning to solve it without help

    The optimal solution is the shortest, but not the easiest to learn. To solve the 2x2 on your own you need three algorithms and a layer-by-layer method: the white layer, the yellow face and the top corners. You have it step by step, with a 3D cube for each case, in the guide to solving the 2x2.

    If you can already solve the 3x3 layer by layer, you know all three: the 2x2 is like solving only the corners of a 3x3, with the same algorithms as in the beginner's course. Once you can solve it on your own, you can use the solver to compare your solution with the optimal one and time your solves with the timer.

    Frequently asked questions

    What is the maximum number of moves needed to solve a 2x2?

    Eleven, counting each half turn as one move. If only quarter turns are counted, fourteen. The solver always gives the shortest possible solution for your position.

    Do I have to hold the 2x2 with a particular colour on top?

    No. The 2x2 has no centres, so you can paint it holding it any way you like and the solver works out the orientation. You only have to keep the same position while you paint and later while you follow the solution.

    Why do 2x2 scrambles only use R, U and F?

    Because on a 2x2 turning the left face is the same as turning the right face and rotating the whole cube. Three faces are enough to reach any position, and one corner always stays still as a reference.

    How many positions does the 2x2 cube have?

    3,674,160, not counting the different ways of holding the whole cube. The figure is small enough for a computer to find the optimal solution for any of them instantly.

    Does it work with a 2x2 in other colours or without stickers?

    Yes. Match each colour on your cube to one in the net and keep that match on all 24 squares. It makes no difference whether it has stickers or is made of coloured plastic.

    Is using a 2x2 solver cheating?

    Not for getting unstuck or for comparing your solution with the best possible one. Any kind of help is forbidden in competition. If you want to solve it yourself, the 2x2 guide explains it with three algorithms.

    Keep learning