An XYZ-Wing is three cells: a pivot with exactly three candidates X, Y and Z, and two pincers the pivot can see, one holding X and Z, the other Y and Z. One of the three cells must be Z, so any cell that sees all three can lose Z.
To spot one, look for a cell with three candidates, then check the cells it sees for two-candidate cells whose digits both come from the pivot and share one digit. The eliminations are rare because a cell has to see all three, which in practice means it sits in the pivot's box and in a line through the pivot.
- Z = 9 in the three wing cells
- 9 removed
How the XYZ-Wing works
In the example, from a real puzzle in our library, the pivot is R2C2 with candidates 7, 8 and 9. It sees two cells with two candidates each:
- R3C1 holds 8 and 9. It shares box 1 with the pivot.
- R5C2 holds 7 and 9. It shares column 2 with the pivot.
The shared digit, Z, is 9. Now check what the pivot can be:
- If R2C2 is 7, then R5C2 cannot be 7, so R5C2 is 9.
- If R2C2 is 8, then R3C1 cannot be 8, so R3C1 is 9.
- If R2C2 is 9, the pivot itself is the 9.
In every case one of the three cells is a 9. A cell that sees all three would clash with that 9. The only such cell with a 9 candidate is R3C2: it is in box 1 with the pivot and R3C1, and in column 2 with the pivot and R5C2. R3C2 goes from 2, 7, 8, 9 down to 2, 7, 8.
How to spot an XYZ-Wing
- Start with three-candidate cells. Each one is a possible pivot. On a stuck hard puzzle there are usually only a handful.
- Look for bivalue cells the pivot sees. You want one cell holding two of the pivot's digits and another holding a different two, with one digit in common.
- Check that Z is shared. The digit both pincers have is Z. The pivot must have it too, which it always will if both pincers use only pivot digits.
- Find cells that see all three. One pincer almost always sits in the pivot's box and the other in the pivot's row or column. The targets are the cells of that box on that line, at most two of them besides the pivot.
XYZ-Wing vs XY-Wing
The XY-Wing uses a pivot with two candidates, X and Y. The pivot cannot be Z, so the 9 in the example would have to be in one of the two pincers, and any cell seeing both pincers loses Z. That usually gives more targets.
The XYZ-Wing adds Z to the pivot. Now the pivot might be the Z itself, so a target has to see the pivot as well. That extra condition is what shrinks the eliminations to one or two cells. If you already look for XY-Wings, you are checking the right cells: when a would-be pivot has a third candidate that matches the pincers' shared digit, you have an XYZ-Wing.
Both are small cases of the ALS-XZ rule. In the XYZ-Wing, the pivot and one pincer together form an almost locked set: two cells with three candidates. Longer versions of the same idea are XY-Chains and the W-Wing.
For the order to learn these in, see our list of sudoku techniques in learning order or the overview of advanced sudoku strategies.
Drill the wing shape in the Dojo
Sudoku Royale's Dojo has no XYZ-Wing drill, but the XY-Wing drill trains the same search: a pivot and two bivalue pincers, board after board. Open the XY-Wing drill on your iPhone.
Get Sudoku Royale: Free on iOSFrequently Asked Questions
What is an XYZ-Wing in sudoku?
An XYZ-Wing is a pivot cell with three candidates X, Y and Z, plus two cells it sees with candidates X and Z and Y and Z. One of the three cells must be Z, so Z can be removed from any cell that sees all three.
How is an XYZ-Wing different from an XY-Wing?
In an XY-Wing the pivot has two candidates and cannot be Z, so targets only need to see the two pincers. In an XYZ-Wing the pivot also has Z, so targets must see the pivot too. That leaves fewer eliminations, usually one or two cells in the pivot's box.
Where do XYZ-Wing eliminations happen?
In cells that see the pivot and both pincers. Typically one pincer shares the pivot's box and the other shares its row or column, so the targets are the other cells of that box on that line.
Do the pincers of an XYZ-Wing have to see each other?
No. Each pincer must see the pivot. The pincers themselves can be anywhere, as long as some cell with Z sees all three cells.