SudokuHint

Y-Wing without the Jargon: A Plain Practice Guide

A Y-Wing uses three cells: a pivot with candidates {A,C} and two wings with candidates {A,B} and {B,C}; whichever value the pivot takes, one wing must be B, so you can eliminate B from any cell that sees both wings. This technique, also called an XY-Wing, is a powerful intermediate strategy that acts like a 'remote pair' to create a forcing chain. It's a step up from simpler patterns like [Naked Pairs](/techniques/naked-pairs) and often appears in puzzles where basic methods stall. While it can seem abstract at first, its logic is mechanical: find the three-cell pattern, identify the common digit, and erase it from the right spots. Our hint engine finds many solvers miss this pattern because they don't systematically check for the specific candidate relationships between a pivot cell and its two wings.

By SudokuHint TeamLast updated

Why is it called a 'Wing'?

The name comes from the visual and logical structure of the pattern: a central 'pivot' cell has two 'wings' extending from it. In a standard Y-Wing, the candidate relationships form a chain (A to B to C) that pivots on the central cell, creating a V-shape or 'Y' shape on the grid, much like a bird's wings.

The 'XY' part of 'XY-Wing' refers to the candidate types in the pivot cell. It's a bi-value cell with candidates X and Y (our A and C). The wings are also bi-value cells, one containing X (A) and Z (B), the other containing Y (C) and Z (B). The pattern's logic forces the common Z (B) to appear in one wing.

How many candidates does each cell need?

Each of the three cells in a Y-Wing must have exactly two candidates. The pivot cell has candidates {A, C}. The first wing cell has candidates {A, B}. The second wing cell has candidates {B, C}. This exact 2-2-2 candidate structure is non-negotiable for the forcing logic to work.

Any extra candidate in a wing cell would break the chain. For instance, if a wing had candidates {A, B, D}, it could potentially be D instead of A or B, which means we could no longer guarantee that B must appear somewhere. Sticking to bi-value cells is key.

Key insight: Critical: All three cells must be bi-value (have exactly two candidates). The pivot shares one digit with each wing, and the wings share the elimination digit B with each other.

Where can you make the elimination?

You eliminate the common digit B from any cell that sees both wing cells simultaneously. This is the most crucial step. The target cell must be in the same row, column, or 3x3 block as the first wing AND in the same row, column, or 3x3 block as the second wing.

The wings themselves do not need to see each other. They only need to both see the pivot. The elimination happens in cells that are 'covered' by both wings' influence. This can often be a cell that is far from the pivot, making the Y-Wing a powerful long-range eliminator.

  • Scan for cells that lie at the intersection of a wing's row and the other wing's column or block.
  • If the wings are in the same block, any cell in that block that sees both wings is a candidate for elimination.

How is it different from an X-Wing?

An X-Wing is a pattern involving four cells at the corners of a rectangle, all containing the same candidate. It's a fish pattern that works on a single digit. A Y-Wing involves three cells and three different candidate digits (A, B, C) working in a chain.

Think of it this way: an X-Wing finds a double row/column lock for one number. A Y-Wing uses a logical chain between three numbers to prove one of them (B) must be placed, allowing you to eliminate its other appearances. They are fundamentally different techniques that solve different types of candidate grid deadlocks.

Can the three cells be in a straight line?

Yes. The spatial arrangement of the three cells is flexible. The only strict requirement is that each wing cell must see the pivot cell (be in its row, column, or 3x3 block). The wings can be in a straight line with the pivot, form an L-shape, or a V-shape.

The classic 'Y' visual is just one common formation. For example, the pivot could be in row 5, column 5. Wing 1 could be in row 5, column 2 (same row). Wing 2 could be in block 5 (same block as the pivot). This forms an L-shape, but the Y-Wing logic still holds perfectly.

Key insight: Visual Guide: P(AC) -- W1(AB) and P(AC) -- W2(BC). The '--' means 'sees'. The lines can be straight, bent, or diagonal (within a block).

Is the Y-Wing worth learning for a beginner?

Absolutely. Once you are comfortable with singles, pairs, and triples, the Y-Wing is one of the most accessible 'chaining' techniques. It provides a clear, rule-based method for making eliminations that feel intuitive once you practice it a few times. It regularly appears in medium to hard puzzles.

Learning the Y-Wing builds the foundational logic you'll need for more advanced techniques like XYZ-Wings and Swordfish. It teaches you to look for forcing relationships between bi-value cells, a skill that is essential for progressing beyond the most basic solving strategies.

  • Start by hunting for bi-value cells. If one bi-value cell sees two others that share a common candidate, check if they fit the {A,B}, {A,C}, {B,C} pattern.
  • Use the hint system on SudokuHint.com to have the engine point out Y-Wings in your current puzzle for practice.

Key Facts

  • A Y-Wing pattern consists of three cells: a pivot with candidates {A,C} and two wings with candidates {A,B} and {B,C}.
  • The eliminated digit is B, the one shared by both wings. It is never A or C from the pivot.
  • All three cells in a Y-Wing must have exactly two candidates each.
  • The two wing cells do not need to see each other. Each wing must only see the pivot cell.
  • You can eliminate candidate B from any cell that is seen by both wing cells simultaneously.
  • The spatial arrangement can be a straight line, L-shape, or V-shape, as long as the 'sees pivot' condition is met.
  • The logic is: If the pivot is A, Wing1 cannot be A so it must be B. If the pivot is C, Wing2 cannot be C so it must be B. Either way, B is forced into one wing.
  • Y-Wing is different from X-Wing, which uses four cells with the same candidate to form a rectangle.
  • Mastering Y-Wing is a key step before learning more complex techniques like XYZ-Wings and Swordfish.

Frequently Asked Questions

Can a wing cell have three candidates?

No. A wing cell must have exactly two candidates: the shared pivot digit (A or C) and the common elimination digit B. Any extra candidate would break the forcing logic that guarantees B will be placed.

What if I find the pattern but the wings see each other?

That's fine. The rule is they *do not need* to see each other, but they can. The elimination logic works regardless. Just remember to only eliminate B from cells that see *both* wings.

How do I spot a Y-Wing quickly?

Scan for bi-value cells. When you find one (the pivot), look in all its intersecting rows, columns, and blocks for other bi-value cells that share one of its digits. Check if those two wings share a common third digit.

Is XY-Wing the same as Y-Wing?

Yes, XY-Wing and Y-Wing are two names for the exact same technique. The 'XY' refers to the two candidates in the pivot cell.

What's the most common mistake when applying Y-Wing?

Eliminating the wrong digit. You eliminate B (shared by the wings), not A or C from the pivot. Also, ensure the target cell for elimination truly sees both wings.