4x4 parity algorithms: how to recognize and fix each case
You reach the last layer of the 4x4 and something shows up that can't happen on a 3x3: a single flipped edge, or two edges swapped with everything else solved. That is parity. You haven't done anything wrong, and there is a 4x4 parity algorithm to fix each case. Both are here, checked turn by turn on the 3D cube, along with the ones for cubes from 5x5 to 7x7.
Route DOther puzzlesstep 5 of 10Intermediate
First you need: Solving the 4x4. You need to know how to reduce the 4x4: centers, edges and the 3x3 stage.
Uw2 Rw2 U2 2R2 U2 Rw2 Uw2
On this page
In short
- The 4x4 has two parities. OLL parity is one flipped edge in the last layer. PLL parity is two edges (or two corners) swapped with each other at the end.
- OLL parity, with the bad edge in front:
Rw U2 x Rw U2 Rw U2 Rw' U2 Lw U2 Rw' U2 Rw U2 Rw' U2 Rw'. - PLL parity, with the two edges at the front and back:
2R2 U2 2R2 Uw2 2R2 Uw2and a finalU2. - Each one comes up in roughly half of all solves and doesn't depend on the other: one time in four you get both, and one time in four, neither.
- Almost every mistake comes from the notation:
Rwis two layers and2Ris the inner layer only. - On the 5x5 and the 7x7 there is only edge parity. On the 6x6 there are the same two as on the 4x4, and edge parity can show up in two places.
What parity is and why the 3x3 doesn't have it
The 4x4 is almost always solved by reduction: you build the centers, pair up the edges and, from then on, turn the cube like a 3x3. The guide to solving the 4x4 explains those steps. Parity appears in the last part, when the cube already looks like a 3x3 but behaves in a way a 3x3 doesn't allow.
On a 3x3 there are things that can't happen however much you scramble it. There can't be a single flipped edge, or two pieces swapped with the rest solved. If you see something like that on a 3x3, someone has taken it apart and put it back together wrong. On the 4x4 it can happen, for two reasons.
- Each edge is two separate pieces. The two halves of a pair can end up swapped with each other. From the outside it looks like a whole edge that has been flipped.
- There are no fixed centers. The four center pieces of each color are identical and can be rearranged without it showing. That lets the edge pairs end up in an order a 3x3 doesn't allow.
The word comes from mathematics: even or odd. Each state of the cube is reached with an even or odd number of certain turns, and a 3x3 only knows half of the combinations a reduced 4x4 can show. When you land in the other half, 3x3 algorithms aren't enough and you need one that turns inner layers.
Parity isn't a mistake on your part or a defect in the cube. It depends on how the pieces ended up when you paired the edges, and you can't see that while you are doing it.
How to tell whether it is parity or a mistake in an earlier step
Before doing a long algorithm it pays to be sure. These are the signs, in the order they appear during the solve.
| What you see | What it is | What to do |
|---|---|---|
| When making the last layer cross, 1 or 3 edges have the top color facing up | OLL parity | OLL parity algorithm and then the normal cross |
| The last layer is oriented and only two edges are swapped, opposite each other | PLL parity | PLL parity algorithm |
| Two adjacent edges swapped, or only two corners swapped | PLL parity | The same algorithm and then a normal PLL case |
| A PLL case you don't recognize among the 21 | PLL parity | The same algorithm and then a normal PLL case |
| A center with a piece of another color | Not parity | A wide move done wrong: that center has to be rebuilt |
| An edge whose two halves are different colors | Not parity | That pair has come apart: go back to the edge pairing step |
| A corner twisted in place and nothing else | Not parity | The corner has been twisted by hand: turn it until it fits |
The quick rule: parity only affects whole edges and corners of the last layer. If there are mixed-up centers or broken pairs, the problem lies earlier and no parity algorithm will fix it.
Before you turn: Rw is not the same as 2R
Parity algorithms mix two-layer turns with turns of a single inner layer. If you confuse one with the other, the algorithm doesn't just fail to fix the parity: it scrambles the centers. This page, the 4x4 guide and the simulator write turns the same way as the notation page. On the 3D cubes, yellow is on top and green in front.
Rwthe two right layers
The w stands for wide. The outer layer and the one next to it turn together. Many sites write it in lowercase, r.
2Rthe inner layer only
The number tells you which layer turns, counting from that face. Without a w, that layer turns on its own and the outer one stays still.
Uwthe two top layers
The same with the top face: the two upper rows turn at once.
| Written as | What turns | You will also see it as |
|---|---|---|
R | The outer right layer | The same everywhere |
Rw | The two right layers | r in almost all current tutorials |
2R | Only the second layer from the right | r in older tutorials, where the two layers are written Rw |
2R2 | A half turn of that inner layer | r2 in older tutorials |
x | The whole cube, in the direction of R | It doesn't change the cube, only how you hold it |
If you copy an algorithm from a video or another site, first check what its r means. The same letter means two layers in some places and only the inner one in others, and it is the most common reason why “the algorithm doesn't work”.
OLL parity: one flipped edge
How to recognize it
With the first two layers solved, you look at the last layer edges. On a 3x3 there are always 0, 2 or 4 with the top color facing up: the dot, the L or the line, and the cross. If you count 1 or 3, there is parity. Anyone who solves with full OLL sees it as a pattern that isn't among the 57 cases.
The algorithm
Put a misoriented edge in front, in the top layer, with the top color facing you. If three are wrong, any of them will do. Then:
Rw U2 x Rw U2 Rw U2 Rw' U2 Lw U2 Rw' U2 Rw U2 Rw' U2 Rw'
That is 17 turns and one rotation. The x tips the whole cube backward, like an R turn of the entire cube: the front face ends up on top. You keep turning with the cube like that and, when you finish, it comes back to its starting position by itself. Every right-hand turn is a two-layer turn, and so is the Lw.
The algorithm flips that edge, but it doesn't leave everything else as it was: the left and right edges of the top layer swap, and so do the two front corners. The first two layers and the centers are untouched. Since you still have to orient and permute the last layer, it doesn't matter: afterward you do the cross, OLL and PLL as usual.
The same one, without rotating the cube
This is the version found on most algorithm sheets. It has 15 turns, no rotation, and leaves the cube exactly the same as the previous one. Choose whichever you find more comfortable and stick with just one:
Rw' U2 Lw F2 Lw' F2 Rw2 U2 Rw U2 Rw' U2 F2 Rw2 F2
The one that only touches that edge
If you want to flip the edge without moving anything else, for example because the rest of the cube is already solved, use this one. It alternates inner layers on the right and on the left, so it is slower to execute:
2R2 B2 U2 2L U2 2R' U2 2R U2 F2 2R F2 2L' B2 2R2
Fix OLL parity as soon as you see it, before the last layer cross. If you leave it for later, you will have to orient the last layer twice.
PLL parity: two swapped edges
How to recognize it
The last layer already has its color on top and all that is left is to place the pieces. On a 3x3 you would have one of the 21 PLL cases. With parity, what you see doesn't match any of them. The clearest case is two edges swapped with each other and everything else in place.
The algorithm
Put the two edges that need swapping at the front and back of the top layer and do:
2R2 U2 2R2 Uw2 2R2 Uw2
That is six half turns. 2R2 is a half turn of the inner layer alone and Uw2 is a half turn of the two top layers. When you finish, the two edges are swapped but the top layer is left a half turn off: a U2 puts it back in place.
Other ways of writing it
These three versions do the same swap and end with no final adjustment. All three have been checked on the 3D cube on this page.
| Algorithm | How it differs |
|---|---|
2R2 U2 2R2 Uw2 2R2 2U2 | The last turn is of the inner layer alone, which is why the final U2 isn't needed |
Uw2 Rw2 U2 2R2 U2 Rw2 Uw2 | Only one inner layer turn. It is symmetrical: you undo it the same way you do it |
Rw2 F2 U2 2R2 U2 F2 Rw2 | No Uw turns. Handy if you find it hard to grip two top layers |
If it isn't two opposite edges
PLL parity doesn't always look the same. The two swapped edges may be adjacent, or what is swapped may be two corners. In every case you do the same thing: the parity algorithm, which swaps the front and back edges, and then a normal PLL case is left. This table tells you which one.
| What you see | How to position it | What is left after the parity |
|---|---|---|
| Two opposite edges swapped | One in front and one at the back | Nothing: cube solved |
| Two adjacent edges swapped | One of them at the front or back | A three-edge cycle (U perm) |
| Two adjacent corners swapped | Both at the front or both at the back | The T perm |
| Two adjacent corners swapped | Both on one side | The F perm |
| Two diagonal corners swapped | Any way | An N perm |
If you still solve the last layer with the method from the course, you don't need the table. Place the corners as usual; if you see that it is impossible, do the parity algorithm and try again. The same goes for the edges.
Both parities in the same solve
The two parities are independent: having one makes the other neither more nor less likely. Each appears in roughly half of all solves, so this is how it breaks down.
| What you get | How often |
|---|---|
| No parity | 1 in every 4 solves |
| OLL parity only | 1 in 4 |
| PLL parity only | 1 in 4 |
| Both | 1 in 4 |
When you get both, the order is always the same, because each one shows up at a different moment:
- When you reach the last layer, count the correctly oriented edges. If there are 1 or 3, do the OLL parity.
- Make the cross and orient the last layer as normal.
- Place the pieces. If the case is impossible on a 3x3, do the PLL parity.
- Finish with whatever PLL case is left, if there is one.
The OLL parity algorithm moves two edges and two corners to different places, but that neither creates nor removes PLL parity: if you had it, you still have it, and if you didn't, it doesn't appear.
Parity on the 5x5, 6x6 and 7x7
The general rule is simple. Even cubes (4x4, 6x6) have no fixed center and no middle edge piece, and can have both parities. Odd cubes (5x5, 7x7) have a fixed center and a middle piece in each edge, which set where everything goes just as on a 3x3: they have no PLL parity, only edge parity.
| Cube | Edge parity (OLL) | PLL parity | Guide |
|---|---|---|---|
| 4x4 | Yes, one case | Yes | Solving the 4x4 |
| 5x5 | Yes, one case | No | Solving the 5x5 |
| 6x6 | Yes, two cases (outer and inner wings) | Yes | Solving the 6x6 and 7x7 |
| 7x7 | Yes, two cases (outer and inner wings) | No | Solving the 6x6 and 7x7 |
5x5: both wings the wrong way round
On the 5x5 each edge has three pieces: a midge and two wings. The parity shows when you finish pairing: on the last edge, the two wings are the wrong way round relative to the midge. You fix it with the same inner layer algorithm as on the 4x4, which touches nothing else:
2R2 B2 U2 2L U2 2R' U2 2R U2 F2 2R F2 2L' B2 2R2
The wide-move version Rw' U2 Lw F2 Lw' F2 Rw2 U2 Rw U2 Rw' U2 F2 Rw2 F2 also works. It is faster and, as on the 4x4, it also swaps two edges and two corners in the top layer. The version with the x rotation doesn't work as it stands on the 5x5: it messes up the centers.
6x6: outer wings, inner wings and PLL
Each edge on the 6x6 has four pieces: two outer wings and two inner ones. Each pair of wings can have parity on its own. The algorithm is the same, changing the layer you turn: 2R and 2L for the outer ones, 3R and 3L for the inner ones.
If all four pieces are the wrong way round, you will see it as on the 4x4: a whole edge flipped when you make the cross. Then you use the wide-move version turning half the cube, three layers: 3Rw' U2 3Lw F2 3Lw' F2 3Rw2 U2 3Rw U2 3Rw' U2 F2 3Rw2 F2.
PLL parity on the 6x6 is recognized just as on the 4x4 and is fixed with the two edges at the front and back:
3Uw2 3Rw2 U2 3Rw2 R2 U2 3Rw2 3Uw2
7x7: like the 5x5, twice
The 7x7 has a midge and four wings per edge. Just as on the 6x6, the outer wings are fixed with 2R and 2L and the inner ones with 3R and 3L. It has no PLL parity.
| Cube | What is the wrong way round | Algorithm |
|---|---|---|
| 4x4 | The whole edge | Rw' U2 Lw F2 Lw' F2 Rw2 U2 Rw U2 Rw' U2 F2 Rw2 F2 |
| 5x5 | The two wings | 2R2 B2 U2 2L U2 2R' U2 2R U2 F2 2R F2 2L' B2 2R2 |
| 6x6 and 7x7 | The outer wings | 2R2 B2 U2 2L U2 2R' U2 2R U2 F2 2R F2 2L' B2 2R2 |
| 6x6 and 7x7 | The inner wings | 3R2 B2 U2 3L U2 3R' U2 3R U2 F2 3R F2 3L' B2 3R2 |
| 6x6 | The whole edge | 3Rw' U2 3Lw F2 3Lw' F2 3Rw2 U2 3Rw U2 3Rw' U2 F2 3Rw2 F2 |
| 4x4, PLL parity | Two edges swapped | 2R2 U2 2R2 Uw2 2R2 Uw2 U2 |
| 6x6, PLL parity | Two edges swapped | 3Uw2 3Rw2 U2 3Rw2 R2 U2 3Rw2 3Uw2 |
Why it happens, explained without formulas
OLL parity: one inner turn too many
The 24 edge halves of the 4x4 move differently depending on which layer you turn. A quarter turn of an outer layer moves eight halves in two groups of four. A quarter turn of an inner layer, such as 2R, moves only four, in a single group. That difference is the key: if, between the scramble and your solve, the number of inner quarter turns is odd, the halves end up in an arrangement that no outer turn can correct. The simplest form of that arrangement is two halves of the same pair swapped with each other, which is what you see as a flipped edge.
That is why every OLL parity algorithm has an odd number of inner layer quarter turns, and why there is none that uses outer layers only.
PLL parity: centers that can be swapped without it showing
On the 3x3, each turn moves four corners and four edges at once, and that ties them together: you can't swap two edges without also swapping two corners. On the reduced 4x4 that tie is broken, because an inner layer turn moves edges and centers, and centers of the same color are indistinguishable. The cube “pays” for swapping two edges by rearranging center pieces, and nothing shows on the outside.
Can it be avoided?
With the reduction method, no. Parity is decided when you finish pairing the edges and there is no practical way to see it beforehand. Some advanced methods detect it early so as to solve it at a more convenient moment, but they don't eliminate it. What you can do is execute the two algorithms fast: in competition, people who solve the 4x4 in under 30 seconds get parity just as often as you do.
Common mistakes and how to get out of them
- Doing
Rwhere it saysRw, or the other way round. At the end there are centers with pieces of another color. You have to rebuild those centers and re-pair any edges that have been broken. - Doing PLL parity with
Rw2instead of2R2. The side centers end up striped. If you have only just done it, repeat exactly the same wrong sequence and you will be back where you were. - Forgetting the
xrotation, or undoing it. In the first version of OLL parity, the cube is tipped back once and you don't have to straighten it: it comes back by itself. - Positioning the edge wrong. The flipped edge goes in front in the top layer, not on the right. For PLL parity, the edges go at the front and back, not on the sides.
- Doing the OLL algorithm when the parity is PLL. Look at what is wrong: if it is the orientation (colors facing up), it is OLL parity; if the top colors are fine and what is wrong is where the pieces are, it is PLL parity.
- Getting lost halfway. Don't try to improvise. The quickest thing is to solve again the centers and edges that have been messed up.
Practice the two algorithms in the simulator with the 4x4 before doing them on your cube. If you make a mistake, you just reset.
How to memorize the two algorithms
They are the two longest algorithms you need for the 4x4, but both have a structure that helps.
- PLL parity. It alternates:
2R2,U2,2R2,Uw2,2R2,Uw2. The inner right layer turns three times, and in between come first the top layer alone and then the double layer twice. - OLL parity with a rotation. Almost all of it is a right-hand turn followed by
U2. The only thing to remember is the direction of the turns:Rw, rotation,Rw Rw Rw',Lw,Rw' Rw Rw' Rw', always with aU2between one and the next. - OLL parity without a rotation. Learn it in three chunks:
Rw' U2 Lw F2 Lw' F2, thenRw2 U2 Rw U2 Rw' U2and the endingF2 Rw2 F2.
Repeat each one slowly ten times in a row on a solved cube, watching which pieces move. PLL parity done twice returns the cube to its state, and so does OLL parity, so you can practice without undoing anything. Once they come out without thinking, time them on their own: it is the most direct way to see that you are improving.
A cube that doesn't lock up helps a lot with these algorithms, because they chain inner layer half turns together. If your 4x4 catches when you turn two layers, have a look at the magnetic 4x4 cubes in the shop: the magnets leave each layer lined up at the end of the turn.
Frequently asked questions
What is parity on the 4x4 cube?
It is a last layer situation that can't occur on a 3x3. There are two: one flipped edge when orienting the last layer (OLL parity) and two edges or two corners swapped when placing it (PLL parity). Each one is fixed with an algorithm that turns inner layers.
What is the 4x4 parity algorithm for OLL parity?
With the misoriented edge in front in the top layer: Rw U2 x Rw U2 Rw U2 Rw' U2 Lw U2 Rw' U2 Rw U2 Rw' U2 Rw'. Without a rotation, Rw' U2 Lw F2 Lw' F2 Rw2 U2 Rw U2 Rw' U2 F2 Rw2 F2 gives the same result.
What is the 4x4 parity algorithm for PLL parity?
With the two edges at the front and back: 2R2 U2 2R2 Uw2 2R2 Uw2 and a final U2. 2R2 is a half turn of the inner layer alone, not of both layers.
Why does the parity algorithm mess up my centers?
Because you have turned one layer too many or too few. Rw is the two right layers and 2R is the inner one only. On top of that, some sites use a lowercase r for one thing and others for the other, so it is worth checking the notation before you copy an algorithm.
How often does parity come up?
Each one, in roughly half of all solves, and they are independent. One time in four you get neither, one time in four you get both and the rest of the time, just one.
Does the 5x5 have parity?
Only edge parity: on the last edge you pair, the two wings can end up the wrong way round relative to the midge. It has no PLL parity, because its fixed centers and its midges set the order just as on a 3x3.
Can parity be avoided?
Not with the reduction method. It is decided when you pair the edges and can't be seen until the last layer. The practical thing is to learn the two algorithms well and execute them fast.
Do I have parity or have I put the cube together wrong?
If the centers are fine, the edges are paired and the only odd thing is one flipped edge or two swapped pieces in the last layer, it is parity. A corner twisted in place isn't parity: it has been twisted and you put it right by hand.
You can already practise in the simulator
Turn the layers with your finger, scramble the cube and try any algorithm step by step.
To practise with: from our shop
We sell the cubes these guides were made with: GAN, MoYu and QiYi, from a first cube to competition models, plus lubricants.
4x4 speed cubes in stock →Buy speed cubes →



