Yes, an X Wing is a sudoku pattern that lets you eliminate candidate numbers from two rows and two columns at once. It works when a single digit can appear in only two cells of two different rows, and those four cells form a rectangle. Once you spot it, you can remove that digit from other cells in the two columns (or rows) the rectangle touches.
What an X Wing Looks Like on the Grid
Imagine you are solving a puzzle and have penciled in all possible candidates. An X Wing appears when the same digit, say 7, is limited to exactly two cells in row A and exactly two cells in row B. The four cells must line up so that the two cells in row A share columns with the two cells in row B.
For example, suppose in row 3 the only 7s are at columns 2 and 5. In row 7 the only 7s are also at columns 2 and 5. Those four cells form a rectangle: (3,2), (3,5), (7,2), (7,5). The 7s are the corners of that rectangle.
Why does this matter? In each of the two rows, one of the two cells must contain 7. You do not know which one yet, but you know that in row 3, one of the two is 7, and in row 7, one of the two is 7. Because the columns are the same, the 7 in column 2 will be in either row 3 or row 7, and the 7 in column 5 will be in the other row. Therefore, no other cell in column 2 or column 5 can contain 7.
So you can erase 7 from every other cell in those two columns. That is the power of the X Wing: it removes candidates from many cells at once, often opening up the puzzle.
Step-by-Step: How to Spot an X Wing
You do not need to scan the whole grid blindly. Follow these steps in order.
- Pick a digit, for example 3. Look at each row and note where 3 can go. You only care about rows where 3 appears in exactly two cells. If a row has three or more possible cells for 3, skip it.
- Make a list of those rows and their two column positions. For instance, row 2 has 3s in columns 1 and 8; row 5 has 3s in columns 1 and 8.
- Compare the column pairs. When two rows share the same two columns, you have a potential X Wing.
- Check that the four cells are the only places for that digit in both rows. They already are, because you only kept rows with exactly two candidates.
- Now remove that digit from all other cells in those two columns, except the four corner cells themselves.
In the example above, after removing 3 from the rest of columns 1 and 8, you may reveal a single candidate in a cell, which you can then fill in.
Remember: the X Wing works the same way if you start with columns instead of rows. If two columns each have a digit in exactly two rows, and those rows match, you can eliminate that digit from other cells in those two rows.
Worked Example with Real Numbers
Let us use a concrete grid. Suppose you are solving and have these candidates for digit 5:
- Row 1: 5 can be in columns 3 and 7.
- Row 6: 5 can be in columns 3 and 7.
- Row 4: 5 can be in columns 3, 7, and 9 (three places, so ignore this row).
Rows 1 and 6 both have 5 in exactly columns 3 and 7. That is your X Wing. The corners are (1,3), (1,7), (6,3), (6,7).
Now look at column 3. The 5 in column 3 must be in row 1 or row 6. So you can remove 5 from every other cell in column 3. Similarly, in column 7, the 5 must be in row 1 or row 6, so remove 5 from all other cells in column 7.
Suppose cell (4,3) had a candidate 5. You erase it. Suppose cell (9,7) had a candidate 5. You erase it. These erasures can make other digits become singles, which you then fill in.
Try it on a puzzle you are stuck on. Pencil in all candidates, then scan for this pattern. With practice, you will spot X Wings in under a minute.
What an X Wing Is Not
A common misconception is that an X Wing requires the four cells to be the only cells in the entire grid for that digit. That is not true. The digit can appear in many other cells in other rows and columns. The X Wing only cares about the two rows (or two columns) that form the rectangle.
Another misconception: the four cells do not need to form a perfect square. They only need to share the same two row numbers and the same two column numbers. The rectangle can be tall or wide; the pattern is the same.
Also, an X Wing does not tell you which of the four cells actually contains the digit. It only tells you where the digit cannot be. You still need to solve the rest of the puzzle to determine which corner gets the digit.
When to Use an X Wing in Your Solving
Use an X Wing after you have filled in all candidates and have exhausted simpler techniques like naked singles, hidden singles, and locked candidates. It is an intermediate strategy, usually needed in medium to hard puzzles.
If you are solving a puzzle rated easy, you may never need an X Wing. But for harder puzzles, it is often the key that unlocks the grid.
Here is a quick checklist for using it:
- Choose a digit and scan all rows first, then all columns.
- Only consider rows or columns with exactly two candidates for that digit.
- Look for two rows with identical column pairs, or two columns with identical row pairs.
- Remove that digit from the shared columns (or rows) outside the four corners.
If you remove candidates and still feel stuck, look for a second X Wing with a different digit, or move on to more advanced patterns like Swordfish or XY Wing.
With practice, you will recognize X Wings quickly. They are one of the most satisfying patterns to find because a single move can eliminate many candidates and get you moving again.
General information for everyday wellbeing, not medical advice. If something affects your health, sleep or mood for more than a short while, talk to a qualified professional. Read more
Spotted an error? Tell us and we will correct it (corrections policy).