If you have moved beyond naked singles and hidden pairs and are looking for techniques that can crack open even the most stubborn Sudoku puzzles, Y-Wing and XYZ-Wing are exactly what you need. These elegant strategies use a small cluster of interconnected cells — called a “wing” pattern — to force a specific candidate out of existence somewhere else on the board. Once you understand the logic, you will wonder how you ever solved without them. This guide walks you through both techniques with clear explanations and concrete examples so you can start using them right away.
Understanding the Foundation: Bivalue Cells and Conjugate Pairs
Before diving into wings, it helps to understand two building blocks that make these techniques possible: bivalue cells and conjugate pairs.
A bivalue cell is simply a cell that contains exactly two candidates. For example, a cell that could only be a 3 or a 7 is a bivalue cell. These cells are incredibly useful in advanced Sudoku solving because they create a binary fork: if one value is wrong, the other must be right. That “either/or” logic is the engine that drives both Y-Wing and XYZ-Wing.
A conjugate pair (sometimes called a strong link) exists when a particular candidate appears exactly twice within a house — a row, column, or 3×3 box. Wherever that candidate ends up, it must be in one of those two cells. Naked pairs, hidden pairs, and pointing pairs all build on similar ideas of constraint and elimination.
With those ideas firmly in mind, you are ready to explore the Y-Wing.
What Is a Y-Wing?
A Y-Wing — sometimes called an XY-Wing — uses three bivalue cells arranged in a specific relationship to eliminate a candidate from one or more other cells. Here is how it works:
You need three cells, each containing exactly two candidates:
- The pivot cell: contains candidates X and Y.
- Wing cell 1: contains candidates X and Z, and shares a house with the pivot.
- Wing cell 2: contains candidates Y and Z, and shares a different house with the pivot.
The key insight is this: no matter what value the pivot cell takes, one of the two wing cells must become Z. If the pivot is X, then Wing 1 cannot be X, so Wing 1 must be Z. If the pivot is Y, then Wing 2 cannot be Y, so Wing 2 must be Z. Since one wing or the other is always Z, any cell that can “see” both wing cells — meaning it shares a house with both of them — can never be Z. You can eliminate Z from that cell entirely.
That is the Y-Wing in its simplest form: a pivot cell branching out like the letter Y, with the two wing tips guaranteeing that Z appears in one of them.
Y-Wing Worked Example
Imagine the following setup on a Sudoku grid:
- Cell R1C1 (row 1, column 1): candidates {3, 7} — this is the pivot.
- Cell R1C9 (row 1, column 9): candidates {3, 5} — Wing 1. It shares row 1 with the pivot.
- Cell R9C1 (row 9, column 1): candidates {7, 5} — Wing 2. It shares column 1 with the pivot.
Here, X = 3, Y = 7, and Z = 5.
- If R1C1 is 3, then R1C9 cannot be 3, so R1C9 must be 5.
- If R1C1 is 7, then R9C1 cannot be 7, so R9C1 must be 5.
In either case, one of the wing cells must be 5. Now look at cell R9C9. It shares row 9 with Wing 2 (R9C1) and shares column 9 with Wing 1 (R1C9). That means R9C9 can see both wing cells. Since one wing is always 5, R9C9 can never be 5. You can eliminate 5 from R9C9 with complete confidence.
This kind of elimination might be the breakthrough that allows a chain of naked singles to finish the puzzle. That is the real power of the Y-Wing: it does not solve a cell directly, but it removes a candidate that unlocks everything else.
Extending the Idea: What Is an XYZ-Wing?
The XYZ-Wing is a close relative of the Y-Wing, but with one important difference: the pivot cell now contains three candidates instead of two. This makes the pattern slightly harder to spot but also slightly more powerful, because it can produce eliminations in more positions.
Here is the structure of an XYZ-Wing:
- The pivot cell: contains candidates X, Y, and Z (a trivalue cell).
- Wing cell 1: contains candidates X and Z, and shares a house with the pivot.
- Wing cell 2: contains candidates Y and Z, and shares a house with the pivot.
Notice that both wing cells still share their Z candidate with the pivot, and both wing cells share a house with the pivot (unlike Y-Wing, where the two wings share different houses with the pivot and not necessarily with each other in the same way).
The logic is similar but extended. The pivot can be X, Y, or Z:
- If the pivot is X, Wing 1 must be Z (since it cannot be X).
- If the pivot is Y, Wing 2 must be Z (since it cannot be Y).
- If the pivot is Z, then Z is placed in the pivot itself.
In every possible scenario, Z ends up in either the pivot, Wing 1, or Wing 2. Any cell that can see all three of those cells — the pivot and both wings — can never be Z. You can eliminate Z from any such cell.
Because the pivot is now involved in the elimination zone (unlike in Y-Wing, where only the wings matter for the target cell), the cells eligible for elimination in an XYZ-Wing must be able to see all three cells in the pattern, not just the two wings. This narrows the elimination zone compared to Y-Wing, but the technique still produces valid, powerful eliminations.
XYZ-Wing Worked Example
Consider this scenario:
- Cell R5C5: candidates {2, 6, 8} — the pivot (X=2, Y=6, Z=8).
- Cell R5C2: candidates {2, 8} — Wing 1. Shares row 5 with the pivot.
- Cell R3C5: candidates {6, 8} — Wing 2. Shares column 5 with the pivot.
No matter what value goes into R5C5, one of the three cells (the pivot or a wing) must contain 8. Any cell that shares a house with all three — R5C5, R5C2, and R3C5 — can have 8 eliminated. In practice, a cell in the same box as the pivot that also shares a row or column with both wings could be the elimination target. Working through the geometry of your specific grid is the key step.
How to Spot Y-Wing and XYZ-Wing Patterns in Your Puzzle
Recognizing these patterns takes practice, but there are systematic ways to train your eye:
- Start by marking all bivalue cells. Scan the grid and highlight every cell with exactly two candidates. These are your potential pivot cells for Y-Wing and your wing cells for both techniques.
- Look for trivalue cells for XYZ-Wing. Any cell with exactly three candidates could be an XYZ-Wing pivot. Note which pairs within that cell appear together in neighboring bivalue cells.
- Check shared houses. For each bivalue or trivalue cell, look at all other bivalue cells in the same row, column, and box. Do any two of them share the right candidate structure to form a wing?
- Identify the elimination target. Once you think you have a wing pattern, identify which cells can see both wings (Y-Wing) or all three cells (XYZ-Wing). Check whether Z appears as a candidate in those cells. If so, you have found a valid elimination.
- Double-check the logic. Run through the two or three scenarios mentally before making the elimination. It only takes a moment and prevents mistakes.
Many experienced solvers scan for Y-Wing after exhausting simpler techniques like naked pairs, hidden singles, and pointing pairs. It sits comfortably in the intermediate-to-advanced range and appears frequently in puzzles rated “hard” or “expert.”
The XYZ-Wing, while rarer, is worth looking for when Y-Wing does not seem to be available. Both techniques become second nature with consistent practice, and spotting them gives a genuine sense of satisfaction that is hard to match in puzzle solving.
Y-Wing vs XYZ-Wing: Knowing Which to Use
Both techniques share the same underlying philosophy — a pivot cell forcing one of its wings to take on the value Z — but they apply in different circumstances.
Use Y-Wing when:
- Your pivot is a bivalue cell with exactly two candidates.
- You can find two other bivalue cells, each sharing one candidate with the pivot and both sharing the elimination candidate Z.
- The target cell can see both wing cells but does not need to see the pivot.
Use XYZ-Wing when:
- Your pivot is a trivalue cell with exactly three candidates.
- You have two bivalue wing cells, each containing Z plus one of the other pivot candidates, and both sharing a house with the pivot.
- The target cell can see all three cells in the pattern: the pivot and both wings.
Neither technique is universally “better” — they solve different configurations. The solver who knows both has a significantly larger toolkit than one who knows only one of them.
Key Takeaways
- Y-Wing uses three bivalue cells — a pivot (XY) and two wings (XZ and YZ) — to eliminate candidate Z from any cell that can see both wing cells.
- XYZ-Wing uses a trivalue pivot (XYZ) and two bivalue wings to eliminate Z from any cell that can see all three cells in the pattern.
- The core logic in both techniques is the same: no matter what the pivot becomes, one of the wing cells (or the pivot itself in XYZ-Wing) must hold the value Z.
- Bivalue cells are the building blocks — scanning for them first makes these patterns much easier to find.
- Both techniques sit in the intermediate-to-advanced difficulty range and frequently appear in hard and expert Sudoku puzzles.
- Practice and pattern recognition are the keys to using these techniques quickly and confidently.
Learning Y-Wing and XYZ-Wing is a genuine milestone in your Sudoku journey. They represent a shift from mechanical rule-following to genuine logical reasoning — the kind of thinking that separates a good solver from a great one. Work through a few puzzles with these techniques in mind, be patient with yourself as the patterns become familiar, and enjoy the rewarding “aha” moment when an elimination you could not find any other way suddenly becomes crystal clear. Happy solving!