Algorithms

PLL Algorithms: All 21 Cases, Grouped and Explained

Quick answer

PLL (Permutation of the Last Layer) is the last step of CFOP. There are 21 cases, each solved by one algorithm that moves the already-oriented top pieces into place. Learn them in groups: edges only (Ua, Ub, H, Z), corners only (Aa, Ab, E), adjacent corner swaps (T, F, Ja, Jb, Ra, Rb), the four G perms and diagonal corner swaps (V, Y, Na, Nb).

On this pageHow to read this sheet

F2L is done, the top face is all yellow, and one step is left. PLL, short for Permutation of the Last Layer, is the final step of CFOP.

This page lists all 21 PLL cases with a recognition cue, the angle to hold each one, a main algorithm and an alternative. It's built for CFOP solvers who already use two-look PLL and want to finish in one look. If the last layer's two steps are still fuzzy, read what OLL and PLL are first.

Each alternative solves the same case as its main algorithm. Case names follow the Speedsolving.com Wiki, and SpeedCubeDB lists more options per case.

How to read this sheet

Hold the cube with yellow on top. "Front" is the side facing you. A few words show up in almost every recognition cue:

  • Headlights: the two corner stickers on one side are the same color, with a different edge between them.
  • Block: a corner and the edge next to it match on one side, making a two-sticker block.
  • Bar: all three stickers on one side match.
  • Hold: the starting angle the main algorithm expects. If you spot a case from another side, turn the top layer until it matches.

New to the letters? See Rubik's Cube notation. M is the middle slice, turned like L (wide and slice moves). Lowercase r, u and f turn two layers at once. The letters x, y and z are whole-cube rotations (cube rotations x, y and z).

Edges only: Ua, Ub, H and Z

The corners are already solved here, so only edges move. If every side shows matching corners, it's one of these four.

  • Ua perm: one solved bar, and the other three edges cycle counterclockwise when seen from above. Hold: solved bar at the back, with the front edge showing the right side's color. Algorithm: M2 U M U2 M' U M2. Alternative: R U' R U R U R U' R' U' R2.
  • Ub perm: one solved bar, and the other three edges cycle clockwise. Hold: solved bar at the back, with the front edge showing the left side's color. Algorithm: M2 U' M U2 M' U' M2. Alternative: R2 U R U R' U' R' U' R' U R'.
  • H perm: headlights on all four sides, and each edge is the color of the opposite side. Hold: any angle. Algorithm: M2 U M2 U2 M2 U M2. Alternative: R2 U2 R U2 R2 U2 R2 U2 R U2 R2.
  • Z perm: headlights on all four sides, and each edge is the color of a neighboring side. Hold: corners matched to the centers, with the swapped pairs at front-right and back-left, then start with the U' shown in brackets. Algorithm: (U') M' U M2 U M2 U M' U2 M2. Alternative: R' U' R U' R U R U' R' U R U R2 U' R'.

Notes: do the M moves with your left ring finger, and try M2 as a quick double flick. The Ua and Ub alternatives use only R and U turns, which some one-handed solvers prefer.

Corners only: Aa, Ab and E

Here the edges are already solved relative to each other, and only corners move.

  • Aa perm: three corners cycle while the edges are solved, and exactly one side shows headlights. Hold: headlights at the back. Algorithm: x R' U R' D2 R U' R' D2 R2 x'. Alternative: R' F R' B2 R F' R' B2 R2.
  • Ab perm: the mirror of Aa, again with headlights on exactly one side. Hold: headlights on the right. Algorithm: x R2 D2 R U R' D2 R U' R x'. Alternative: R B' R F2 R' B R F2 R2.
  • E perm: no headlights anywhere, and every side shows two opposite-color corner stickers around a solved edge. Hold: the front-left corner shows the left side's color and the front-right corner shows the right side's color. Algorithm: x' R U' R' D R U R' D' R U R' D R U' R' D' x. Alternative: R2 U R' U' y R U R' U' R U R' U' R U R' y' R U' R2.

Notes: the two A perms are mirror images built around a pair of D2 turns, usually done with the left hand. Their alternatives skip the rotation. E is the only case with no headlights and solved edges, so it's easy to spot.

