Introduction
The X-Wing technique is one of the best-known advanced Sudoku techniques. It may seem complicated at first, but its principle is very logical: if a candidate can appear only in the same two columns of two rows, or only in the same two rows of two columns, a rectangular pattern is created that allows candidates to be eliminated.
Unlike simpler techniques such as Naked Single or Hidden Single, X-Wing usually does not place a number immediately. Instead, it is used to clean up the grid by eliminating impossible candidates. Those eliminations can then create new certain moves.
This technique becomes useful especially in hard Sudoku, when basic and intermediate techniques are no longer enough.
In this guide, we will see what an X-Wing is, how to recognize it on rows and columns, and how to apply it correctly without removing valid candidates.
What an X-Wing is
An X-Wing is a configuration where a specific candidate is limited to only two positions in two rows, on the same two columns, or to only two positions in two columns, on the same two rows. The four positions form the corners of a rectangle.
For example, imagine that number 7 can appear in a certain row only in two cells. Then you find another row where 7 can appear exactly in the same two columns. In this case, 7 must occupy two opposite corners of the rectangle formed by those rows and columns.
You do not yet know which of the two configurations will be correct, but you know one important thing: in the two involved columns, 7 cannot appear in other cells outside the rectangle.
This is the power of X-Wing: it does not place the numbers immediately, but it allows safe eliminations.
Why it is called that
The name X-Wing comes from the shape of the pattern. The four involved cells form the corners of a rectangle and, if you imagine the diagonals between the possible positions, you get a shape similar to an X.
The name may sound unusual, but it is not important to memorize the image too literally. What matters is recognizing the logical rectangle. The “X” is only a way to remember the two possible diagonals on which the candidate can be placed.
An X-Wing does not depend on the cells being close together. The involved rows and columns can be far apart in the grid. The important thing is that the four positions are aligned in two rows and two columns.
Once you understand this structure, the technique becomes much easier to search for.
X-Wing on rows
An X-Wing on rows occurs when, in two different rows, a candidate appears in only two cells per row, and those cells are in the same two columns.
Imagine analyzing candidate 4. In row 2, 4 can go only in columns 3 and 8. In row 7, 4 can also go only in columns 3 and 8.
Rows 2 and 7, together with columns 3 and 8, form a rectangle. The 4 must be in two opposite corners of that rectangle.
As a result, in columns 3 and 8, candidate 4 can be eliminated from all other cells that are not part of the rectangle.
X-Wing on columns
An X-Wing can also work by starting from columns.
In this case, in two different columns, a candidate appears in only two cells per column, and those cells are in the same two rows.
For example, candidate 9 appears in column 1 only in rows 4 and 8. In column 6, 9 also appears only in rows 4 and 8.
Columns 1 and 6, together with rows 4 and 8, form a rectangle. The 9 must occupy two opposite corners of the rectangle.
As a result, in rows 4 and 8, candidate 9 can be eliminated from all other cells outside the rectangle.
How to recognize the logical rectangle
To recognize an X-Wing, it is useful to focus on one candidate at a time.
Choose a number, for example 6, and observe where it appears as a candidate in the different rows. Look for two rows where 6 appears in exactly two positions, and check whether those positions are in the same two columns.
If that happens, you have found a possible X-Wing on rows.
You can use the same reasoning starting from columns: look for two columns where the candidate appears exactly in the same two rows.
The key point is symmetry. Two rows must point to the same two columns, or two columns must point to the same two rows.
Which candidates to eliminate
The eliminations depend on the type of X-Wing.
If the X-Wing is built on rows, you eliminate the candidate from the other cells of the involved columns.
If the X-Wing is built on columns, you eliminate the candidate from the other cells of the involved rows.
This distinction is important. The most common mistake is eliminating the candidate in the wrong direction.
To remember it easily: if rows create the pattern, columns receive the eliminations. If columns create the pattern, rows receive the eliminations.
Guided example
Imagine looking for candidate 5.
In row 3, 5 can go only in columns 2 and 9. In row 8, 5 can also go only in columns 2 and 9.
This configuration forms an X-Wing on rows. The 5 must be in one of the two possible combinations: row 3 column 2 and row 8 column 9, or row 3 column 9 and row 8 column 2.
In both cases, columns 2 and 9 will already have their 5 in one of the two involved rows. Therefore candidate 5 can be eliminated from the other cells of columns 2 and 9.
After these eliminations, a Naked Single, a Hidden Single or a new intermediate technique may appear.
Common mistakes
The first mistake is treating as X-Wing a configuration where, in the two starting rows or columns, the candidate appears in more than two positions. For a classic X-Wing, in the starting units the candidate must be limited exactly to the two positions of the rectangle.
The second mistake is not checking that the positions are aligned exactly on the same two columns or rows.
The third mistake is eliminating candidates from the corners of the rectangle. The four X-Wing cells are the possible positions of the candidate and must not be removed.
The fourth mistake is looking for X-Wing too early. It is better to always check simpler techniques first, because the grid often unlocks before reaching this technique.
When to look for an X-Wing
X-Wing should be searched for when basic and intermediate techniques no longer produce progress.
If you cannot find Naked Single, Hidden Single, pairs, Pointing, Claiming or Naked Triple, it may be time to analyze one candidate at a time and look for rows or columns where that candidate appears only in two positions.
It is better to choose one candidate at a time and check rows and columns in an orderly way. Looking for X-Wing randomly across the whole grid can become confusing.
On Sudoku Arena, if a hint indicates X-Wing, the advice is to carefully observe the four involved cells and especially the eliminations produced. Understanding what gets eliminated is often more important than memorizing the name of the technique.
Recap
X-Wing is an advanced technique based on a rectangular pattern formed by two rows and two columns.
If a candidate is limited to the same two columns in two rows, you can eliminate it from the other cells of those columns. If it is limited to the same two rows in two columns, you can eliminate it from the other cells of those rows.
It is a powerful technique, useful in hard Sudoku, but it must be applied precisely. The key is recognizing the correct rectangle and making eliminations only in the right cells.