X-Wing Sudoku Technique
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.
What the pattern is
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 |
When to look for it
- When singles, pairs and box interactions have all run dry and the grid still has plenty of blanks.
- When a digit is already scarce: three or four placements of it usually leave the rest tightly confined.
- Always scan one digit at a time. Trying to see an X-Wing while looking at full pencil marks is much harder than sweeping digit by digit.
How to apply it, step by step
- Choose a digit that is missing from four or more rows.
- For each row, mark the columns where that digit is still possible. Keep only the rows with exactly two.
- Compare those rows in pairs. You want two rows whose column pairs are identical.
- If you find a match, you have an X-Wing on the four intersections.
- Delete the digit from every other cell in those two columns.
- Repeat the whole sweep with rows and columns swapped, then move to the next digit.
A worked example
The demo shows the digit 8. Row E can hold an 8 only in E4 and E9. Row H can hold an 8 only in H4 and H9. Both rows use the same two columns, 4 and 9, so E4, E9, H4 and H9 form an X-Wing.
Follow the two cases. If E4 is the 8, then E9 is not, and H4 cannot be 8 either because it shares column 4 with E4. Row H then puts its 8 in H9. If instead E9 is the 8, row H puts its 8 in H4. Either way one 8 sits in column 4 and one in column 9, both inside the rectangle.
So columns 4 and 9 are finished with the digit 8. Erase it from F4, G4 and F9.
Common mistakes
- Accepting three positions. A row with three possible cells for the digit is not part of a plain X-Wing. That shape belongs to the finned patterns instead.
- Mismatched columns. Both rows must use the same two columns. Overlapping in only one column proves nothing.
- Eliminating in the wrong direction. Row-based X-Wings clear columns, not rows. The corners themselves are never eliminated.
- Stopping at one digit. X-Wings are common for scarce digits, so finish the sweep for all nine before you conclude the grid is stuck.
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.
Where you meet it
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.