Sudoku X-Wing and Beyond: Advanced Techniques Explained
X-Wing, finned X-Wing, swordfish, and empty rectangle are the core advanced techniques that unlock expert and extreme sudoku puzzles once naked/hidden singles and pairs stop making progress — they all work by finding patterns across multiple rows and columns at once, rather than within a single row, column, or box. They're genuinely trickier to spot than basic techniques, but each one follows a specific, learnable pattern.
X-Wing: The Foundation Technique
The pattern: find a candidate number that appears in exactly two cells in each of two different rows, and those four cells align in exactly the same two columns. When this pattern holds, that candidate number must occupy one of the two cells in each row — which means it can be eliminated as a candidate from every other cell in those two columns (outside the X-Wing rows themselves).
Why it works: since the candidate must appear exactly once in each of the two rows, and its only possible positions in each row are those two shared columns, the number is guaranteed to occupy exactly one cell in each of those columns already — anywhere else in those columns is now impossible for that number.
How to spot it: this technique requires complete, accurate pencil marks across the whole grid — it's essentially impossible to spot reliably without them. Look specifically for a candidate that appears in only two cells within multiple rows (or columns), then check if any two of those rows share the exact same two column positions.
The same logic works in reverse too — finding the pattern in columns instead of rows, eliminating candidates from rows instead.
Finned X-Wing: A Looser Variant
The pattern: almost an X-Wing, but one of the rows has the candidate appearing in the usual two aligned columns plus one or two extra cells (the "fin") within the same 3x3 box as one of the X-Wing corners.
Why it still works, with a limitation: the elimination from a finned X-Wing only applies to cells that are visible to (share a box with) the fin — it's a smaller, more limited elimination than a clean X-Wing, but it's still a genuinely useful deduction that a clean X-Wing search would miss entirely.
Swordfish: X-Wing Extended to Three Lines
The pattern: the same basic idea as X-Wing, but spread across three rows and three columns instead of two. A candidate number needs to appear in only two or three cells across three different rows, with all of those cells falling into exactly three shared columns (not necessarily all three rows having the candidate in all three columns — some overlap patterns still qualify).
Why it's harder to spot: swordfish sudoku patterns are considerably rarer and require checking more cells simultaneously than X-Wing, which is why they typically only show up as a necessary technique at extreme difficulty, after X-Wing and simpler techniques have been exhausted.
Empty Rectangle: A Different Kind of Pattern
The pattern: within a single 3x3 box, a candidate number's remaining possible positions all line up along just one row and one column within that box (forming an "L" or rectangle shape when the rest of the box is empty of that candidate). This creates a strong link that can be combined with a candidate elsewhere on the board to eliminate a specific cell.
Why it's useful: the sudoku empty rectangle doesn't require finding a matching pattern across multiple boxes the way X-Wing does — it can sometimes reveal an elimination using just one box's internal candidate pattern combined with a single external cell, making it a genuinely different tool from the line-based techniques above.
Practical Order to Search in When Stuck
- Confirm pencil marks are complete and accurate first — none of these techniques work reliably on incomplete or outdated candidate lists.
- Search for X-Wing patterns across rows, then repeat the search across columns.
- If no X-Wing is found, check for finned X-Wing patterns — slightly more common since the extra fin cell relaxes the strict alignment requirement.
- Search for empty rectangle patterns within individual boxes.
- As a last resort on the hardest puzzles, search for swordfish patterns, since they're rarer and more time-consuming to spot than the other techniques above.
Why These Techniques Feel Hard at First
All four of these techniques share a common trait: they require holding multiple rows or columns in mind simultaneously and comparing candidate positions across them, rather than examining one row, column, or box in isolation the way basic and intermediate techniques do. This is a genuinely different kind of pattern recognition, and it takes real, deliberate practice to get fast at spotting — most solvers find their speed with these techniques improves significantly after working through a dozen or so puzzles that specifically require them.
If you want to practice specifically on puzzles that require these advanced techniques, a sudoku puzzle maker that generates extreme-difficulty grids gives you real opportunities to spot and apply X-Wing, swordfish, and empty rectangle patterns in context, which is a far more effective way to learn them than studying the pattern in isolation.
A Fully Worked X-Wing Example
To make the pattern concrete: imagine the candidate 6 appears in exactly two cells in row 2 (say, columns 3 and 7), and also in exactly two cells in row 8 (also columns 3 and 7 — the same two columns). This is a textbook X-Wing. Since 6 must appear exactly once in row 2 and exactly once in row 8, and its only possible positions in both rows are columns 3 and 7, the 6 is guaranteed to occupy column 3 in one of those rows and column 7 in the other — you don't yet know which row gets which column, but you know with certainty that 6 must fall in columns 3 and 7 across those two rows combined. That means every other cell in column 3 (outside rows 2 and 8) and every other cell in column 7 (outside rows 2 and 8) can safely have 6 eliminated as a candidate, even though you haven't fully solved the pattern itself yet. That is sudoku X wings explained end to end: the shape, the reason it holds, and the eliminations it earns you.
Why These Patterns Feel Invisible at First
New solvers often report a frustrating experience with X-Wing specifically: even after understanding the concept, they simply can't spot it on a real board. This is normal and temporary. The pattern requires comparing candidate positions across the entire grid simultaneously, which is a genuinely different kind of visual search than anything basic or intermediate techniques require — most solvers describe a real "click" moment after working through several puzzles that specifically require X-Wing, where the pattern starts jumping out visually rather than needing to be hunted for methodically. Until that click happens, a systematic approach (picking one candidate number at a time and specifically checking every row for exactly-two-cell occurrences) is more reliable than trying to eyeball the whole board at once.
A Practical Habit for Spotting These Patterns Faster
Rather than scanning the whole board randomly hoping an X-Wing jumps out, experienced solvers often work through candidates systematically, one digit at a time: for each number 1-9, quickly note every row where that number appears as a candidate in exactly two cells, then check whether any two of those rows share the same two column positions. This structured, one-digit-at-a-time approach is slower per attempt than free-form scanning but far more reliable, and it's the approach most solvers gradually speed up through repetition until it becomes close to automatic.
The Mental Shift From Cell-Based to Candidate-Based Thinking
Learning X-Wing and its related techniques often represents a genuine shift in how a solver thinks about the board, worth naming explicitly since it can otherwise feel confusing. Basic and intermediate techniques are fundamentally cell-based: you look at a specific cell and ask what it could be. X-Wing and the other advanced techniques are fundamentally candidate-based: you pick a specific number and ask where it could go across the entire board, tracking its possible positions across multiple rows or columns simultaneously rather than focusing on individual cells. Consciously making this shift — deliberately practicing "where can the number 7 go in this row" scanning rather than "what can this cell be" scanning — is often the single most effective mental adjustment for a solver trying to build genuine comfort with these techniques.
Resources Beyond This Guide for Continued Practice
Once the core concept of X-Wing feels solid, the fastest way to build real speed is simply working through a steady stream of puzzles that specifically require it, since pattern recognition genuinely improves through repeated, deliberate exposure rather than through additional reading alone. A sudoku puzzle maker that lets you generate extreme-difficulty puzzles on demand gives you an effectively unlimited practice supply, which matters since a solver who works through even a dozen X-Wing-requiring puzzles in focused succession typically reports a noticeable jump in how quickly the pattern becomes visible compared to solving them sporadically over a longer stretch of time.
The Wing Family: Y-Wing, XYZ-Wing and W-Wing
The line-based patterns above all track one digit across rows and columns. The wings work differently — they chain two or three cells together through shared candidates, and they often appear in grids where no X-Wing exists at all.
Y-Wing (also called XY-Wing). Three cells, each holding exactly two candidates, arranged as a hinge and two wings. The hinge holds XY, one wing sees the hinge and holds XZ, the other sees the hinge and holds YZ. Whichever value the hinge takes, one of the two wings is forced to become Z — so Z can be eliminated from every cell that sees both wings. That final step is the one people miss: the elimination lands on the cells the two wings share sight of, not on the wings themselves.
XYZ-Wing. The sudoku XYZ-Wing takes the same shape, except the hinge carries three candidates (XYZ) instead of two. Because the hinge itself can also be Z, the elimination is narrower: Z can only be removed from cells that see all three pattern cells. Fewer eliminations, but it fires in positions where a Y-Wing cannot.
W-Wing. Two cells with the identical pair XY, not seeing each other, connected by a row or column in which X appears in only two cells — one seeing each pair cell. That link forces one of the pair cells to be Y, so Y goes from anything seeing both. It is the simplest of the three to verify once you can spot a strong link.
All three depend on complete pencil marks, and all three are worth searching before swordfish, since bi-value cells are far quicker to scan for than three-line patterns.
Skyscraper: The Easiest Advanced Pattern to Learn First
The skyscraper sudoku pattern is single-digit and probably the best entry point into this whole tier of techniques, because it is essentially an X-Wing with one corner out of place.
The pattern. Take a candidate that appears in exactly two cells in each of two different rows. In a true X-Wing, all four cells share the same two columns. In a skyscraper, they share one column and miss on the other — the two odd cells sit in different columns. The shared column is the base; the two mismatched cells are the "roofs."
The elimination. One of the two roof cells must contain the candidate. So any cell that sees both roofs can have that candidate removed. In practice this means checking the boxes the roofs sit in, and any row or column crossing both.
The reason to learn it early is frequency. Near-miss X-Wings occur far more often than exact ones, and most solvers scan straight past them because the pattern fails the strict test. Once you start treating "two rows, two cells each, one column shared" as a hit rather than a miss, you find eliminations in grids that previously looked stuck. The same shape rotated — two columns instead of two rows — works identically.
Finned Swordfish and Sashimi Patterns
Finned X-Wing has a direct extension. A finned swordfish sudoku pattern is a swordfish where one of the three lines carries an extra candidate cell — the fin — that spoils the clean pattern but sits inside the same box as one of the pattern cells.
The logic is the same as any finned pattern. Either the swordfish holds as normal, or the fin is the true placement. Both branches eliminate the candidate from cells that see the fin and would be eliminated by the ordinary swordfish, so the surviving eliminations are the intersection of the two — usually just one or two cells in the fin's box.
A sashimi swordfish is the same idea with a cell missing rather than added: one of the pattern cells that the strict definition requires is absent, but the fin covers the gap, and the same either-or reasoning still produces a valid elimination.
These are genuinely late-stage techniques. They only matter on extreme puzzles that resist everything simpler, and hunting for them speculatively wastes far more time than it saves. The practical habit is to look for a fin only when you have already found a swordfish that fails by exactly one cell — at that point, checking whether the offending cell shares a box with a pattern cell takes about ten seconds and occasionally rescues the grid.
A Realistic Learning Order for Advanced Techniques
Solvers looking for advanced tips for sudoku usually collect techniques faster than they can use them. A search for how to solve sudoku advanced techniques returns a list of a dozen patterns and almost never the order to learn them in. A more productive approach is to take them in order of how often they actually pay off, and to add the next one only once the current one fires on sight.
First: X-Wing and skyscraper. Single-digit, visual, and common. Between them they crack a large share of hard-rated puzzles.
Second: Y-Wing. The first pattern that needs candidate reasoning across three cells rather than digit counting, and the most reliably useful of the wings.
Third: empty rectangle and W-Wing. Both fire in awkward grids where nothing lines up cleanly, and both build on strong links you already understand from the first two stages.
Fourth: swordfish, XYZ-Wing, and the finned or sashimi variants. Rare, expensive to search for, and genuinely necessary only in extreme puzzles.
Two habits matter more than the list itself. Keep pencil marks complete and correct, because every technique here produces a wrong elimination if a single candidate is missing — and a wrong elimination on a hard grid usually is not recoverable. And after each successful elimination, drop straight back to singles and pairs, since one advanced deduction frequently unlocks a run of simple ones. Solvers who chase a second advanced pattern immediately, without re-scanning, do far more work than the puzzle requires.
Frequently Asked Questions
Do I need to know all four of these techniques (X-Wing, finned X-Wing, swordfish, empty rectangle) to solve extreme sudoku? Not necessarily all four for every puzzle — different extreme puzzles are constructed around different required techniques. Knowing X-Wing is the most broadly useful starting point, since it's the most common of the four to be genuinely required.
What's the difference between X-Wing and swordfish? X-Wing works across exactly two rows and two columns; swordfish is the same underlying logic extended across three rows and three columns. Swordfish patterns are rarer and generally only appear as necessary on harder puzzles than those requiring X-Wing alone.
Can these advanced techniques be used on standard difficulty puzzles too, or only extreme ones? They can technically apply to any puzzle where the pattern happens to occur, but on easier puzzles, simpler techniques (naked/hidden singles, pairs) are almost always sufficient to fully solve the grid without ever needing X-Wing or swordfish.
Is there software or a tool that highlights X-Wing and swordfish patterns automatically? Some advanced sudoku solving apps and websites include hint or solver features that can identify these patterns for you, which can be a genuinely useful learning aid — working through several highlighted examples is often the fastest way to build the pattern recognition needed to spot them yourself.
Is there a technique even more advanced than swordfish? Yes — "jellyfish" extends the same X-Wing/swordfish logic across four rows and four columns instead of three, though it's extremely rare in practice and mostly relevant only to the very hardest constructed puzzles.
Do X-Wing and similar techniques have a visual pattern I can look for on the grid itself, not just in candidates? The pattern exists purely in the candidate positions, not in any visual shape of placed numbers on the board, which is exactly why complete, accurate pencil marks are non-negotiable for spotting these techniques reliably.
Can I use online tools to check whether I correctly spotted an X-Wing? Yes — many digital sudoku solvers include a "show technique" or solver-assist feature that can confirm whether a specific elimination you made was valid, which is a useful way to verify your own reasoning while still learning to spot patterns independently.
Do published puzzle books ever label which advanced technique a specific puzzle requires? Some do, especially puzzle collections aimed at solvers actively trying to learn advanced techniques, though many mainstream puzzle books simply provide a difficulty rating without specifying the exact technique needed, leaving discovery up to the solver.
Is there a common mistake beginners make when first attempting to spot X-Wing? Yes — a frequent early error is spotting a candidate appearing in exactly two cells across two rows but forgetting to verify those cells actually fall in the same two columns, which is the specific alignment requirement that makes it a true X-Wing rather than just a coincidental pair of two-candidate rows.
Is there a mnemonic to help remember what makes a pattern a true X-Wing? A simple way to remember it: "two rows, two columns, same spots" — if a candidate appears in exactly two cells per row across two rows, and those cells share the same two column positions, it qualifies.
Can you explain the X wing sudoku technique in plain language? Pick one digit. If it can only go in two cells in one row, and only two cells in another row, and those cells sit in the same two columns, then the digit occupies one cell in each of those columns for certain. That lets you erase it as a candidate everywhere else in both columns.
What is the difference between an X-Wing and a swordfish? Scale only. X-Wing uses two rows and two columns; swordfish uses three of each, and the candidate does not need to appear in every intersection. The reasoning behind both is identical.
When should I use the empty rectangle technique? When one box has all of a digit's remaining candidates confined to a single row and column inside that box, and that digit also has a strong link elsewhere on the board. It is worth checking when line-based patterns have failed, since it needs only one box plus one external link.
What is a Y wing sudoku pattern? Three cells that each hold exactly two candidates: a hinge holding XY, one wing holding XZ, and another holding YZ, with both wings seeing the hinge. Whichever value the hinge takes, one wing is forced to be Z, so Z can be erased from every cell that sees both wings.
What is a W wing sudoku pattern? Two cells holding the identical pair XY that cannot see each other, linked by a row or column in which X appears in only two cells, one seeing each of the pair. That link forces one of the pair to be Y, so Y comes out of anything that sees both.
Which advanced technique should I learn first? Skyscraper, then X-Wing. Both are single-digit patterns you can spot visually, and near-miss X-Wing shapes — which is what a skyscraper is — appear far more often in real puzzles than exact ones.
