Skip to content

X-Wing Sudoku Technique

ToughClassic + KillerStep 9 of 384 min read

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-WingColumn-based X-Wing
Where the digit is confinedtwo cells in each of two rowstwo cells in each of two columns
Columns and rows must matchsame two columnssame two rows
What you erasethe digit from those two columnsthe 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

  1. Choose a digit that is missing from four or more rows.
  2. For each row, mark the columns where that digit is still possible. Keep only the rows with exactly two.
  3. Compare those rows in pairs. You want two rows whose column pairs are identical.
  4. If you find a match, you have an X-Wing on the four intersections.
  5. Delete the digit from every other cell in those two columns.
  6. 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.

  1. Easier techniques are used up. Look at the 8s in rows E and H.

  2. Row E can hold its 8 only in E4 or E9.

    Row H can hold its 8 only in H4 or H9: the same two columns, 4 and 9.

  3. Case 1: if E4 is 8, then E9 is not, and H4 cannot be 8 either (column 4). Row H must take its 8 in H9.

  4. Case 2: if E9 is 8, then E4 is not, and H9 cannot be 8 (column 9). Row H must take its 8 in H4.

  5. Either way, one 8 lands in column 4 and one in column 9, both inside rows E and H.

    So no other cell of column 4 or column 9 can be 8: F4, G4 and F9 lose it.

  6. 8 removed from F4, G4 and F9 because columns 4 and 9 get their 8s from rows E and H.

Easier techniques are used up. Look at the 8s in rows E and H.

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.

Ready to play?

Play Sudoku!