How to Use the XY-Wing (Y-Wing) Technique in Sudoku
What is a XY-Wing (Y-Wing)?
An XY-Wing utilizes three bivalue cells (cells with exactly two candidates). The "pivot" cell has candidates {A, B}. One "wing" cell sees the pivot and has candidates {A, C}. A second "wing" cell sees the pivot and has candidates {B, C}. If the pivot is A, wing 1 is forced to be C. If the pivot is B, wing 2 is forced to be C. Thus, one of the two wings MUST be C. Any cell that shares a house with BOTH wings can never be C.
When Should You Look for This Technique?
Look for XY-Wings when you have numerous bivalue cells across the board. Pick a cell with two candidates (like 3/8) and check whether its row, column, and box connect to cells sharing one candidate with it.
Worked Solver Example with Visual Board Diagram
If pivot (2,4) is 1, wing (2,8) must be 9. If pivot (2,4) is 2, wing (7,4) must be 9. Therefore, either (2,8) or (7,4) is 9. Cell (7,8) shares row 7 with wing 2 and column 8 with wing 1. It sees both wings, so it can never be 9.
Candidate 9 is eliminated from cell (7,8).
Common Beginner Mistakes & Misapplications
If pivot is AB, one wing must share A and the other must share B. They must also share the EXACT same third candidate C with each other.
Candidate C can only be eliminated from cells that share a house with BOTH wing cells simultaneously.
All three cells in an XY-Wing must be strictly bivalue (exactly 2 candidates each).
Verified Practice Board
XY-Wing with pivot (2,4) and wings (2,8) and (7,4) eliminates candidate 9 from cell (7,8).
Mathematical Sources & Literature
- 1. Crook Algorithm and Bivalue WingsReferenceCrook, J. F. (2009). Notices of the AMS.
- 2. Chains and Wings in Exact Cover SystemsReferenceFelgenhauer, B. (2005). Mathematics of Sudoku.
- 3. Atelier Game Engine Uniqueness BenchmarksReferenceAtelier Logic Research Group (2026). Solver Engine Specifications.