Sudoku Strategy

X-Wing Technique: Find the Pattern & Make Eliminations

September 18, 2026 · The Play Sudoku Team

If you have mastered the basics of Sudoku — naked singles, hidden singles, and scanning rows and columns — you may find yourself staring at a puzzle that simply refuses to budge. The grid looks full of candidates, yet no obvious moves appear. This is exactly the moment when intermediate and advanced techniques begin to earn their keep, and few are more satisfying to spot than the X-Wing. The X-Wing is one of the first “fish” patterns you will encounter in Sudoku strategy, and once you train your eye to see it, you will be amazed how often it appears in moderate and difficult puzzles. This article walks you through exactly what the X-Wing is, how to find it, how to use it to eliminate candidates, and why it works — complete with a concrete worked example you can follow step by step.

What Is the X-Wing Technique?

The X-Wing is a candidate elimination technique used when straightforward logic has been exhausted. It belongs to a family of patterns called “fish,” which also includes Swordfish (three rows/columns) and Jellyfish (four rows/columns). The X-Wing is the smallest and simplest member of this family, involving exactly two rows and two columns.

At its core, the X-Wing exploits a situation where a specific digit can only appear in two cells across each of two different rows, and those candidate cells happen to line up in the same two columns. Because the digit must appear exactly once in each of those two rows, and it is locked into one of two column positions, the columns themselves become constrained. Any other cell in those two columns that holds the same digit as a candidate can be safely eliminated.

Think of it visually: the four candidate cells form the four corners of a rectangle — hence the name “X-Wing,” since you can draw an X across the rectangle diagonally. The digit in question must occupy either the top-left and bottom-right corners, or the top-right and bottom-left corners. Either way, every other candidate of that digit sitting in those two columns is impossible and can be crossed out.

The X-Wing works equally well when defined by columns rather than rows. In the column version, you look for a digit that appears as a candidate in only two cells in each of two columns, and those cells share the same two rows. Eliminations then run along those two rows.

How to Spot an X-Wing: A Step-by-Step Search Method

Finding an X-Wing requires methodical scanning. Here is a reliable process you can follow for every puzzle where you suspect a fish pattern might be hiding:

  1. Choose a digit to investigate. Start with digits that appear fewer times on the board overall, as they are more likely to produce restricted candidate sets. Digits 1 through 9 should each be checked when you are stuck.
  2. Mark all candidates for that digit. Use pencil marks (or your app’s candidate mode) to note every cell where the digit could legally go in each row.
  3. Find rows where the digit has exactly two candidates. Scan every row and flag the ones where your chosen digit appears as a candidate in precisely two cells. Rows with three or more candidates cannot form the base of a basic X-Wing.
  4. Check if two such rows share the same column pair. If Row A has your digit as a candidate in Column 3 and Column 7, and Row B also has the digit as a candidate only in Column 3 and Column 7, you have found an X-Wing.
  5. Eliminate candidates in those columns. In Column 3 and Column 7, remove the digit as a candidate from every other cell that is not one of your four corner cells.
  6. Repeat the search from columns. After checking all rows, do the same process starting from columns to catch column-based X-Wings.

It sounds like a lot of work written out, but with practice it becomes a quick mental scan that takes only seconds per digit.

Worked Example: Eliminating Candidates with an X-Wing

Let’s walk through a concrete illustration so the logic becomes concrete. Imagine you are working on a difficult Sudoku puzzle and you are investigating the digit 6.

After marking all pencil marks for 6, you notice the following in your candidate grid:

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

You have found your X-Wing base: two rows (Row 2 and Row 7), each with exactly two candidates for 6, both sitting in the same two columns (Column 4 and Column 8). The four corner cells are:

  • Row 2, Column 4 — candidate: 6
  • Row 2, Column 8 — candidate: 6
  • Row 7, Column 4 — candidate: 6
  • Row 7, Column 8 — candidate: 6

Now reason through why this restricts Column 4 and Column 8. In Row 2, the digit 6 must go into either Column 4 or Column 8 — there is no other option. The same is true for Row 7. If Row 2 places its 6 in Column 4, then Row 7 must place its 6 in Column 8 (because Column 4 already has a 6). If Row 2 places its 6 in Column 8, then Row 7 must place its 6 in Column 4. In every possible solution, Column 4 gets a 6 from one of these two rows, and Column 8 gets a 6 from the other.

