When working on advanced Sudoku puzzles, solvers often find that basic techniques like naked pairs or locked candidates aren’t enough to make progress. In such situations, more intricate strategies come into play. One such technique is the XY-Wing, a powerful and logical pattern that allows a solver to eliminate candidates and open up the grid. This article aims to explain what an XY-Wing is, how to recognize it, and how to apply it with confidence using clear examples.
Understanding the XY-Wing Pattern
At its core, the XY-Wing is a three-cell pattern involving three different bi-value cells (cells that contain exactly two pencil-marked candidates). These three cells form a kind of pivot and wing structure, where logical deduction allows the elimination of a candidate number in cells that can “see” two parts of the structure simultaneously.
Here’s a simple breakdown of the concept:
- X, Y, and Z represent three distinct digits.
- The “pivot” cell contains X and Y.
- One “wing” cell contains Y and Z.
- The other “wing” contains X and Z.
The magic of the XY-Wing comes from conditional logic. If the pivot is X, the Y-Z wing must be Z. If the pivot is Y, the X-Z wing must be Z. Therefore, in either case, Z must appear in one of the wings, allowing us to eliminate Z from any cells that see both wings.

Requirements for an XY-Wing
Before implementing the XY-Wing strategy, it’s crucial to understand its specific requirements. Not every group of three bi-value cells qualifies. Here are the mandatory criteria for an XY-Wing to exist:
- Three bi-value cells: All involved cells must contain exactly two pencil marks, no more, no fewer.
- Sharing a candidate: The pivot must have the XY candidates. One wing must have YZ, and the other wing XZ.
- All three digits must be distinct: X, Y, and Z must all refer to different numbers.
- Cells must ‘see’ each other: The pivot must be able to see both wings (meaning they are in the same row, column, or block). The two wings themselves typically do not see each other, but must both see any cell from which a candidate will be eliminated.
Step-by-Step Identification and Execution
Recognizing an XY-Wing is mostly about pattern recognition. With practice, these patterns become more noticeable, especially when working with pencil marks. Here’s how you can spot and use an XY-Wing to eliminate candidates in practical solving:
1. Look for Bi-Value Cells
Start by identifying cells that have exactly two candidates. Use candidates notation (like 2, 3 or 7, 9). Once enough bi-value cells are pencil-marked, patterns will start to emerge visually.
2. Search for the Pivot
Out of your bi-value cells, pick one to be your pivot candidate. Look for combinations like 2, 3. Now check for two other bi-value cells which have overlapping digits:
- One cell with 3, 5
- And another with 2, 5
Now you have a potential XY-Wing with X=2, Y=3, Z=5.
3. Verify Visibility
Confirm that the pivot cell shares visibility (meaning they’re in the same row, column, or 3×3 block) with both wing cells. Also ensure that the wing cells don’t necessarily need to see each other, but a candidate Z can only be eliminated in cells that see both wings.
4. Eliminate the Candidate
Any cell that sees both wings (the one with 3,5 and the one with 2,5), and contains candidate 5 (the Z-value), can safely have the 5 removed. This is because 5 must be placed in one of the wings, no matter whether the pivot ends up being 2 or 3.
Illustrated Example of XY-Wing
Imagine you are solving a medium-level Sudoku puzzle and encounter the following candidate layout:
- Cell A1: 2, 3 (pivot)
- Cell C1: 3, 8
- Cell A3: 2, 8
Here’s how this fits the XY-Wing pattern:
- X = 2, Y = 3, Z = 8
- Pivot cell has 2,3
- First wing has 3,8
- Second wing has 2,8
If A1 is 2, then A3 must be 8. If A1 is 3, then C1 must be 8. In both cases, 8 must appear in A3 or C1. Therefore, any cell that sees both A3 and C1 cannot be 8.

After confirming that, say, cell B2 sees both A3 and C1 and contains the candidate 8, you can safely eliminate 8 from B2.
Why XY-Wing Is Powerful
XY-Wings often appear in puzzles graded medium to advanced. They frequently unlock puzzles that appear to be frozen, allowing logical deductions without guessing. They’re also less prone to error compared to more complex chains because the relationships among three bi-value cells are easier to cross-check and confirm visually.
Cautions and Common Pitfalls
While XY-Wings are highly effective, solvers should be careful to avoid the following mistakes:
- Mistaking tri-value cells for bi-value: The technique only works when all three involved cells have exactly two candidates.
- Incorrect pivot selection: Not all Y- and X-candidate combinations will form an actionable pattern. Be sure to confirm all four relationship requirements.
- Visual inattentiveness: Ensure that the cell from which you’re trying to eliminate candidate Z actually sees both wings. Mistakes here can cause invalid moves.
Practice and Application
Like most advanced Sudoku techniques, proficiency with XY-Wings comes with practice. To foster this learning:
- Use pencil markings religiously. Without tracking candidates, XY-Wings are nearly impossible to spot.
- Search for the XY combination among bi-value cells, then work outward to find matching wings.
- Regularly solve puzzles categorized as intermediate or hard that are known to include advanced logic techniques like XY-Wing, X-Wing, and Swordfish.
Some online Sudoku platforms and mobile apps even provide notations or highlight possible XY-Wing patterns to assist in training your pattern recognition.
Conclusion
The XY-Wing is a uniquely elegant solving technique that represents a step up from basic deduction methods. It showcases the logical beauty of Sudoku, where clarity of pattern and structure give rise to watertight conclusions. As you refine your solving skills, adding the XY-Wing to your toolkit will prepare you for more complex and rewarding puzzles.
By practicing the steps outlined above—recognizing, verifying, and applying—you’ll find yourself progressing through difficult puzzles with increased intuition and confidence. Pattern-based logic, when mastered, provides not only accurate results but a deeper appreciation of the puzzle itself.