How to Use the X-Wing Technique in Sudoku
What is a X-Wing?
In row r1 and row r2, suppose digit d appears as a candidate ONLY in column c1 and column c2. Since row r1 must have a d (in either c1 or c2) and row r2 must have a d (in the opposite column), the digit d is strictly locked into the two diagonal corners of this rectangle. Consequently, digit d cannot appear in any other cell of column c1 or column c2 outside those two rows.
When Should You Look for This Technique?
Look for an X-Wing when you are stuck on Hard or Expert puzzles. Filter or highlight one digit at a time and scan for rows where that digit appears in exactly two positions.
Worked Solver Example with Visual Board Diagram
Rows 2 and 7 form an X-Wing for digit 4 on columns 2 and 8. Either (2,2) and (7,8) are 4, or (2,8) and (7,2) are 4. In either scenario, columns 2 and 8 cannot have any other 4s. Candidate 4 is eliminated from cell (5,2).
Candidate 4 is eliminated from all other cells in columns 2 and 8 outside rows 2 and 7.
Common Beginner Mistakes & Misapplications
Both base rows must contain candidate 4 in EXACTLY two cells. If row 2 has a 4 in column 5 as well, the X-Wing is void.
The two cells in row 1 must share the exact same columns as the two cells in row 2.
Remember: the rows were the base (defining) units; the eliminations occur along the perpendicular columns.
Verified Practice Board
X-Wing on rows 2 and 7 across columns 2 and 8 eliminates candidate 4 from cell (5,2).
Mathematical Sources & Literature
- 1. Exact Cover Constraints and X-WingsReferenceKnuth, D. E. (2000). Dancing Links. Millennial Perspectives.
- 2. The Science Behind SudokuReferenceDelahaye, J. P. (2006). Scientific American, 294(6), 80-87.
- 3. Atelier Game Engine Uniqueness BenchmarksReferenceAtelier Logic Research Group (2026). Solver Engine Specifications.