Y-Wing (XY-Wing) Technique

    Expert2025-01-17• By Sudoku Master Team15 min read
    🎯

    Quick Summary

    The Y-Wing (also called XY-Wing) is an advanced technique that uses a three-cell pattern to create a forcing chain. One cell (pivot) contains two digits, and two other cells (pincers) each contain one of those digits plus a third digit, allowing elimination of the third digit from cells that see both pincers.

    What is the Y-Wing Technique?

    The Y-Wing is an advanced Sudoku solving technique that gets its name from the Y-shaped pattern formed by three strategically positioned cells. It's a powerful elimination method that uses forcing chains to logically determine that certain candidates are impossible.

    This technique is particularly useful in expert-level puzzles where basic and intermediate techniques are no longer sufficient to make progress. It requires careful pattern recognition and understanding of how candidates interact across multiple cells.

    Understanding the Y-Wing Pattern

    A Y-Wing consists of three cells:

    1. 1Pivot Cell (XY): Contains exactly two digits, let's call them X and Y
    2. 2First Pincer (XZ): Contains digits X and Z, and shares a unit (row, column, or box) with the pivot
    3. 3Second Pincer (YZ): Contains digits Y and Z, and shares a unit with the pivot

    The key insight is that any cell that can "see" both pincer cells cannot contain the digit Z, because the pivot cell must contain either X or Y, which forces one of the pincers to contain Z.

    Why Does the Y-Wing Work?

    The Y-Wing works through logical forcing chains. Let's trace through the logic:

    Case 1: Pivot contains X

    If the pivot cell contains X, then the first pincer (XZ) cannot contain X, so it must contain Z.

    Case 2: Pivot contains Y

    If the pivot cell contains Y, then the second pincer (YZ) cannot contain Y, so it must contain Z.

    Conclusion

    In both cases, one of the pincers must contain Z. Therefore, any cell that can see both pincers cannot contain Z, because Z is already placed in one of the pincers.

    Step-by-Step Example

    Let's work through a detailed example. In the puzzle below, we'll identify a Y-Wing pattern:

    Y-Wing Pattern Identification9 by 9 Sudoku grid with numbers. Thick lines separate 3x3 boxes.537619598686348317266284195879
    The highlighted cells form a Y-Wing pattern. Pivot (2,4), First pincer (2,7), Second pincer (4,7).

    Step 1: Identify the Pattern

    In this example:

    • Pivot (R2C2): Contains digits 2 and 4 (XY)
    • First Pincer (R2C3): Contains digits 2 and 7 (XZ)
    • Second Pincer (R3C1): Contains digits 4 and 7 (YZ)

    Step 2: Analyze the Forcing Chain

    Let's trace the logic:

    • • If pivot contains 2 → First pincer must contain 7
    • • If pivot contains 4 → Second pincer must contain 7
    • • In both cases, 7 must appear in one of the pincers

    Step 3: Apply the Elimination

    Any cell that can see both pincers (R2C3 and R3C1) cannot contain 7, because 7 is guaranteed to be in one of them. This eliminates 7 from other cells in the same row, column, or box as both pincers.

    How to Spot Y-Wing Patterns

    Method 1: Look for Bi-value Cells

    1. 1.Find cells that contain exactly two candidates (bi-value cells)
    2. 2.Check if this cell can be a pivot (shares units with two other bi-value cells)
    3. 3.Verify that the pincers share a common digit with the pivot and have a third digit in common

    Method 2: Systematic Search

    1. 1.Choose a specific digit to focus on (e.g., 7)
    2. 2.Find all bi-value cells that contain this digit
    3. 3.Look for patterns where two such cells share a unit with a third bi-value cell
    4. 4.Verify the Y-Wing conditions are met

    Practice Exercise

    Try to find Y-Wing patterns in this practice puzzle. Look for three cells that form the characteristic Y-shaped pattern:

    Practice Y-Wing Puzzle9 by 9 Sudoku grid with numbers. Thick lines separate 3x3 boxes.37619598686348317266284195879
    Look for Y-Wing patterns in this puzzle. Focus on bi-value cells that might form the characteristic Y-shape.

    Common Y-Wing Variations

    1. Standard Y-Wing

    The classic Y-Wing with three bi-value cells forming the Y-pattern, as described above.

    2. Remote Pairs

    A variation where the pincers don't directly share a unit with the pivot, but are connected through a chain of cells. This is more complex but follows similar logic.

    3. Multiple Y-Wings

    A puzzle might contain multiple Y-Wing patterns for different digits, or overlapping Y-Wings that can be applied in sequence.

    Tips for Success

    Best Practices

    • Use pencil marks: Keep detailed track of all possible candidates
    • Look for bi-value cells: These are the building blocks of Y-Wings
    • Check unit relationships: Verify that cells share appropriate units
    • Practice pattern recognition: The more you look, the easier they become to spot

    Common Mistakes to Avoid

    • Wrong unit relationships: Ensure cells share appropriate units
    • Incorrect digit relationships: Verify the XY, XZ, YZ pattern
    • Missing eliminations: Don't forget to eliminate from cells that see both pincers
    • Overcomplicating: Start with simple, clear Y-Wing patterns

    When to Use Y-Wing

    Y-Wing is most effective when:

    • You have good pencil marks showing possible candidates
    • Basic and intermediate techniques are no longer sufficient
    • You're working on expert-level puzzles
    • You can identify several bi-value cells in the puzzle

    Advanced Applications

    Once you master Y-Wing, you can explore even more advanced techniques:

    • XY-Chain: An extension of Y-Wing involving longer chains of bi-value cells
    • W-Wing: A variation that uses two cells with the same two candidates
    • Remote Pairs: Y-Wing patterns that span across multiple units

    Next Steps

    The Y-Wing technique is a powerful tool for solving expert-level puzzles. Once you're comfortable with Y-Wing, consider learning about Swordfish (a three-row, three-column pattern) or Note Validation (automated pencil mark management).

    Ready for More Advanced Techniques?

    Practice your Y-Wing skills or learn the next advanced technique.