The X-Wing has an intimidating name that makes many casual Sudoku players think it belongs only in championship tournaments. In reality, the X-Wing is one of the cleanest, most visual patterns in all of logic puzzling. Unlike Naked Pairs or Hidden Pairs—which juggle two different numbers inside a single row, column, or box—an X-Wing focuses on one single candidate digit at a time across a rectangle of four intersections.
When you are stuck on a Hard Sudoku grid and basic pair eliminations have dried up, learning to spot an X-Wing takes less than thirty seconds per digit and frequently cracks the toughest bottleneck on the board.
The Core Logic Behind an X-Wing
Every row and every column in Sudoku must contain each digit from 1 to 9 exactly once. Suppose you are tracking the candidate digit 7:
- In Row 2, candidate
7appears in only two cells: Column 3 and Column 8. - In Row 7, candidate
7also appears in only two cells, and they happen to line up in the exact same two columns: Column 3 and Column 8.
Together, those four cells—R2C3, R2C8, R7C3, and R7C8—form the four corners of a rectangle. If you draw diagonal lines connecting the opposite corners of that rectangle, they form an "X" across the grid, giving the X-Wing its name.
ASCII Diagram: A Row-Based X-Wing on Digit 7
In the diagram below, [7] marks cells where 7 is a candidate (alongside other pencil notes). Notice how Row 2 and Row 7 restrict 7 strictly to Columns 3 and 8:
Col 1 Col 2 Col 3 Col 4 Col 5 Col 6 Col 7 Col 8 Col 9
Row 1 . . [7]x . . . . . .
Row 2 . . (7)=====.======.======.======.=====(7) . <-- Base Row A
Row 3 . . . . . . . [7]x .
Row 4 . . [7]x . [7] . . . .
Row 5 . . . . . . . . .
Row 6 . . . . . . . [7]x .
Row 7 . . (7)=====.======.======.======.=====(7) . <-- Base Row B
Row 8 . . [7]x . . . [7] . .
Row 9 . . . . . . . . .
^ ^
Cover Col 3 Cover Col 8
Legend: (7) = X-Wing Corner | [7]x = Eliminated 7s in Col 3 & Col 8
Why the Diagonal "X" Locks Both Columns
Because Row 2 and Row 7 each need a 7, and neither two-corner pair can share the same column, there are only two valid ways to place 7 into our four rectangle corners:
- Diagonal A (Top-Left & Bottom-Right):
R2C3 = 7andR7C8 = 7. - Diagonal B (Top-Right & Bottom-Left):
R2C8 = 7andR7C3 = 7.
Notice what is true in both scenarios: one corner of the X-Wing supplies the 7 for Column 3, and the opposite corner supplies the 7 for Column 8! Therefore, no other cell anywhere in Column 3 or Column 8 can ever be a 7. We can immediately erase candidate 7 from R1C3, R4C3, R8C3, R3C8, and R6C8.
- If the digit is restricted to 2 spots in each of two Rows (the Base Sets), you eliminate that digit from the rest of the two Columns (the Cover Sets).
- If the digit is restricted to 2 spots in each of two Columns (the Base Sets), you eliminate that digit from the rest of the two Rows (the Cover Sets).
Column-Based X-Wing: Flipping the Pattern 90 Degrees
Many players learn row-based X-Wings and forget to check columns. A column-based X-Wing works identically, just rotated 90 degrees:
Col 2 (Base) Col 6 (Base)
Row 3 (4) . [4]x . [4]x (4) . [4]x <-- Eliminate other 4s in Row 3
| |
Row 5 | . . . . | . .
| |
Row 9 (4) . . [4]x . (4) . [4]x <-- Eliminate other 4s in Row 9
Here, Column 2 only allows digit 4 in Row 3 and Row 9. Column 6 also only allows digit 4 in Row 3 and Row 9. Because Columns 2 and 6 are our locked base sets, Row 3 and Row 9 receive their 4s from the X-Wing corners—meaning every other [4] across Row 3 and Row 9 is eliminated.
Step-by-Step Routine to Spot X-Wings Fast
Do not stare at the entire 81-cell grid hoping a rectangle will magically jump out at you. Instead, run this systematic 4-step scan whenever a Hard puzzle stalls:
- Pick a single unsolved digit (start with
1and work up to9). In PuzPets Sudoku, clicking any placed number highlights all matching instances on the board. - Count candidate positions per row: Scan Rows 1 through 9 and mentally note any row where your target digit appears in exactly two cells (these are called conjugate pairs).
- Check column alignment: If two different rows both have exactly two candidates for that digit, check if their columns match. If Row A has candidates in Columns 1 & 5, and Row B also has candidates in Columns 1 & 5, you have found a row-based X-Wing!
- Repeat for columns: If no two rows align, count candidate positions down Columns 1 through 9. Find any two columns with exactly two candidates in the same two rows, and clear the rest of those two rows.
Common X-Wing Mistakes and False Positives
- Eliminating along the Base Set instead of the Cover Set: If Row 2 and Row 7 each have only two
7s, there are no other7s in Row 2 or Row 7 to eliminate! If you find yourself erasing7s from Row 2, that means Row 2 actually had three or four7s—meaning it was not a valid Base Row, and your X-Wing is actually a Column-based X-Wing (or invalid). - Ignoring a 3rd candidate in the Base Row: If Row 2 has candidate
7in Col 3 and Col 8, and Row 7 has candidate7in Col 3, Col 5, and Col 8, that is not an X-Wing. The extra candidate in R7C5 breaks the locked rectangle because R7C5 could hold the7for Row 7. - Confusing Four-in-Two-Boxes with an X-Wing: Always verify that the two base lines truly have zero other candidates for that digit across all nine cells of the line.
❓ Frequently Asked Questions (FAQ)
Can an X-Wing have other pencil-note digits inside its four corner cells?
Yes! Almost all X-Wing corner cells contain two, three, or even four different candidate digits (for example [2, 7, 9]). What matters is that the target digit (7) appears nowhere else along the two Base Rows (or Base Columns).
Does an X-Wing have to span across four different 3×3 boxes?
Usually an X-Wing spans four different 3×3 boxes, though technically two of its corners can share a 3×3 box. However, when two corners share a box, a simpler Box-Line Reduction (Pointing Pair) will make the exact same eliminations.
What if three rows each restrict a digit to the same three columns?
That pattern is called a Swordfish—the 3×3 big brother of the 2×2 X-Wing! If three rows restrict a digit to at most three shared columns, you can eliminate that digit from all other cells in those three columns.
Why did my X-Wing not eliminate any candidates?
Sometimes a valid X-Wing forms on the board, but all other cells in the two Cover Columns already had that digit eliminated earlier by basic row/box rules. The X-Wing is still logically true, just already exhausted—move on to scanning the next digit.
Do Easy or Medium Sudoku puzzles ever require an X-Wing?
No. Easy and Medium puzzles can always be solved with Singles, Pairs, and Box-Line interactions. X-Wings only become necessary on Hard and Expert grids.