XY-Wing (Y-Wing) in Sudoku
An XY-Wing, also called a Y-Wing, uses a pivot and two wings with two candidates each. Either value in the pivot forces the shared digit into one wing, so you can erase that digit from cells that see both wings.
Worked example
| 57 | 7 | 59 | 68 | 68 | 1 | 4 | 3 | 2 |
| 2 | 3 | 4 | 7 | 5 | 9 | 8 | 1 | 6 |
| 6 | 1 | 8 | 2 | 4 | 3 | 57 | 7 | 79 |
| 7 | 57 | 35 | 38 | 9 | 6 | 1 | 2 | 4 |
| 38 | 69 | 69 | 4 | 1 | 2 | 37 | 78 | 5 |
| 4 | 2 | 1 | 5 | 38 | 7 | 9 | 6 | 38 |
| 9 | 8 | 7 | 1 | 36 | 4 | 2 | 5 | 37 |
| 35 | 56 | 2 | 9 | 7 | 8 | 4 | 1 | |
| 1 | 4 | 7 | 36 | 2 | 5 | 67 | 89 | 89 |
R2C5 means row 2, column 5. The diagrams show the pencil marks for this move after earlier deductions.
- The pivot R6C9 has 3 or 8. It sees R7C9, which has 3 or 7, and R5C8, which has 8 or 7.
- If R6C9 is 3, R7C9 must be 7. If R6C9 is 8, R5C8 must be 7.
- R7C8 sees both wings. Erase 7 there.
Find the next move
| 49 | 3 | 46 | 67 | 8 | 5 | 2 | 1 | |
| 14 | 5 | 2 | 14 | 3 | 9 | 8 | 7 | 6 |
| 6 | 18 | 78 | 12 | 27 | 5 | 9 | 3 | 4 |
| 8 | 3 | 4 | 56 | 56 | 7 | 2 | 1 | 9 |
| 19 | 2 | 19 | 8 | 4 | 3 | 7 | 6 | 5 |
| 5 | 7 | 6 | 9 | 1 | 2 | 3 | 4 | 8 |
| 3 | 19 | 19 | 7 | 8 | 4 | 6 | 5 | 2 |
| 47 | 48 | 78 | 25 | 25 | 6 | 1 | 9 | 3 |
| 2 | 6 | 5 | 3 | 9 | 1 | 4 | 8 | 7 |
Find a two-candidate pivot that sees two other two-candidate cells. The wings share 1. Which cell can drop that mark?
Check your answer
- The pivot R1C2 has 4 or 9. It sees R2C1, which has 4 or 1, and R7C2, which has 9 or 1.
- If R1C2 is 4, R2C1 must be 1. If R1C2 is 9, R7C2 must be 1.
- R3C2 sees both wings. Erase 1 there.
Two squares see each other when they share a row, column, or box. If the pivot has three candidates, try the XYZ-Wing technique. For a pattern using just one digit, try X-Wing.