Lesson 16·Advanced·6/10

X-Wing

Prereqs: Hidden Quads

The X-Wing is one of the most well-known advanced Sudoku techniques. It occurs when a particular candidate digit appears in exactly two cells in each of two different rows, and those cells are aligned in the same two columns. Because the candidate must appear once in each row, it must occupy one of the two possible column positions in each row. This creates a rectangle of four cells where the candidate locks into a diagonal pattern — either top-left and bottom-right, or top-right and bottom-left.

Since the candidate is guaranteed to fill two of the four corners in this diagonal arrangement, it cannot appear in any other cell within those two columns. Therefore, you can safely eliminate that candidate from all other cells in the two columns that are outside the X-Wing rows. The same logic applies when the pattern is found in columns instead of rows — in that case, eliminations occur across the two rows.

The X-Wing is the simplest member of the "fish" family of techniques, which also includes Swordfish (3x3) and Jellyfish (4x4). Mastering the X-Wing teaches you the fundamental principle of set-based candidate elimination and trains your eye to scan for aligned candidate positions across the grid. It is a critical tool for solving hard-rated Sudoku puzzles where basic and intermediate techniques are insufficient.

Try It Yourself

Walk through each step of the x-wing technique on a real puzzle. Follow the instructions and try entering the correct value when prompted.

Step 1 of 5

We are looking for an X-Wing pattern on candidate 1. Scan the grid for rows where 1 appears as a candidate in exactly two cells. Focus on rows 4 and 6.

483976191362742671849531994751636528317437421558953246878471357953416

Step-by-Step Guide

1

Choose a candidate digit to analyze across the grid.

2

Scan each row and identify rows where that candidate appears in exactly two cells.

3

Check if any two such rows have their candidate cells aligned in the same two columns.

4

Verify the four cells form a rectangle — two rows, two columns, four corners.

5

Eliminate the candidate from all other cells in those two columns outside the X-Wing rows.

6

Alternatively, look for the pattern in columns and eliminate from rows.

7

Re-evaluate the grid — the eliminations may reveal naked singles or further patterns.

Imagine two rows each have exactly two seats reserved for the same guest — if those seats line up in the same two columns, no one else in those columns can sit there.

Each row is a constraint that demands exactly one placement of the digit, and with only two possible columns per row, the two rows collectively must place the digit in exactly two of the four corner cells. Because the two placements must fall in different columns (one per row), they fully satisfy both column constraints for those two columns, meaning no other cell in either column can hold that digit without violating the one-per-column rule.

When to use: Use X-Wing when you find a candidate that appears in exactly two cells in each of two rows and those cells align in the same two columns. Scan for this after exhausting all intermediate subset techniques.

Common Mistakes to Avoid

Trying to apply X-Wing when the candidate appears in more than two cells in one of the rows.

Both rows must have the candidate in exactly two cells. If a row has three or more, the pattern does not hold — consider Swordfish instead.

Eliminating candidates from the X-Wing rows instead of the X-Wing columns.

When the pattern is found across rows, eliminations happen in the columns (and vice versa). Always eliminate from the other dimension.

Forgetting to check if the pattern also works in columns instead of rows.

X-Wing works both ways. Always scan columns as well as rows, since the column-based pattern eliminates from rows.

More Examples

See x-wing applied in different puzzle configurations to strengthen your pattern recognition.

X-Wing on Digit 4

Highlighted cells show the x-wing pattern

Practice Puzzles

Apply the x-wing technique on these mini challenges. Tap a highlighted cell and enter the correct digit.

Puzzle 1 of 2
4
3
9
2
1
6
7
9
6
7
4
8
2
1
2
5
1
8
7
6
4
9
5
8
1
3
2
9
6
7
2
9
5
6
1
3
8
1
3
6
9
8
4
3
7
2
6
8
5
1
4
8
1
2
5
7
6
9
6
9
5
4
1
7
3
8
2
Quick Reference
Pattern:
A candidate appears in exactly two cells in each of two rows, aligned in the same two columns
Action:
Eliminate that candidate from all other cells in those two columns
Look for:
A candidate forming a rectangle across two rows and two columns