โ† Back to Blog

Unlocking the XYZ-Wing: A Logic Guide for Expert Sudoku Solvers

Update (June 2026): We continuously review our guides to ensure accuracy against the latest 2026 data and algorithm shifts. The strategies below remain highly effective, but we've verified them against recent industry updates to maintain relevance.
๐Ÿ“… June 26, 2026โฑ 11 min read๐Ÿท Sudoku

For Sudoku enthusiasts transitioning from intermediate methods to the realm of expert-level puzzles, encountering a grid lock is a common rite of passage. You have exhausted basic single-candidate eliminations, scanned for naked pairs, and mapped out X-Wings, yet the puzzle remains stubbornly unresolved. This is where advanced bent-wing strategies become indispensable. Among these, the XYZ-Wing is one of the most powerful and frequently occurring techniques. By mastering the XYZ-Wing, you can unlock complex grid configurations and make precise candidate eliminations that pave the way to a successful solve.

At its core, the XYZ-Wing is an extension of the classic XY-Wing. While an XY-Wing utilizes three bi-value cells, the XYZ-Wing introduces a tri-value cell as a pivot (the "hinge"), which is linked to two bi-value cells (the "pincers"). This guide will demystify the logic behind the XYZ-Wing, provide a clear blueprint for spotting it in the wild, and walk you through step-by-step examples to elevate your Sudoku mastery.

Understanding the Anatomy of an XYZ-Wing

To successfully apply the XYZ-Wing technique, you must first understand its structural components. The pattern always involves exactly three cells and three distinct candidate numbers. Let's designate these three candidates as X, Y, and Z. The three cells are classified as follows:

For the XYZ-Wing logic to hold, the spatial relationship between these cells must satisfy specific geometric constraints. Specifically, the Pivot cell and Pincer 1 must share one unit (typically the same 3x3 box), while the Pivot cell and Pincer 2 must share a different unit (typically a row or a column). Crucially, Pincer 1 and Pincer 2 must not see each other; they reside in different houses except for their mutual connection to the Pivot. The candidate Z is the "shared value" or the "eliminator candidate" because it is present in all three cells of the wing.

The Geometric Setup

In the vast majority of practical Sudoku configurations, the XYZ-Wing is arranged in an L-shape across two adjacent 3x3 boxes. The Pivot cell and Pincer 1 are located within the same 3x3 box. Pincer 2 is located outside of this box but lies in the same row or column as the Pivot. This alignment creates a shared zone of influence (or "intersection") where certain cells in the grid can "see" all three components of the XYZ-Wing simultaneously. These intersection cells are where our candidate eliminations will take place.

The Logical Proof: Why It Works

Understanding the logic of the XYZ-Wing is far more valuable than simply memorizing the pattern. The logic relies on a simple proof by cases. Let's analyze the Pivot cell, which contains candidates X, Y, and Z. Since this cell must eventually be filled with one of these three numbers, we can examine the consequences of each possibility on the shared candidate Z:

  1. Case 1: The Pivot Cell is Z. If the Pivot cell is resolved as Z, then any other cell in the grid that shares a unit (row, column, or box) with the Pivot cannot contain Z.
  2. Case 2: The Pivot Cell is X. If the Pivot cell is resolved as X, we must look at Pincer 1 (which contains X and Z). Since Pincer 1 shares a unit with the Pivot, and the Pivot is X, Pincer 1 cannot be X. Therefore, Pincer 1 must be resolved as Z. Consequently, any cell that shares a unit with Pincer 1 cannot contain Z.
  3. Case 3: The Pivot Cell is Y. If the Pivot cell is resolved as Y, we look at Pincer 2 (which contains Y and Z). Since Pincer 2 shares a unit with the Pivot, and the Pivot is Y, Pincer 2 cannot be Y. Therefore, Pincer 2 must be resolved as Z. Consequently, any cell that shares a unit with Pincer 2 cannot contain Z.

Notice the common denominator across all three scenarios: no matter which value (X, Y, or Z) is eventually assigned to the Pivot cell, either the Pivot cell, Pincer 1, or Pincer 2 must be Z. There is no other mathematical alternative. Because of this absolute certainty, any cell in the grid that simultaneously "sees" (shares a row, column, or box with) all three of these cells cannot possibly contain the candidate Z. If it did, it would prevent all three cells from being Z, which we have just proven is impossible.

Step-by-Step Guide to Finding an XYZ-Wing

Finding an XYZ-Wing during a live solve requires a systematic scanning process. Since expert Sudoku puzzles contain many candidates, random searching will quickly lead to fatigue. Follow this structured approach to locate XYZ-Wings efficiently:

Step 1: Identify Tri-Value Cells

Begin by scanning the grid for cells that contain exactly three candidates (e.g., 1, 5, 9). These are your potential Pivot cells. When you find one, note the three candidates and treat them as your X, Y, and Z.

Step 2: Scan the Same 3x3 Box for Pincer 1

