X-Wing Sudoku: How This Pattern Works and When to Use It

If you want to learn X-Wing Sudoku, the short version is this: look for the same candidate appearing in exactly two cells in two different rows, and those cells line up in the same two columns. When that happens, the candidate can be removed from the other cells in those two columns.

This is one of the first truly advanced Sudoku techniques because it does not place a digit directly. Instead, it removes candidates by proving that one of two row-based placements must be true. Once you see the shape clearly, X-Wing becomes much less mysterious and much more practical.

Quick Answer: What Is X-Wing in Sudoku?

X-Wing in Sudoku is a candidate elimination pattern built from two rows and two columns, or two columns and two rows. If one digit appears in exactly two matching positions across two rows, that digit must occupy those intersections in some order. As a result, the same digit can be eliminated from every other cell in the matching columns.

Players often describe it as a rectangle or a four-corner pattern. The key is not the shape alone. The key is that the candidate is restricted to exactly two positions in each of the two rows or columns that form the pattern.

Why X-Wing Matters

Many hard Sudoku puzzles stop yielding progress after singles, pairs, and box-line reductions. That is where X-Wing starts to matter. It helps you break candidate deadlocks without guessing.

X-Wing is worth learning because it:

  • appears often enough in hard puzzles to be useful,
  • teaches you how advanced eliminations are built from constraints, and
  • prepares you for larger fish patterns such as Swordfish.

How X-Wing Sudoku Works

Row-Based X-Wing

Suppose candidate 7 appears in exactly two cells in row 2, and exactly two cells in row 8. If those two positions are in the same columns in both rows, you have a row-based X-Wing.

Example pattern:

  • Row 2: candidate 7 appears only in column 3 and column 6
  • Row 8: candidate 7 appears only in column 3 and column 6

That means one 7 must go in either r2c3 or r2c6, and one 7 must go in either r8c3 or r8c6. Because each row needs one 7 and each of those rows has only those two options, columns 3 and 6 cannot hold any other 7s outside those four corner cells.

So you can eliminate 7 from:

  • all other unsolved cells in column 3, and
  • all other unsolved cells in column 6.

Column-Based X-Wing

The same logic works in reverse. If a candidate appears in exactly two cells in two columns, and those cells align in the same two rows, you have a column-based X-Wing. In that case, you eliminate the candidate from the rest of those two rows.

Step-by-Step: How to Find an X-Wing

  1. Choose one candidate digit, such as 4 or 7.
  2. Scan rows or columns for units where that candidate appears exactly twice.
  3. Check whether another row or column has the same candidate in the same matching positions.
  4. Confirm that the pattern uses exactly two rows and two columns.
  5. Eliminate that candidate from the rest of the shared columns or rows.

This is why clean notes matter so much. Without accurate candidates, X-Wing is almost impossible to see reliably. If your notes are messy, review How to Use Notes in Sudoku before hunting advanced patterns.

X-Wing Sudoku Example

Imagine you are scanning candidate 5.

  • In row 3, candidate 5 appears only in c2 and c8.
  • In row 7, candidate 5 appears only in c2 and c8.

Those four cells form the corners of a rectangle:

  • r3c2
  • r3c8
  • r7c2
  • r7c8

Because each of rows 3 and 7 must contain one 5, and those rows have only those two candidate positions, the 5s must be placed on those corners in some order. That lets you remove candidate 5 from every other unsolved cell in column 2 and column 8.

The elimination may not solve a cell immediately, but it often unlocks a hidden single, pair, or another chain of deductions right after.

When to Look for X-Wing

Do not search for X-Wing too early. It is usually inefficient on a board that still has obvious singles and simpler eliminations available.

The best time to look for X-Wing is after you have already checked:

If you want the full logic sequence, see Sudoku Strategy Order of Operations.

Common X-Wing Mistakes

1. Counting a Candidate That Appears More Than Twice

The most common mistake is forcing an X-Wing when one of the rows or columns actually has three or more candidate positions for that digit. That is not an X-Wing. The restriction must be exact.

2. Seeing the Rectangle but Ignoring the Logic

Four corner cells that look neat are not enough. The pattern only works when each of the two base rows or columns contains the candidate in exactly the same two positions.

3. Eliminating From the Wrong Units

In a row-based X-Wing, you eliminate from the rest of the two columns. In a column-based X-Wing, you eliminate from the rest of the two rows. Mixing that up creates errors fast.

4. Searching Every Digit on Every Turn

X-Wing is powerful, but it is not your first tool. If you hunt it constantly, you waste time. Use it when the puzzle has tightened and your notes are mature.

X-Wing vs. Swordfish

X-Wing uses two rows and two columns. Swordfish uses three rows and three columns. The idea is related, but Swordfish is larger and harder to verify correctly. If X-Wing still feels slow, do not jump ahead yet. Build speed on simpler advanced eliminations first.

How to Practice X-Wing Faster

  • Start by scanning one candidate at a time instead of the entire board at once.
  • Focus on rows with many filled cells, because the candidate counts are easier to audit.
  • Use consistent notation so exact twice-only patterns stand out.
  • After every elimination, rescan for hidden singles before continuing with more advanced techniques.

Players improve at X-Wing when they stop treating it like magic and start treating it like a counting exercise. The pattern is simply a consequence of limited candidate positions.

FAQ: X-Wing Sudoku

Is X-Wing an advanced Sudoku technique?

Yes. X-Wing is usually considered an advanced Sudoku technique because it relies on candidate patterns rather than direct placements.

Do you need notes to use X-Wing in Sudoku?

Yes, in practice you almost always need pencil marks or candidate notes to spot X-Wing accurately.

Can X-Wing solve a cell directly?

Usually no. X-Wing typically removes candidates from other cells, and those eliminations then create a direct solving move elsewhere.

What comes before X-Wing in Sudoku?

Most players should use singles, box-line reductions, and pairs before checking for X-Wing. It works best after simpler logic has already been exhausted.

Conclusion: X-Wing Is Easier Once You Trust the Restriction

The hardest part of learning X-Wing Sudoku is not the shape. It is trusting the logic behind the shape. When a digit is limited to the same two positions in two rows or two columns, those placements lock each other in. That is what makes the eliminations valid.

Once you understand that restriction, X-Wing stops feeling like an obscure trick and starts feeling like a repeatable pattern. If you want to sharpen that skill, play a few harder boards on Pure Sudoku and scan one candidate at a time until the structure becomes natural.