Advanced Sudoku Techniques: X-Wing, Swordfish & More

You’ve mastered intermediate techniques like Naked Pairs and Pointing Pairs. Now it’s time for the big leagues. These advanced techniques are what you need to conquer Expert and Master level puzzles. They require looking at the grid from a higher level — scanning multiple rows and columns simultaneously for patterns.

Technique 1: X-Wing

Advanced

The X-Wing is one of the most important advanced techniques. It involves a digit that appears as a candidate in exactly two cells in each of two rows, and those cells are aligned in the same two columns. This forms a rectangle pattern (the “X” comes from the two possible solutions crossing).

1 How to spot an X-Wing

Pick a digit (say, 5). Scan all rows. If you find exactly two rows where 5 appears as a candidate in only two cells, and those cells share the same two columns, you’ve found an X-Wing. Since 5 must appear in both those rows, and can only go in those two columns, 5 is “locked” into those four cells. You can now eliminate 5 from all other cells in those two columns.

Why it works: In row A, digit 5 must go in either column 3 or column 7. In row D, digit 5 must also go in either column 3 or column 7. These are the only possibilities. Since one 5 must be in column 3 and one in column 7 (they can’t both be in the same column), no other cell in columns 3 or 7 can be 5.

The X-Wing also works in the transposed direction: if a digit appears in exactly two cells in each of two columns, and those cells share the same two rows, eliminate that digit from other cells in those rows.

Example: X-Wing on digit 5
3
6
5
8
4
7
1
9
2
5
5
6
3
9
3
7
1
7
9
5
5
1
9
4
7
8
4
3
2
1

Yellow cells form the X-Wing: digit 5 can only appear in these four cells across rows 3 and 7. Blue cells in columns 2 and 8 can have candidate 5 eliminated.

Technique 2: Swordfish

Advanced

Swordfish extends the X-Wing concept from two rows/columns to three. When a digit appears as a candidate in 2–3 cells across three rows, and all those candidates are confined to the same three columns, you can eliminate that digit from other cells in those three columns.

2 How to spot a Swordfish

For a given digit, look for three rows where the candidate appears in at most three cells, and all those cells fall within the same three columns. The pattern forms a 3×3 grid of possible positions. Since the digit must appear in each of the three rows, and can only go in those three columns, the digit is locked into those nine cells (at most). Eliminate it from other cells in those columns.

Swordfish is harder to spot than X-Wing because you’re tracking more cells. The key is to focus on one digit at a time and count how many rows/columns it can appear in.

Example: Swordfish on digit 8
8
8
8
8
8
8
8
8
8

Yellow cells show the three-row Swordfish for digit 8. The candidate 8 is confined to rows 2, 5, and 8 within columns 2, 5, and 8, so the blue cells in those same columns lose candidate 8.

Technique 3: Unique Rectangle

Advanced

Unique Rectangle relies on a fundamental property of well-constructed Sudoku puzzles: there is exactly one solution. If you find a pattern that would create two solutions, one of those possibilities must be eliminated.

3 The pattern

Find four cells that form a rectangle: same two rows, same two columns, and same two 3×3 boxes. If three of those cells have the same two candidates (e.g., {2, 7}), then the fourth cell cannot have only {2, 7} as its candidates. If it did, the puzzle would have two valid solutions (swapping the 2s and 7s), which is not allowed.

How to use it: If you find such a rectangle and the fourth cell has candidates {2, 7, 4}, you can eliminate 2 and 7 from that cell, leaving only 4. This works because if the fourth cell were 2 or 7, the puzzle would be ambiguous.

There are several variants of Unique Rectangle (Type 1 through Type 4), but the core principle is always the same: avoid deadly patterns that create multiple solutions.

Example: Unique Rectangle Type 1
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9

Three corners of the rectangle are the same bivalue pair {2,7}. The yellow corner also contains 4, so it cannot stay pure {2,7}. That lets you remove 2 and 7 there, leaving 4.

Technique 4: Y-Wing (XY-Wing)

Advanced

The Y-Wing is a chain-based technique involving three cells, each with exactly two candidates. It is one of the first advanced chain patterns worth learning because it turns a small local cluster of bivalue cells into a reliable elimination.

4 How Y-Wing works

You need three cells: a pivot and two wings.

  • The pivot cell has candidates {A, B}.
  • Wing 1 has candidates {A, C} and shares a group with the pivot.
  • Wing 2 has candidates {B, C} and shares a group with the pivot.

