SudokuHint

X-Wing Sudoku Practice: How to Spot It in 5 Steps

The X-Wing is an advanced Sudoku solving technique that uses four strategically placed cells to eliminate candidate digits from other parts of the puzzle. It is a classic example of a 'fish' pattern and is a crucial logical step for moving beyond basic methods like [Naked Pairs](/techniques/naked-pairs) and [Hidden Pairs](/techniques/hidden-pairs). Mastering it is a key milestone for any aspiring solver, as it systematically breaks open puzzles that rely on pure logic. This guide will show you a foolproof five-step process to find and apply the X-Wing every time.

By SudokuHint TeamLast updated

Step 1: Fill in All Pencil Marks (Candidates)

Before you can spot an X-Wing, you need a complete candidate grid. This means filling every empty cell with all possible numbers (1-9) that could logically go there, based on the standard Sudoku rules. The X-Wing pattern is invisible without these pencil marks. While filling candidates can be tedious, it is a non-negotiable prerequisite for spotting this and other advanced patterns like Y-Wing.

Step 2: Lock Onto a Single Candidate Digit

An X-Wing pattern always involves one specific digit. Don't try to scan for the whole pattern at once. Instead, pick one number at a time and scan the entire board for its candidate positions. Focus on a digit that frequently appears as a candidate across the grid. This narrow focus makes the search manageable.

Key insight: Pro Tip: Start with digits that have the fewest remaining placements in the puzzle, as they are more likely to form clean patterns.

Step 3: Find Two Rows with Exactly Two Candidates Each

Now, scan the rows for your chosen digit. You are looking for two different rows where the digit appears as a candidate in exactly two cells, and nowhere else in those rows. In the example below, for digit 5, we see it only in cells R1C2, R1C8, R7C2, and R7C8.

  • Ignore rows where the digit appears in three or more cells, or where it is already placed as a final number.

Step 4: Check for Perfect Column Alignment

This is the critical verification step. Look at the column positions of the two candidate cells in each row you found. For a valid X-Wing, these two cells in the first row must occupy the same two columns as the two cells in the second row. This forms the four 'corners' of a rectangle or 'X' shape. In our example, the candidates are in columns 2 and 8 in both row 1 and row 7.

Step 5: Eliminate Candidates from Affected Columns

Once confirmed, the logic of the X-Wing activates. Because the digit must appear once in each of the two rows, it can only be placed in the four corner cells. This means the digit cannot appear anywhere else in those two columns. You can safely erase your candidate digit from all other cells in columns 2 and 8 (outside of the four corner cells). This elimination often directly reveals new placements or simplifies other techniques like Pointing Pairs or Box-Line Reduction.

Follow-Along Mini-Example

Imagine a small grid section. For digit '7', you find it only in R2C4 and R2C6 in Row 2, and only in R5C4 and R5C6 in Row 5. The columns (4 and 6) align perfectly. This is an X-Wing. You can now remove candidate '7' from all other cells in columns 4 and 6. For instance, if there was a '7' penciled in R8C4, you can erase it. This is the core elimination that makes the X-Wing so powerful.

Practice Strategy: From Recognition to Intuition

The goal is to move from a slow, methodical search to intuitive pattern recognition. Start by practicing on puzzles rated 'hard' or 'expert', where X-Wings are common. Use our hint engine to confirm your finds. Deliberately look for the pattern even when you don't need it, to train your eye. Over time, the rectangular alignment of two candidates in two rows or columns will start to visually 'pop' out at you, making you a much faster and more confident solver.

Key Facts

  • The X-Wing is a Sudoku solving technique that uses four cells forming a rectangle to eliminate candidate numbers.
  • It is categorized as a basic 'Fish' pattern, specifically a size-2 fish.
  • An X-Wing pattern can be found looking at either two rows and two columns, or two columns and two rows.
  • The core logic states that if a digit must go in one of two cells in two separate rows, and those cells line up in the same two columns, the digit is locked to those columns.
  • You can only perform eliminations in the columns (if you found the pattern in rows) or rows (if you found it in columns) that form the rectangle.
  • A complete candidate grid (pencil marks) is absolutely required to spot an X-Wing.
  • The X-Wing is often the first advanced technique solvers learn after mastering pairs and triples.
  • Successfully applying an X-Wing frequently creates a cascade of simpler moves, breaking the puzzle open.

Frequently Asked Questions

Can an X-Wing work with columns and rows swapped?

Yes. The pattern is symmetrical. You can find two columns each with two candidates of a digit that align in the same two rows. The eliminations then happen in those rows.

What's the difference between an X-Wing and a [Naked Pair](/techniques/naked-pairs)?

A Naked Pair acts within a single house (row, column, or box). An X-Wing connects two rows to two columns, performing eliminations across multiple houses, making it a more powerful, board-wide strategy.

I found the rectangle, but no eliminations are possible. Why?

This means the candidates you would eliminate don't exist. The pattern is still logically valid, but it doesn't provide a useful move in that particular puzzle. Not every X-Wing leads to an immediate elimination.

How often do I need to use the X-Wing?

In medium puzzles, rarely. In hard and expert puzzles, it is a common and often essential technique. Practicing it is key to advancing your Sudoku skill level.