Back to Blog

What is XY-Wing in Sudoku? Complete Guide

Master the XY-Wing technique, a powerful advanced Sudoku strategy that uses three cells to eliminate candidates through logical chains.

What is XY-Wing in Sudoku?

The XY-Wing technique is an advanced Sudoku solving method that uses three cells to create a logical chain for candidate elimination. It's called "XY-Wing" because it involves three cells with specific candidate relationships that form a wing-like pattern.

Key Concept: XY-Wing uses three cells: a pivot cell with candidates XY, and two wing cells with candidates XZ and YZ respectively. This creates a logical chain that eliminates Z from cells that can see both wing cells.

How XY-Wing Works: The Logic

The XY-Wing technique works through a specific logical pattern:

XY-Wing Structure

  1. Pivot Cell: Contains exactly two candidates (XY)
  2. Wing Cell 1: Contains candidates (XZ) - shares X with pivot
  3. Wing Cell 2: Contains candidates (YZ) - shares Y with pivot
  4. Elimination: Any cell that sees both wing cells cannot contain Z

Step-by-Step XY-Wing Detection

Here's how to find XY-Wing patterns systematically:

  1. Find Pivot Cell: Look for a cell with exactly two candidates (XY)
  2. Find Wing Cells: Look for two cells that each share one candidate with the pivot
  3. Verify Pattern: Ensure one wing has XZ and the other has YZ
  4. Check Visibility: Find cells that can see both wing cells
  5. Make Elimination: Remove candidate Z from cells that see both wings

XY-Wing Example: Detailed Walkthrough

Let's work through a concrete example:

Example Scenario

Consider this XY-Wing pattern:

  • Pivot Cell (R3C5): Contains candidates 2 and 6
  • Wing Cell 1 (R3C8): Contains candidates 2 and 9
  • Wing Cell 2 (R7C5): Contains candidates 6 and 9

The shared candidate is 9, and any cell that can see both R3C8 and R7C5 cannot contain 9.

Visualizing the XY-Wing Pattern

The XY-Wing pattern gets its name from its visual structure:

Visual Pattern: Imagine the pivot cell as the center, with two lines extending to the wing cells. The elimination occurs where these lines would intersect if extended further.

Types of XY-Wing Patterns

XY-Wing patterns can appear in various configurations:

1. Row-Based XY-Wing

Where the pivot and one wing are in the same row, and the other wing is in the same column as the pivot.

2. Column-Based XY-Wing

Where the pivot and one wing are in the same column, and the other wing is in the same row as the pivot.

3. Box-Based XY-Wing

Where the pivot and both wings are in the same 3x3 box.

When to Use XY-Wing Technique

XY-Wing is most effective in these situations:

Pro Tip: XY-Wing patterns are easier to spot when you systematically check each cell with exactly two candidates as potential pivots.

Common XY-Wing Mistakes

Beginners often make these errors when using XY-Wing:

Mistake 1: Not ensuring the pivot cell has exactly two candidates
Mistake 2: Confusing XY-Wing with Y-Wing or XYZ-Wing techniques
Mistake 3: Eliminating from cells that don't see both wing cells
Mistake 4: Not verifying that the wing cells share the same third candidate

XY-Wing vs. Related Techniques

Understanding how XY-Wing relates to other techniques:

XY-Wing (3 cells)

Pivot with 2 candidates, two wings each with 2 candidates, one shared candidate eliminated.

Y-Wing (3 cells)

Similar to XY-Wing but with different candidate distribution patterns.

XYZ-Wing (3 cells)

Pivot with 3 candidates, wings with 2 candidates each, more complex eliminations.

Practice Strategies for XY-Wing

To master XY-Wing technique:

  1. Start with Simple Examples: Practice on puzzles where XY-Wing patterns are obvious
  2. Use Systematic Scanning: Check each cell with two candidates as a potential pivot
  3. Practice Visualization: Learn to see the wing pattern in your mind
  4. Study Worked Examples: Analyze how experts apply XY-Wing in complex puzzles
  5. Time Your Practice: Work on speed recognition for competitive solving

Advanced XY-Wing Applications

Once you master basic XY-Wing, explore these advanced applications:

Remote XY-Wing

A variation where the wing cells are not directly adjacent to the pivot but still form a valid XY-Wing pattern.

XY-Wing Chains

Multiple XY-Wing patterns that can be chained together for more complex eliminations.

Finned XY-Wing

A variation where one of the wing cells has an extra candidate that can be eliminated under certain conditions.

Learning Path: Master the basic XY-Wing technique before exploring these advanced variations. The fundamental logic remains the same.

XY-Wing in Solving Strategy

XY-Wing fits into a comprehensive solving approach:

  1. Basic Techniques: Singles, pairs, and triples
  2. Hidden Techniques: Hidden singles, pairs, and triples
  3. Pointing Pairs: Box-line reduction and pointing pairs
  4. X-Wing: Basic fish techniques
  5. XY-Wing: Chain elimination techniques
  6. Advanced Fish: Swordfish, Jellyfish, and other advanced methods

Tools for XY-Wing Practice

Several tools can help you master XY-Wing:

Pencil Marks: Complete pencil marking is essential for finding XY-Wing patterns
Pattern Recognition: Practice visualizing the wing pattern in different orientations
Systematic Approach: Develop a methodical way to scan for XY-Wing patterns
Practice Puzzles: Work on puzzles specifically designed to teach XY-Wing technique

XY-Wing in Competitive Solving

In competitive Sudoku, XY-Wing technique is valuable because:

Common XY-Wing Scenarios

XY-Wing patterns frequently appear in these situations:

The XY-Wing technique is a powerful tool that bridges the gap between basic and advanced Sudoku solving. With practice, it becomes an intuitive method that can crack even the most challenging puzzles through elegant logical chains.

Ready to Practice XY-Wing?

Apply the XY-Wing technique with our interactive Sudoku puzzles!

Start Playing