5x5 edge pairing comes down to three things you repeat over and over: pick a middle edge, bring a wing with the same colours to the spot opposite it, then do a short algorithm so the two join up. This guide draws every case separately, including the last two edges and parity, so all you have to do is match the picture and follow along.

This is step 2 of how to solve a 5x5 for beginners, and you do it right after solving the six centres. Every move sequence in this post has been tested on the EasyRubic Rubik's Cube simulator.

Which pieces make up the edges of a 5x5?

On a 3x3 cube, each edge is one piece. On a 5x5 cube, each edge is three pieces in a row. According to Wikipedia, the whole cube has 36 edge pieces of two kinds:

  • 12 middle edges, one in the very middle of each edge.
  • 24 wings (outer edge pieces), one on each side of a middle edge.

These two kinds never swap places with each other. Edge pairing means bringing each middle edge together with the two wings that have exactly its two colours, to make a three-piece edge group.

One thing worth knowing first: Wikipedia notes that a wing can't flip over in its own spot, because its inside shape doesn't allow it. This means each wing only fits on one side of its middle edge. Put it on the other side and the colours come out the wrong way round. This whole guide is about getting each wing onto the right side.

How to read the pictures and notation

  • Each picture shows two cubes: before and after the moves written under it. Only the centres and the edge groups being talked about are coloured; every other piece is grey.
  • You can see the top, front and right faces.
  • The front-right edge is the upright edge between the front and right faces. The front-left edge is the upright edge between the front and left faces. Each upright edge has a top half and a bottom half, which is where the two wings go.
  • Uw means turning the top two layers together, and Dw means the bottom two layers. 2R means turning only the second layer in from the right. The ' mark and the number 2 mean the same as in Rubik's Cube notation.

Two safety rules

The six centres are done, so from now on there are two rules to keep them safe.

  • Outer layers are free to turn. The moves R, L, U, D, F and B never break the centres and never split an edge group you have already made.
  • If you open with Uw or Dw, close it again. A Uw' on its own shifts one row of centres out of place. Every pairing algorithm in this guide opens with a two-layer turn and closes with the opposite one. Don't stop halfway.

Step 1: Set up a pairing

Each pairing needs three things in three places.

  1. A middle edge on the front-right edge. Pick a middle edge whose group isn't complete yet and hold the cube so it sits there.
  2. A matching wing on the front-left edge. Find a wing with exactly the two colours of the middle edge and bring it to the front-left edge with the moves L, U, D and B. These four moves don't touch the front-right edge.
  3. An unpaired edge in the top layer. The algorithm stores the group you just made in the top layer and pulls an edge from there down to take its place. The edge that comes down gets split apart, so it has to be one that isn't paired yet.
  1. You start with (input)
  2. After the formula

The picture above shows how to bring a wing down from the top layer. The white-orange middle edge is on the front-right edge, and the missing wing is on the top-left edge, on the half further from you. One L brings it down to the top half of the front-left edge. The rest of the moves are the pairing algorithm from step 2.

If the wing is in the top layer but not on the left, turn U first. A wing on the bottom-left edge comes up with L', and one on the back-left edge comes across with L2. If the wing is in the bottom layer, turn D to move it to the left first.

Check the colours before you pair. Look at the colour on the front of the wing and the colour on the right face of the middle edge. If those two colours are the same, the wing is the right way round. If they are different, it is the wrong way round, so see step 3.

Step 2: Three pairing algorithms

J Perm sums up this step like this: bring the matching pieces into the middle layer, use the inner slices to make them meet, store the finished group in the top layer, pull an unpaired edge down, then put the slices back so the centres stay whole (J Perm). The three algorithms below are three versions of that idea.

Wing in the top half

  1. You start with (input)
  2. After the formula

The wing is in the top half of the front-left edge and the right way round. Turn U so the top-right edge is an unpaired one, then do:

Uw' R U R' Uw

Uw' pushes the wing across so it sits right on top of the middle edge. R U R' stores the whole front-right edge in the top layer and brings the top-right edge down to take its place. Uw puts the centres back. The new group ends up on the top-left edge.

Ruwix shows exactly this sequence along with its mirror version, and warns you not to split pieces you have already paired (Ruwix). In the picture, the middle edge already has its wing in the bottom half, so after the algorithm the group has all three pieces.

Wing in the bottom half

  1. You start with (input)
  2. After the formula

The wing is in the bottom half of the front-left edge. This time the edge that gets pulled down is the top-back edge, so turn U until the top-back edge is an unpaired one, then do:

Dw R U R' Dw'

The new group ends up on the top-front edge. The two algorithms differ here because Uw' turns the top face as well, while Dw doesn't.

Both wings at once

  1. You start with (input)
  2. After the formula