Adjacent corner swaps: T, F, Ja, Jb, Ra and Rb

Two neighboring corners swap, along with two edges.

  • T perm: headlights on one side, and the opposite side's edge matches the headlights' color. Hold: headlights on the left. Algorithm: R U R' U' R' F R2 U' R' U' R U R' F'. Alternative: R2 U R2 U' R2 U' D R2 U' R2 U R2 D'.
  • F perm: a full solved bar on one side, while the opposite side shows two opposite-color corners around the correct edge. Hold: bar on the left. Algorithm: R' U' F' R U R' U' R' F R2 U' R' U' R U R' U R. Alternative: R' U R U' R2 F' U' F U R F R' F' R2.
  • Ja perm: a full bar on one side, with a two-sticker block on the neighboring side touching it. Hold: bar on the left, with the front's block at its left end, next to the bar. Algorithm: x R2 F R F' R U2 r' U r U2 x'. Alternative: R' U L' U2 R U' R' U2 R L.
  • Jb perm: a full bar on one side, plus a block that doesn't touch it. Hold: bar on the left, with the front's block at its right end. Algorithm: R U R' F' R U R' U' R' F R2 U' R'. Alternative: R U2 R' U' R U2 L' U R' U' L.
  • Ra perm: headlights on one side, and the side to their right has a block touching the headlights. Hold: headlights on the left, with the front's block at its left end. Algorithm: R U' R' U' R U R D R' U' R D' R' U2 R'. Alternative: R U R' F' R U2 R' U2 R' F R U R U2 R'.
  • Rb perm: headlights on one side, and the side to their left has a block touching the headlights. Hold: headlights on the left, with the back's block at its left end, next to the headlights. Algorithm: R2 F R U R U' R' F' R U2 R' U2 R. Alternative: R' U2 R U2 R' F R U R' U' R' F' R2.

Notes: the T perm opens with the sexy move. After its first four moves, Jb runs the first nine moves of the T perm, and the F perm hides almost the whole T perm in its middle. Learn T first and both get easier. The Ja alternative ends with a two-handed R and L finish.

G perms: Ga, Gb, Gc and Gd

Every G perm moves both corners and edges and shows exactly one set of headlights. Put the headlights on the left, then look for the single two-sticker block. Where it sits tells you which G you have.

  • Ga perm: one set of headlights, with the block on the front side at its right end. Hold: headlights on the left. Algorithm: R2 U R' U R' U' R U' R2 U' D R' U R D'. Alternative: R2 u R' U R' U' R u' R2 y' R' U R.
  • Gb perm: one set of headlights, with the block on the right side at its back end. Hold: headlights on the left. Algorithm: R' U' R U D' R2 U R' U R U' R U' R2 D. Alternative: F' U' F R2 u R' U R U' R u' R2.
  • Gc perm: one set of headlights, with the block on the back side at its right end. Hold: headlights on the left. Algorithm: R2 U' R U' R U R' U R2 U D' R U' R' D. Alternative: R2 u' R U' R U R' u R2 y R U' R'.
  • Gd perm: one set of headlights, with the block on the right side at its front end. Hold: headlights on the left. Algorithm: R U R' U' D R2 U' R U' R' U R' U R2 D'. Alternative: R U R' y' R2 u' R U' R' U R' u R2.

Notes: Ga and Gc are built the same way, and so are Gb and Gd, so learn them in pairs. Most alternatives swap a U and D pair for a wide u turn. Keep whichever flows better in your hands.

Diagonal corner swaps: V, Y, Na and Nb

Here two corners swap across the diagonal.

  • V perm: no headlights, and one corner plus both edges beside it form an L-shaped solved block. Hold: that L-shaped block at the front-left. Algorithm: R' U R' U' y R' F' R2 U' R' U R' F R F. Alternative: R' U R U' R' f' U' R U2 R' U' R U' R' f R.
  • Y perm: no headlights, and two separate blocks sit on neighboring sides. Hold: the front's block at its left end and the right side's block at its back end. Algorithm: F R U' R' U' R U R' F' R U R' U' R' F R F'. Alternative: F R' F R2 U' R' U' R U R' F' R U R' U' F'.
  • Na perm: every side shows a block plus one odd corner, with the blocks on the right end of each side. Hold: any angle. Algorithm: R U R' U R U R' F' R U R' U' R' F R2 U' R' U2 R U' R'. Alternative: z D R' U R2 D' R D U' R' U R2 D' R U' R z'.
  • Nb perm: the mirror of Na, with the blocks on the left end of each side. Hold: any angle. Algorithm: R' U R U' R' F' U' F R U R' F R' F' R U' R. Alternative: r' D' F r U' r' F' D r2 U r' U' r' F r F'.

