An XY-Wing is a sudoku pattern that lets you eliminate a candidate from a cell you cannot directly see. It works by linking three cells that contain only two candidates each, and it is one of the most useful advanced techniques to learn. Here is a concrete example: cells A (1,2), B (2,3), and C (1,3) form an XY-Wing, and any cell that sees both B and C cannot contain 3.
What Exactly Is an XY-Wing in Sudoku?
An XY-Wing uses three cells, each with exactly two candidates. One cell, called the pivot, contains two candidates, say X and Y. The other two cells, called pincers, each share one candidate with the pivot: one pincer has X and Z, the other has Y and Z. The shared candidate Z is the one you can eliminate.
The logic works because the pivot must be either X or Y. If the pivot is X, then the pincer with X and Z cannot be X, so it must be Z. If the pivot is Y, then the other pincer must be Z. Either way, one of the two pincers is Z. Therefore, any cell that can see both pincers (that is, it is in the same row, column, or box as both) cannot be Z.
Why It Is Called an XY-Wing
The name comes from the three candidate pairs: XY, XZ, and YZ. The pivot is XY, and the pincers are XZ and YZ. The letter Z is the candidate you eliminate.
How Do You Spot an XY-Wing in a Puzzle?
Look for a cell with exactly two candidates—that is your potential pivot. Then check its row, column, and box for other two-candidate cells that share one of the pivot’s candidates. You need two such cells: one sharing the first candidate, one sharing the second, and both sharing a third candidate that is not in the pivot.
- Find a cell with two candidates (call them A and B).
- Look in its row, column, and 3×3 box for another two-candidate cell that contains A and a new candidate C.
- Look again for a third two-candidate cell that contains B and the same new candidate C.
- Now check if any cell sees both of those two pincer cells. If yes, you can remove C from that cell.
Work slowly. It is easy to miss because the pincers may be far apart, but they must both share a row, column, or box with the pivot.
What Is the Difference Between an XY-Wing and an XYZ-Wing?
An XYZ-Wing uses a pivot with three candidates (X, Y, Z) and two pincers, each with two candidates (XZ and YZ). The elimination rule is different: in an XYZ-Wing, you can remove Z from any cell that sees all three cells—the pivot and both pincers. In an XY-Wing, you only remove Z from cells that see both pincers, not the pivot.
So the key difference is the pivot’s candidate count. XY-Wing: pivot has 2 candidates, remove from cells seeing both pincers. XYZ-Wing: pivot has 3 candidates, remove from cells seeing all three cells.
Signs That an XY-Wing Is the Right Technique
- You are stuck with many cells reduced to two candidates.
- You find a two-candidate cell that links to two other two-candidate cells.
- The candidate you want to eliminate appears in a cell that sees both pincers.
- You have already used basic techniques like naked pairs and hidden pairs.
A common misconception is that the pivot must be in the same box as the pincers. It does not. The pincers only need to share a row, column, or box with the pivot individually. They do not need to see each other.
How Do You Practice Finding XY-Wings?
Start with a puzzle that has many two-candidate cells. Pencil in all candidates first. Then pick one two-candidate cell and check its three units (row, column, box) for two-candidate partners. Write down every possible pair. If you find a matching pattern, test the elimination. If it does not work, the pattern may be an XYZ-Wing instead, or you may have missed a candidate.
Try solving a puzzle with a pencil and paper, marking each two-candidate cell with a small dot. Then scan systematically: for each dot, list its two candidates, then look for dots that share one candidate. This reduces the mental load.
If you want a quick check, count how many two-candidate cells you have. Fewer than six usually means an XY-Wing is unlikely. More than ten means it is worth a careful scan.
What to Do When You Find One
Once you identify the pivot and two pincers, look at every cell that sees both pincers. Remove the shared candidate Z from those cells. Then re-scan the puzzle, because new naked pairs or singles may appear. Often one elimination unlocks the rest of the puzzle.
What If You Cannot Find an XY-Wing?
It may not exist in that puzzle. Not every puzzle requires an XY-Wing. If you have scanned all two-candidate cells and found no pattern, move on to other advanced techniques like the swordfish or the simple coloring. Or step away for a few minutes; a fresh look often reveals what you missed.
Also, double-check your pencil marks. A single missing candidate can hide an XY-Wing. Re-check each row, column, and box for all remaining candidates before giving up.
Remember that an XY-Wing is a tool, not a requirement. Use it when it appears, and you will solve harder puzzles with confidence.
General information for everyday wellbeing, not medical advice. If something affects your health, sleep or mood for more than a short while, talk to a qualified professional. Read more
Spotted an error? Tell us and we will correct it (corrections policy).