Sudoku Strategy

Y-Wing and XYZ-Wing: Powerful Sudoku Eliminations

October 3, 2026 · The Play Sudoku Team

If you have already mastered the basics of Sudoku — naked singles, hidden singles, and perhaps a few simple pairs — you may have started encountering puzzles that stubbornly refuse to yield to those familiar tricks. The grid stares back at you, candidates penciled into every remaining cell, and no obvious move presents itself. This is exactly the moment when intermediate and advanced techniques like Y-Wing and XYZ-Wing come into their own. These patterns use a clever chain of “bridging” cells to force eliminations that are invisible to the untrained eye. Once you understand the logic behind them, you will wonder how you ever solved a difficult puzzle without them.

What Is a Y-Wing? Understanding the Core Pattern

A Y-Wing — sometimes called a XY-Wing — is built from exactly three cells and three candidate digits. To spot one, you need to identify the following arrangement:

  • A pivot cell that contains exactly two candidates, which we will call digits A and B.
  • A first wing cell that contains exactly two candidates: A and C.
  • A second wing cell that contains exactly two candidates: B and C.
  • Both wing cells must each be able to “see” the pivot (they share a row, column, or box with it), but the two wing cells do not need to see each other directly.

The key insight is this: whatever value the pivot takes, at least one of the wing cells must end up containing digit C. Here is the logical proof. If the pivot holds A, then the first wing (which contains A and C) cannot hold A, so it must hold C. If the pivot holds B, then the second wing (which contains B and C) cannot hold B, so it must hold C. In every possible scenario, one of the two wing cells ends up as C. This means that any cell that can see both wing cells simultaneously cannot be C — if it were, it would eliminate the last C from whichever wing needs it, creating a contradiction.

This elimination zone is the power of the Y-Wing. You scan the grid for any unsolved cell that lies in the same row, column, or box as both wing cells. If such a cell contains C as a candidate, you can remove C from it with complete confidence.

A Worked Example of the Y-Wing in Action

Let’s walk through a concrete illustration so the pattern becomes clear. Imagine the following situation in a partially solved puzzle:

  • Cell R2C3 (pivot) has candidates {4, 7}.
  • Cell R2C8 (first wing) has candidates {4, 9} — it shares Row 2 with the pivot.
  • Cell R6C3 (second wing) has candidates {7, 9} — it shares Column 3 with the pivot.

Let us map this onto our A, B, C framework. Here A = 4, B = 7, and C = 9. The pivot sees both wings. Now apply the logic:

  • If R2C3 = 4, then R2C8 cannot be 4, so R2C8 = 9.
  • If R2C3 = 7, then R6C3 cannot be 7, so R6C3 = 9.

In every scenario, either R2C8 or R6C3 holds the digit 9. Now look for any cell that can see both R2C8 and R6C3. A cell in Row 6 and Column 8 — that is, R6C8 — sees R2C8 (same column) and also sees R6C3 (same row). If R6C8 has 9 as a candidate, you can eliminate it immediately. The same logic applies to any other cell sharing both a row with one wing and a column with the other, or sharing a box with either wing.

This example shows why Y-Wings are so satisfying: the three cells feel unrelated at first glance, scattered across the grid, yet they form a tight logical triangle that forces a real, provable elimination.

Introducing the XYZ-Wing: Adding a Third Candidate to the Pivot

Once you are comfortable with Y-Wings, the natural next step is the XYZ-Wing. The structure is very similar, but with one important difference: the pivot cell now holds three candidates instead of two. Specifically:

  • The pivot cell contains candidates {A, B, C} — all three digits relevant to the pattern.
  • The first wing cell contains exactly {A, C}.
  • The second wing cell contains exactly {B, C}.
  • Both wing cells must see the pivot, just as in a Y-Wing.

Because the pivot itself now includes C as a candidate, the elimination zone is more restricted. In a Y-Wing, the pivot cannot be C, so any cell seeing both wings is safe to eliminate. In an XYZ-Wing, the pivot can be C, which means the pivot is also a potential source of C. To safely eliminate C from a target cell, that target must be able to see all three cells — the pivot and both wings — simultaneously.

This stricter requirement makes XYZ-Wings harder to exploit than Y-Wings, but they still produce valid, powerful eliminations. Because the pivot is often located in a box shared with one or both wings, you will frequently find XYZ-Wings operating within a confined area of the grid, with the elimination target nearby.

How to Search for Y-Wings and XYZ-Wings Efficiently