This means no other row can supply a 6 to Column 4 or Column 8, because those columns are already guaranteed their 6 from Row 2 or Row 7. Therefore, you can eliminate 6 as a candidate from every other cell in Column 4 and Column 8 — except for the four corner cells themselves.

In practice, suppose Column 4 also showed 6 as a candidate in Row 1, Row 5, and Row 9. You can now erase 6 from all three of those cells. Similarly, if Column 8 had 6 as a candidate in Row 3 and Row 6, those too can be eliminated. These eliminations may then trigger new naked singles or hidden singles elsewhere in the puzzle, helping you crack cells that were previously inaccessible.

This ripple effect is what makes the X-Wing so powerful. A single pattern identification can unlock several cells at once, turning a stalled puzzle into a solvable one.

Common Mistakes and Misconceptions

Even experienced solvers can stumble when first applying the X-Wing. Here are the most frequent errors to watch out for:

  • Rows with more than two candidates: If a row has three cells where your digit could go, it cannot serve as an X-Wing base row for a standard X-Wing. You would need a Swordfish pattern instead. Always confirm you have exactly two candidates per base row (or column).
  • Eliminating the corner cells: The four cells that form the corners of the X-Wing are not eliminated — they are the very cells that must contain the digit. Only the non-corner cells in the affected columns (or rows) get their candidates removed.
  • Confusing rows-based and columns-based X-Wings: Remember to search both orientations. A rows-based X-Wing eliminates candidates from columns; a columns-based X-Wing eliminates candidates from rows. It is easy to forget one direction.
  • Applying X-Wing to naked pairs or other patterns: Sometimes what looks like an X-Wing is actually a simpler pattern in disguise. Always verify your candidate marks are complete and accurate before applying advanced techniques. Errors in pencil marks lead to wrong eliminations.
  • Thinking X-Wing places digits: The X-Wing does not directly place a digit in a cell. It eliminates candidates, which may then lead to placements through simpler techniques. Do not expect an immediate fill-in from the pattern itself.

Why the X-Wing Works: The Logic Behind the Pattern

Understanding why the X-Wing is valid — not just how to apply it mechanically — will help you extend this thinking to harder techniques like Swordfish, Jellyfish, and beyond.

Sudoku’s fundamental rule is that each digit must appear exactly once in every row, column, and 3×3 box. The X-Wing leverages the row constraint and the column constraint simultaneously. When a digit is confined to exactly two cells in a row, those two cells form a conjugate pair — one must be true, and only one. When two such conjugate pairs share the same columns, the columns inherit a combined constraint: between the two base rows, both columns will each receive one instance of the digit, accounting for all column placements in those columns from the base rows.

This is a form of set-based reasoning, which underlies nearly all advanced Sudoku logic. You are identifying a set of rows (or columns) and showing that a digit’s placement within those rows is completely determined by a smaller set of columns (or rows). Any candidate of that digit outside the defined set but inside the cover columns is provably false.

Once you internalize this set-based thinking, the jump to Swordfish (three base rows, three cover columns) becomes intuitive rather than mysterious. The X-Wing is therefore not just a technique to memorize — it is a conceptual gateway to an entire tier of advanced Sudoku strategy.

Key Takeaways

  • The X-Wing is an intermediate Sudoku technique that eliminates candidates by identifying a rectangle of four cells where a digit is locked into exactly two rows and two columns.
  • To find an X-Wing, scan each digit for rows (or columns) where it appears as a candidate in exactly two cells, then check whether two such rows share the same column pair.
  • Once the pattern is confirmed, eliminate that digit as a candidate from all other cells in the two involved columns (for a row-based X-Wing) or all other cells in the two involved rows (for a column-based X-Wing).
  • The X-Wing does not directly place a number — it removes impossible candidates, which then enables simpler techniques to make progress.
  • Understanding the set-based logic of the X-Wing prepares you for harder fish patterns like Swordfish and Jellyfish.
  • Accurate pencil marks are essential; always verify your candidates before applying the technique.

The X-Wing is one of those techniques that rewards patience and careful observation. The first time you spot one in a real puzzle and watch a chain of new moves open up as a result, you will feel the deep satisfaction that keeps dedicated Sudoku solvers coming back day after day. Keep your pencil marks tidy, scan methodically, and trust the logic — your next X-Wing is waiting to be discovered. Happy solving!

Play a puzzle