← All Sudoku guides

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

5775968681432
234759816
61824357779
757353896124
38696941237785
42153879638
987136425737
3556297841
1473625678989
Crossed-out pencil marks show which candidates to erase.

R2C5 means row 2, column 5. The diagrams show the pencil marks for this move after earlier deductions.

  1. The pivot R6C9 has 3 or 8. It sees R7C9, which has 3 or 7, and R5C8, which has 8 or 7.
  2. If R6C9 is 3, R7C9 must be 7. If R6C9 is 8, R5C8 must be 7.
  3. R7C8 sees both wings. Erase 7 there.
Replay this move in the solver →

Find the next move

49346678521
14521439876
6187812275934
83456567219
19219843765
576912348
31919784652
47487825256193
265391487
Use the visible pencil marks to find the pattern.

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
  1. The pivot R1C2 has 4 or 9. It sees R2C1, which has 4 or 1, and R7C2, which has 9 or 1.
  2. If R1C2 is 4, R2C1 must be 1. If R1C2 is 9, R7C2 must be 1.
  3. R3C2 sees both wings. Erase 1 there.
Replay the practice move in the solver →

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.