Melio/Guides
Sudoku·6 min read·May 24, 2026

Sudoku Y-wing (XY-wing): the bivalue trick that breaks expert puzzles

The Y-wing has nothing to do with the X-wing despite the similar name — different pattern, different reasoning. Where an X-wing is a rectangle of one digit, a Y-wing is a chain of three cells with three candidate values that lock each other into a specific deduction. It’s the other gateway technique that breaks expert puzzles.

The setup: bivalue cells

A bivalue cellis a cell that has exactly two possible candidates. No more, no less. On a hard or expert puzzle, you’ll find a handful of these once you fill in pencil marks. They’re the raw material for Y-wings.

The Y-wing pattern uses three bivalue cells whose candidate sets are arranged like a chain:

  • One cell — call it the pivot — has candidates {A, B}.
  • One wing has candidates {A, C}.
  • The other wing has candidates {B, C}.

Each wing shares one candidate with the pivot and one candidate with the other wing. The shared “outer” letter between the two wings is C, which never appears in the pivot.

The other rule: each wing must “see” the pivot — meaning they share a row, column, or 3×3 box. They don’t need to see each other; that’s not required.

Why it eliminates

Here’s the magic. The pivot will hold either A or B — those are its only options.

  • If the pivot is A: the {A,C} wing can’t also be A (because it sees the pivot via row/column/box), so that wing must be C.
  • If the pivot is B: the {B,C} wing must be C for the same reason.

Either way, one of the two wings ends up as C. You don’t know which wing — but you know that any cell that sees both wings cannot be C, because one of them is C, and you can’t have two Cs in the same row, column, or box.

So: scan the cells that share a row, column, or 3×3 box with both wings (the intersection of their visibility). Erase C as a candidate from any such cell.

A worked example

Suppose your pencil marks show:

r1c1: {2, 7} ← pivot, A=2 B=7 r1c5: {2, 8} ← wing, A=2 C=8 r4c1: {7, 8} ← wing, B=7 C=8

The pivot at r1c1 has {2,7}. The wing at r1c5 shares the 2 (and adds 8). The wing at r4c1 shares the 7 (and also adds 8). The shared outer candidate C is 8.

Both wings “see” the pivot:

  • r1c5 is in the same row as the pivot r1c1.
  • r4c1 is in the same column as the pivot r1c1.

Now find cells that see BOTH wings (r1c5 and r4c1). The intersection of “in row 1 or column 5” (for r1c5) and “in row 4 or column 1” (for r4c1) gives you specific cells like r4c5 (which shares row 4 with r4c1 and column 5 with r1c5).

If r4c5 currently has 8 as a candidate, erase it. The Y-wing has done its work — and often, removing an 8 from one cell cascades into placements elsewhere.

How to hunt for Y-wings

Y-wings hide more than X-wings, but the search is mechanical:

  1. List every bivalue cell. On an Expert puzzle there will be ten or twenty.
  2. For each one, treat it as the candidate pivot. Note its two values {A, B}.
  3. Find every bivalue cell that contains A (but not B) and sees this pivot. Each is a candidate {A, C} wing.
  4. For each such wing, find every bivalue cell that contains B (but not A) AND contains the wing’s C value AND sees the pivot. That’s the matching {B, C} wing.
  5. Once you have a pivot and two matching wings, find cells that see both wings and remove C from them.

Sounds tedious in prose; in practice you start seeing the shape after a dozen examples. The trick is having pencil marks complete — you can’t spot bivalue cells without them.

Y-wing vs X-wing — when to reach for each

X-wingis for when scanning fails on a single digit and you can see two rows (or two columns) where the digit is restricted to exactly two cells in the same column pair (or row pair). It’s a rectangle, all on one digit.

Y-wing is for when scanning fails and you can spot three bivalue cells whose candidates form a triangle of {A,B}, {A,C}, {B,C}. It uses three digits and three cells.

On most Expert puzzles, one or the other will be available — sometimes both. If both look hard to spot, start with X-wing (easier to scan for: pick a digit, scan rows). If X-wing fails, fall through to Y-wing hunting.

Beyond the Y-wing: longer chains

The Y-wing is a 3-cell chain. The same idea extends to longer chains:

  • XY-chain: an arbitrarily long chain of bivalue cells, each adjacent pair sharing one candidate. The Y-wing is the 3-cell special case.
  • WXYZ-wing: a 4-cell variant where the pivot has three candidates instead of two.

These show up on Extreme puzzles. The Y-wing is usually the most you’ll need on Expert.

Try it now

Find your first Y-wing

Start an Expert solo, fill candidates, list the bivalue cells, and start hunting for the pivot-and-wings triangle. The first one is hard; the tenth is fast.

Play Expert →

More sudoku

  • XYZ-wing (the trivalue-pivot variant) →
  • The X-wing technique (the other gateway move) →
  • Pointing pairs (the prerequisite intermediate technique) →
  • Swordfish + jellyfish (the next-step fish) →
  • How to solve hard sudoku (techniques overview) →
  • Browse all strategy articles →

Keep reading

Sudoku5 min
Sudoku XYZ-wing: the trivalue pivot variant of Y-wing
Y-wing's slightly bigger cousin. A trivalue pivot {x,y,z} plus two bivalue wings {x,z} and {y,z}, all sharing the digit z. Any cell that sees all three loses z as a candidate. Worked example, when it appears.
Sudoku7 min
Sudoku unique rectangle: the uniqueness-based elimination
Four cells in a rectangle across two rows, two columns, and two boxes, all sharing the same two candidates. If left alone, the puzzle would have two solutions — but a well-formed sudoku has exactly one. Use that to force an elimination.
Sudoku6 min
Sudoku naked pairs and triples: the cell-set elimination
When two cells in a unit share the same two candidates, those two digits are locked into that pair. Everywhere else in the unit can drop both digits. The most-used intermediate technique after pointing pairs.
Sudoku5 min
Sudoku skyscraper: the cousin of X-wing for short-strong patterns
The skyscraper sits between X-wing and the harder fish patterns. Two strong links on a single digit, ending in cells of different heights — and the elimination that falls out. Worked example included.
Browse all guides →
© 2026 Melio Games. A small, carefully made games studio.
GuidesFor your siteWhat’s newRoadmapFAQFeedbackAboutPrivacyTermsSudokuPlayers