PLL algorithms: all 21 cases in 3D
PLL is the last step of CFOP: with the yellow face done, it puts each top piece in its place. Here are all 21 cases with their algorithm, how to tell them apart by the sides of the layer and what order to learn them in.
R U R' U' R' F R2 U' R' U' R U R' F'
On this page
In short
- Full PLL has 21 cases. Each one is solved with a single algorithm, sometimes with a U turn before or after to line up the layer.
- Cases are recognized by headlights (two corners on one side with the same color) and blocks (adjacent pieces of the same color on one side). Two sides are often enough.
- There are five families: edges only, corners only, adjacent corners, diagonal corners and the four G perms.
- If you are coming from 2-look PLL, you already know 6 cases: T, Y, Ua, Ub, H and Z. That leaves 15.
What PLL is and how many cases it has
In the CFOP method, OLL makes the whole top face yellow, but the pieces of that layer may be in the wrong places. PLL (permutation of the last layer) moves them without twisting them or touching the first two layers. When it is done, the cube is solved.
Leaving aside U turns, which only line the layer up with the centers, the top pieces can end up in 21 ways. Each one has a letter name and many come in pairs, mirrors or inverses of each other, like Ua and Ub or Na and Nb.
Not all cases come up equally often. Most appear 1 in 18 times, because they can show up in four different positions. The ones that look the same from several sides come up less:
| Cases | Probability of each |
|---|---|
| Ua, Ub, Aa, Ab, T, F, Ja, Jb, Ra, Rb, V, Y, Ga, Gb, Gc, Gd | 1 in 18 |
| Z, E | 1 in 36 |
| H, Na, Nb | 1 in 72 |
| Layer already solved (PLL skip) | 1 in 72 |
Before full PLL, people usually learn 2-look PLL: first the corners and then the edges, with 6 algorithms. It works for any case, but it often needs two algorithms in a row. Full PLL always does it with one.
How to recognize a PLL: headlights and blocks
The top face is always yellow, so the information is on the sides of the top layer: three stickers per side, corner, edge and corner. Look for three things.
- Headlights: the two corners on one side have the same color. Those two corners are already correct relative to each other.
- Blocks: a corner and the edge next to it have the same color. They form a pair that is already correctly placed relative to each other.
- Solved side: the three stickers on one side are the same color. It is a three-piece block, a pair of headlights with the correct edge between them.
With those three clues you can tell the families apart. If there are headlights on all four sides, the corners are done and only edges move (U, H or Z). If there are no headlights on any side, two corners are swapped diagonally (Y, V, N) or it is the E. If there are headlights on just one side, the case is an A, a T, an F, a J, an R or a G.
Looking at only two sides
At first it is normal to turn the layer until you find the headlights. With practice, most cases can be recognized by looking at two adjacent sides, the front and the right, without moving anything. Some patterns look the same on those two sides and force you to check a third.
An example: Ra and T both have headlights on the left. In the Ra, the edge between them belongs to a neighboring side and there is a block in front; in the T, the edge is the opposite color and there are blocks in front and at the back.
The four G perms share one rule: headlights on one side and a single two-piece block in the rest of the layer. What changes from one G to another is where that block is.
Before you apply an algorithm, check whether you need to turn the top layer to put the case in the position shown. That turn beforehand is called AUF and it is part of recognition.
All 21 PLL cases
All cases are drawn with yellow on top and green in front. Each algorithm solves the case as it appears and leaves the cube oriented as it was at the start. The notation for M, r or x is in the notation guide.
Ua7 moves
M2 U M U2 M' U M2
Alternatives
R U' R U R U R U' R' U' R2Solved back side and headlights on the other three. Three edges cycle: the front one goes to the right, the right one to the left and the left one to the front. The version with R is the one from the intermediate method.
Ub7 moves
M2 U' M U2 M' U' M2
Alternatives
R2 U R U R' U' R' U' R' U R'The same pattern as the Ua with the cycle reversed: the front edge goes to the left. It is the inverse of the Ua.
H7 moves
M2 U M2 U2 M2 U M2
Alternatives
M2 U' M2 U2 M2 U' M2Headlights on all four sides and, between each pair, the edge from the opposite side. It looks the same from any side, so you don't need to set it up.
Z10 moves
M2 U M2 U M' U2 M2 U2 M' U2
Alternatives
M' U M2 U M2 U M' U2 M2Headlights on all four sides; each edge belongs to a neighboring side. Put one of the two pairs of swapped edges in front and on the right.
Aa11 moves
x R' U R' D2 R U' R' D2 R2 x'
Alternatives
R' F R' B2 R F' R' B2 R2Headlights at the back and the front left corner already in place, with a block in front and another on the left. The other three corners cycle clockwise.
Ab11 moves
x R2 D2 R U R' D2 R U' R x'
Alternatives
R2 B2 R F R' B2 R F' RHeadlights on the right and, as in the Aa, the front left corner in place. The other three corners cycle counterclockwise.
E18 moves
x' R U' R' D R U R' D' R U R' D R U' R' D' x
No headlights or blocks, and all four edges in place. On each side, the corners show the colors of the two neighboring sides. It swaps the left corners with the right corners.
T14 moves
R U R' U' R' F R2 U' R' U' R U R' F'
Headlights on the left with an edge of the opposite color between them, and two-piece blocks in front and at the back, on the left. It swaps the two right corners and the left and right edges.
F18 moves
R' U' F' R U R' U' R' F R2 U' R' U' R U R' U R
Solved left side. On the right the edge is correct, but between two corners that don't match; in front and at the back the edge is from the opposite side. The middle of the algorithm is almost the whole T.
Ja12 moves
x R2 F R F' R U2 r' U r U2 x'
Alternatives
R' U L' U2 R U' R' U2 R LSolved left side and the front edge in place. It swaps the back edge with the right one and the two right corners.
Jb14 moves
R U R' F' R U R' U' R' F R2 U' R' U'
Alternatives
R U2 R' U' R U2 L' U R' U' LSolved left side and, in front, a two-piece block on the right. It swaps the front edge with the right one and the two right corners. After R U R' F' it repeats the start of the T.
Ra16 moves
R U' R' U' R U R D R' U' R D' R' U2 R' U'
Headlights on the left with the edge from a neighboring side between them and a block in front, on the left. It swaps the back edge with the left one and the two right corners.
Rb14 moves
R2 F R U R U' R' F' R U2 R' U2 R U
Alternatives
R' U2 R U2 R' F R U R' U' R' F' R2 U'Headlights on the left, as in the Ra, but the block is at the back, on the left. It swaps the front edge with the left one and the two right corners.
Y17 moves
F R U' R' U' R U R' F' R U R' U' R' F R F'
No headlights, with two two-piece blocks: front left and on the right side, at the back. It swaps the back left corner with the front right one diagonally, and the back and left edges.
V16 moves
R' U R' U' R D' R' D R' U D' R2 U' R2 D R2
Alternatives
R' U R U' R' f' U' R U2 R' U' R U' R' f RNo headlights. The front left corner has both its neighboring edges correct, so you see a block in front and another on the left attached to it. It swaps the other two corners diagonally and the back and right edges.
Na21 moves
R U R' U R U R' F' R U R' U' R' F R2 U' R' U2 R U' R'
Alternatives
L U' R U2 L' U R' L U' R U2 L' U R'All four sides have a two-piece block and a loose corner; in front, the block is on the right. It swaps the front left corner with the back right one diagonally, and the left and right edges.
Nb17 moves
R' U R U' R' F' U' F R U R' F R' F' R U' R
Alternatives
r' D' F r U' r' F' D r2 U r' U' r' F r F'The mirror of the Na: in front, the block is on the left. It swaps the back left corner with the front right one diagonally, and the left and right edges.
Ga15 moves
R2 U R' U R' U' R U' R2 U' D R' U R D'
Alternatives
R2 u R' U R' U' R u' R2 F' U FHeadlights on the left and a single block, on the front side, on the right. Near the end you turn U' and D at the same time, one with each hand.
Gb15 moves
R' U' R U D' R2 U R' U R U' R U' R2 D
Headlights on the left and the block on the right side, at the back. As in the Ga, there is a moment when U and D turn at the same time, here at the start.
Gc15 moves
R2 U' R U' R U R' U R2 U D' R U' R' D
Alternatives
R2 u' R U' R U R' u R2 B U' B'Headlights on the left and the block at the back, on the right. It is the Ga with the direction of every turn reversed, except the R2s.
Gd15 moves
R U R' U' D R2 U' R U' R' U R' U R2 D'
Headlights on the left and the block on the right side, in front. It is the Gb with the direction of every turn reversed. It starts with R U R' U', the same move that opens the T.
What order to learn PLL in
You don't need to learn all 21 at once. Until you know a case, you solve it with 2-look PLL. This order builds on what you already know:
- The 6 from 2-look PLL: T, Y, Ua, Ub, H and Z. If you are coming from the intermediate method, you already have them.
- Aa and Ab: they are short, one is the mirror of the other and together with the E they complete the corners family.
- Jb and F: they repeat chunks of the T, which you already know, and you learn them in no time.
- Ja, Ra, Rb and V: common cases, 1 in 18 each, that usually need two algorithms with 2-look.
- E, Na and Nb: they don't come up often, but 2-look solves them with two long algorithms.
- The four G perms: they are best learned together because you recognize them with the same rule, headlights and one block.
It makes sense to finish PLL before OLL: it is 15 new algorithms versus 48. The library of OLL cases follows the same structure.
How to practice the algorithms
- A few cases at a time. Two or three new ones per session, reviewing the earlier ones. If you learn too many at once, they get mixed up.
- Set up the case. With the cube solved, do the algorithm backward: turns in reverse order and in the opposite direction.
- Separate recognizing from executing. Scramble the last layer, name the case and only then do the algorithm.
- Slow and without pauses first. An algorithm done smoothly at a calm pace ends up faster than one done in fits and starts.
- Time each case and spend more time on the slowest ones.
If you use a trainer that shows random cases, it is better for learning if they all come up equally often. To check your level, use the real frequency, where the H or the N perms hardly ever show up.
Finger tricks: executing without pauses
Finger tricks are the way you turn each layer with your fingers, without letting go of the cube. Learn them at the same time as the algorithms: bad habits are harder to fix later.
- R and R': with the right wrist, not the fingers. The cube doesn't move in your hand.
- U: the right index finger pushes the front right corner to the left. U': the same with the left index finger, to the right.
- U2: two pushes in a row with the index and middle fingers of the same hand, or one with each hand depending on what comes next.
- M and M2: with the ring finger of the left hand pushing the middle layer, without turning the wrist. That is why the U perms and the H work well with M.
- F and F': the right index finger pushes the front face from the top, or the thumb turns it from below.
A regrip means letting go of the cube and picking it up again to carry on, and each one is a pause. If an algorithm forces you into many, try the alternative from the library.
Practice the algorithms with rotations, like the A perms or the Ja, by holding the cube already rotated. The x and the x' are done with the wrist.
Frequently asked questions
How many algorithms are there in PLL?
21, one for each way the pieces of the last layer can end up swapped. If you already use 2-look PLL, you know 6 of them and have 15 left.
Which PLL should I learn first?
The ones from 2-look PLL: T, Y, Ua, Ub, H and Z. Then the A perms, the Jb and the F, which reuse chunks you know, and at the end the four G perms together.
What are headlights on a Rubik's Cube?
Two corners on the same side of the top layer with the same color. They show that those two corners are correct relative to each other, and they are the main clue for recognizing a PLL.
Which PLL comes up least often?
The H and the two N perms, 1 in 72 solves each. That is the same probability that the layer is already solved after OLL and you skip PLL.
What is AUF?
The turn of the top layer you do before the algorithm, to set up the case, or after it, to line up the layer with the centers. It can be U, U' or U2.
Why do some algorithms start with x and end with x'?
The x turns the whole cube as if you were doing R. That way the algorithm is executed with more comfortable turns, like D2 or R. The x' at the end puts the cube back in its starting position.
You can already practise in the simulator
Turn the layers with your finger, scramble the cube and try any algorithm step by step.
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 →