X-Wing Practice: How to Actually Reach for It in a Solve
An X-Wing appears when a candidate digit exists in exactly two cells in each of two rows, and those cells align in the same two columns; you can then eliminate that digit from other cells in those two columns. This pattern is a powerful intermediate solving strategy that helps clear multiple candidate notes at once. While not as common as simpler methods like [Pointing Pairs](/techniques/pointing-pairs), recognizing it can break open a stalled puzzle. This practice guide will show you how to actively search for the pattern, confirm it, and execute the correct eliminations.
What Exactly Is an X-Wing?
The classic X-Wing is defined by a specific candidate digit's position. You must find two rows where this digit can only go in two cells. Crucially, these four candidate cells must form a perfect rectangle, sharing the same two columns. The same logic works in reverse: look for two columns where the digit is limited to two cells each, and those cells share the same two rows. The power lies in the 'either-or' logic: in each row, the digit must be in one of the two cells. This forces the digit into opposite corners of the rectangle, locking its position in those two columns and allowing you to remove it elsewhere in those columns.
A Step-by-Step Search Pattern
Knowing the definition is one thing, but finding an X-Wing during a solve requires a systematic approach. Don't wait for it to jump out; instead, actively scan for it. Our hint engine finds that players who get stuck often miss this pattern because they don't know where to look.
- Start your search after filling in obvious singles and using simpler techniques like Hidden Pairs.
- Pick one candidate digit at a time and scan the entire grid, mentally noting its possible positions.
- Focus first on rows (or columns) that have only two candidate cells for that digit.
Step 1: Map the Candidate
Begin by selecting a single candidate digit. Look at the entire puzzle and note every cell where this digit is still a possibility, based on the standard Sudoku rules. It helps to visualize or even lightly pencil in all candidates for this one number across the grid to see the full picture.
Step 2: Look for the Rectangle
Now, analyze the candidate positions row by row. You are searching for two rows where this digit appears in exactly two cells. Next, check if these pairs of cells are located in the same two columns. If they are, you have found the foundational rectangle. You can apply the same process by analyzing columns first: find two columns with the digit in exactly two cells, and check if those cells share the same two rows.
Step 3: Confirm and Eliminate
Double-check your rectangle. Ensure the digit has no other possible placements in the two identified rows (for a row-based X-Wing). Once confirmed, the logic is set: the digit must occupy one of the two cells in each row, which forces it into those two columns. You can now safely eliminate this digit as a candidate from all other cells in those two columns. For a column-based X-Wing, eliminate from the other cells in the two identified rows.
Worked Example 1: Row-Based X-Wing
Let's trace a row-based X-Wing for the digit 5. Assume candidate analysis shows that in Row 2, the digit 5 can only appear in R2C3 and R2C8. In Row 8, the digit 5 can only appear in R8C3 and R8C8. Notice the pattern? The candidate cells are in columns 3 and 8 for both rows. This forms the X-Wing rectangle: corners at R2C3, R2C8, R8C3, and R8C8. Because 5 must be in one of the two spots in Row 2 and one of the two in Row 8, it is locked into columns 3 and 8. Therefore, you can eliminate 5 as a candidate from every other cell in Column 3 and Column 8.
Worked Example 2: Column-Based X-Wing
Now examine a column-based pattern for the digit 3. Analysis reveals that in Column 4, 3 is possible only in R1C4 and R9C4. In Column 9, 3 is possible only in R1C9 and R9C9. The cells share rows 1 and 9, forming the rectangle. The logic locks the digit 3 into rows 1 and 9. Consequently, you can eliminate 3 from all other cells in Row 1 and Row 9. This is the column-based equivalent of the technique.
Practice Drills and Common Pitfalls
The best way to internalize this technique is through targeted practice. Start with puzzles known to contain X-Wings, often rated 'Hard' or higher. Focus your drills on one digit at a time. A common mistake is finding two rows with the digit in two cells, but the columns don't align perfectly. That is not an X-Wing. Also, an X-Wing can technically exist within a single 3x3 box if the two rows and columns are adjacent, though this is rare and less useful for eliminations within that box. The most powerful eliminations usually happen outside the boxes containing the X-Wing corners.
- Use the 'Candidate Highlight' feature on SudokuHint.com to isolate one digit and make the pattern visually obvious.
- If you find a possible rectangle, always check the involved rows/columns for any other candidate cells you might have missed before eliminating.
Key Facts
- ▪An X-Wing is a Sudoku solving pattern involving four cells that form a rectangle across two rows and two columns.
- ▪The pattern requires a single candidate digit to appear in exactly two cells in each of two rows, with those cells sharing the same two columns.
- ▪The core deduction allows you to eliminate that candidate digit from all other cells in the two columns that form the rectangle's sides.
- ▪The pattern also works in reverse: two columns each with the digit in two cells that share the same two rows, allowing eliminations in those rows.
- ▪X-Wing logic relies on an 'either-or' scenario: the digit must go in one of two positions in a row, forcing it into specific columns.
- ▪It is considered an intermediate technique, typically used after simpler methods like singles, pairs, and pointing techniques.
- ▪The pattern can sometimes appear within a single 3x3 box, but this is uncommon and often provides fewer useful eliminations.
- ▪Consistently using R#C# notation (e.g., R2C3) helps avoid confusion when identifying and discussing X-Wing cell positions.
Frequently Asked Questions
When should I look for an X-Wing?
Search for an X-Wing after you have applied all basic techniques, like singles and Pointing Pairs. It becomes necessary when the puzzle stalls and you need to clear multiple candidate notes at once.
Can an X-Wing exist in just one box?
Technically yes, if the two rows and two columns are adjacent and all four cells fall within one 3x3 box. However, this configuration is rare and often less useful for making eliminations outside that box.
What's the difference between row-based and column-based?
The logic is identical, just rotated. Row-based: find two rows with the digit in two shared columns, eliminate from those columns. Column-based: find two columns with the digit in two shared rows, eliminate from those rows.
How do I avoid false X-Wings?
Always verify that the candidate digit has exactly two possible cells in each of the two rows (or columns). If there is a third possible cell in any of those lines, the pattern is invalid.