Finding these patterns in a live puzzle can feel overwhelming at first. Here is a systematic approach that experienced solvers use:

  1. Locate all bivalue cells. A bivalue cell contains exactly two candidates. These are your potential pivots (for Y-Wings) and your potential wings (for both patterns). Make a quick mental or written list of them.
  2. Choose a pivot candidate. For a Y-Wing, pick any bivalue cell as your trial pivot. Label its two candidates A and B.
  3. Search for wing cells. Look in every row, column, and box that the pivot can see. You need one bivalue cell containing {A, C} and another containing {B, C} for some digit C.
  4. Check that the wings are not in the same house as each other unnecessarily. The wings do not need to see each other — what matters is that each sees the pivot.
  5. Identify the elimination zone. For a Y-Wing, find all cells that see both wings. For an XYZ-Wing, find all cells that see the pivot and both wings. Remove C from any such cell that holds it as a candidate.
  6. Repeat for different pivot choices. If no Y-Wing emerges, try a different bivalue cell as the pivot.

Good candidate tracking is essential here. If you are solving on paper, maintain tidy pencil marks in each cell. If you are solving digitally on a site like playsudoku.org, use the built-in candidate tools to keep your notes organised. Sloppy pencil marks are the biggest enemy of wing techniques, because a misrecorded candidate can send you chasing a pattern that does not actually exist — or cause you to miss one that does.

It also helps to remember that Y-Wings frequently appear in puzzles rated as “hard” or “expert,” and they are often the key unlock that lets a cascade of simpler techniques finish the puzzle. Spotting even one Y-Wing can open up naked pairs, pointing pairs, or hidden singles that were previously invisible.

Common Mistakes and How to Avoid Them

Even experienced solvers trip over a few recurring errors when applying Y-Wings and XYZ-Wings:

  • Confusing which digit is eliminated. Only digit C — the one shared by both wings but absent from the pivot in a Y-Wing — can be removed from target cells. Double-check your A, B, C labeling before erasing anything.
  • Incorrectly assuming the wings must see each other. They do not. The wings only need to see the pivot. Novice solvers sometimes discard valid Y-Wings because the two wing cells do not share a row, column, or box with each other.
  • Applying Y-Wing logic to an XYZ-Wing situation. If the pivot has three candidates and you use the Y-Wing elimination zone (cells seeing only both wings), you risk making an illegal elimination. Always check the pivot’s candidate count before deciding which rule applies.
  • Skipping candidate updates. After any elimination, immediately update all related cells. A Y-Wing elimination can instantly resolve a bivalue cell into a naked single, and missing that follow-up means lost progress.

Why These Techniques Matter Beyond the Individual Puzzle

Learning Y-Wings and XYZ-Wings is about more than solving one difficult grid. These techniques train your brain to think in terms of chains and implications — if this cell is X, then that cell must be Y — which is the foundation of more advanced strategies like Swordfish, XY-Chains, and eventually Alternating Inference Chains (AICs). Every expert Sudoku solver started by mastering these wing patterns, because they are the gateway from rule-based solving into genuine logical deduction.

They also build patience and methodical thinking. You cannot rush a Y-Wing search. You have to slow down, examine your candidate grid carefully, and trust the logic even when the answer feels counterintuitive. That discipline carries over into every other area of Sudoku solving — and arguably into clearer thinking in everyday life as well.

Key Takeaways

  • A Y-Wing uses a bivalue pivot and two bivalue wings sharing one candidate each with the pivot. The shared “C” digit can be eliminated from any cell that sees both wings.
  • An XYZ-Wing is similar but the pivot holds three candidates including C. Eliminations apply only to cells that see the pivot and both wings simultaneously.
  • Systematic searching — list bivalue cells, choose a pivot, find matching wings — is the most reliable way to spot these patterns.
  • Accurate candidate tracking is essential. Tidy pencil marks prevent errors and make the patterns far easier to see.
  • Mastering wings builds the logical foundation needed for advanced techniques like XY-Chains and AICs.

Wing techniques reward every solver who takes the time to learn them. The next time a hard Sudoku grid has you stumped, resist the urge to guess. Instead, scan your bivalue cells, look for that telltale triangle of candidates, and let the logical power of the Y-Wing or XYZ-Wing do the work for you. With practice, these patterns will leap off the page — and the satisfaction of finding one in a seemingly impossible puzzle is one of the genuine joys of Sudoku. Keep practicing at playsudoku.org, and you will be spotting wings in no time.

Play a puzzle