The Y-perm algorithm is the one you use when two corners sitting diagonally across from each other on the top layer need to swap places. It has 17 moves, swaps the two diagonal corners and, at the same time, swaps two edges next to each other. This guide shows you how to spot the Y-perm from any angle, two alternative algorithms, and how the Y-perm is used when solving the cube blindfolded.
Find your case fast
Look at your cube from above and tap the picture that matches it to see how to solve it. Grey cells are stickers you can ignore.
Every algorithm and every picture in this post was tested on the EasyRubic cube simulator.
What is the Y-perm?
The Y-perm is one of the 21 PLL cases, the last step of CFOP, once the whole top face is yellow (SpeedSolving Wiki). It does two things at once:
- Swaps the top front-right corner with the top back-left corner, two corners that sit diagonally across from each other.
- Swaps the top-left edge with the top-back edge.
The Ruwix blindfolded guide sums up the Y-perm simply as the algorithm that swaps two opposite corners on the U face (Ruwix).
The picture below shows the Y-perm in the standard grip: yellow face on top, green face in front. On the left is the case you have, on the right is the cube after the algorithm.
See it in 3D, before and after
- You start with (input)
- After the formula
If you are not yet used to the letters R, U and F, see the post Rubik's cube notation for beginners first.
The Y-perm algorithm
F R U' R' U' R U R' F' R U R' U' R' F R F'
This is the most popular Y-perm algorithm, and it is also the second one on the SpeedSolving Wiki's list (SpeedSolving Wiki). 17 moves sounds long, but split into two parts it is easy to remember:
- F R U' R' U' R U R' F': opens with F and closes with F'. In between are seven R and U moves.
- R U R' U' R' F R F': this is the sexy move (R U R' U') followed by R' F R F'. If you have already done OLL, you have come across this part many times.
See it in 3D, before and after
- You start with (input)
- After the formula
Doing the Y-perm twice in a row puts the cube back where it was. If you do it by mistake, just do it one more time.
How to recognize the Y-perm
The Y-perm has no headlights (two corner stickers of the same colour in the top row of a side face). Instead, you will see two pairs: each pair is a corner sticker and the edge sticker next to it in the same colour. The two pairs are on two faces next to each other.
The algorithm only works when the pair on the front face is on the left, and the pair on the right face is on the right (towards the back). The front-right corner, sitting between the two pairs, is the corner that needs to swap. The table below covers all four angles:
| You see | Turn first | Then do |
|---|---|---|
| Pair on the left of the front face, pair on the right of the right face | Nothing | Y-perm |
| Front face: two corners of opposite colours. Pair on the left of the right face | U | Y-perm |
| Both front and right faces: two corners of opposite colours | U2 | Y-perm |
| Pair on the right of the front face. Right face: two corners of opposite colours | U' | Y-perm |
"Opposite colours" means red with orange, or green with blue. Each picture below includes the U turn at the start of the algorithm, so you can see that the picture on the right is always a solved cube.
Two pairs on the front and right faces
This is the grip for doing the algorithm:
- Front face: green, green, blue. The green pair is on the left.
- Right face: red, orange, orange. The orange pair is on the right.
See it in 3D, before and after
- You start with (input)
- After the formula
One pair on the right face
The front face is orange, blue, red: two corners of opposite colours, no pair. The right face is green, green, blue: the pair is on the left. Turn U once, then do the Y-perm.
See it in 3D, before and after
- You start with (input)
- After the formula
No pairs in sight
The front face is blue, red, green. The right face is orange, blue, red. Both faces have two corners of opposite colours, which means the two pairs are on the back and left faces. Turn U2, then do the Y-perm.
See it in 3D, before and after
- You start with (input)
- After the formula
One pair on the front face
The front face is red, orange, orange: the pair is on the right. The right face is blue, red, green: two corners of opposite colours. Turn U', then do the Y-perm.
See it in 3D, before and after
- You start with (input)
- After the formula
To recognize all 21 PLL cases from just two faces, see the post PLL recognition.
The Y-perm in 2-look PLL
If you are working through 2-look PLL, the Y-perm is the diagonal corner-swapping algorithm in step 1. In this step you only look at the four corners:
- Look around all four side faces. If no face has headlights, it is the diagonal swap case.
- Do the Y-perm straight away, holding the cube any way you like. The four corners will match each other, and you may need a U turn at the end to line them up with the side faces.
- It does not matter if the edges get mixed up more, step 2 will fix them.
The picture below only colours the four corners, which is exactly what you need to look at in step 1.
See it in 3D, before and after
- You start with (input)
- After the formula
The J Perm video below walks through 2-look PLL, including the diagonal corner swap:
https://www.youtube.com/watch?v=f_Yor-ydZjs Video: J Perm, Rubik's Cube: Easy 2-Look PLL Tutorial (Beginner CFOP)
Other Y-perm algorithms
The SpeedSolving Wiki lists more than ten algorithms for the Y-perm (SpeedSolving Wiki). The two below give exactly the same result as the main algorithm, with the same grip. Try all three and keep the one that feels smoothest in your hands.
Starting with F R' F
F R' F R2 U' R' U' R U R' F' R U R' U' F'
16 moves. The middle is close to the main algorithm; the differences are mostly at the start and the end.
See it in 3D, before and after
- You start with (input)
- After the formula
Without F
R' U' R U' L R U2 R' U' R U2 L' U R2 U R
16 moves, using only R, U and L. Good for anyone who does not like turning the F face.
See it in 3D, before and after
- You start with (input)
- After the formula
The Y-perm in blindfolded solving
In Old Pochmann, the simplest blindfolded method, the Y-perm is the algorithm for placing the corners. According to the SpeedSolving Wiki, the method was invented by Stefan Pochmann and solves one piece at a time, using the T-perm and J-perm for edges and the Y-perm for corners (SpeedSolving Wiki).
Following the Ruwix guide, the top back-left corner is the "buffer", and you use the Y-perm without the F at the start and the F' at the end (Ruwix):
R U' R' U' R U R' F' R U R' U' R' F R
- You start with (input)
- After the formula
This 15-move algorithm swaps the top sticker of the buffer with one sticker of another corner, and swaps the top-left edge with the top-back edge. To swap the buffer with a corner somewhere else, do a few setup moves, do the algorithm, then undo the setup moves. The setup moves must not touch the buffer.
In the pictures below (yellow face on top, green in front), only the buffer, the corner being swapped and the two edges that swap along with it are coloured.
No setup needed: bottom front-right corner
The top sticker of the buffer swaps with the right-face sticker of the bottom front-right corner.
- You start with (input)
- After the formula
Top front-right corner: setup R'
Full sequence: R', the algorithm above, R. Swaps with the right-face sticker of the top front-right corner.
See it in 3D, before and after
- You start with (input)
- After the formula
Top front-left corner: setup F2
Full sequence: F2, the algorithm above, F2. Swaps with the left-face sticker of the top front-left corner.
See it in 3D, before and after
- You start with (input)
- After the formula
Bottom front-left corner: setup F'
Full sequence: F', the algorithm above, F. Swaps with the bottom-face sticker of the bottom front-left corner.
- You start with (input)
- After the formula
Bottom back-right corner: setup D2 F'
Full sequence: D2 F', the algorithm above, F D2. Swaps with the bottom-face sticker of the bottom back-right corner.
- You start with (input)
- After the formula
What about the two swapped edges?
Every time you place a corner, the top-left edge and the top-back edge also swap places. Doing it twice puts them back. If the number of corners you place is odd, these two edges are still swapped at the end. Ruwix calls this parity and fixes it with a different PLL algorithm (the Ra-perm). That part is beyond this post; you can read about it in the Ruwix guide.
Common mistakes
- Mixing up the Y-perm with the T-perm. The T-perm has headlights, the Y-perm does not. If you see two corner stickers of the same colour on one face, it is not a Y-perm. See the post T-perm algorithm.
- Doing it before the two pairs are in place. The pair on the front face must be on the left, and the pair on the right face must be on the right. Always turn U first.
- Forgetting the last move. The algorithm ends with a turn of the front face. Without it, the whole front face is off by a quarter turn.
Sources
Frequently asked questions
How many moves is the Y-perm?
The most popular algorithm has 17 moves: F R U' R' U' R U R' F' R U R' U' R' F R F'. The SpeedSolving Wiki notes that the shortest solution for the Y-perm is 13 moves, but that one is harder to do fast.
Why is it called the Y-perm?
No source says for sure. A trick for remembering it: draw arrows on the top face for the pieces that need to swap. The diagonal line joining the two corners and the short line joining the two edges look like the letter Y.
When should I pick up the Y-perm?
At the same time as 2-look PLL. It is the diagonal corner-swapping algorithm in 2-look PLL, and it is also part of the full set of 21 PLL algorithms, so the effort is never wasted.
Does blindfolded solving need any other corner algorithms?
With Old Pochmann, the Y-perm without the two F moves is enough to place every corner; you only add the setup moves. The edges use the T-perm and J-perm.