Notes: the second half of the Y perm is the sexy move followed by the sledgehammer. Na contains a full Jb perm with a short setup and finish, so learn Jb well first. The main V perm uses a y rotation; the alternative avoids it with wide f turns.

How often each PLL comes up

Out of 72 equally likely last-layer permutations, including the final U adjustment:

  • 4 in 72 each, about one solve in 18: Ua, Ub, Aa, Ab, T, F, Ja, Jb, Ra, Rb, Ga, Gb, Gc, Gd, V and Y.
  • 2 in 72 each: Z and E.
  • 1 in 72 each: H, Na, Nb and the PLL skip.

Together the four G perms come up 16 times in 72, about 22%, or roughly one solve in four or five. Learning them later is fine, but don't leave them for long. Tracking your CFOP solve splits shows how much each slow case costs you.

Which PLLs to learn first

There's no single right order, but this one works well:

  • Start with the U perms and the T perm. They're common and short.
  • Then add the J, A and R perms. They're fast and comfortable.
  • Next come H, Z, F and Y.
  • Learn the G perms in mirror pairs, Ga with Gc and Gb with Gd.
  • Finish with E, the N perms and V, which come up the least.

For a full plan, read how to learn full PLL, and see how to memorize cube algorithms. Good finger tricks for speedcubing matter too, because PLL is all about execution.

Coming from two-look PLL? The usual two-look set includes all four edge cases, so the first group is already done.

Recognizing PLL from two sides

You don't need to check all four sides. Six stickers on two neighboring sides are enough to identify every PLL and its angle, as how many stickers identify a PLL case explains.

Train it in steps: headlights or not, then a bar, a block or neither, then which side. Our PLL recognition guide goes case by case, and what the hardest PLL algorithm is covers the usual troublemakers.

Drilling PLL with CuberPal

Knowing 21 algorithms is one thing. Doing them without a pause is another. CuberPal's coaching is built around CFOP, and it helps with PLL in a few ways:

  • The algorithm trainer lets you drill cases until they're automatic.
  • The cube timer tracks your averages, so you can see whether full PLL is paying off.
  • AI solve feedback gives you notes on your solves, so you can choose what to practice next.

The paid tier is called Premium. For fresh practice scrambles, use the scramble generator.

Continue the learning path

Learn CFOP

Build intuitive F2L before adding a large number of algorithms.

Open this topic cluster

Turn this into practice

CuberPal combines a WCA-style timer, AI solve analysis, CFOP lessons, algorithm catalogues, spaced repetition, and a camera cube solver so speedcubing advice becomes a daily training loop.

CuberPal redesigned PLL practice showing a case, algorithm, timer, and recall ratings

Frequently asked questions

How many PLL algorithms are there?

There are 21 PLL cases, counting mirror pairs like Ua and Ub separately. Counting the PLL skip, there are 22 possible last-layer permutation states.

Which PLL should I learn first?

The U perms and the T perm. They're common and short, and pieces of the T perm reappear in the J, F and N perms.

Do I need full PLL before full OLL?

Many cubers learn full PLL first because it's 21 cases instead of 57 and removes a look from every solve. For OLL, start with two-look OLL, then move on to full OLL algorithms.

What's the hardest PLL?

It's personal, but many cubers name the G perms or the N perms. See what the hardest PLL algorithm is.

Sources and fact checks

  1. [1]Speedsolving.com Wiki: PLL — PLL = Permutation of the Last Layer; 21 PLL cases. Rechecked 2026-11-30.
  2. [2]SpeedCubeDB: 3x3 PLL algorithms — Lists more algorithm options per PLL case. Rechecked 2026-11-30.

Keep improving