Look within the same 3x3 box as your candidate Pivot cell. You are searching for a bi-value cell (a cell with exactly two candidates) that contains two of the three candidates from the Pivot. Specifically, one of these candidates must be the shared candidate (Z), and the other must be one of the remaining two (let's say X). If you find a cell containing {X, Z}, you have located Pincer 1.

Step 3: Scan the Intersecting Row or Column for Pincer 2

Now, look along the row and column of the Pivot cell, but outside its 3x3 box. You are searching for a second bi-value cell that contains the shared candidate (Z) and the remaining candidate from the Pivot (Y). This cell must be located in a different box than the Pivot. If you find a cell containing {Y, Z} in the Pivot's row or column, you have located Pincer 2.

Step 4: Identify the Target Elimination Cells

Once you have confirmed the Pivot {X, Y, Z}, Pincer 1 {X, Z} (in the same box), and Pincer 2 {Y, Z} (in the same row or column), identify the cells that can see all three. Since Pincer 1 is in the same box as the Pivot, and Pincer 2 is in the same line (row or column) as the Pivot, the target cells must lie at the intersection. They must be in the same box as the Pivot and Pincer 1, and also in the same row or column as the Pivot and Pincer 2. If any of these intersection cells contain candidate Z, you can safely eliminate Z from their list of candidates.

Detailed Walkthrough: Row-Aligned XYZ-Wing

Let's examine a concrete example to solidify this concept. Imagine a Sudoku grid with the following cell coordinates (using standard row/column notation, where r1c1 is Row 1, Column 1) and candidate lists:

Let's double-check the candidates: the shared candidate (Z) is 9, which appears in all three cells. Pivot has {1, 5, 9}, Pincer 1 has {1, 9}, and Pincer 2 has {5, 9}. The setup is mathematically perfect.

Now, we must identify the target cells that can see r2c2 (Pivot), r3c3 (Pincer 1), and r2c8 (Pincer 2) at the same time:

The cells that are in both Row 2 and Box 1 are r2c1, r2c2, and r2c3. - r2c2 is the Pivot cell itself, so we ignore it. - This leaves r2c1 and r2c3 as our target cells. If either r2c1 or r2c3 contains candidate 9, we can confidently eliminate 9 from those cells. If r2c1 had candidates {4, 8, 9}, it would become {4, 8}. If r2c3 had candidates {7, 9}, it would be resolved instantly as 7!

Detailed Walkthrough: Column-Aligned XYZ-Wing

XYZ-Wings can also align vertically. Let's look at a column-aligned example to understand how the geometry shifts:

In this scenario, the shared candidate (Z) is 7. To find our target cells, we search for cells that can see all three nodes of this configuration:

The cells that reside in both Column 5 and Box 5 are r4c5, r5c5, and r6c5. - r4c5 is the Pivot, so we set it aside. - This leaves r5c5 and r6c5 as our target cells. Any occurrence of the candidate 7 in r5c5 or r6c5 can be safely eliminated. This simple elimination often cracks open the column or the box, leading to a chain reaction of solved cells.

Common Pitfalls and How to Avoid Them

While the XYZ-Wing is a highly reliable technique, it is easy to make mistakes if you do not pay close attention to detail. Here are the most common errors expert solvers make, and how you can avoid them:

1. Confusing XYZ-Wings with XY-Wings

In an XY-Wing, all three cells are bi-value cells (XY, XZ, YZ). In an XYZ-Wing, the Pivot must be a tri-value cell (XYZ). If you mistake a tri-value cell for a bi-value cell, or vice versa, your target elimination cells will be incorrect, and you may end up eliminating valid candidates, ruining the puzzle. Always verify the candidate count of the Pivot before making deductions.

2. The Pincers Seeing Each Other

For the logic to function correctly, Pincer 1 and Pincer 2 must not be in a position where they see each other. If they share a row, column, or box, the pattern is invalid. The pincers must only connect through their mutual relationship with the Pivot cell.

3. Incorrect Target Cell Identification

This is the most frequent mistake. Solvers often eliminate candidate Z from cells that only see two of the three cells. Remember, the target cell must see the Pivot, Pincer 1, and Pincer 2. If the target cell is outside the Pivot's box, it will not see Pincer 1. If it is outside the Pivot's row/column, it will not see Pincer 2. The elimination zone is restricted strictly to the intersection of the Pivot's box and the Pivot's row/column.

Pro Tips for Fast Identification

To spot XYZ-Wings quickly, incorporate these habits into your solving routine:

Advanced Connections: The Larger Family of Wings

The XYZ-Wing is part of a broader family of advanced Sudoku strategies known as "Wings." Understanding how they connect can help you build a more comprehensive mental model of Sudoku logic:

By integrating the XYZ-Wing into your Sudoku toolkit, you transition from a player who relies on scanning patterns to a logician who understands the deep mathematical relationships within the grid. The next time you find yourself stuck on an expert-level puzzle, don't despair. Scan for those tri-value cells, map out your pincers, and watch the puzzle unfold.