X-Wing Sudoku Technique: A Step-by-Step Guide
The X-Wing. It sounds like a spaceship from Star Wars, but in sudoku, it's one of the most elegant and powerful advanced techniques you can learn. If basic scanning and naked pairs aren't cutting it anymore, the X-Wing is your next weapon.
Let's break it down step by step.
What Is an X-Wing?
An X-Wing is a candidate elimination technique. It doesn't directly tell you what number goes where — instead, it tells you where a number can't go, which often unlocks the rest of the puzzle.
Here's the setup: you're looking at a single candidate number (let's say 5) across the entire grid. An X-Wing exists when:
- In Row A, the number 5 appears as a candidate in exactly two cells
- In Row B, the number 5 also appears as a candidate in exactly two cells
- These four cells line up to form a rectangle — meaning they share the same two columns
That's your X-Wing. Four cells, two rows, two columns, one candidate number, forming a perfect rectangle.
Why Does It Work?
Think about it logically. Row A needs exactly one 5. That 5 must go in one of the two candidate cells. Same for Row B.
Now, because these cells share columns, only two arrangements are possible:
- Option 1: 5 goes in the top-left and bottom-right corners of the rectangle
- Option 2: 5 goes in the top-right and bottom-left corners
In either case, each of the two columns gets a 5 from one of these four cells. That means no other cell in those two columns can contain 5.
The elimination: Remove 5 as a candidate from every other cell in those two columns (outside the X-Wing rectangle).
A Concrete Example
Let's say you're tracking the number 3 across the grid:
- Row 2: 3 can only go in column 4 or column 8
- Row 7: 3 can only go in column 4 or column 8
That's an X-Wing on 3. The four cells are: R2C4, R2C8, R7C4, R7C8.
Now look at columns 4 and 8. Remove 3 as a candidate from every other cell in those columns. If R5C4 had 3 as a candidate? Gone. If R9C8 had 3? Gone.
These eliminations can cascade into naked singles, hidden singles, or even set up other advanced patterns.
How to Spot an X-Wing
Here's a practical scanning method:
- Pick a number (1-9) and scan it across the grid
- Find rows where that number appears in exactly two cells — highlight or mentally note these rows
- Check if any two such rows share the same two columns — that's your rectangle
- Verify the pattern — make sure the candidate exists in all four corners
You can also scan columns first and eliminate from rows — the X-Wing works in both directions.
Pro tip: X-Wings are most common with numbers that have relatively few remaining placements. If a number already has 5-6 instances placed, the remaining candidates are sparse enough for X-Wing patterns to emerge.
X-Wing vs Other Techniques
Compared to naked pairs: Naked pairs work within a single unit (row, column, or box). X-Wings span two rows and two columns — they see further.
Compared to Swordfish: A Swordfish is an X-Wing's bigger sibling. Same concept, but with three rows and three columns instead of two. If you master X-Wings, Swordfish will make intuitive sense.
Compared to pointing pairs: Pointing pairs bridge a box and a line. X-Wings bridge two lines and two perpendicular lines. Different scope, different eliminations.
Common Mistakes
Missing candidates. If your pencil marks are incomplete, you might not see the X-Wing or, worse, you might "see" one that isn't really there. Always keep pencil marks up to date.
Forgetting it's about elimination. The X-Wing doesn't place any numbers. It eliminates candidates. The payoff comes from what those eliminations enable.
Only scanning rows. Remember, X-Wings can be oriented either way — two rows with shared columns, or two columns with shared rows. Check both directions.
Practice Exercise
Next time you're playing a hard or evil puzzle on SudokuLovers and you get stuck:
- Update all your pencil marks
- Pick the number with the fewest remaining unplaced instances
- List which rows have that number in exactly two cells
- Check for column alignment
Even if you don't find an X-Wing, the disciplined scanning will often reveal other patterns you missed.
Why X-Wings Matter
The X-Wing is a gateway technique. Once you understand how candidate elimination works across multiple rows and columns, you've unlocked a new way of thinking about sudoku. Harder techniques like Swordfish, Jellyfish, and Finned X-Wings all build on the same logic.
More practically, X-Wings are the technique that separates medium players from advanced ones. They appear regularly in hard and evil puzzles and are often the key to breaking through when simpler techniques run out.
Ready to put it into practice? Grab a hard sudoku puzzle and start hunting for rectangles.