The X-Wing Sudoku technique is the first pattern that works on a single digit spread across four cells, and it is the gateway to every fish pattern above it. It ignores what else is in those cells entirely: only the positions of one candidate matter.
Take one digit. Find two rows in which that digit fits in exactly two cells each, and where both rows use the same pair of columns. The four cells form a rectangle — the corners of the X-Wing.
Whichever way the digit falls, it takes one corner in the top row and one in the bottom row, and those two corners are always in different columns. So both columns end up holding the digit inside the rectangle. Every other cell in those two columns loses the digit.
The pattern is symmetric. Swap the words row and column and it still works: two columns where the digit fits in exactly two cells each, sharing the same two rows, clear the digit from the rest of those rows.
| Row-based X-Wing | Column-based X-Wing | |
|---|---|---|
| Where the digit is confined | two cells in each of two rows | two cells in each of two columns |
| Columns and rows must match | same two columns | same two rows |
| What you erase | the digit from those two columns | the digit from those two rows |
Positions where digit 5 is still possible, row by row. A dot means the cell is solved or cannot take a 5:
c1 c2 c3 c4 c5 c6 c7 c8 c9
r2: . . 5 . . . . 5 .
r4: 5 . 5 . . 5 . . .
r7: . . 5 . . . . 5 .
r9: . . 5 . . . . 5 5
Rows 2 and 7 each hold the 5 in exactly two cells, and both use columns 3 and 8. That is an X-Wing on r2c3, r2c8, r7c3, r7c8.
If r2c3 is the 5, then r7c3 is not, so row 7 puts its 5 at r7c8. If instead r2c8 is the 5, row 7 puts its 5 at r7c3. Either way one 5 sits in column 3 and one in column 8, both inside the rectangle.
So column 3 and column 8 are finished with the digit 5. Erase it from r4c3, from r9c3 and from r9c8. Row 4 is now down to r4c1 and r4c6, and row 9 is down to r9c9 — a placement.
The same logic extended to three rows and three columns is a Swordfish, and to four of each is a Jellyfish. Learning the X-Wing properly makes both of them free.
The X-Wing is the first of the tough techniques and the usual reason a Hard puzzle refuses to fall to basics alone. Expect to need it on hard classic Sudoku, often more than once in the same grid.