No history yet

X-Wing

Spotting the X-Wing

When you've filled in all the obvious numbers in a Sudoku puzzle, you need more advanced tools. The X-Wing is a powerful technique for eliminating candidates when you feel stuck. It works by finding a specific rectangular pattern for a single candidate number across two rows or two columns.

The pattern looks like this: find a candidate that appears in only two cells in a particular row. Then, find a second row where that same candidate also appears in only two cells. If the cells in these two rows line up to form a rectangle, you've found an X-Wing.

Look at the diagram above. The candidate 7 is trapped. In row B, the 7 must go in either column 3 or column 8. The same is true for row G.

Because of this, we know for certain that the 7s for columns 3 and 8 must be placed in rows B and G. They will either be in cells B3 and G8, or in cells B8 and G3. No matter which way it goes, the requirement for a 7 in columns 3 and 8 is satisfied by these two rows alone. Therefore, no other cell in columns 3 and 8 can possibly be a 7.

Applying the Technique

Once you've spotted the pattern, the next step is simple. You can confidently eliminate that candidate from every other cell in the two columns that form the X-Wing. This often reveals a hidden single or opens up other possibilities in the puzzle.

Here’s the step-by-step process:

  1. Pick a Candidate: Focus on one number from 1 to 9. Scan the grid for it.
  2. Find Two Rows: Search for a row where your chosen candidate appears only twice. Once you find one, look for another row that has the same candidate in just two cells.
  3. Check for Alignment: Do the candidates in these two rows line up in the same two columns? If yes, you have an X-Wing.
  4. Eliminate: Remove the candidate from all other cells in those two columns.

Remember, the same logic applies to columns. If you find a candidate that appears twice in two different columns, and those appearances line up in the same two rows, you can eliminate that candidate from the other cells in those rows.

Common Pitfalls

The most common mistake is misidentifying the pattern. An X-Wing only works if the candidate appears exactly twice in the two chosen rows (or columns). If it appears three or more times in one of the rows, the logic breaks down and you cannot make any eliminations.

Another trap is focusing too hard on finding one. Don't hunt for an X-Wing on a grid where simpler techniques will still work. It's a tool for tough puzzles, not a starting point. If you've filled in all the singles and pairs you can find, that's the perfect time to start looking for more complex patterns.

Advanced Sudoku solving isn’t about luck or guessing; it’s about recognizing deep patterns, visualizing possibilities, and staying calm when the grid looks hopelessly frozen.

Ready to test your pattern-spotting skills?

Quiz Questions 1/5

What is the defining characteristic of an X-Wing pattern in Sudoku?

Quiz Questions 2/5

You have identified an X-Wing for the candidate '4' in rows C and H, which align perfectly in columns 1 and 7. What is the logical next step?

Mastering the X-Wing will dramatically improve your ability to solve difficult puzzles. It trains your eye to see beyond individual cells and recognize the larger logical structures hidden in the grid.