Rubik's Cube notation

Updated 2026-11-28 · by the Magic Cube team

Cube notation writes each move as a letter for the face you turn: R (right), L (left), U (up), D (down), F (front) and B (back). A letter on its own means a quarter turn clockwise, as if you were looking straight at that face; ' means counterclockwise and 2 means a half turn. Everything else, wide moves, slices and whole-cube rotations, builds on those six letters.

The six faces

Hold the cube with one face towards you. That is the front, and it stays the front for the whole algorithm unless the algorithm itself turns the cube.

LetterFaceClockwise means, seen from the front
Rrightthe right side turns up, away from you
Lleftthe left side turns down, towards you
Uup (top)the top turns to the left
Ddown (bottom)the bottom turns to the right
Ffrontthe front turns clockwise, like a clock facing you
Bbackthe back turns counterclockwise as you see it from the front

R and L go in opposite directions, and so do U and D, and F and B, because “clockwise” is always judged from outside the face you turn. That is the most common source of confusion, and it’s why B looks backwards.

Prime and double moves

Every face, with its clockwise, prime and double move:

R: the right face turns up R': the right face turns down R2: the right face turns halfway

L: the left face turns down L': the left face turns up L2: the left face turns halfway

U: the top turns to the left U': the top turns to the right U2: the top turns halfway

D: the bottom turns to the right D': the bottom turns to the left D2: the bottom turns halfway

F: the front turns clockwise F': the front turns counterclockwise F2: the front turns halfway

B: the back turns, top row moving left B': the back turns, top row moving right B2: the back turns halfway

Algorithms are read left to right, one move at a time: R U R' U' means R, then U, then R’, then U’.

Wide moves: Rw and r

A wide move turns the outer layer together with the layer next to it.

Rw: the two right layers turn together Uw: the two top layers turn together

On bigger cubes a number in front says how many layers turn: 3Rw turns the three right layers together, 3Uw the three top layers. Without a number, Rw means two layers.

3Rw on a big cube: the three right layers turn together

Inner slices: 2R, 3R

A number in front of a plain letter turns one inner layer only, counted from that face.

2R: only the second layer from the right turns 3R: only the third layer from the right turns

Read these carefully in 4x4 parity algorithms: 2R2 and Rw2 look alike but do different things, and the wrong one breaks the centers.

Middle layers: M, E, S

On a 3x3, three letters name the middle layers:

MoveLayerTurns like
Mbetween L and RL
Ebetween U and DD
Sbetween F and BF

M', E' and S' go the other way, M2 is a half turn. M moves show up in the H and Z perms of 2-look PLL, for example M2 U M2 U2 M2 U M2.

Rotations: x, y, z

Rotations turn the whole cube in your hands. No layer moves against another, you just hold the cube differently afterwards.

RotationTurns the whole cube like
xR
yU
zF

x', y' and z' go the other way, x2, y2 and z2 are half turns. A y is the one you’ll meet first: it brings the right side to the front, as in the second-layer algorithm of the beginner method, U R U R' U' y L' U' L U. Some older tables write rotations in capitals, X, Y and Z.

Brackets and repeats

Brackets like ( ), [ ] and { } don’t change anything: they only group moves into chunks that are easier to remember. A number after a bracket means repeat it: (R U R' U')2 is R U R' U' done twice.

Next steps