If both wings are already on the front-left edge, one in the top half and one in the bottom half, and both are the right way round, you can pair them in one go. The top-right edge must be an unpaired one. Do:

Uw' Dw R U R' Uw Dw'

Uw' Dw moves the two slices holding the wings to the right, while the middle slice stays still. The three pieces line up, R U R' stores them away, and Uw Dw' puts the centres back. The group ends up on the top-left edge.

What if another piece is already in that spot?

No problem. If the half you want to pair into already has a different piece next to the middle edge, the algorithm pushes that piece out, and when you finish it goes back to its old spot on the front-right edge. You don't need to clear the spot first.

Pairing one wing gives you a group of two pieces. Bring that group back to the front-right edge with U and R', find the second wing, and pair again.

Step 3: Wing the wrong way round

The wing has the right two colours, but the colour on its front is different from the colour on the right face of the middle edge. If you pair it anyway, you get a group with its two colours mixed up.

The fix: flip the whole front-left edge with the left-hand algorithm

L' U' L F' L F L'

This algorithm flips the front-left edge in place: the piece in the top half goes to the bottom half, the piece in the bottom half goes to the top half, and their colours swap faces. It only moves the top layer edges around, splits no groups and doesn't touch the front-right edge.

  1. You start with (input)
  2. After the formula

In the picture, the wing is in the top half and the wrong way round. After the flip, it moves to the bottom half the right way round, so you pair it with Dw R U R' Dw'.

  1. You start with (input)
  2. After the formula

The other way round, the wing is in the bottom half and the wrong way round. After the flip, it moves up to the top half, and you pair it with Uw' R U R' Uw.

The flip algorithm moves the top layer edges around, so after flipping, look again and turn U so the edge that comes down is still an unpaired one.

The right-hand version of the flip algorithm is R U R' F R' F' R, which J Perm uses to flip the front-right edge. You'll need it for the last two edges.

When the top layer runs out of unpaired edges

The closer you get to the end, the more the top layer fills up with finished groups. J Perm has a neat trick: turn the whole cube upside down, because the bottom layer usually still has unpaired edges. For the very last edges, when both the top and bottom layers have run out, J Perm uses a "push the slice, flip, put the slice back" approach. The next section draws exactly that.

A handy point to remember: with three unpaired edges left, you can still use step 2, with one on the front-right, one on the front-left and one in the top layer. With two left, go to the section below.

The last two edges

Use outer layer moves to put the two unpaired edges on the front-left and front-right. Each edge already has its own middle edge, but the four wings are mixed up between the two.

There are no edges left to take a group's place, so you use the pairing algorithm with a flip slotted into the middle. It swaps two wings that sit diagonally from each other and doesn't split any group in the top layer.

Stray wings at top-left and bottom-right

  1. You start with (input)
  2. After the formula

Look at the front-left edge. Any wing there that doesn't have the two colours of the left middle edge is a stray wing. In the picture, the stray wing on the left is in the top half and the stray wing on the right is in the bottom half. Do:

Uw' R U R' F R' F' R Uw

The two stray wings swap places, and each one goes back to its own edge.

Stray wings at bottom-left and top-right

  1. You start with (input)
  2. After the formula

This is the picture above mirrored top to bottom: the stray wing on the left is in the bottom half and the stray wing on the right is in the top half. Do:

Dw R U R' F R' F' R Dw'

Two stray wings at the same height

  1. You start with (input)
  2. After the formula

Both stray wings are in the top half (as in the picture) or both are in the bottom half. The swap algorithm only swaps two wings that sit diagonally, so first flip the front-right edge with R U R' F R' F' R. The stray wing on the right moves to the other half, and you get one of the two pictures above.

A way that always works

  1. Look at the front-left edge. If it has no stray wing, go to step 4.
  2. Is the stray wing on the right diagonal from the stray wing on the left? If they are at the same height, flip the front-right edge.
  3. If the stray wing on the left is in the top half, do the algorithm with Uw. If it is in the bottom half, do the algorithm with Dw. Go back to step 1.
  4. Now each edge only has its own pieces. Any edge whose three pieces match in colour is done. If an edge has the right middle edge but its two wings show their colours the wrong way round, do the parity algorithm in the section below.

We had the simulator run through all 96 possible arrangements of the six pieces in the last two edges. The four steps above paired all 96 of them, with at most two swaps, each with at most one flip.

Edge parity: two wings the wrong way round

See it in 3D, before and after
  1. You start with (input)
  2. After the formula

The last edge group looks almost right: the middle edge is correct, and the two wings have the right two colours, but on the wrong faces. Flipping the whole edge doesn't help, because all three pieces flip together. No outer layer move can fix it either.