The pivot must be either A or B. If it’s A, then Wing 1 must be C. If it’s B, then Wing 2 must be C. Either way, C must appear in at least one of the wings. Therefore, any cell that sees both Wing 1 and Wing 2 cannot be C. Eliminate C from those cells.

Example: Pivot has {3, 7}. Wing 1 (same row) has {3, 9}. Wing 2 (same box) has {7, 9}. Any cell that sees both Wing 1 and Wing 2 cannot be 9.

What to look for in real puzzles: start by scanning for clusters of bivalue cells. A Y-Wing usually appears when one bivalue cell can act as the pivot for two nearby bivalue wings that do not need to see each other, but do need to share the same removable candidate.

Common failure case: players often call something a Y-Wing when the wings do not actually share the same elimination candidate, or when the target cell does not see both wings. If either condition fails, the elimination is not valid.

Example: Y-Wing with pivot {3,7}
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9

The yellow pivot is {3,7}. One wing is {3,9} and the other is {7,9}. No matter what the pivot becomes, one wing must take 9, so the blue target cell cannot keep candidate 9.

Technique 5: XYZ-Wing

Advanced

The XYZ-Wing is closely related to Y-Wing, but the pivot is a trivalue cell instead of a bivalue one. This makes the pattern slightly harder to see, but often easier to confirm once found.

5 How XYZ-Wing works

You need a pivot with three candidates {X, Y, Z} and two wings:

  • Wing 1 has {X, Z} and sees the pivot.
  • Wing 2 has {Y, Z} and also sees the pivot.

Because the pivot must take one of X, Y, or Z, and each wing is linked to the pivot through Z plus one other candidate, Z must appear somewhere in the three-cell structure. Any cell that sees the pivot and both wings cannot be Z, so Z can be eliminated there.

Why it matters: XYZ-Wing appears in candidate grids that are too rich for simple singles but not yet broad enough for fish or coloring. It is often the technique that breaks a puzzle open when several promising bivalue cells sit around one dense pivot.

How to spot it efficiently: do not scan the whole grid blindly. First find a trivalue cell, then inspect whether two nearby bivalue cells each share two of its three candidates in the {X,Z} / {Y,Z} shape. That approach is much faster than searching for wings first.

Common failure case: the elimination cell must see all three relevant cells: the pivot and both wings. If it sees only the wings, or only one wing plus the pivot, the XYZ-Wing elimination is not justified.

Example: XYZ-Wing around a center pivot
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9

The yellow pivot is {2,6,9}. One wing is {2,9} and the other is {6,9}. Any cell that sees the pivot and both wings — like the blue cell — cannot keep candidate 9.

Technique 6: Coloring (Simple Colors)

Advanced

Coloring is useful when a digit has exactly two candidates in multiple groups. You assign alternating “colors” (think of it as marking cells as “positive” and “negative”) and look for contradictions.

6 How Coloring works

Pick a digit that has exactly two candidates in several rows/columns/boxes. Start with one candidate and color it “blue.” The other candidate in that group must be “red.” Follow the chain: if a blue cell forces another cell to be a specific color, keep going. If you find a contradiction (a cell that must be both blue and red, or two cells of the same color in the same group), you can eliminate all candidates of that color.

Example: Simple Colors trap on digit 6
6
6
1
2
3
4
5
6
7
8
9
6
6
6
6

Yellow 6s and purple 6s are alternating colors in the same chain. The blue target cell sees one candidate of each color, so it cannot keep candidate 6.

Technique 7: Other Advanced Families Worth Knowing

Advanced Map

If you want this page to feel like a real advanced roadmap instead of a short sampler, you should know that hard Sudoku usually opens through families of ideas, not isolated tricks. X-Wing, Y-Wing, and Coloring are important, but they are only part of the full landscape.

  • Skyscraper — a strong-link pattern on one digit that often looks like an almost-X-Wing with one side shifted. It is great when a digit has paired candidates in two rows or columns but the rectangle is incomplete.
  • 2-String Kite — another strong-link elimination built from a row and a column, connected through a box. It is often easier to find than a fish pattern when the candidate network is small.
  • Empty Rectangle — a box-based elimination where one digit forms a shape that leaves one logical exit path through a linked row and column.
  • W-Wing — a bivalue-chain technique where two identical bivalue cells are connected by a strong link on one of their candidates.
  • XY-Chain — the longer cousin of Y-Wing, built by extending a chain of bivalue cells until the same elimination logic reaches farther across the grid.
  • Finned Fish — near-fish patterns such as Finned X-Wing or Finned Swordfish, where one extra candidate slightly breaks the clean pattern but still allows eliminations in a restricted area.

