X-Wing, Swordfish & Beyond: Master These 6 Advanced Sudoku Techniques
Introduction
You've mastered the basics. You can solve easy and medium Sudoku puzzles without breaking a sweat. But when you try a "Hard" or "Expert" puzzle, you hit a wall. Scanning and singles only get you so far, and then... nothing.
This is where advanced Sudoku techniques come in.
These strategies might sound intimidating—X-Wing? Swordfish? XY-Wing?—but they're simply patterns that allow you to make logical eliminations when basic techniques fail. Once you learn to recognize them, hard puzzles become challenging but solvable.
In this guide, we'll cover 6 essential advanced techniques, ranked from easiest to hardest. Each includes:
- Clear explanation of the pattern
- Visual examples
- When to use it
- Practice puzzles
Let's dive in!
Technique #1: Naked Pairs (Difficulty: ★★☆☆☆)
What It Is
When two cells in the same row, column, or box can ONLY contain the same two numbers, those two numbers can be eliminated from all other cells in that unit.
The Pattern
Example in a Row:
Row 5: [1] [2,7] [3] [2,7] [8] [6] [?] [?] [?]
↑ ↑
Naked Pair
Cells 2 and 4 can ONLY be 2 or 7. This means:
- Cell 2 is either 2 or 7
- Cell 4 is either 7 or 2
- Therefore, no other cell in Row 5 can be 2 or 7
Result: You can eliminate 2 and 7 from the pencil marks in cells 7, 8, and 9.
When to Use It
Use Naked Pairs when:
- You have a row/column/box with many pencil marks
- You spot two cells with identical 2-number candidates
- You're stuck and basic techniques aren't working
Step-by-Step Process
- Scan each row, column, and box for cells with exactly 2 candidates
- Look for two cells with the SAME pair of candidates
- Eliminate those two numbers from all other cells in that unit
- Check if any cells now have only 1 candidate (solved!)
Practice Example
Box 5 (center box):
+----------+----------+----------+
| [4,8] | [1] | [5] |
| [4,9] | [4,8] | [6] |
| [2] | [3] | [7] |
+----------+----------+----------+
Question: Which cells form a Naked Pair? Answer: Cells (1,1) and (2,2) both contain [4,8]. Therefore, eliminate 4 from cell (2,1), leaving it as [9].
Technique #2: Hidden Pairs (Difficulty: ★★★☆☆)
What It Is
When two numbers can ONLY appear in two specific cells within a row, column, or box (even if those cells have other candidates), those cells must contain those two numbers, and all other candidates can be eliminated.
The Pattern
Example in a Column:
Column 3:
Cell 1: [2, 5, 6]
Cell 2: [3, 7]
Cell 3: [2, 5, 8]
Cell 4: [1]
Cell 5: [3, 7]
Cell 6: [4]
Cell 7: [9]
Cell 8: [3, 7]
Cell 9: [3, 7]
Looking at where 5 and 6 can go:
- 5 can only be in cells 1 or 3
- 6 can only be in cells 1 or 3
- Therefore, cells 1 and 3 MUST contain 5 and 6
Result:
- Cell 1 becomes [5, 6] (remove 2)
- Cell 3 becomes [5, 6] (remove 2 and 8)
When to Use It
Use Hidden Pairs when:
- You've exhausted Naked Pairs
- Cells have many candidates (3-5 numbers)
- You notice two numbers that only appear in two cells
How to Spot It
- Pick two numbers (e.g., 3 and 7)
- See where they can go in a row/column/box
- If both numbers can ONLY go in the same two cells, you found a Hidden Pair
- Remove all other candidates from those two cells
Practice Example
Row 7:
Cell 1: [1, 4, 6]
Cell 2: [2, 4, 6]
Cell 3: [3]
Cell 4: [5]
Cell 5: [8]
Cell 6: [9]
Cell 7: [1, 7]
Cell 8: [1, 7]
Cell 9: [4, 6]
Question: Which numbers form a Hidden Pair? Answer: Numbers 1 and 7 can only appear in cells 7 and 8. Therefore, cells 7 and 8 become [1, 7].
Technique #3: Pointing Pairs (Difficulty: ★★★☆☆)
What It Is
When a candidate number in a box can only appear in one row or column, you can eliminate that number from the rest of that row/column outside the box.
The Pattern
Example:
Box 1:
+-------+-------+-------+
| 5 3 | [2,4] | ... |
| 6 2 | [2,4] | ... |
| 1 9 | 8 | ... |
+-------+-------+-------+
Looking at where 4 can go in Box 1:
- 4 can only be in cells (1,3) or (2,3)
- Both possibilities are in COLUMN 3
Result: Eliminate 4 from all other cells in Column 3 (outside Box 1).
When to Use It
Use Pointing Pairs when:
- A number can only appear in 2-3 cells within a box
- Those cells are aligned in the same row or column
- That row/column extends outside the box
How to Apply
- Look at one box
- Pick a candidate number
- Find where it can go in that box
- If all possibilities are in one row/column, eliminate that number from the rest of that line
Technique #4: Box/Line Reduction (Difficulty: ★★★☆☆)
What It Is
The reverse of Pointing Pairs. When a number in a row/column can only appear within one box, eliminate it from the rest of that box.
The Pattern
Example:
Row 1: [?] [?] [?] | [3,7] [3,7] [9] | [1] [2] [8]
↑ Candidates in Box 2
Looking at where 7 can go in Row 1:
- 7 can only be in cells (1,4) or (1,5)
- Both possibilities are in BOX 2
Result: Eliminate 7 from all other cells in Box 2 (outside Row 1).
When to Use It
Use Box/Line Reduction when:
- Scanning a row/column
- A candidate only appears in one box within that line
- That box contains other unsolved cells
Technique #5: X-Wing (Difficulty: ★★★★☆)
What It Is
When a candidate number forms a rectangular pattern across two rows and two columns, you can eliminate that number from other cells in those columns (or rows, depending on orientation).
The Pattern
Example (Row-based X-Wing):
Grid positions where 5 can appear:
Col 2 Col 7
Row 1: ✓ ✓
Row 2: - -
Row 3: - -
Row 4: ✓ ✓
Row 5: - -
In Row 1, 5 can only be in columns 2 or 7. In Row 4, 5 can only be in columns 2 or 7.
Logic:
- If 5 goes in (Row 1, Col 2), then 5 must go in (Row 4, Col 7)
- If 5 goes in (Row 1, Col 7), then 5 must go in (Row 4, Col 2)
- Either way, columns 2 and 7 are "occupied" by 5 in rows 1 and 4
Result: Eliminate 5 from all OTHER cells in columns 2 and 7.
When to Use It
Use X-Wing when:
- You're stuck and simpler techniques don't work
- A number appears in exactly 2 positions in two different rows
- Those positions align in two columns (forming a rectangle)
How to Spot It
- Pick a candidate number (e.g., 7)
- Find two rows where 7 appears in exactly 2 cells each
- Check if those cells align in the same two columns
- If yes: eliminate 7 from other cells in those columns
Visualization
Think of it as four corners of a rectangle:
A-------B
| |
| |
C-------D
If the number can only be at these four points in its rows/columns,
then the columns (or rows) are "locked."
Practice Example
Where can 9 go?
C2 C3 C4 C5 C6 C7
R1: - ✓ - - - ✓
R2: - - ✓ - ✓ -
R3: ✓ - - ✓ - -
R4: - ✓ - - - ✓
Question: Is there an X-Wing pattern? Answer: Yes! Rows 1 and 4 both have 9 in columns 3 and 7 only. Eliminate 9 from other cells in columns 3 and 7.
Technique #6: Swordfish (Difficulty: ★★★★★)
What It Is
Swordfish is like X-Wing, but with three rows and three columns instead of two. It's rare but powerful.
The Pattern
Example (Row-based Swordfish):
Where can 6 go?
C1 C4 C8
R2: ✓ ✓ -
R5: ✓ - ✓
R8: - ✓ ✓
In rows 2, 5, and 8, the number 6 can only appear in columns 1, 4, or 8 (not necessarily all three in each row, but confined to those three columns).
Result: Eliminate 6 from all OTHER cells in columns 1, 4, and 8.
When to Use It
Use Swordfish when:
- You're solving Expert-level puzzles
- X-Wing didn't help
- You notice a pattern across three rows or columns
How to Spot It (Simplified)
- Pick a candidate number
- Find three rows where that number appears in 2-3 cells each
- Check if ALL occurrences are confined to the same three columns
- If yes: eliminate the number from other cells in those columns
Note: Swordfish is rare. Don't actively look for it until you've exhausted simpler techniques.
Bonus Technique: XY-Wing (Difficulty: ★★★★★)
What It Is
XY-Wing involves three cells forming a "Y" shape with specific candidate patterns. It's one of the most elegant advanced techniques.
The Pattern
You need:
- Pivot cell: Contains candidates [X, Y]
- Wing cell 1: Contains [X, Z] and "sees" the pivot
- Wing cell 2: Contains [Y, Z] and "sees" the pivot
Logic:
- If pivot = X, then Wing 2 = Z
- If pivot = Y, then Wing 1 = Z
- Either way, any cell that "sees" both wings CANNOT be Z
When to Use It
Use XY-Wing when:
- You're solving very hard puzzles
- You have many cells with exactly 2 candidates
- X-Wing and Swordfish don't apply
Visual Example
Pivot: [4,7] Wing 1: [4,9]
| /
| /
| /
Wing 2: [7,9]
Any cell that sees BOTH Wing 1 and Wing 2 cannot be 9.
Putting It All Together: Your Solving Flowchart
When stuck on a hard puzzle, follow this sequence:
Level 1: Basic Techniques
- Scan for Naked Singles (cell with one candidate)
- Scan for Hidden Singles (number with one position in a unit)
- Update all pencil marks
Level 2: Intermediate Techniques
- Look for Naked Pairs
- Look for Hidden Pairs
- Check for Pointing Pairs
- Check for Box/Line Reduction
Level 3: Advanced Techniques
- Scan for X-Wing patterns
- Look for Swordfish (rare)
- Try XY-Wing (very advanced)
Level 4: Reset
- Take a break
- Audit pencil marks for errors
- Verify recent placements
Pro Tip: You won't need Swordfish or XY-Wing in 90% of puzzles. Master Naked/Hidden Pairs and X-Wing first—those will take you very far!
Practice Puzzles by Technique
Puzzle 1: Naked Pairs
[Insert puzzle specifically designed to require Naked Pairs]
Puzzle 2: Hidden Pairs
[Insert puzzle specifically designed to require Hidden Pairs]
Puzzle 3: X-Wing
[Insert puzzle specifically designed to require X-Wing]
Tip: The sites listed in Additional Resources below provide practice puzzles with integrated hint systems that show you which technique to use next.
Technique Difficulty Ratings
| Technique | Difficulty | Frequency | Impact |
|---|---|---|---|
| Naked Pairs | ★★☆☆☆ | Very Common | Medium |
| Hidden Pairs | ★★★☆☆ | Common | Medium |
| Pointing Pairs | ★★★☆☆ | Common | Low-Medium |
| Box/Line Reduction | ★★★☆☆ | Common | Low-Medium |
| X-Wing | ★★★★☆ | Occasional | High |
| Swordfish | ★★★★★ | Rare | High |
| XY-Wing | ★★★★★ | Rare | High |
Common Questions
"How do I know which technique to use?"
Start simple and work your way up. Always try basic techniques first. Only move to advanced techniques when you're truly stuck.
"I understand the theory, but I can't spot these patterns in real puzzles."
This is normal! Pattern recognition takes practice. Try:
- Solving puzzles specifically designed to teach one technique
- Using online solvers with "hint" features that explain which technique to use
- Annotating 5-10 puzzles with the techniques you used
"Do I need to memorize all these?"
No! Even expert solvers keep a reference guide handy. Focus on:
- Recognizing when simpler techniques are exhausted
- Knowing which advanced technique to try next
- Applying it correctly once you've identified it
"How long until I can spot X-Wings naturally?"
Most solvers can spot X-Wings after solving 50-100 hard puzzles. Swordfish might take 200+ puzzles. Be patient—your brain is learning to recognize patterns subconsciously.
Conclusion
Advanced Sudoku techniques aren't about being "smart"—they're about pattern recognition. The more puzzles you solve, the faster you'll spot these patterns.
Start here:
- Master Naked Pairs first (easiest and most common)
- Practice Hidden Pairs next
- Learn X-Wing when you're comfortable with Pairs
- Explore Swordfish and XY-Wing only for Expert puzzles
Remember: Even world-class Sudoku solvers use these techniques every day. Learning them doesn't make puzzles "easy"—it makes them solvable.
Ready to practice? The resources in the Additional Resources section below offer interactive examples and comprehensive technique guides to help you master these patterns.
Related Articles:
- The Complete Beginner's Guide to Sudoku: From Zero to Your First Solved Puzzle
- 7 Common Sudoku Mistakes (And How to Fix Them)
- Stuck on a Puzzle? The Strategic Approach to Breaking Through Sudoku Roadblocks
Additional Resources
For more in-depth information on advanced Sudoku techniques, these authoritative sites offer comprehensive guides:
- SudokuWiki.org - X-Wing Strategy - Detailed explanation with interactive examples
- SudokuWiki.org - Swordfish Strategy - Advanced pattern recognition guide
- SudokuOnline.io - Advanced Strategies - Six advanced techniques explained
- Hodoku.de - Solving Techniques - Comprehensive technique database
- Conceptis Puzzles - Sudoku Techniques - Step-by-step solving methods