Advanced Sudoku Techniques: Master X-Wing, Swordfish & More
Take your sudoku skills to the next level with advanced solving techniques. Learn X-Wing, Swordfish, XY-Wing, and other expert strategies with clear examples.
You've learned the basics. You can spot naked singles, work through hidden pairs, and use box-line reduction without breaking a sweat. But now you're staring at a puzzle that refuses to budge. Every row, column, and box seems locked in a stalemate—and no simple technique can crack it open.
Welcome to the world of advanced Sudoku solving. These techniques are the keys that unlock the hardest puzzles, the ones rated "expert" or "diabolical." They require deeper pattern recognition, careful candidate tracking, and a willingness to think several steps ahead. But don't worry—once you understand the logic behind each method, they become powerful weapons in your solving arsenal.
If you're still building your foundation, check out our guide on beginner Sudoku strategies first. Otherwise, let's dive in.
All advanced techniques require you to work with pencil marks (candidate numbers). Before attempting these methods, make sure every empty cell has its list of possible candidates filled in and fully reduced using basic elimination.
X-Wing: Your First Advanced Weapon
The X-Wing is often the first advanced technique solvers learn, and for good reason—it's visually intuitive once you know what to look for.
How It Works
An X-Wing pattern occurs when a specific candidate number appears in exactly two cells in each of two different rows, and those cells line up in the same two columns. This creates a rectangle (the "X" shape) with the candidate at all four corners.
The logic: If the candidate must go in one of two cells in Row A, and one of two cells in Row B, and these cells share the same two columns, then the candidate must occupy one of two diagonal pairs. Either way, both columns are "claimed" by those rows—so you can eliminate that candidate from all other cells in those two columns.
Step-by-Step Example
Imagine you're tracking the number 7:
- Row 3 has 7 as a candidate in only two cells: Column 2 and Column 8
- Row 7 also has 7 as a candidate in only two cells: Column 2 and Column 8
- This forms an X-Wing rectangle at cells (3,2), (3,8), (7,2), and (7,8)
- Result: Eliminate 7 from every other cell in Column 2 and Column 8
The 7 must be placed in one of two diagonal pairs: either (3,2) and (7,8), or (3,8) and (7,2). Both diagonals fully cover both columns, so no other cell in those columns can hold a 7.
To spot X-Wings more easily, focus on one number at a time. Scan each row for candidates that appear in exactly two positions, then check if another row has that same candidate in the same two columns. Practice this scanning routine and it becomes second nature.
X-Wing Variations
The same logic works when you swap rows and columns. If a candidate appears in exactly two cells in each of two columns, and those cells share the same two rows, you can eliminate that candidate from other cells in those rows. Always look in both directions!
Swordfish: Extending the X-Wing Concept
If X-Wing uses two rows and two columns, the Swordfish takes it a step further: three rows and three columns.
How It Works
A Swordfish pattern forms when a candidate appears in two or three cells across three different rows, and all of those cells fall within the same three columns. The key requirement is that each of the three rows restricts the candidate to at most three specific columns, and collectively, they use exactly three columns.
The logic: Across these three rows, the candidate must be placed in exactly three cells—one per row. Since all possible positions fall within three columns, each column gets exactly one placement. Therefore, you can eliminate that candidate from all other cells in those three columns.
Spotting a Swordfish
- Pick a candidate number (say, 4)
- Find three rows where 4 appears in only two or three cells each
- Check if all positions fall within the same three columns
- If yes, eliminate 4 from all other cells in those three columns
Swordfish patterns can be tricky to spot because not every row needs to have exactly three candidates—some might have only two. The critical rule is that the union of all candidate positions spans exactly three columns. Don't give up if it doesn't jump out immediately; this technique rewards patience.
Beyond Swordfish
This pattern generalizes further. Four rows and four columns? That's a Jellyfish. Five rows and five columns? A Squirmbag (though these are extremely rare in practice). The underlying logic is identical—it's the same fish pattern scaled up.
XY-Wing: The Power of Three Cells
The XY-Wing (also called Y-Wing) is a beautifully elegant technique that uses the relationship between three cells, each containing exactly two candidates.
The Setup
You need three cells—let's call them the pivot and two pincers:
- Pivot cell has candidates X and Y
- Pincer 1 has candidates X and Z (and can "see" the pivot)
- Pincer 2 has candidates Y and Z (and can "see" the pivot)
"Sees" means the cells share a row, column, or box.
The Logic
Think about what happens:
- If the pivot is X → Pincer 1 must be Z (since X is eliminated from it)
- If the pivot is Y → Pincer 2 must be Z (since Y is eliminated from it)
No matter which value the pivot takes, at least one pincer becomes Z. Therefore, any cell that can see both pincers cannot be Z—because one of those pincers will definitely contain Z.
Result: Eliminate Z from any cell that shares a row, column, or box with both Pincer 1 and Pincer 2.
The XY-Wing is one of the most satisfying techniques to execute. That moment when you realize the logical chain guarantees an elimination—regardless of which path the puzzle takes—is pure Sudoku magic.
Finding XY-Wings
- Look for cells with exactly two candidates (bi-value cells)
- Find a cell where both candidates link to other bi-value cells
- Check if those two linked cells share a common candidate (Z)
- Eliminate Z from cells that see both linked cells
Simple Coloring: Tracking Candidates with Colors
Coloring is a powerful technique that uses the binary nature of Sudoku candidates to chain logic across the entire grid.
The Concept
When a candidate appears in exactly two cells within a row, column, or box, those two cells form a conjugate pair—if one is true, the other must be false, and vice versa. Simple Coloring assigns two colors (say, blue and green) to these linked cells to track which ones are "on" and which are "off."
How to Apply It
- Choose a candidate (for example, 5)
- Find a conjugate pair — two cells in a unit where 5 appears in only those two positions
- Color them — make one blue, the other green
- Extend the chain — if the blue cell forms a conjugate pair with another cell, color that new cell green (opposite color). Continue extending
- Look for contradictions or eliminations
Two Key Rules
Rule 1 — Twice in a Unit: If two cells of the same color end up in the same row, column, or box, that color is false (it creates a contradiction). Eliminate the candidate from all cells of that color.
Rule 2 — Two Colors Elsewhere: If an uncolored cell can see both a blue cell and a green cell, the candidate can be eliminated from that uncolored cell. One of the two colors must be true, so that outside cell is blocked either way.
Use colored pencils or highlighters when coloring on paper. In digital Sudoku apps, look for candidate highlighting features. The visual aspect of coloring makes complex logic chains much easier to follow.
Advanced Coloring
Simple Coloring works with a single number across the grid. Multi-Coloring extends this by connecting separate coloring clusters, and 3D Medusa takes it even further by coloring across different candidates within cells. These techniques are extremely powerful but rarely needed outside competition-level puzzles.
When to Use Advanced Techniques
Knowing these techniques is one thing—knowing when to reach for them is another. Here's a practical decision framework:
The Solving Hierarchy
- Start simple — Naked singles, hidden singles, basic pointing pairs
- Intermediate methods — Naked pairs/triples, hidden pairs/triples, box-line reduction
- Advanced techniques — X-Wing, Swordfish, XY-Wing, Coloring
- Expert methods — Chains, Almost Locked Sets, advanced coloring
When to move to the next level: If you've scanned the entire grid with your current level of techniques and made zero progress, it's time to try the next tier. Don't jump to advanced methods before exhausting simpler ones—there's almost always a basic move hiding somewhere.
Many puzzles rated "hard" can actually be solved entirely with intermediate techniques. True advanced techniques are typically needed only for "expert" or "evil" rated puzzles. If you want to learn more about building speed with foundational methods, our guide on how to solve Sudoku faster covers essential time-saving strategies.
Signs You Need Advanced Techniques
- Every cell has three or more candidates remaining
- No naked or hidden singles anywhere on the grid
- Pairs and triples have all been identified
- You've done a full scan and nothing changes
When this happens, don't guess. Instead, systematically work through: X-Wing scan → Swordfish check → XY-Wing search → Coloring chains. One of these will almost always crack the stalemate.
Practice Tips: Developing Pattern Recognition
Advanced techniques aren't just about understanding the logic—they're about training your eyes and brain to spot patterns quickly.
Build Gradually
- Week 1-2: Focus exclusively on X-Wing. Solve puzzles that specifically require it
- Week 3-4: Add Swordfish to your toolkit
- Week 5-6: Practice XY-Wing recognition
- Week 7-8: Learn Simple Coloring
- Beyond: Combine techniques fluidly
Train Your Eyes
- Scan by number: Pick one number and scan all rows/columns for patterns before moving on
- Use pencil marks religiously: Advanced techniques are impossible without complete candidate lists
- Practice bi-value scans: Regularly scan for cells with exactly two candidates—these are goldmines for XY-Wings
- Look for conjugate pairs: When a number appears only twice in a unit, mark it mentally—these feed into both X-Wings and Coloring
Deliberate Practice
The difference between someone who knows advanced techniques and someone who uses them effectively is practice volume. Here's how to make your practice count:
- Solve rated puzzles — Work on puzzles specifically labeled "expert" or "extreme"
- Don't guess — If you can't find a logical move, study the solution to learn what you missed
- Time yourself — Track how long it takes to spot each pattern type, and watch your speed improve
- Review mistakes — When you make an error, trace back to understand which candidate was wrong
Many competitive Sudoku solvers report that after 50-100 puzzles focusing on a single advanced technique, it becomes almost automatic. Your brain develops a "sixth sense" for these patterns—what once took minutes of searching eventually takes seconds.
Use the Right Tools
Practicing on paper is great for learning, but digital tools offer advantages that accelerate your progress. Look for apps that provide:
- Automatic pencil marks (so you can focus on patterns)
- Puzzle difficulty ratings (so you can target the right level)
- Undo/redo (so you can experiment without fear)
- Candidate highlighting (so you can track coloring chains)
Start Mastering Advanced Techniques Today
Every expert Sudoku solver started exactly where you are—knowing the basics and wanting more. The techniques in this guide represent a major leap in solving power. X-Wing and Swordfish handle stubborn candidate eliminations. XY-Wing unlocks puzzles through elegant three-cell logic. And Coloring gives you a systematic way to trace truth across the entire grid.
The secret isn't just understanding these methods—it's practicing them until they become instinct. And for that, you need the right puzzles at the right difficulty level.
Premium Sudoku is designed for exactly this kind of deliberate practice. With puzzles ranging from beginner to expert, automatic candidate tracking, and a clean interface built for focused solving, it's the perfect companion for developing your advanced skills. Download Premium Sudoku today and start turning these techniques into second nature.
Set a daily goal of solving at least one expert-level puzzle using only logic—no guessing allowed. Within a month, you'll be amazed at how naturally you spot X-Wings, Swordfish, and XY-Wings. Every puzzle you solve makes the next one easier.