DevGroup Sudoku Pro العربية 🌐

New guided lesson 13 · Advanced · Fish patterns

X-Wing: eliminate a digit using two matching rows

Recognize a two-row, two-column candidate rectangle for one digit and apply safe column eliminations.

Illustrated example: X-Wing: eliminate a digit using two matching rows
An X-Wing needs one digit restricted to the same two columns in each of two rows, or the equivalent pattern with rows and columns swapped.

What the pattern means

An X-Wing locks one digit to four corners of a rectangle, with two possible placements.

Worked candidate example

In the candidate diagram, digit 5 is possible in row 2 only at columns 3 and 8; row 7 has the exact same two column choices. Therefore each row places one 5 into those columns, one in each column. Any other 5 in column 3 or column 8, such as r4c3 and r9c8, is eliminated.

Interactive candidate laboratory

Schematic candidate positions, not a complete Sudoku puzzle. Unshown cells are intentionally omitted: verify all required candidates in a real puzzle before applying the rule.

Fish patterns

The rule to verify

Pick a digit, then inspect each row for exactly two candidate positions. Look for a second row with exactly the same two columns. The four corners define an X-Wing. Eliminate the digit from other cells in those two columns. A column-based X-Wing works symmetrically, eliminating along the two rows.

What changed

The crossed-out 5s in r4c3 and r9c8 share the X-Wing columns but do not belong to its four corners.

Avoid this mistake

A visual rectangle alone is insufficient: each of the two base rows must have no third candidate for the digit. Always verify the complete row candidates before deleting.

Why the elimination follows

Digit 5 has exactly two possible positions in row 2: r2c3 and r2c8. Row 7 has exactly the same two columns, r7c3 and r7c8. If row 2 puts 5 in column 3, row 7 must put 5 in column 8, and vice versa. In either case the two rows occupy both columns with a 5; another candidate 5 at r4c3 or r9c8 can be removed.

Check your reasoning

Can you also delete a 5 in column 4? No. This proof covers only columns 3 and 8. A third legal 5 in either source row invalidates the argument.

Check your understanding

Where does a row-based X-Wing remove candidate 5?

Additional worked reasoning and practice

Choose digit 5. If row 2 has exactly two legal 5 positions at columns 3 and 8, and row 7 has those same two positions, the two rows reserve both columns for 5.

Remove candidate 5 from columns 3 and 8 outside rows 2 and 7. Do not place 5 in any corner until an additional proof identifies the correct position.

Deeper explanation and guided self-check

Prove two aligned candidate positions

Suppose digit 5 has exactly two possible cells in row 2, at columns 3 and 8. If row 7 also has exactly those two column options for 5, the two rows must place their 5s in opposite columns. Consequently any other 5 candidate in column 3 or 8 outside rows 2 and 7 is impossible.

Understand the two possibilities

Either row 2 uses column 3 and row 7 uses column 8, or row 2 uses column 8 and row 7 uses column 3. Both cases occupy those columns, so an extra 5 anywhere else in either column would repeat a digit. You do not need to know which diagonal of the rectangle is true.

Verify the qualifying rows

The chosen rows must have no third candidate for that digit outside the two selected columns. A rectangle drawn on the screen is not sufficient evidence if the notes in one row allow another placement.

Go further: detailed reasoning and practical examples

Count one digit across two rows

Choose a particular digit, say 6. Suppose in row 2 it can appear only in columns 3 and 8, and in row 7 it can appear only in columns 3 and 8. Each row must place exactly one 6. Their two placements must occupy different columns, so those two columns are reserved for the 6s of the two source rows.

Apply the rectangular deduction

Eliminate candidate 6 from other rows in columns 3 and 8. Do not delete 6 from r2c3, r2c8, r7c3 or r7c8; these four source positions define the pattern. You cannot yet say whether row 2 uses column 3 or column 8. A column-first X-Wing works symmetrically with rows and columns exchanged.

Reject a decorative rectangle

Four attractive corner marks do not establish X-Wing if row 2 or row 7 has a third legal 6 somewhere else. Recheck every empty cell in each source row before deleting any candidates. A valid picture must reflect the full candidate map, not only the four highlighted positions.

Illustrative candidate positions are not universal puzzle solutions; verify all constraints on your current board.