Sudoku Strategy

X-Wing Technique: Find the Pattern & Eliminate

July 4, 2026 · The Play Sudoku Team

If you have mastered the basics of Sudoku — naked singles, hidden singles, and scanning rows and columns — you will eventually hit a wall where none of those techniques seem to work. The grid stares back at you, and no obvious move presents itself. This is exactly the moment when intermediate and advanced strategies begin to shine, and one of the most elegant of them all is the X-Wing technique. Once you understand how to spot it, the X-Wing unlocks eliminations that would otherwise feel like pure guesswork, letting you advance logically through even the toughest puzzles.

What Is the X-Wing Technique?

The X-Wing is a candidate elimination technique used when standard solving methods are no longer enough. It belongs to a family of strategies sometimes called “fish” techniques, which also includes Swordfish and Jellyfish. The X-Wing is the simplest member of this family and the best place to start when exploring advanced Sudoku strategy.

At its core, the X-Wing relies on a very specific pattern that appears among the candidates for a single digit. A candidate is simply a number that could legally go in a particular cell, based on the current state of the puzzle. Most serious solvers keep track of candidates either in pencil on paper or using the note-taking feature on a digital Sudoku app. If you are not already using candidates, the X-Wing technique is a strong reason to start.

The pattern itself involves exactly two rows and two columns. Here is the formal definition: an X-Wing exists for a particular digit when that digit appears as a candidate in exactly two cells in each of two different rows, and those two cells in both rows fall in the same two columns. Visually, the four cells form the four corners of a rectangle — and if you draw lines connecting them, those lines form an “X” shape, which is exactly how the technique gets its name.

When this rectangle pattern appears, something powerful becomes true: the digit must occupy one of two diagonal pairs of corners. Either it fills the top-left and bottom-right corners, or it fills the top-right and bottom-left corners. No other arrangement is possible without breaking the rules of Sudoku. This constraint means you can safely eliminate that digit as a candidate from every other cell in the two columns involved, because those columns are already “accounted for” by the X-Wing pattern.

How to Spot an X-Wing in a Real Puzzle

Finding an X-Wing starts with scanning for a specific digit one row at a time. The goal is to find two rows where the chosen digit has candidates in exactly the same two columns. Here is a practical, step-by-step process you can follow:

  1. Choose a digit to investigate. Start with whichever number appears most frequently in your candidate notes, since it is more likely to show a restricted pattern.
  2. Go through each row and note which columns contain that digit as a candidate. Ignore any row where the digit appears in three or more cells — those rows cannot be part of an X-Wing.
  3. Look for two rows where the candidate appears in exactly the same pair of columns. For example, Row 2 has the digit only in Column 4 and Column 7, and Row 6 also has the digit only in Column 4 and Column 7.
  4. Confirm the rectangle. The four cells — (Row 2, Col 4), (Row 2, Col 7), (Row 6, Col 4), and (Row 6, Col 7) — form your X-Wing.
  5. Make your eliminations. Remove the chosen digit as a candidate from every other cell in Column 4 and Column 7 that is not part of the X-Wing.

It is equally valid to search by column first and then make eliminations across the relevant rows. The logic is perfectly symmetrical. If you find two columns where a digit appears as a candidate in exactly the same two rows, you can eliminate that digit from all other cells in those two rows.

A Worked Example: Seeing the X-Wing in Action

Let’s walk through a concrete illustration so you can see exactly how this plays out. Imagine you are solving a hard Sudoku puzzle and you decide to investigate the digit 5. After carefully marking all candidate fives across the grid, you notice the following situation:

  • Row 3: The digit 5 is a candidate only in Column 2 and Column 8.
  • Row 7: The digit 5 is a candidate only in Column 2 and Column 8.

Every other row either has no candidate fives, has a confirmed five already placed, or has fives in three or more columns. Rows 3 and 7 are special because they share the exact same pair of columns for this digit.

The four cells that form your X-Wing are:

  • R3C2 (Row 3, Column 2)
  • R3C8 (Row 3, Column 8)
  • R7C2 (Row 7, Column 2)
  • R7C8 (Row 7, Column 8)

Now think about what must be true. In Row 3, the five must go into either Column 2 or Column 8. In Row 7, the five must also go into either Column 2 or Column 8. Here is the critical insight: Column 2 needs exactly one five, and Column 8 needs exactly one five. The X-Wing pattern guarantees that both of those fives will be provided by the cells in Rows 3 and 7. No other cell in Column 2 or Column 8 can hold a five, because that would create a duplicate in the column.

