Sudoku Strategy

Y-Wing and XYZ-Wing: Powerful Sudoku Eliminations

July 11, 2026 · The Play Sudoku Team

If you have already conquered the basics of Sudoku — naked singles, hidden singles, and even the occasional naked pair — you will eventually hit puzzles that simply refuse to yield to straightforward logic. At that point, intermediate and advanced techniques become essential tools in your solving kit. Two of the most elegant and satisfying strategies at this level are the Y-Wing and its three-digit cousin, the XYZ-Wing. Both techniques work by using a small cluster of “bridging” cells to force a candidate out of a target cell, clearing the path to a solution. Once you understand the underlying logic, these patterns start appearing everywhere, and solving hard puzzles becomes far more enjoyable.

Understanding Candidates and Why Wings Work

Before diving into wings specifically, it helps to have a solid grasp of pencil marks — also called candidates. When you fill in every possible digit that could legally sit in each empty cell (based on its row, column, and box), you are working with a full candidate grid. Most serious solvers reach a point where simple elimination techniques have been exhausted and the candidate grid still contains dozens of possibilities. This is exactly the environment where wing techniques thrive.

Wing strategies exploit a logical relationship between a small set of cells. The core idea is deceptively simple: if a particular digit must be in one of two cells, and both of those cells can “see” a third cell containing that same digit, then that digit can be safely eliminated from the third cell. “Seeing” a cell means sharing the same row, column, or 3×3 box. The Y-Wing formalizes this chain of reasoning using three cells and two digits, while XYZ-Wing extends it to three digits and still just three cells.

Neither technique requires guessing. Everything is derived purely from logical deduction, which is what makes Sudoku such a satisfying puzzle. You are not trying possibilities at random; you are following a chain of if-then reasoning to its inevitable conclusion.

The Y-Wing: Three Cells, Two Digits, One Elimination

The Y-Wing — sometimes called an XY-Wing — involves exactly three cells and three candidates shared across them in a specific pattern. Here is the formal structure:

  • A pivot cell that contains exactly two candidates: let’s call them digits A and B.
  • A first wing cell that shares a unit (row, column, or box) with the pivot and contains candidates A and C.
  • A second wing cell that shares a different unit with the pivot and contains candidates B and C.
  • The two wing cells do not need to see each other directly, but they must both be able to “see” a target cell containing the digit C.

The logic works like this: the pivot cell must contain either A or B. If the pivot is A, then the first wing (which has A and C) cannot be A, so it must be C. If the pivot is B, then the second wing (which has B and C) cannot be B, so it must be C. Either way, one of the two wings will resolve to C. Because both wings can see the target cell, the target cell can never be C — it would conflict with whichever wing ends up holding C. Therefore, C is eliminated from the target cell.

A Worked Y-Wing Example

Imagine the following setup on a partially solved Sudoku board:

  • Cell R2C4 (pivot) has candidates {4, 7}.
  • Cell R2C9 (first wing) shares Row 2 with the pivot and has candidates {4, 2}.
  • Cell R8C4 (second wing) shares Column 4 with the pivot and has candidates {7, 2}.

Now ask: does any cell see both R2C9 and R8C4? A cell in Row 8 that also shares a column or box with R2C9 would qualify. Suppose R8C9 is such a cell, and it currently has 2 as one of its candidates.

The logical deduction runs as follows. The pivot at R2C4 is either 4 or 7. If it is 4, then the first wing R2C9 — which holds {4, 2} — cannot be 4, so it becomes 2. If the pivot is 7, then the second wing R8C4 — which holds {7, 2} — cannot be 7, so it becomes 2. In every possible scenario, either R2C9 or R8C4 holds the value 2. Since R8C9 shares Row 8 with R8C4 and shares Column 9 with R2C9, it sees both wings simultaneously. Therefore, R8C9 can never be 2, and the digit 2 is eliminated from that cell. This might be exactly the break you need to continue solving.

What makes Y-Wing so powerful is that the pivot and wings do not have to be in neat rows or columns. As long as the “sees” relationships hold, the pattern is valid. Wings can stretch across boxes, making them harder to spot visually but no less logical in their operation.

Extending to XYZ-Wing: Adding a Third Digit

The XYZ-Wing follows the same structural idea as Y-Wing but with one critical change: the pivot cell now contains three candidates instead of two. This makes the pattern slightly trickier to identify, but it also makes the eliminations valid in more scenarios.