You do not need to master all of these immediately. The key is to recognise that advanced Sudoku is a map of fish patterns, rectangles, wings, and strong-link chains. Once you see those categories, new techniques stop feeling random and start feeling related.

How to Know Which Advanced Technique to Look For

One reason advanced Sudoku feels vague is that players often know the names of the techniques but not the trigger conditions. In real solving, you usually do not say, “Now I will do a Swordfish.” You notice a board shape that makes Swordfish worth checking.

  • Suspect an X-Wing when one digit keeps appearing in exactly two cells across multiple rows or columns.
  • Suspect a Swordfish when one digit seems confined to the same three rows and three columns, but the pattern is too wide for an X-Wing.
  • Suspect a Unique Rectangle when you see four cells sharing the same two candidates in a rectangular layout across two boxes.
  • Suspect a Y-Wing when you notice several bivalue cells (cells with exactly two candidates) clustered around one pivot cell.
  • Suspect an XYZ-Wing when one trivalue cell sits near two bivalue cells that each overlap two of its three candidates.
  • Suspect a Skyscraper or 2-String Kite when a single digit creates short strong-link pairs in two rows or columns, but the shape is not a clean fish.
  • Suspect an XY-Chain or W-Wing when multiple bivalue cells seem to pass the same candidate pressure across the grid.
  • Suspect Coloring when a single digit keeps forming strong links — especially rows, columns, or boxes where that digit has exactly two candidate cells.

That is the practical way advanced solvers work: they do not search the whole universe of techniques equally. They let the candidate structure of the board suggest what is worth testing.

When to Use Advanced Techniques

Advanced techniques are usually worth checking when three things are true at the same time:

  • All basic and intermediate techniques have been exhausted honestly — not just glanced at quickly.
  • The puzzle has relatively few givens or a dense candidate structure (common in Expert and Master difficulty).
  • You have full pencil marks, because most advanced patterns are invisible without them.

Do not start with advanced techniques too early. Good solvers squeeze the board for singles, pairs, pointing, and box-line reductions first. Advanced patterns are strongest when the easy logic has already cleaned the candidate grid enough for the pattern to stand out.

Common Advanced-Solver Mistakes

! Forcing a pattern that is almost there

The most common mistake is seeing something that looks “nearly” like an X-Wing or Y-Wing and treating it as valid anyway. Advanced patterns are strict. “Almost” does not count.

! Skipping candidate maintenance

One stale pencil mark can create a fake Swordfish, a fake chain, or a fake rectangle. If the notes are sloppy, the advanced logic built on top of them will also be sloppy.

! Hunting every technique on every digit

That is exhausting and usually unnecessary. Advanced solving is faster when you first identify which digit or region looks unusually constrained, then test only the techniques that fit that evidence.

How to Train Advanced Techniques Efficiently

If you want these techniques to become usable in real puzzles, train them in a fixed order instead of trying to learn everything at once:

  1. Master X-Wing first. It teaches you how candidate patterns can create eliminations across multiple houses.
  2. Add Swordfish second. It is conceptually the same family, just wider and noisier.
  3. Learn Unique Rectangle next. It sharpens your ability to read candidate rectangles and avoid false ambiguity.
  4. Then move to Y-Wing. This is usually the cleanest introduction to chain-based elimination.
  5. Add XYZ-Wing after that. It builds on the same logic, but teaches you to read a dense trivalue pivot correctly.
  6. Then learn Skyscraper and 2-String Kite. These teach you to read short strong-link geometry on one digit.
  7. Move on to W-Wing and XY-Chains. They extend the wing idea into longer chain reading.
  8. Use Coloring and finned fish last. They are powerful, but they become much easier once your strong-link reading is already disciplined.

A useful habit is to solve a hard puzzle normally, get stuck, and then ask one focused question: Which digit or bivalue cluster looks the most over-constrained right now? That question often leads to the right advanced search faster than scanning randomly.

Practice Puzzles

The best way to learn advanced techniques is to practice on puzzles that actually require them, then review why the move worked after the solve:

  • Evil Sudoku — a good bridge between intermediate logic and first advanced patterns
  • Extreme Sudoku — the best place on the site to encounter X-Wing, Swordfish, and chain-style logic regularly
  • Daily Sudoku — useful because the difficulty mix forces you to recognise when advanced logic is needed and when it is not

Use Sudoku School’s Explain button when you’re stuck — not just to get unstuck, but to compare the move you were looking for with the move the puzzle was actually offering.

What’s Next?