Sudoku Strategy

Y-Wing and XYZ-Wing: Powerful Elimination Techniques

October 9, 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 may have started encountering puzzles that seem to stop you completely in your tracks. You scan every row, column, and box, yet no obvious move presents itself. This is precisely the moment when intermediate and advanced techniques like the Y-Wing and its close relative the XYZ-Wing become invaluable. These strategies use a clever chain of logic connecting three cells to force an elimination that would otherwise be invisible. Once you understand how they work, you will find that an entirely new layer of puzzle-solving opens up before you.

What Is a Y-Wing? Understanding the Core Concept

A Y-Wing — sometimes called a XY-Wing in solver literature — is a technique built around three cells, each containing exactly two candidates. The three cells are called the pivot and two pincers (or wings). The pivot shares one candidate with each pincer, and the two pincers share a candidate with each other. That shared candidate in the pincers is the one that gets eliminated from any cell that sees both pincers simultaneously.

Let us break this down with more precision. Suppose the pivot cell contains candidates A and B. One pincer contains candidates A and C, while the other pincer contains candidates B and C. The logic works like this:

  • If the pivot is A, then the first pincer (A, C) cannot be A, so it must be C.
  • If the pivot is B, then the second pincer (B, C) cannot be B, so it must be C.

No matter what value the pivot eventually takes, at least one of the two pincers will be C. This is the heart of the Y-Wing argument. Any cell that can “see” both pincers — meaning it shares a row, column, or box with both of them — cannot be C, because one of the pincers is guaranteed to hold that value. You can safely remove C from the candidate list of any such cell.

The pivot does not need to be in the same row, column, or box as both pincers. It only needs to see each pincer individually. This is what makes the Y-Wing so powerful: the chain of logic stretches across the grid in a way that a simple pair or triple cannot.

A Worked Example of the Y-Wing

Let us walk through a concrete illustration. Imagine the following setup on a Sudoku grid:

  • Pivot cell at row 2, column 5 (R2C5): candidates [4, 7]
  • Pincer 1 at row 2, column 9 (R2C9): candidates [4, 3]
  • Pincer 2 at row 8, column 5 (R8C5): candidates [7, 3]

The pivot R2C5 shares its row with Pincer 1 at R2C9, so the pivot can “see” Pincer 1. The pivot also shares its column with Pincer 2 at R8C5, so the pivot can “see” Pincer 2. The two pincers both contain the value 3, which is the elimination target.

Now apply the Y-Wing logic:

  1. If R2C5 = 4, then R2C9 cannot be 4, so R2C9 = 3.
  2. If R2C5 = 7, then R8C5 cannot be 7, so R8C5 = 3.

Either way, one of the two pincers will equal 3. Now look for any cell that shares a row or column or box with both R2C9 and R8C5. In this example, R8C9 sits in the same column as R2C9 (column 9) and the same row as R8C5 (row 8). That means R8C9 can see both pincers. Therefore, 3 can be eliminated from R8C9.

This single elimination might be all you need to unlock the rest of the puzzle. Removing a candidate from one cell can trigger a cascade of naked singles or hidden singles that solve an entire section of the grid. That domino effect is why learning wing techniques rewards you so handsomely.

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

Once you are comfortable with the Y-Wing, the XYZ-Wing is a natural extension. The key difference is that the pivot cell now contains three candidates instead of two. Everything else follows a similar chain of logic, but the elimination zone is slightly more restricted.

In an XYZ-Wing, the pivot holds candidates X, Y, and Z. One pincer holds X and Z, and the other pincer holds Y and Z. Both pincers must be able to see the pivot. The shared candidate across all three cells is Z.

The logic proceeds as follows:

  • If the pivot is Z, then Z is placed and neither pincer can be Z.
  • If the pivot is X, then Pincer 1 (X, Z) cannot be X, so Pincer 1 = Z.
  • If the pivot is Y, then Pincer 2 (Y, Z) cannot be Y, so Pincer 2 = Z.

