Sudoku Strategy

X-Wing Technique: Find the Pattern & Make Eliminations

October 30, 2026 · The Play Sudoku Team

If you have been solving Sudoku puzzles for a while, you have probably reached that frustrating plateau where the basic techniques — naked singles, hidden singles, and simple scanning — are not enough to push the puzzle forward. The grid seems full of possibilities, yet nothing clicks. This is exactly the moment when intermediate and advanced strategies become essential, and the X-Wing is one of the most satisfying of all of them. Once you see it for the first time, you will wonder how you ever missed it — and you will start spotting it everywhere.

What Is the X-Wing Technique?

The X-Wing is a candidate elimination technique used in Sudoku when basic logic has been exhausted. It belongs to a family of strategies sometimes called “fish” patterns, and it is the smallest and simplest member of that family. Larger versions include Swordfish (three rows or columns) and Jellyfish (four rows or columns), but the X-Wing is the entry point — and understanding it deeply will make those larger patterns much easier to grasp later.

At its core, the X-Wing works by identifying a specific digit that appears as a candidate in exactly two cells in each of two different rows (or two different columns), and where those candidate cells line up perfectly in the same two columns (or the same two rows). When that alignment is confirmed, you can eliminate that digit as a candidate from every other cell in those two columns (or rows). The result is often a breakthrough that unlocks a chain of further deductions.

The name comes from the shape the four cells make on the grid. Draw lines connecting them and you get an “X” — two diagonals crossing in the middle of the rectangle they form. It is a memorable visual, and once you train your eye to look for rectangles of candidates, you will become much faster at spotting this technique in real puzzles.

Why the X-Wing Logic Works

To trust any solving technique, you need to understand why it works, not just memorize the pattern. The X-Wing is based on a simple but powerful piece of reasoning about the placement of digits in Sudoku.

Sudoku’s rules state that every digit from 1 to 9 must appear exactly once in every row, every column, and every 3×3 box. When you are working with candidates — the small pencil marks that show which digits could still legally go in each cell — you are tracking all the remaining possibilities.

Now imagine a digit, let’s call it D, that appears as a candidate in exactly two cells in Row 1, and those two cells happen to be in Column 3 and Column 7. Row 1 must contain the digit D somewhere, and the only two options are the cell at (Row 1, Column 3) and the cell at (Row 1, Column 7). One of them will be D — we just do not know which yet.

Now suppose the same situation exists in Row 5: digit D appears as a candidate in exactly two cells, and again those cells are in Column 3 and Column 7 — the exact same two columns. Row 5 also must place D in one of those two positions.

Here is where the elimination logic kicks in. There are only two possible scenarios:

  • Scenario A: Row 1 places D in Column 3, which means Row 5 must place D in Column 7 (because Column 3 already has its D from Row 1).
  • Scenario B: Row 1 places D in Column 7, which means Row 5 must place D in Column 3 (because Column 7 already has its D from Row 1).

In both scenarios, Column 3 gets exactly one D (either from Row 1 or from Row 5), and Column 7 gets exactly one D (either from Row 5 or from Row 1). This means that no other cell in Column 3 or Column 7 can contain the digit D. Any other candidate D in those two columns is impossible, regardless of which scenario plays out — and that means you can eliminate it with complete confidence.

A Concrete Worked Example

Let’s walk through a realistic example so you can see this technique in action. Suppose you are solving a hard Sudoku and you are tracking the candidates for the digit 6. After applying all basic techniques, your candidate grid for the number 6 looks like this in the relevant rows and columns:

  • Row 2: digit 6 is a candidate only in Column 4 and Column 8.
  • Row 6: digit 6 is a candidate only in Column 4 and Column 8.
  • Other rows have the digit 6 as a candidate in more than two cells, or in different columns entirely.

You have found your X-Wing. The four key cells are: (Row 2, Col 4), (Row 2, Col 8), (Row 6, Col 4), and (Row 6, Col 8). Draw an imaginary rectangle connecting these four cells — that is your X shape.

Now look at every other cell in Column 4 that has 6 as a candidate. Perhaps you see a 6 candidate sitting in Row 4, Column 4 and another in Row 9, Column 4. You can remove both of those candidates immediately. The digit 6 in Column 4 will be placed either in Row 2 or Row 6 — it cannot go anywhere else in that column.

Similarly, look at every other cell in Column 8 that has 6 as a candidate. Maybe Row 1, Column 8 and Row 7, Column 8 both show a 6 candidate. You can eliminate both of them too.