Therefore, you can confidently eliminate the digit 5 as a candidate from every other cell in Column 2 — say R1C2, R4C2, R5C2, and R9C2 — and from every other cell in Column 8 — say R2C8, R5C8, and R8C8. These eliminations might not immediately place a five anywhere, but they often trigger a cascade: once those false candidates are removed, other techniques like hidden singles or naked pairs may suddenly become visible, and the puzzle starts to crack open.

This cascading effect is one of the most satisfying things about the X-Wing. It rarely solves the puzzle outright, but it clears the fog, making other logical deductions possible.

Common Mistakes and How to Avoid Them

The X-Wing is elegant but easy to misapply if you are not careful. Here are the most frequent errors solvers make, along with tips to avoid them.

Mistake 1: Including rows where the digit appears in three or more cells. The X-Wing only works when the candidate appears in exactly two cells per row (or per column, if you are searching by column). If a row has three candidate cells for your chosen digit, it cannot anchor an X-Wing. Be strict about this requirement.

Mistake 2: Eliminating candidates in the wrong houses. When you find a row-based X-Wing, the eliminations go in the columns, not in the rows. The two rows that form the X-Wing are completely protected — you cannot eliminate the digit from any cell in those rows based on the X-Wing alone. Only the cells in the two relevant columns that are outside the X-Wing are affected.

Mistake 3: Forgetting to check column-based X-Wings. Many solvers habitually scan rows and forget that the same logic applies when scanning columns. If two columns share a digit candidate in exactly the same two rows, that is an equally valid X-Wing, and the eliminations happen across those rows.

Mistake 4: Confusing the X-Wing with other rectangle patterns. The Unique Rectangle is a different technique that also involves four cells in a rectangle but operates on completely different logic. Do not mix them up. The X-Wing is purely about candidate elimination based on the constraint that each digit must appear exactly once per row and once per column.

Mistake 5: Skipping candidate notation. There is no reliable way to spot an X-Wing without tracking candidates. If you try to solve hard puzzles entirely in your head without writing down possibilities, you will almost certainly miss this pattern. Invest the time to fill in candidates accurately — it pays dividends across many advanced strategies, not just the X-Wing.

X-Wing Versus Other Advanced Techniques

The X-Wing sits at the gateway between intermediate and advanced Sudoku solving. It is more complex than naked pairs or pointing pairs, but considerably simpler than strategies like X-Y Wing, Swordfish, or almost locked sets. If you can reliably find and apply X-Wings, you are well positioned to tackle the next level of difficulty.

The Swordfish is the natural next step after X-Wing. Where X-Wing uses two rows and two columns, Swordfish extends the same logic to three rows and three columns. The pattern is harder to see, but the underlying reasoning is identical. Mastering X-Wing first builds the mental model you need to spot Swordfish patterns later.

It is also worth noting that the X-Wing is a deductive technique, not a guessing strategy. Every elimination it produces is logically guaranteed. This is important because some solvers, frustrated by hard puzzles, resort to trial and error. While that can work, it provides no insight and no satisfaction. The X-Wing, by contrast, gives you a clear reason for every number you place or eliminate, keeping your solving experience clean and rewarding.

Key Takeaways

  • The X-Wing technique applies to a single digit and requires that digit to appear as a candidate in exactly two cells in each of two rows, with both rows sharing the same pair of columns.
  • The four candidate cells form a rectangle; this rectangle is called the X-Wing because the diagonals cross like an X.
  • Once the pattern is confirmed, you can eliminate that digit from all other cells in the two columns involved (or two rows, if searching by column).
  • Always maintain accurate candidate notes — you cannot reliably find an X-Wing without them.
  • The eliminations made by an X-Wing often act as a catalyst, making other solving techniques suddenly applicable.
  • Avoid the common mistake of eliminating candidates from the anchor rows rather than the relevant columns.
  • X-Wing is a fully logical, deduction-based technique — no guessing required.

Learning the X-Wing technique is a genuine milestone in your Sudoku journey. It marks the point where you move from reacting to obvious clues to actively searching for hidden structure within the grid. The first time you spot that perfect rectangle, make your eliminations, and watch a previously stuck puzzle begin to flow again, you will understand why so many solvers consider the X-Wing one of the most satisfying techniques in the game. Keep practicing, keep your candidate notes tidy, and the pattern will start jumping out at you with increasing ease. Happy solving!

Play a puzzle