In every possible scenario, at least one of the three cells — the pivot or one of the pincers — will be Z. This means that any cell which can see all three of the pivot and both pincers simultaneously cannot be Z. In practice, because the pivot must see both pincers, these three cells often cluster together in a box with extensions into adjacent rows or columns, making the XYZ-Wing a tighter but still highly effective pattern.

The critical distinction from the Y-Wing is that eliminations in the XYZ-Wing require a target cell to see all three cells (pivot and both pincers), not just the two pincers. This makes the elimination zone smaller but the logic equally ironclad.

How to Spot Wings During a Solve

Identifying Y-Wings and XYZ-Wings during an actual solve requires a systematic approach. Most solvers who use these techniques develop a habit of scanning specifically for two-candidate cells, sometimes called bivalue cells. Here is a practical process you can adopt:

  1. List your bivalue cells. After applying simpler techniques like naked pairs and hidden pairs, note every cell that still has exactly two candidates. These are your potential pivots and pincers.
  2. Choose a potential pivot. Pick any bivalue cell and label its candidates A and B. Now look for cells that (a) share a unit — row, column, or box — with the pivot and (b) contain A plus one other candidate, which we call C.
  3. Find the second pincer. From the pivot, look in another unit for a cell containing B and C. If you find one, you have a complete Y-Wing.
  4. Identify the elimination zone. Find all cells that can see both pincers and check whether any of them still have C as a candidate. Remove C from those cells.
  5. For XYZ-Wings, begin with a three-candidate pivot and look for two bivalue pincers that each share two of the pivot’s three candidates and that both see the pivot.

With practice, your eye will naturally gravitate toward clusters of bivalue cells. Many experienced solvers describe the moment of spotting a Y-Wing as a satisfying click of recognition — like a hidden image in a puzzle suddenly coming into focus.

Why Wings Matter in Your Overall Strategy

Y-Wings and XYZ-Wings occupy an important position in the broader hierarchy of Sudoku techniques. They are more powerful than naked triples and hidden pairs, yet more approachable than complex chains like X-Chains, XY-Chains, or full Forcing Chains. Mastering wings gives you a bridge between intermediate solving and the more advanced chain-based methods used to crack the hardest rated puzzles.

These wing techniques are also foundational for understanding how candidate elimination works across non-adjacent units. Unlike a naked pair, which eliminates candidates only within a single row, column, or box, a Y-Wing can reach across the grid in ways that feel almost magical until you internalize the underlying logic. Once you do understand it, you start to see Sudoku less as a number puzzle and more as a logical network of constraints — which is precisely what it is.

Many puzzles rated Hard or Expert on standard difficulty scales require at least one Y-Wing or XYZ-Wing step to solve without resorting to trial and error. If you have ever tried guessing a number and working forward only to find a contradiction many steps later, you will appreciate having a clean logical technique that avoids that mess entirely.

It is also worth noting that wing techniques appear naturally as special cases of the broader Almost Locked Sets (ALS) framework, which advanced solvers use to find patterns at a higher level of abstraction. Learning wings now plants the seeds for understanding these more general structures later in your Sudoku journey.

Key Takeaways

  • A Y-Wing uses three bivalue cells: one pivot and two pincers. The pivot shares one candidate with each pincer, and both pincers share a third candidate (C). Any cell that sees both pincers can have C eliminated.
  • An XYZ-Wing extends the idea by giving the pivot three candidates. All three cells share a common candidate Z, and any cell that sees all three cells can have Z eliminated.
  • Spotting wings requires focusing on bivalue cells and systematically checking which cells share units with a chosen pivot.
  • Wings bridge the gap between basic techniques and advanced chain methods, making them essential tools for solving Hard and Expert puzzles.
  • The logic is always sound: no guessing involved — every elimination is proven by the constraint that the pivot must take one of its two (or three) values.

Wing techniques take a little patience to learn, but the effort pays dividends every time you sit down with a challenging puzzle. Start by deliberately hunting for bivalue cells in your next Hard-rated Sudoku and see if a Y-Wing pattern emerges. The more you practise spotting these formations, the more automatic it becomes — and the more unstoppable you will feel as a solver. Keep at it, stay logical, and enjoy the deeply satisfying experience of cracking a puzzle with pure deductive reasoning.

Play a puzzle