The X-Wing Technique Explained (with Examples)
The X-Wing is the technique that separates intermediate Sudoku solvers from advanced ones. It’s the point where you go from “this puzzle feels impossible” to “I see it.” Once you learn X-Wing, a whole category of hard puzzles becomes tractable — and the logic is elegant once you see why it works.
This guide explains the X-Wing pattern from first principles, walks you through spotting it, and gives you worked examples so you can recognize it on sight.
What Problem X-Wing Solves
Before X-Wing, you can use naked singles, hidden singles, pointing pairs, and naked pairs. These techniques work by finding where a digit must go within a single house (row, column, or box).
X-Wing works differently: it reasons across two rows and two columns simultaneously to force an elimination. It doesn’t tell you where a digit goes — it tells you where a digit cannot go. That elimination then unlocks other techniques.
The X-Wing Pattern
The setup: Pick a candidate digit — let’s say digit 5. Examine every row in the grid. For some rows, digit 5 can go in many cells. For others, it can only go in exactly two cells.
Find two rows where digit 5 can only go in exactly two cells each — and the two candidate cells in both rows fall in the exact same two columns.
Those four cells form a rectangle. Label the corners:
Col A Col B
Row 1: [5?] [5?]
Row 2: [5?] [5?]
Now think about what must happen. Digit 5 must appear exactly once in Row 1 and exactly once in Row 2. Its only options in Row 1 are Col A or Col B. Same for Row 2.
Two outcomes are possible:
- Row 1 gets 5 in Col A, Row 2 gets 5 in Col B.
- Row 1 gets 5 in Col B, Row 2 gets 5 in Col A.
In both cases: Col A gets exactly one 5 (from one of the two rows) and Col B gets exactly one 5 (from the other row). The digit 5 is “used up” in those two columns by those two rows.
The elimination: Any other cell in Col A or Col B (outside Rows 1 and 2) cannot contain digit 5. Remove 5 as a candidate from every other cell in those two columns.
How to Find X-Wings: Step-by-Step
-
Pick a digit — start with digits that appear 5–7 times already. Fewer remaining placements means fewer candidate cells, which makes X-Wings more likely.
-
Scan each row for that digit’s candidate cells. Write down or mentally note which rows have exactly 2 candidate cells.
-
Compare columns. For each pair of “2-candidate” rows, check if the candidate cells share the same two columns. If they do, you have an X-Wing.
-
Eliminate. Remove the digit as a candidate from every other cell in those two columns (outside the two X-Wing rows).
-
Column-first X-Wings work identically in reverse: find two columns where the digit appears in exactly two rows each, and those rows are the same. Eliminate from those two rows.
Worked Example
Suppose we’re tracking digit 7. We’ve noted the following candidate positions:
- Row 2: cells at (Row 2, Col 3) and (Row 2, Col 7) — only two positions for 7.
- Row 6: cells at (Row 6, Col 3) and (Row 6, Col 7) — only two positions for 7.
Both rows share the same columns (Col 3 and Col 7). X-Wing confirmed.
What we know: Digit 7 in Row 2 lands in either Col 3 or Col 7. Same for Row 6. Together they fill Col 3 and Col 7 with exactly one 7 each.
Elimination: Remove 7 as a candidate from every other cell in Col 3 and Col 7. That means:
- Rows 1, 3, 4, 5, 7, 8, 9 in Col 3 → remove 7 as a candidate.
- Rows 1, 3, 4, 5, 7, 8, 9 in Col 7 → remove 7 as a candidate.
After this elimination, you may find naked singles or hidden singles that unlock further progress.
Common Mistakes
Mistake 1: One row has more than two candidate cells.
The X-Wing requires exactly two candidate cells per row (or column). If one row has three possible positions for the digit, there’s no X-Wing — the rectangle breaks.
Mistake 2: Columns don’t match.
Both rows must use the same two columns. If Row 2 has 7 in cols 3 and 7, but Row 6 has 7 in cols 3 and 8 — no X-Wing.
Mistake 3: Eliminating from the wrong cells.
You eliminate from all other cells in the two columns (when rows form the X-Wing). Don’t eliminate from the rows — the X-Wing cells themselves live in those rows.
Mistake 4: Forgetting the column-based version.
If row-based X-Wing doesn’t yield results, try scanning columns for the same pattern (two columns sharing exactly two rows of candidates).
When to Look for X-Wings
X-Wing is worth checking after you’ve exhausted:
- Naked and hidden singles
- Pointing pairs and box-line reduction
- Naked pairs and triples
If the puzzle is still stuck and feels like “hard” or “expert” difficulty, systematically check each digit for the X-Wing pattern. Start with digits that appear 6–8 times already (few remaining placements).
A full X-Wing scan takes about 2–3 minutes when you’re learning. With practice, pattern recognition makes it a 30-second check.
Beyond X-Wing: What Comes Next
X-Wing is the three-of-a-kind of Sudoku techniques. Once it clicks, you can tackle related patterns:
- Swordfish — the three-row (three-column) version of X-Wing. Three rows, three columns, same logic.
- Jellyfish — four rows and four columns. Rare, but decisive.
- Y-Wing (XY-Wing) — a chain of three bivalue cells that forces an elimination. More flexible than X-Wing, doesn’t require rectangular alignment.
These are covered in full in the complete Sudoku solving guide.
Frequently Asked Questions
Q: Is the X-Wing named after the Star Wars fighter?
The resemblance is intentional — the four candidate cells form an “X” shape on the grid, and the name stuck in the Sudoku community. No official etymology exists.
Q: Can X-Wing place a digit directly?
No. X-Wing is an elimination technique, not a placement. It removes a candidate from other cells, which then enables placement techniques (naked or hidden singles).
Q: What if I have three rows with exactly two candidate cells?
Check if all three rows’ candidate cells span exactly three columns — that would be a Swordfish, an even more powerful pattern.
Q: Does X-Wing work in a column-first orientation?
Yes. Column-based X-Wing: find two columns where the digit appears in exactly two rows each, and those two rows are the same. Eliminate the digit from all other cells in those two rows.
Q: How do I know if a puzzle requires X-Wing?
”Hard” rated Sudoku puzzles frequently need at least one X-Wing or similar advanced technique. If you’ve applied all intermediate techniques and are stuck, check for X-Wing on each digit systematically.
What to Try Next
- How to Solve Sudoku: Complete Guide — Full technique ladder including Swordfish, Y-Wing, and beyond.
- Naked Singles and Hidden Singles: Sudoku’s Foundation — Strengthen the fundamentals X-Wing builds on.
- Sudoku for Beginners: 5 Simple Rules — Start here if you’re newer to the game.
- How to Solve Logic Grid Puzzles — A different style of logic puzzle with similar elimination thinking.
Puzzmint is a calm, ad-free daily logic puzzle hub. Try today’s Sudoku →