Y-Wing (XY-Wing)

Volodymyr Sakhan  · 

The Y-Wing — also called XY-Wing — is an advanced sudoku technique that uses three bi-value cells to force a candidate elimination. Unlike row- or column-based patterns, Y-Wing works across the whole board: you can spot it using pencil marks once simpler methods are exhausted.

This guide explains the logic, walks through two worked examples with diagrams, and shows you how to scan for the pattern efficiently. If you are comfortable with naked pairs and hidden singles, you are ready for Y-Wing.

What Is Y-Wing (XY-Wing)?

A Y-Wing uses exactly three bi-value cells — cells that each contain precisely two candidates. The three cells play distinct roles:

The technique is named after its shape: the two pincers branch out from the pivot like the arms of the letter Y. "Sees" means sharing a row, column, or 3×3 box.

When to Use Y-Wing

Y-Wing is an advanced technique. Reach for it when simpler methods have stalled:

How Y-Wing Logic Works

The reasoning is a forced two-case argument. Because the pivot contains only A and B, exactly one of them must be true:

Either way, at least one pincer will hold C. Any empty cell that sees both pincers simultaneously is blocked from being C in either case — so C can be safely eliminated from it.

Step-by-Step Examples

The two examples below show Y-Wing in different orientations to demonstrate that the technique is not limited to a single row or column.

Example 1: Rectangular Alignment

Pivot I1 holds {3, 7}. Pincer C1 holds {4, 7} and Pincer I5 holds {3, 4}. The three cells form a rectangle: pivot and Pincer C1 share row 1, pivot and Pincer I5 share column I. Candidate 4 can be eliminated from C5, which sits at the opposite corner of that rectangle.

  1. Add pencil marks. Scan for cells with exactly two candidates.
  2. Find I1 with {3, 7} — this is the pivot.
  3. Look for bi-value cells that see I1 and share one of its candidates.
  4. C1 has {4, 7} — shares 7 with the pivot and sees it via row 1. This is Pincer 1.
  5. I5 has {3, 4} — shares 3 with the pivot and sees it via column I. This is Pincer 2.
  6. Both pincers share candidate 4 — this is C, the elimination target.
  7. If I1 = 7, then C1 cannot be 7, so C1 = 4.
  8. If I1 = 3, then I5 cannot be 3, so I5 = 4.
  9. Either way, one of C1 or I5 will be 4.
  10. C5 sees C1 via column C and sees I5 via row 5 — eliminate 4 from C5.
5847346291373672915374367834671314784792367595234861373473476147914758234347138214737596896531742275694381143728659ABCDEFGHI123456789
Y-Wing: pivot I1 {3,7}, pincers C1 {4,7} and I5 {3,4} — eliminate 4 from C5

The pivot sits at the corner of a rectangle; whichever way it resolves, 4 is forced into one of the pincers — and C5, at the opposite corner, always sees whichever pincer holds 4.

Example 2: Box-Spanning Elimination

Here the pivot sees one pincer via a row and the other via a shared box. The elimination cell sees the two pincers via a box and a row respectively.

  1. Find D1 with {3, 4} — the pivot.
  2. Look for bi-value cells that see D1 and share one of its candidates.
  3. C1 has {4, 7} — shares 4 with D1 and sees it via row 1. This is Pincer 1.
  4. F2 has {3, 7} — shares 3 with D1 and sees it via the top-middle box (rows 1–3, cols D–F). This is Pincer 2.
  5. Both pincers share candidate 7 — the elimination target.
  6. If D1 = 4, then C1 cannot be 4, so C1 = 7.
  7. If D1 = 3, then F2 cannot be 3, so F2 = 7.
  8. Either way, 7 must be in C1 or F2.
  9. A2 sees C1 via the top-left box (rows 1–3, cols A–C) and sees F2 via row 2 — eliminate 7 from A2.
5847346291373672915374367836713147847923559523486137347347617914758234347138214737596896531742275694381143728659ABCDEFGHI123456789
Y-Wing: pivot D1 {3,4}, pincers C1 {4,7} and F2 {3,7} — eliminate 7 from A2

This example shows that pincers do not need to be in the same row or column — as long as the elimination cell sees both pincers (here via a box and a row), the logic holds just as well.

How to Spot Y-Wing

Follow this four-step scan with your pencil marks filled in:

  1. List all cells with exactly two candidates — these are your bi-value cells.
  2. For each bi-value cell as a candidate pivot, find two other bi-value cells that each share one candidate with it and together have a third shared candidate.
  3. Confirm the pivot sees both pincers (shares a row, column, or box with each one).
  4. Find empty cells that see both pincers simultaneously — eliminate the shared candidate from them.

Y-Wing can span boxes and is easy to miss on a casual scan. Work methodically through your bi-value cells rather than hoping to spot the pattern by eye. If you find many bi-value cells, consider X-Wing and other advanced techniques as well — they often apply to the same difficult puzzles.

Practice Y-Wing Online

Y-Wing appears in hard and expert-level puzzles. Open a hard sudoku on OnSudoku, enable the notes mode, fill in your pencil marks, and look for the bi-value pivot pattern described above.

Y-Wing is one of several advanced techniques covered in our full solving guide. Once you are comfortable with it, try extending your skills to XYZ-Wing, which adds a third candidate to the pivot.

Frequently Asked Questions

A Y-Wing (also called XY-Wing) is an advanced candidate-elimination technique that uses three bi-value cells — cells with exactly two candidates each. One cell is the pivot (candidates AB), and two pincers share one candidate with the pivot (AC and BC). Because the pivot must be A or B, one pincer will always end up as C, so any cell that sees both pincers can have C eliminated.

Fill in pencil marks completely. Find a bi-value cell (pivot) and two other bi-value cells that each share one of the pivot's candidates. The two pincers must share a common third candidate. Confirm the pivot sees both pincers. Then eliminate the shared candidate from every cell that sees both pincers simultaneously.

X-Wing is a row/column pattern: the same candidate appears in exactly two positions in two different rows (or columns), forming a rectangle. Y-Wing is a bi-value cell pattern: three cells with two candidates each form a pivot-pincer structure. X-Wing eliminates candidates from entire columns or rows; Y-Wing eliminates from any cell that sees both pincers, regardless of row or column alignment.

Ready to practice Y-Wing? Play hard sudoku and try spotting the pivot-pincer pattern — or create a free account to save your progress.