Rubik's Cube
Esc

    Rubik's Cube Notation Explained Move by Move

    Every cube tutorial, from the beginner's method to competition algorithms, uses the same code of letters. In this guide each letter has its own 3D cube: press play, watch which layer turns and repeat the move with your cube in hand.

    17 min read22 animated cubes

    R U R' U'

    On this page
    1. 1. Origin of the notation
    2. 2. Holding the cube
    3. 3. The six faces
    4. 4. Prime and 2
    5. 5. Middle layers M, E, S
    6. 6. Wide moves r and Rw
    7. 7. Rotations x, y, z
    8. 8. Reading an algorithm
    9. 9. Big cubes
    10. 10. Other puzzles
    11. 11. Common mistakes
    12. 12. Practice exercise
    13. Frequently asked questions

    In short

    • Each letter is a position, not a color: R for right, L for left, U for up, D for down, F for front and B for back.
    • A letter on its own is a quarter turn clockwise, looking straight at that face. With a prime (R') the turn goes the other way, and with a 2 (R2) it is a half turn.
    • M, E and S turn the middle layers and follow the direction of L, D and F. A lowercase letter or a w (r, Rw) moves two layers at once.
    • x, y and z turn the whole cube in your hands, in the same direction as R, U and F.
    • Algorithms are read from left to right. Parentheses only group moves, and a number after them, as in (R U R' U')6, tells you how many times to repeat the group.
    • The notation comes from David Singmaster, who devised it in December 1978, and it is the basis of the notation in today's WCA Regulations.

    What cube notation is and where it comes from

    An algorithm is a list of turns in a set order, and notation is the name of each turn. Thanks to it, a tutorial can write R U R' U' instead of a long sentence explaining which way to move each layer.

    The system used today was devised by David Singmaster, an American mathematician who taught in London. He first saw the cube in August 1978, at the International Congress of Mathematicians in Helsinki, and in December that year he came up with a way of writing down turns with letters. He spread it through his Notes on the “Magic Cube”, self-published in October 1979 and published by Penguin in 1981. That is why it is called Singmaster notation.

    Where the letters come from

    R, L, U, D, F and B are the initials of right, left, up, down, front and back. The six words start with six different letters, so each face gets its own initial and none can be mistaken for another. Official competition scrambles and almost every tutorial use these letters, so cubers everywhere learn them in English, whatever language they speak.

    Over the years, symbols were added for the middle layers, two-layer turns and rotations. The World Cube Association (WCA), which runs official competitions, includes some of them in Article 12 of its Regulations.

    How to hold the cube to read notation

    The letters refer to positions relative to you: F is the face in front of your eyes, U the one facing the ceiling and R the one on your right-hand side, whatever their color. If you hold the cube with red in front, F is the red face. That is why tutorials tell you how to hold the cube before the algorithm, for example “with the yellow face on top”.

    The two orientations used in this guide

    • White on top, green in front. This is the orientation the WCA uses for scrambling in competition. With the standard color scheme it puts red on the right, orange on the left, yellow on the bottom and blue at the back. We use it to explain each letter.
    • Yellow on top, green in front. This is how you hold the cube in the last stage of the beginner's method, with the white face already solved on the bottom. Orange ends up on the right and red on the left. We use it for the last-layer algorithms.

    Clockwise is judged from each face

    A letter on its own is a quarter turn (90 degrees) clockwise, looking at that face as if it were right in front of you. For F that is easy, because you are already looking at it. For R, imagine leaning round to the right-hand side and finding a clock painted on that face: the turn follows its hands. For D, the clock is on the bottom face and you would have to look at it from the floor.

    That is why two opposite faces, both turned “clockwise”, move the pieces in opposite directions when seen from the front. It happens with R and L, with U and D and with F and B, as the cubes in the next section show.

    While you are learning, don't change your grip between turns. If you turn the cube without noticing, the face you were calling F is no longer in front and the algorithm fails.

    The six faces: R, L, U, D, F and B

    All the cubes in this section start from a solved cube with white on top and green in front, and we describe each turn as you see it while looking at the green face.

    LetterStands forPositionColor (white top, green front)What you see from the front
    RRightRight-hand sideRedThe right column goes up
    LLeftLeft-hand sideOrangeThe left column goes down
    UUpTopWhiteThe top row moves to the left
    DDownBottomYellowThe bottom row moves to the right
    FFrontFacing youGreenThe face you are looking at turns clockwise
    BBackBehindBlueThe back face turns counterclockwise, seen from the front
    R: the right column of the front goes up; green moves to the top and the yellow from the bottom appears in front.

    Rright face

    From the front, you see the right column of the green face go up and away over the top of the cube. In its place comes the yellow from the bottom.

    L: the left column goes down the front and the white from the top appears on the green face.

    Lleft face

    It is the face opposite R, so its clock is read from the left-hand side. Seen from the front, the left column goes down and the white from the top appears on the green face.

    U: the top row moves to the left and the red from the right face comes to the front.

    Uup face

    From the front, the top row of the green face moves to the left and the red from the right comes to the front.

    D: the bottom row moves to the right and orange appears at the bottom of the green face.

    Ddown face

    The bottom layer turns the way someone lying under the cube would see it. From the front, the bottom row moves to the right and the orange from the left comes to the front.

    F: the green face turns clockwise; the row of the white face closest to you turns orange.

    Ffront face

    The green face turns like the hands of a clock right in front of you. The row of the white face closest to you turns orange, because it comes from the left.

    B: the back layer turns; from the front you can see the back row of the white face turn red.

    Bback face

    B is defined by looking at the blue face from behind the cube, so from the front it seems to turn counterclockwise. To check it, look at the top: the back row of the white face turns red.

    Tips for not mixing up R and L or U and D

    • R goes up, L goes down. If you watch the front column, you don't need to think about clocks for these two faces.
    • R and L' turn the same way: both make the front go up. That is why the R motion done with the left hand is L', not L. The WCA Regulations use this equivalence when they define x, which turns in the direction of R or L'.
    • U goes left and D goes right. U and D' move the rows in the same direction.

    For R, turn your right wrist so that the part of the layer facing you goes up. For U, push the top right corner to the left with your right index finger. These are the two motions repeated most often in the last layer.

    Prime (') and 2: opposite direction and half turn

    Two modifiers can follow each letter, and they work the same way on faces, middle layers, wide moves and rotations.

    • Prime ('): a quarter turn counterclockwise. R' is read “R prime” and undoes exactly what R does. On a keyboard, a plain apostrophe does the job.
    • Two (2): a half turn, 180 degrees. R2 is the same as doing R twice in a row.
    R': the right column of the front goes down; the white from the top appears on the green face.
    R2: half turn of the right face; the right column of the front turns blue and the one on top turns yellow.

    Why R2 and R2' give the same result

    A half turn one way or the other leaves the layer in the same position, just as a clock hand reaches six whether it leaves twelve going right or going left. If you see U2' in a tutorial, the result is the same as U2: the prime only shows which way the author finds it more comfortable to do the half turn. In older books the inverse turn sometimes appears as Ri or with a superscript -1; it means the same as R'.

    Middle layers: M, E and S

    A 3x3 has three layers that are not faces: the middle ones. There are three more letters for turning them on their own. A middle layer has no side of its own to look at the clock from, so each one follows the direction of an outer face.

    LetterNameLayerTurns likeWhat you see from the front
    MMiddleBetween L and R (vertical)LThe middle column goes down
    EEquatorBetween U and D (horizontal)DThe middle row moves to the right
    SStandingBetween F and B (parallel to the front)FTurns like the front, clockwise
    M: the middle column goes down as L would; the white center comes to the front and the green one moves down to the bottom face.
    E: the middle row moves to the right, like D; the orange center comes to the front.
    S: the middle layer parallel to the front turns like F; the middle row of the white face turns orange.

    There are three pairs to memorize: M with L, E with D and S with F. All three take a prime and a 2, just like the faces: M', E2, S'.

    Turning a middle layer moves the centers: after an M, the front center is no longer green but white. F is still the face in front of you, even though its center has changed.

    Article 12 of the WCA Regulations does not include M, E or S: it only defines face turns, outer block turns (the ones with a w) and rotations. Middle-layer moves are community notation and appear in many last-layer algorithms.

    Wide moves: r and Rw

    A wide move turns an outer face together with the middle layer next to it, as if they were a two-layer block. On the 3x3 it is written in two ways that mean exactly the same thing:

    • Lowercase: r, l, u, d, f, b. This is the traditional form and the one you see most often in algorithm lists.
    • Uppercase with a w (for wide): Rw, Lw, Uw, Dw, Fw, Bw. This is the form used in the WCA Regulations.
    r (or Rw): the right face and the middle layer go up together; two thirds of the front turn yellow.

    The w is used because lowercase is ambiguous on big cubes. On the 3x3, r and Rw are the same turn, and the WCA Regulations also accept 2Rw.

    A wide move is a face plus the middle layer turning in the same direction. Since M follows L, R needs M' to go with it. These are the six equivalences:

    Wide moveSame as
    r (Rw)R + M'
    l (Lw)L + M
    u (Uw)U + E'
    d (Dw)D + E
    f (Fw)F + S
    b (Bw)B + S'
    R followed by M': the cube ends up exactly as it would after a single r.

    Watch out for lowercase l: in many fonts it looks like a capital I. There is no turn called I in notation, so if you see one, it is an l.

    Whole-cube rotations: x, y and z

    Sometimes an algorithm asks you to change how you hold the cube without turning any layer relative to the others. That is what rotations are for, and they are written x, y and z. Each one follows the direction of a face:

    • x: the whole cube turns like R. The front face becomes the top.
    • y: the whole cube turns like U. The right face comes to the front.
    • z: the whole cube turns like F. The top face moves to the right.
    x: the whole cube turns like R; green ends up on top and yellow in front.
    y: the whole cube turns like U; red comes to the front.
    z: the whole cube turns like F; orange ends up on top and white on the right.

    The alphabet helps you remember which face each one follows: x is closer to R than to L, y is closer to U than to D and z is closer to F than to B. With a prime and a 2 they work like everything else: y' turns the cube like U' and x2 turns it upside down.

    A rotation is the same as turning all three layers on one axis at once: x is R + M' + L' and y is U + E' + D'. The WCA Regulations define x as a turn in the direction of R or L'.

    After a rotation, the letters move to different faces. After a y, the face that was on the right is now in front and is called F, so the next F turn is done on it and not on the green one.

    How to read a full algorithm

    An algorithm is read from left to right, one turn after another. Spaces separate the turns, and the prime or the 2 always sits right next to the letter it applies to. Before the first turn, hold the cube the way the tutorial says and don't move it in your hands unless an x, y or z appears.

    The classic example: what R U R' U' means

    It is the most repeated sequence on the cube. Cubers call it the sexy move, and it appears inside many algorithms, including the beginner's method. R raises the right column, U takes the top row to the left, R' brings the column back down and U' returns the row to the right. The viewer's step-by-step mode shows each turn separately.

    R U R' U' on a solved cube: four turns that only scramble a few pieces on the right and top.

    Parentheses and repetitions

    Parentheses don't change any turn: they only group part of the algorithm so it is easier to read and memorize. F (R U R' U') F' is done exactly as it would be without them.

    A number after the parentheses tells you how many times to repeat the group: (R U R' U')3 is twelve turns, the four-move block three times in a row. A 2 attached to a letter is something else: R2 is a half turn.

    If you do R U R' U' six times in a row on a solved cube, it ends up solved again, and no earlier repetition does that. It works as a test: if your cube is not solved after the sixth block, you have done a turn the wrong way.

    (R U R' U')6: twenty-four turns that scramble the cube and bring it back to its starting state.

    Halfway, after three repetitions, all the edges are in place and only four corners are out of place, swapped in pairs. Another common sequence, R' F R F', also brings the cube back to its starting state on the sixth repetition.

    How to write the inverse of an algorithm

    To undo a sequence, you go through it from the end to the start and reverse each turn: R becomes R' and vice versa, and turns with a 2 stay the same. The inverse of R U R' U' is U R U' R'. If you do one after the other, the cube returns to where it started.

    R U R' U' followed by its inverse U R U' R': the cube ends up solved.

    A real algorithm: the yellow cross in the beginner's method

    In the layer-by-layer method, once the first two layers are done, you hold the cube with yellow on top and aim to make a yellow cross. If you see a horizontal yellow line on top (from left to right, through the center), the algorithm is F R U R' U' F': an F turn, the R U R' U' block and F' to finish. In the viewer, pieces that don't matter for this step are shown in gray.

    Yellow on top and green in front: the horizontal yellow line becomes a cross with F R U R' U' F'.

    If instead of a line you see an L made by the center and two yellow edges, place it so its arms point to the back and to the left. The same algorithm turns it into a line and, repeated once more, into a cross. Written with repetition notation, that is (F R U R' U' F')2.

    With the L pointing back and to the left, doing the algorithm twice makes the yellow cross.

    How moves are counted

    In the half-turn metric, R2 counts as one move; in the quarter-turn metric, it counts as two. Using the first, it was proved in July 2010 that any 3x3 position can be solved in 20 moves or fewer; using the second, it was proved in August 2014 that the maximum is 26. The WCA Regulations use one metric in which each face turn or w turn counts as one and rotations don't count, and an execution metric in which rotations count too.

    Big cube notation: 2R, Rw and 3Rw

    On a 4x4 or a 5x5 there are several layers between each pair of opposite faces, so you need to say how many are turned, or which one. This is done with a number in front of the letter. The viewer on this page only plays the 3x3, so this part has no animated cube.

    NotationWhat it movesSource
    ROnly the outer right layerAll cubes
    Rw or 2RwThe two right layers togetherWCA Regulations
    3RwThe three right layers togetherWCA Regulations (not valid on 2x2 or 3x3)
    2ROnly the second layer counting from the rightSiGN notation, common in 4x4 algorithms
    rDepending on the source: the two outer layers or only the second oneCheck the tutorial's key

    The WCA writes block turns as nRw, where n is the number of layers moved, counting the outer one. If there is no number, two layers are meant, which is why Rw and 2Rw are the same. The Regulations state that 3Rw is not valid notation on the 2x2 or the 3x3: on the 3x3, moving three layers would mean turning the whole cube.

    The WCA has no symbol for turning an inner layer on its own, because its scrambles don't need one. For that, the community uses SiGN notation: 2R is the second layer counting from the right and 3R the third. Be careful not to confuse it with R2, which is a half turn of the face. In SiGN, lowercase also always means several layers: r is the two outer layers and 3r the three outer layers.

    Some 4x4 guides, on the other hand, use lowercase r for the inner layer alone. If you see a big-cube algorithm with lowercase letters, look for the author's key before you start.

    Notation for other puzzles: 2x2, Pyraminx and Skewb

    Each competition puzzle has its notation in Article 12 of the WCA Regulations. They all share the cube's idea (one letter per layer and a prime for the opposite direction), adapted to their shape.

    • 2x2: uses the same letters as the 3x3 for faces and rotations. Since it has no middle layers, M, E and S don't exist, and a two-layer turn would be the same as turning the whole cube.
    • Pyraminx: held with one face flat and another facing you. U, L, R and B turn the two layers next to the top, left, right or back vertex by a third of a turn (120 degrees). In lowercase (u, l, r, b) they turn only the tip at that vertex. Some tutorials use other letters, so it is worth checking their key.
    • Skewb: held with three faces visible and one of them on top. R, U, L and B turn half the puzzle 120 degrees around a vertex: bottom right, top, bottom left and the hidden back vertex.

    Common mistakes when reading notation

    • Judging clockwise from the front for every face. This makes L, D and B come out backwards. The clock is always read from the face itself.
    • Turning the cube by accident. If you change your grip between turns, the face you were calling F is no longer the same one. You only reorient the cube when x, y or z appears.
    • Mixing up R2 and 2R. On the 3x3 only R2 exists, a half turn. 2R is an inner layer of a big cube.
    • Reading a prime as part of the next turn. In R U' R' the prime on U applies only to U. Each symbol goes with the letter right before it.
    • Getting the direction of M wrong. M follows L, not R: from the front, the middle column goes down.
    • Going by the center colors after a middle-layer turn. After M, E or S the centers move, but the letters still point to positions.

    If you get lost halfway through an algorithm, go back to the start with the viewer in step-by-step mode and compare your cube with the one on screen after each turn until you find the first one that doesn't match.

    Practice exercise with your cube

    Take a solved cube and hold it with white on top and green in front. If your cube has different colors, any face on top and any adjacent face in front will do.

    Part one: do and undo

    Do F R U and undo it with the inverse, U' R' F'. If the cube is solved again, you have understood primes and reverse order. If not, repeat slowly: the first turn of the inverse matches the last turn of the sequence.

    Part two: the checkerboard

    Now do R2 L2 U2 D2 F2 B2. These are six half turns, so you don't have to worry about the direction of any of them. If you did it right, each face ends up with a checkerboard pattern: five squares of its own color and four of the opposite face's color. Compare the result with the cube below.

    R2 L2 U2 D2 F2 B2: each face ends up with a checkerboard combined with the color of the opposite face.

    Repeat the same sequence and the cube will be solved again. If you want to try the middle layers, M2 E2 S2 produces exactly the same pattern with only three turns.

    Frequently asked questions

    What does the apostrophe in R' mean?

    It is called a prime and means a counterclockwise turn, looking straight at that face. R' undoes what R does: the right column of the front goes down.

    What is Rw on a Rubik's Cube, and is it the same as r?

    On the 3x3, yes. Both forms mean that the right face and the middle layer turn together, and they are the same as R plus M'. The WCA uses Rw. The other faces work the same way: Dw is d, the bottom face together with the E layer. On big cubes, lowercase can mean other things depending on the author.

    Which way does M turn?

    M turns in the same direction as L. Seen from the front, the middle column goes down. E follows the direction of D, and S follows F.

    How are x, y and z different from the other turns?

    x, y and z don't turn layers: they turn the whole cube in your hands. x follows R, y follows U and z follows F. After a rotation, the letters name the faces in their new position.

    Is R2 turned to the right or to the left?

    It doesn't matter. A half turn one way or the other leaves the layer in the same position. If you see R2' or U2', the author is just suggesting the direction they find more comfortable for their fingers.

    What does a number after parentheses mean, as in (R U R' U')6?

    It means the group in parentheses is repeated that many times. (R U R' U')6 is twenty-four turns. On a solved cube, that sequence brings it back to its starting state.

    Who invented Rubik's Cube notation?

    Mathematician David Singmaster, in December 1978. He spread it through his notes on the cube from 1979 onward, and today it is known as Singmaster notation. The WCA Regulations are based on it.

    You can already practise in the simulator

    Turn the layers with your finger, scramble the cube and try any algorithm step by step.

    Open the simulator

    Keep learning

    We sell the cubes these guides were made with: GAN, MoYu and QiYi, from a first cube to competition models, plus lubricants.

    See cubes in the shop →