If you keep hitting a wall on hard Sudoku, the kind where the singles and pairs run out and the grid refuses to move, there’s a good chance the missing piece is the X-Wing. It’s the first truly “advanced” technique most solvers meet. It looks intimidating, but the logic behind it takes about a minute to understand, and it’s the doorway to a whole family of patterns.

The Setup

An X-Wing involves one digit in two rows (or two columns). Three things must all be true:

  1. Pick a digit, say 7.
  2. Find two rows where 7 can go in exactly two squares each.
  3. Those two squares must sit in the same two columns in both rows.
Example: in row 2, the 7 can only go in column 4 or column 8. In row 7, the 7 can also only go in column 4 or column 8. That’s an X-Wing on 7, in rows 2 and 7, columns 4 and 8.

Why It Works

Row 2’s 7 must land in column 4 or column 8. So must row 7’s. Because no column can hold two 7s, the two rows can’t pick the same column. Either row 2 takes column 4 and row 7 takes column 8, or the other way round.

Either way, columns 4 and 8 each get their 7 from one of those two rows. So no other square in column 4 or column 8 can be a 7, and you can erase every other 7 candidate in those two columns. You don’t need to know which way round it goes; both possibilities give the same elimination.

The name comes from the shape: the four squares make a rectangle, and the two possible answers are its two diagonals, which form an X.

Rows or Columns

Everything works the same with rows and columns swapped. If a digit can go in exactly two squares in each of two columns, and those squares share the same two rows, you can erase that digit from the rest of those two rows. Always check both directions.

Advertisement

A Real X-Wing in Our Hardest Sudoku

Hard Sudoku #3, our toughest grid, genuinely needs one. We ran it through a step-by-step solver that only uses human techniques. Scanning fills 53 squares; then it needs an XY-Wing, and after a few more singles it stops again at 63 squares. That second stall is where the X-Wing comes in. Without it (or the Swordfish we’ll mention below), the grid can’t move.

Hint, not a spoiler: At the second stall in Hard Sudoku #3 (63 squares filled), with full pencil marks, look at where the 6 can go in rows 5 and 7. Each row has exactly two spots, and they line up in the same two columns. Then sweep those two columns for other 6s. Three of them can come out.

Interestingly, there’s a Swordfish on the same digit at the same moment, running through three columns, and it removes exactly the same three candidates. Two different patterns, one result. That’s not a coincidence: they’re two views of the same constraint on the 6s.

Hard #3 is the only one of our grids that needs an X-Wing, but it isn’t the only one that has one. When the singles run out in Hard #1, there’s an X-Wing on the 5s, and in Hard #4 there’s one on the 1s. Pair techniques will get you past those stalls too, so treat them as practice runs: find the X-Wing there first, then tackle the one Hard #3 actually requires.

How to Hunt for One

You need full pencil marks first. Then, for each digit from 1 to 9:

  1. Go row by row and note any row where that digit has exactly two candidates. Write down the two column numbers.
  2. Look for two rows with the same pair of column numbers. That’s your X-Wing.
  3. Repeat with columns, noting the row numbers.

It sounds slow, but most digits drop out quickly because they have three or more candidates in most rows. With practice, you’ll check a digit in seconds.

Not Quite an X-Wing?

Sometimes you’ll find a near-miss: one row has the two squares plus one extra. That’s not an X-Wing, and making the full elimination would be a mistake. But it may be a Finned X-Wing, which still allows a smaller elimination. All four of our Hard grids contain one.

What Comes Next

Once the X-Wing clicks, the next steps open up. The Swordfish is the three-row version. The XY-Wing uses three two-candidate squares instead of one digit. All of them share the same core idea: a tight pattern that forces an elimination no matter how it turns out. Hard #3 is the place to practise, because it needs exactly this kind of thinking.