Here is the XYZ-Wing structure:

  • A pivot cell containing candidates {A, B, C} — all three digits.
  • A first wing cell that sees the pivot and contains {A, C}.
  • A second wing cell that sees the pivot and contains {B, C}.
  • The target cell must see all three of the above cells — the pivot and both wings.

Notice the key difference from Y-Wing: in the XYZ-Wing, the target cell must see the pivot as well as both wings. This is because the pivot itself could resolve to C — something that never happens in a Y-Wing where the pivot only holds A and B. Since the pivot can be C, and it could be the cell that “forces” the value, the target must also be within sight of the pivot.

In practice, this stricter “all three cells” visibility requirement means the target cell is usually in the same 3×3 box as the pivot, with both wings also within range. XYZ-Wings therefore tend to be more compact on the grid, often appearing within or adjacent to a single box, whereas Y-Wings can span the entire board.

A Quick XYZ-Wing Illustration

Consider this setup within a single box region extended by one column:

  • R3C3 (pivot): candidates {1, 5, 9}
  • R3C7 (first wing): candidates {1, 9} — shares Row 3 with the pivot
  • R1C3 (second wing): candidates {5, 9} — shares Column 3 with the pivot

For the XYZ-Wing to yield an elimination, we need a target cell that can see all three of R3C3, R3C7, and R1C3. That is a tough requirement — a cell would need to be in Row 3 (to see the pivot and first wing), in Column 3 (to see the pivot and second wing), and possibly in the same box. In most realistic configurations, the target will be within the same box as the pivot, sharing a row with one wing and a column with the other. When you find it, digit 9 can be safely eliminated from that target cell because no matter what the pivot resolves to, one of the three cells — pivot or wing — will inevitably become 9.

Tips for Spotting Wings in a Real Puzzle

Finding Y-Wings and XYZ-Wings is largely a matter of training your eye. Here are practical approaches to help:

  1. Start with bivalue cells. Cells with exactly two candidates are the building blocks of Y-Wing. Scan your grid and highlight all bivalue cells first. The pivot and both wings in a Y-Wing are all bivalue, so a cluster of three bivalue cells that share candidates in the right pattern is your signal.
  2. Look for shared candidate pairs. If two bivalue cells share one digit, they might form a wing pair around a pivot. Check whether a pivot exists that shares the other digit from each wing cell.
  3. Use your solving software’s hint mode to learn. Many Sudoku apps can highlight Y-Wings and XYZ-Wings. Rather than just accepting the elimination, study why it works. Recreate the logic on paper to internalize the pattern.
  4. For XYZ-Wings, focus on trivalue cells. Cells with exactly three candidates are relatively rare. When you find one, check whether valid wing cells are visible from it.
  5. Be patient. Wings are genuinely hard to spot until you have practiced with them several times. Do not be discouraged if you miss them at first — even experienced solvers occasionally overlook a Y-Wing hiding in plain sight.

It is also worth noting that Y-Wings and XYZ-Wings are part of a broader family of chaining techniques. Once you understand wings, you are well-positioned to learn longer chains such as XY-Chains and even the formidable AIC (Alternating Inference Chain) patterns that underpin the most difficult expert-level Sudoku puzzles.

Key Takeaways

Wing techniques represent a significant leap in Sudoku solving power, but they are entirely accessible once you understand the logic. Here is a summary of what you have learned:

  • A Y-Wing uses three bivalue cells — one pivot and two wings — sharing two digits (A and C, B and C) around the pivot’s two digits (A and B). Any cell that sees both wings can have digit C eliminated.
  • An XYZ-Wing follows the same structure but the pivot holds all three digits {A, B, C}. The target must see the pivot and both wings, making visibility stricter but the technique still completely logical.
  • Neither technique involves guessing. They are pure deductions from the candidate grid.
  • Y-Wings can span large areas of the grid; XYZ-Wings tend to be more spatially compact.
  • The best way to learn these patterns is to look for bivalue and trivalue cells first, then search for wing relationships around them.

Mastering Y-Wing and XYZ-Wing will open up a whole new class of Sudoku puzzles that previously felt impenetrable. Every time you spot one of these elegant little structures and make the elimination, you are experiencing the pure deductive logic that makes Sudoku so rewarding. Keep practicing, keep your candidate grid tidy, and the wings will start to reveal themselves naturally. Happy solving!

Play a puzzle