Rubik’s Cube notation: what R, U, F, L, D, B, ′ and 2 mean

Every algorithm for the Rubik’s Cube is written as a row of letters. Once you know six letters and two small marks, you can read all of them.

The six faces

Hold the cube with one face towards you. The letters name the face by where it is, not by its colour.

  • U – Up – the top face
  • D – Down – the bottom face
  • R – Right – the face on your right
  • L – Left – the face on your left
  • F – Front – the face towards you
  • B – Back – the face away from you

How far and which way

  • A letter on its own, for example R, is a quarter turn clockwise, as if you were looking straight at that face.
  • A letter with an apostrophe, R′ (said “R prime”), is a quarter turn counter-clockwise – the opposite way.
  • A letter with a 2, R2, is a half turn. It does not matter which way you turn, the result is the same.

All twelve single moves

The arrow shows the direction the face turns. “Clockwise” always means as seen when looking straight at that face from outside the cube.

U clockwise · U′ counter-clockwise
D clockwise · D′ counter-clockwise
R clockwise · R′ counter-clockwise
L clockwise · L′ counter-clockwise
F clockwise · F′ counter-clockwise
B clockwise · B′ counter-clockwise

Reading an algorithm

Take R U R′ U′. Turn the right face clockwise, then the top face clockwise, then the right face counter-clockwise, then the top face counter-clockwise. Hold the cube the same way throughout and do the moves from left to right.

  1. R: right face clockwise
  2. U: top face clockwise
  3. R′: right face counter-clockwise
  4. U′: top face counter-clockwise

Undoing an algorithm

To undo a sequence, do it backwards and flip every turn: R U R′ U′ is undone by U R U′ R′. This is how every pattern on this site can be removed again.

Always the same grip

Letters refer to the cube as you hold it. Keep one colour on top and another towards you for the whole sequence; if you rotate the whole cube in your hands, F and R no longer mean the same faces.

Questions

What does the apostrophe mean in Rubik’s Cube notation?

It means counter-clockwise. R′ is the right face turned a quarter turn the opposite way to R. It is often called “prime”.

What does the 2 mean?

A 2 after a letter means a half turn (180 degrees) of that face. You can turn either way.

What about moves like M, E, S, x, y and z?

These describe turns of the middle slices or of the whole cube. The beginner method does not need them – only U, D, R, L, F and B.

Stuck? Enter your cube in the online solver

Paint the colours of your cube and get the exact moves, step by step – no sign-up.

Online solver →

Practice it in 3D

The app animates every move of these steps on a 3D cube you can turn, and its camera scanner reads your scrambled cube for you.

Free to download for iPhone, iPad and Android.