XY-Wing Strategy

The XY-Wing uses three bi-value cells - a pivot and two wings - to eliminate a candidate from any cell that sees both wings.

Difficulty (First short chain)
Advanced
Cells in pattern (Pivot + 2 wings)
3
Candidates per cell (All bivalue)
2
Eliminates (From cells seeing both wings)
Z digit

What Is an XY-Wing?

An XY-Wing requires three cells, each containing exactly two candidates (bi-value cells). The central cell, called the "pivot," has candidates X and Y. It connects to two "wing" cells: one with candidates X and Z (sharing X with the pivot), and another with candidates Y and Z (sharing Y with the pivot). Each wing must share a unit (row, column, or box) with the pivot, but the two wings do not need to share a unit with each other.

The elimination logic is elegant: if the pivot cell contains X, then the XZ wing cannot be X, so it must be Z. If the pivot cell contains Y, then the YZ wing cannot be Y, so it must be Z. In either case, at least one wing cell must contain Z. Therefore, any cell that can "see" both wing cells (shares a unit with both) cannot contain Z - it would create a contradiction no matter what the pivot holds.

This technique introduces chain-based reasoning, which is a stepping stone toward more complex strategies like Forcing Chains. Understanding XY-Wings deepens your ability to think about implications and logical dependencies in Sudoku. For related terminology, see our Sudoku glossary.

How to Apply the XY-Wing: Step-by-Step

  1. Complete all pencil marks - Apply all basic and intermediate techniques first. Ensure every empty cell has an accurate candidate list. XY-Wings require bi-value cells, which only emerge after significant candidate elimination.
  2. Find bi-value cells - Identify all cells that contain exactly two candidates. These are your potential pivot and wing cells. Mark or highlight them mentally - they are the building blocks of XY-Wing patterns.
  3. Select a potential pivot - Choose a bi-value cell with candidates XY. Look for two other bi-value cells that share a unit with this pivot: one containing X and some other number Z, and another containing Y and that same Z.
  4. Verify the wing connections - Confirm that Wing 1 (XZ) shares a row, column, or box with the pivot. Confirm that Wing 2 (YZ) also shares a row, column, or box with the pivot. The wings do NOT need to see each other directly.
  5. Eliminate candidate Z - Find cells that share a unit with BOTH wing cells simultaneously. Remove candidate Z from those cells. This elimination is valid because at least one wing must contain Z regardless of the pivot's value.

When to Use the XY-Wing

XY-Wings become relevant when pattern-based techniques like X-Wing and Swordfish are not producing results. They are particularly useful in hard and expert Sudoku puzzles where the grid has many bi-value cells after initial eliminations.

The XY-Wing is one of the most satisfying techniques to apply because the logic is clean and the eliminations can be dramatic. If you enjoy logical deduction, this technique and its extensions will appeal to you. For the full progression of techniques, visit our strategy guide or review how to play Sudoku.

Difficulty Level & Puzzle Types

The XY-Wing is classified as an advanced-level technique. It requires understanding bi-value cells, chain reasoning, and visibility between cells - skills that distinguish advanced solvers from intermediate ones.

Easy

Never needed - basic singles handle these puzzles

Medium

Not needed - intermediate techniques are sufficient

Hard

Occasionally needed when fish patterns are absent

Expert

Frequently useful - a key technique at expert level

Tips for Mastering the XY-Wing

  1. Start by listing all bi-value cells on the grid. The more bi-value cells there are, the higher the chance of finding an XY-Wing.
  2. Focus on the shared candidate Z - this is what gets eliminated. Identify which number appears in both wing cells but not in the pivot.
  3. Remember that the elimination only applies to cells that see BOTH wings. A cell seeing just one wing is not affected.
  4. After making eliminations, immediately check for new Naked Singles or Hidden Singles created by the removal.

Frequently Asked Questions

What is an XY-Wing in Sudoku?

An XY-Wing (also called Y-Wing) is an advanced technique involving three cells, each containing exactly two candidates. A central "pivot" cell with candidates XY connects to two "wing" cells: one with candidates XZ and another with candidates YZ. Any cell that can see both wing cells can have candidate Z eliminated.

How do I identify the pivot and wing cells?

The pivot cell must share a unit (row, column, or box) with each wing cell, but the two wing cells do not need to share a unit with each other. The pivot has candidates XY, one wing has XZ, and the other wing has YZ. The shared candidate Z between the two wings is the one that gets eliminated from cells that see both wings.

Why does the XY-Wing elimination work?

Consider the pivot cell with candidates XY. If the pivot is X, then the wing with XZ must be Z. If the pivot is Y, then the wing with YZ must be Z. Either way, at least one wing cell must contain Z. Therefore, any cell that sees both wing cells cannot contain Z.

How does XY-Wing differ from X-Wing?

Despite similar names, they are completely different techniques. X-Wing is a "fish" pattern based on row-column alignments of a single candidate. XY-Wing is a chain-based technique involving three bi-value cells with different candidate pairs. The elimination logic is fundamentally different.

Is XY-Wing the same as Y-Wing?

Yes, XY-Wing and Y-Wing refer to the same technique. The names are used interchangeably in the Sudoku community. Some sources prefer "Y-Wing" because of the Y-shaped connection pattern between the three cells.

Related Techniques

Related Glossary Terms

View full glossary

Practice by Difficulty

See it in action: an XY-Wing on digit 3

3
5
7
2
3
1
3
1
2

Find a 'pivot' cell with exactly two candidates. Here R5C5 has [1, 2].

Step 1 of 4 — full interactive demo available with JavaScript enabled

Ready to put your skills to the test?

Try Final Sudoku - an ad-free Sudoku experience with smart tools

Get Our App