J Perm calls this 5x5 parity: you reach the end of edge pairing with exactly one edge not done (J Perm). Hold the cube so that edge is on the top-front, then do:

2R2 B2 U2 2L U2 2R' U2 2R U2 F2 2R F2 2L' B2 2R2

This algorithm swaps exactly the two wings of the top-front edge. Every other edge and corner stays put. It is also the algorithm in the post on how to solve a 5x5 for beginners, and it belongs to the same family as the OLL parity algorithm in 4x4 parity.

J Perm's parity algorithm

  1. You start with (input)
  2. After the formula

J Perm uses a different sequence, with two-layer turns instead of an inner slice:

Rw U2 x Rw U2 Rw U2 3Rw' U2 Lw U2 Rw' U2 Rw U2 Rw' U2 Rw'

The x in the middle means tilting the whole cube back by one quarter turn, and 3Rw' means turning the three right layers. On the simulator, this sequence also swaps the two wings of the top-front edge. It swaps the top-left edge group with the top-right edge group too, but it doesn't split any group, so that's fine for edge pairing. Pick whichever version feels smoother in your hands.

How often will you get parity?

Out of the 96 arrangements of the last two edges, 48 need the parity algorithm exactly once, 24 don't need it, and 24 need it twice because both edges are the wrong way round. So you'll run into it often, and it's worth knowing one of the two versions by heart.

Ruwix says the 5x5 has no parity because it has fixed centre pieces. The two sources don't disagree: according to Wikipedia, the parity errors of a 4x4 can't happen after an odd cube has been turned into a 3x3. The case with two wings the wrong way round happens during edge pairing, before that point.

Common mistakes when pairing 5x5 edges

  • Forgetting to check the edge that takes the group's place. You finish one group, but an old group in the top layer gets split again. With the two algorithms that open with Uw', the edge that comes down is the top-right one. With the algorithm that opens with Dw, it is the top-back one.
  • Pairing a wing that's the wrong way round. Always compare the colour on the front of the wing with the colour on the right face of the middle edge.
  • Stopping in the middle of an algorithm. The centres are shifted by one row. Finish the closing move and the centres go back into place.
  • Flipping an edge to fix parity. It won't work. Two wings the wrong way round can only be fixed with the parity algorithm.

What to do after pairing all 12 edges

From here on you only turn outer layers and solve it like a 3x3 cube; see step 3 of how to solve a 5x5 for beginners. The good news is that once the edges are paired, the 5x5 has no more parity at all.

Once you can pair edges smoothly, you can look into Freeslice edge pairing. According to the Speedsolving.com Wiki, it is the most popular way to pair edges on cubes bigger than 4x4, and nearly all top solvers use it to some degree (Speedsolving.com Wiki). If you're not used to pairing edges yet, practise on a cube with fewer pieces with the 4x4 edge pairing guide.

To see how much time edge pairing takes you, time just this step on the timer. With the EasyRubic app, you can go through the 3x3 step by step on a 3D cube before moving up to big cubes. Download EasyRubic.

Video

The Ng Xu Xian channel has a short video on the 5x5 edge parity case, the very last case of edge pairing.

https://www.youtube.com/watch?v=eyc10A3Mefs Video: "How to solve 5x5 edge parity | Tutorial #cubingshorts #cube" – Ng Xu Xian channel on YouTube.

Sources

Frequently asked questions

How many algorithms do I need for 5x5 edge pairing?

Four is enough: Uw' R U R' Uw to pair, R U R' F R' F' R to flip an edge, Uw' R U R' F R' F' R Uw for the last two edges, and one parity algorithm. The other algorithms in this post are mirror versions or Dw versions of the first three.

Why does another edge get split when I pair one?

Because the edge that came down to take its place was already a finished group. Turn U to bring an unpaired edge into that spot before you do the algorithm.

How is 5x5 edge pairing different from 4x4 edge pairing?

The 5x5 has middle edges, so each group has three pieces and each wing only fits on one side of its middle edge. The idea is the same: push an inner layer so the pieces meet, store the group away, then put the layer back.

What is 5x5 parity?

It's when the last edge has the right middle edge, but its two wings have swapped places with each other, so the colours are the wrong way round. You didn't pair anything wrong; you just need to do the parity algorithm once.

Does the 5x5 have OLL parity and PLL parity like the 4x4?

No. Once the centres and edges are done, the 5x5 behaves just like a normal 3x3.

Cover photo: Mike Gonzalez (TheCoffee) / Wikimedia Commons, CC BY-SA 3.0

EasyRubic Editorial

Friendly notes for anyone who wants to solve their first Rubik’s Cube.

Ready for your first turn?

Go from reading notation to each step of a solved cube.

Start with step 0

Learn the 3x3 step by step · 3x3 online timer