Minimal Sudoku
Y-Wing pattern in Sudoku
Learn Section

Y-Wing

Three Cells, Powerful Eliminations

By Minimal Sudoku TeamLast updated:

The Y-Wing (also called "XY-Wing") is a powerful advanced technique that uses three bi-value cells arranged in a specific pattern to eliminate candidates. It's one of the most satisfying patterns to spot!

Quick Summary
  • What: Three cells with candidates AB, AC, and BC forming a pivot pattern
  • Shape: One pivot cell "sees" two wing cells (wings don't see each other)
  • Result: Eliminate the common candidate (C) from cells that see both wings
  • Difficulty: Advanced — requires candidate notation

The Concept

A Y-Wing consists of three cells, each containing exactly two candidates (bi-value cells). The cells share candidates in a specific way:

The key: both wings share candidate C, but the pivot doesn't have C. This creates a powerful elimination opportunity.

The Golden Rule

🦋 Y-Wing Rule
In a Y-Wing pattern, the candidate shared by both wings (but not the pivot) can be eliminated from any cell that sees both wings.

Anatomy of a Y-Wing

Y-Wing structure:
Y-Wing structure with pivot and two wingsPivot cell with A and B sees two wing cells with A and C, and B and C. Candidate C is removed from cells that see both wings.PivotA,BWing 1A,CWing 2B,CTarget cellremove Cno direct wing-to-wing linkPivot sees Wing 1 and Wing 2Target sees both wings, so C is eliminated
Corner layout: Pivot (top-left), Wing 1 (top-right), Wing 2 (bottom-left), Target (bottom-right).

The pattern gets its name from the Y-shape formed when you draw lines from the pivot to each wing.

🎯
Pivot

Candidates: A, B

Sees both wings

🪽
Wing 1

Candidates: A, C

Sees pivot only

🪽
Wing 2

Candidates: B, C

Sees pivot only

How to Find Y-Wings

1

Find bi-value cells

Scan the grid for cells containing exactly two candidates. These are your potential pivot and wing cells.
2

Pick a potential pivot

Choose a bi-value cell with candidates A and B. This will be your pivot.
3

Find Wing 1

Look for a bi-value cell that sees the pivot and shares one candidate (A) plus a different candidate (C). This cell has candidates A and C.
4

Find Wing 2

Look for a bi-value cell that sees the pivot and has candidates B and C. It must share B with the pivot and C with Wing 1.
5

Verify wings don't see each other

The two wings must NOT be in the same row, column, or box. If they see each other, the pattern doesn't work.
6

Find elimination targets

Any cell that sees BOTH wings can have candidate C eliminated.

Practical Example

Y-Wing on Candidates 4, 7, 8

Y-Wing pattern example

In this example, we have a Y-Wing with:

  • Pivot at R2C9: Candidates 4, 8
  • Wing 1 at R2C3: Candidates 4, 7 (sees pivot via row 2)
  • Wing 2 at R3C8: Candidates 7, 8 (sees pivot via box 3)

The wings share candidate 7 but the pivot doesn't have 7.

Logic: The pivot must be either 4 or 8. If it's 4, Wing 1 becomes 7. If it's 8, Wing 2 becomes 7. Either way, one wing is definitely 7!

Elimination
Eliminate 7 from any cell that sees both R2C3 and R3C8.

Why It Works

The logic is elegant. Consider the pivot cell with candidates 4 and 8:

In both cases, at least one wing becomes 7. Since any cell that sees both wings would "see" a 7 regardless of which scenario plays out, we can eliminate 7 from those cells.

Visual representation:
Y-Wing pattern on candidates 4, 7, 8Pivot at R2C9 with candidates 4,8 connects to Wing 1 at R2C3 with 4,7 and Wing 2 at R3C8 with 7,8.Pivot4, 8R2C9Wing 14, 7R2C3Wing 27, 8R3C8Target cellremove 7no direct wing-to-wing linkCommon candidate: 7 in both wings, not in pivot
Same corner layout in a real example: pivot and two wings force the bottom-right target elimination.
The Either/Or Logic
We don't need to know which wing contains 7 — we just know one of them definitely does. This is enough to eliminate 7 from any cell that sees both wings.

Detection Tips

Start with Rare Bi-Value Pairs
Focus on candidate pairs that appear in few bi-value cells. If candidates 4 and 8 only appear together in 3 cells, checking those for Y-Wing patterns is quick.
Look for the Common Candidate
Instead of finding the pivot first, look for the common wing candidate (C). Find all bi-value cells containing C, then check if any pair could be wings with a connecting pivot.
Draw Mental Lines
When you find a potential pivot, mentally draw lines to cells it sees. Look for bi-value cells along those lines that could form wings.
Wings Must Not See Each Other
A common mistake is connecting wings that share a row, column, or box. For the elimination to work, the wings must be in separate units (only connected through the pivot).

Y-Wing is part of the "Wing" family of techniques, all using bi-value cells to create elimination patterns:

XYZ-WingAdvanced

XYZ-Wing

The extended version where the pivot has all three candidates. More complex but same logic.