XY-Wing (Y-Wing)
A pivot cell and two pincers that trap a digit.
An XY-Wing (also called a Y-Wing) uses three cells that each have exactly two candidates. The pivot has {X,Y}. One pincer sees the pivot and has {X,Z}; the other pincer also sees the pivot and has {Y,Z}.
Whatever the pivot turns out to be, one of the pincers is forced to be Z. So any cell that sees both pincers can’t be Z.
Pivot {X,Y}, pincers {X,Z} and {Y,Z} (each seeing the pivot): remove Z from every cell that sees both pincers.
How to spot it
- Find a cell with two candidates — this is the pivot candidate, say {2,7}.
- Among the cells it sees, look for one with {2,Z} and another with {7,Z}, sharing the same third digit Z.
- Find cells that see both pincers and remove Z from them.
Why it works
If the pivot is X, the {X,Z} pincer loses X and becomes Z. If the pivot is Y, the {Y,Z} pincer loses Y and becomes Z. One of the pincers is Z in every case, so a cell that sees both of them can never be Z.
Example from a real puzzle
This position comes from one of Sudoku Desk’s Very Hard daily puzzles, at the moment the XY-Wing (Y-Wing) is the next logical step. Small grey digits are the remaining candidates.
- Pattern
- Other candidate
- Key candidates
- Removed / concluded
- 5Given
- 5Solved so far
- The pivot R3C1 is {2,7}. One pincer R3C9 is {2,3}; the other R8C1 is {7,3}.
- If the pivot is 2, then R3C9 can’t be 2, so it’s 3. If the pivot is 7, then R8C1 can’t be 7, so it’s 3.
- Either way, one of the two pincers is 3.
- Any cell that sees both pincers therefore can’t be 3: R8C9.
Open this position in Sudoku DeskCandidates are filled in. Find the XY-Wing (Y-Wing) yourself, or press 💡 for a step-by-step hint.
Practise it
Your turn. Each puzzle below has a XY-Wing (Y-Wing) waiting to be found. Tap the cell, pick the candidate it removes, and you’ll see straight away if you’re right. Stuck? Take a hint.
Tips
- The pincers must not see each other directly through Z (if they did, it would be a contradiction and the puzzle would be broken).
- When the pivot has a third candidate Z as well, look at the XYZ-Wing.