Advanced

X-Wing

A core Sudoku solving technique for advanced players

What is the X-Wing technique?

The X-Wing is a powerful advanced technique. It applies when a single digit appears as a candidate in exactly two cells in each of two different rows, and those four cells occupy the same two columns. The four cells form a rectangle - The "X-Wing" shape.

Because the digit must go in one pair of diagonal corners or the other, it will always occupy both of those columns. Therefore, the digit can be safely eliminated from all other cells in those two columns.

Step-by-step guide (row-based X-Wing)

  1. Choose a digit (e.g., 5) and fill in all candidate notes.
  2. For each row, note the columns where 5 is a candidate. Keep only rows where 5 appears in exactly two cells.
  3. Look for two such rows where the candidate cells are in the same two columns.
  4. You have found an X-Wing. The four cells form a rectangle.
  5. Eliminate 5 from every other cell in those two columns (outside the X-Wing rows).
  6. Check for new Obvious Singles or Hidden Singles created by the elimination.

Column-based variant

X-Wings can also be found by scanning columns instead of rows. Find two columns where the digit appears in exactly two cells, and those cells are in the same two rows. Then eliminate the digit from all other cells in those two rows.

Whether you scan rows or columns first, you will find all X-Wings if you check both orientations.

X-Wing vs Swordfish

X-WingSwordfish
Rows involved23
Columns involved23
Cells in pattern4 (rectangle)6–9 (irregular)
DifficultyExpertMaster / Extreme
EliminationsFrom 2 columns (or rows)From 3 columns (or rows)
Common mistake: Applying X-Wing to a row where the digit appears in three or more cells - That row cannot be part of an X-Wing. The constraint is strictly two cells per row (or column). Three cells per row would require Swordfish.