After making these four eliminations (or however many apply in your specific puzzle), something exciting often happens. One of the cells you just cleared might now have only one candidate remaining — becoming a naked single that can be solved directly. Or a row, column, or box might now have only one remaining cell where a particular digit can go — a hidden single. The X-Wing elimination can trigger a whole cascade of further progress.

How to Search for X-Wings Efficiently

Knowing the logic is one thing; finding X-Wings quickly in a real puzzle is another skill entirely. Here is a practical process to make your search systematic and efficient.

Step 1 — Keep your candidates up to date. The X-Wing technique only works reliably when your pencil marks accurately reflect all remaining possibilities. Always eliminate candidates whenever you place a digit, and run through naked pairs, hidden pairs, and other basic techniques first to reduce the candidate pool as much as possible.

Step 2 — Pick a digit and scan rows. Choose a digit, say the number 4, and look at each row one at a time. You are searching for rows where 4 appears as a candidate in exactly two cells. Note down or mentally flag which columns those two cells are in. If two different rows both have their only two 4-candidates in the same pair of columns, you have an X-Wing.

Step 3 — Check by columns if rows produce nothing. The X-Wing can also be found by scanning columns instead of rows. Look for a digit that appears as a candidate in exactly two cells in a given column, then find a second column where that digit also has exactly two candidates — and they fall in the same two rows. The elimination then removes candidates from those two rows rather than from the columns.

Step 4 — Make your eliminations carefully. Once you confirm the pattern, go through the two “eliminating” lines (the columns if you found the X-Wing by rows, or the rows if you found it by columns) and remove every instance of that candidate except for the four X-Wing cells themselves. Do not remove the candidates from the four corner cells — those cells are where the digit will ultimately be placed.

Step 5 — Re-scan after eliminations. After any elimination, go back through your basic techniques before searching for another X-Wing. The eliminations might have exposed simpler solutions that save you time.

A common mistake beginners make is confusing the rows and columns. Remember: if you identify the X-Wing using two rows (the rows are your “base”), the eliminations happen in the columns (the “cover”). And vice versa. Keeping that direction straight prevents accidental errors.

X-Wing Versus Other Techniques: Where It Fits

The X-Wing sits comfortably in the intermediate-to-advanced category of Sudoku strategies. It is more powerful than basic naked and hidden subsets, but simpler than strategies like XY-Wing, Swordfish, or the complex Unique Rectangle techniques. If you can solve a puzzle using nothing harder than naked pairs and hidden pairs but still get stuck, checking for an X-Wing is an excellent next step before reaching for more exotic tools.

The X-Wing is also a great conceptual bridge. Once you understand that two rows with aligned candidates can force eliminations in columns, extending that idea to three rows (Swordfish) or four rows (Jellyfish) feels natural rather than overwhelming. Many experienced solvers treat the X-Wing as the gateway to truly advanced Sudoku solving.

It is worth noting that puzzle difficulty ratings often reflect which techniques are required. Puzzles labeled “hard” or “expert” on most Sudoku sites frequently require at least one X-Wing or equivalent technique to solve without guessing. Mastering it means you are genuinely leveling up your solving ability — no trial and error needed.

Key Takeaways

  • The X-Wing is an intermediate candidate elimination technique that applies when a digit appears as a candidate in exactly two cells in each of two rows (or columns), and those cells align in the same two columns (or rows).
  • The logic is airtight: in both possible solutions for those two rows, the digit in question must occupy one of the two aligned columns — making every other occurrence of that digit in those columns impossible.
  • Always eliminate candidates from the cover lines (columns if you found the X-Wing by rows, rows if you found it by columns), never from the four corner cells themselves.
  • Keep candidates accurate and apply basic techniques before and after using the X-Wing — it often triggers a cascade of simpler deductions.
  • The X-Wing is the foundation for understanding larger “fish” patterns like Swordfish and Jellyfish.
  • Puzzles requiring the X-Wing are typically rated “hard” or above — mastering it is a genuine milestone in Sudoku skill development.

Learning the X-Wing technique is one of those turning points that transforms how you see a Sudoku grid. Suddenly, those stubborn puzzles that once seemed impossible start yielding to careful, logical analysis rather than guesswork. Practice spotting rectangular patterns of candidates as you solve, keep your pencil marks tidy, and before long the X-Wing will become a natural part of your solving toolkit. Keep at it — every puzzle you work through is building the pattern recognition that makes these techniques feel effortless over time.

Play a puzzle