What Is the Y-Wing or XY-Wing Technique in Sudoku?

The Y-Wing, also often called the XY-Wing, is an advanced Sudoku solving technique used to eliminate candidates through a three-cell pattern.

This pattern is built around one pivot cell and two pincer cells. The pivot contains two candidates, usually written as X and Y. One pincer contains X and Z, and the other contains Y and Z. Because of that structure, candidate Z must end up in one of the two pincers. That allows you to eliminate Z from any cell that sees both pincer cells.

The Y-Wing is one of the most useful advanced Sudoku techniques because it does not depend on a large visible pattern like X-Wing or Swordfish. Instead, it relies on logic between three carefully connected cells.

Why Is the Y-Wing Technique Important?

The Y-Wing technique is important because it helps break through difficult points in a puzzle where simpler eliminations are no longer enough.

Many hard and expert Sudoku puzzles contain moments where the board looks full of possibilities but nothing obvious can be placed. Y-Wing helps by narrowing those possibilities down through logic.

It is also an important gateway technique. Once you understand Y-Wing well, many other chain-based and wing-based techniques become easier to follow.

When Should You Use Y-Wing in Sudoku?

You should look for a Y-Wing when:

  • the puzzle has slowed down
  • notes are already filled in
  • you see several bi-value cells on the board
  • standard eliminations are no longer producing progress

Y-Wing tends to appear in harder Sudoku puzzles, especially when candidate interactions between different houses become more important than direct placements.

How Does the Y-Wing Technique Work?

To find a Y-Wing, first look for a pivot cell with exactly two candidates, such as 4 and 7.

Then search for two different bi-value cells that each share one candidate with the pivot:

  • one pincer has 4 and 9
  • the other pincer has 7 and 9

Now the two pincers share candidate 9. Since the pivot must become either 4 or 7, one of the pincers must eventually become 9. That means any other cell that sees both pincers cannot also contain 9.

So candidate 9 can be removed from any cell that intersects with both pincer cells.

Example of Y-Wing Logic

Imagine the pivot contains 7 and 9.

One pincer contains 7 and 6. The other contains 9 and 6.

If the pivot becomes 7, then the first pincer cannot be 7 and must become 6. If the pivot becomes 9, then the second pincer cannot be 9 and must become 6.

So in both cases, candidate 6 must appear in one of the two pincers. That means 6 can be eliminated from any cell that sees both of those pincers.

This is the key logic behind the Y-Wing.

What Makes Y-Wing Different From W-Wing?

W-Wing and Y-Wing are both advanced logical techniques, but they work differently.

W-Wing starts with two bi-value cells that contain the same two candidates and uses a strong link elsewhere on the board.

Y-Wing starts with a pivot and two pincers that do not all contain the same pair. Instead, the logic comes from how the candidates overlap across the three cells.

So while W-Wing is based on matching pairs plus a strong link, Y-Wing is based on a three-cell chain of candidate relationships.

Is Y-Wing a Good Technique for Expert Sudoku?

Yes. Y-Wing is one of the classic expert-level Sudoku techniques and is especially valuable because it appears fairly often once you know how to see it.

It helps players move from pattern recognition into deeper logical solving. Many expert puzzles include Y-Wing opportunities, even when larger visual patterns are absent.

Common Mistakes When Using Y-Wing

A common mistake is choosing a pivot or pincer that has more than two candidates. In a standard Y-Wing, all three cells should be bi-value cells.

Another mistake is misunderstanding the shared candidate. The two pincers must each share one candidate with the pivot, and they must also share a third candidate with each other.

It is also important to eliminate the candidate only from cells that can see both pincers, not just one of them.

How Can You Get Better at Spotting Y-Wings?

The best way is to train yourself to notice bi-value cells quickly. Once you see one, check whether nearby bi-value cells can form a pivot-and-pincer relationship.

A helpful habit is to label the candidates mentally as X, Y, and Z. That makes the logic easier to follow and helps you avoid mistakes.

Worked examples are especially useful for Y-Wing, because once you see the pattern a few times, it becomes much easier to recognize in real puzzles.

What Should You Learn After Y-Wing?

A good next step is learning related advanced Sudoku techniques such as:

These techniques help you improve your logical pattern recognition and understand how candidate chains and eliminations work in harder Sudoku puzzles.

FAQ

What is the Y-Wing technique in Sudoku?
The Y-Wing technique is an advanced elimination strategy that uses one pivot cell and two pincer cells to prove that a shared candidate must appear in one of the pincers, allowing that candidate to be removed elsewhere.

Is Y-Wing the same as XY-Wing?
Yes. In practice, many players use the terms Y-Wing and XY-Wing to describe the same three-cell bi-value pattern.

Do you need notes to use Y-Wing?
Yes. Y-Wing depends on candidate relationships, so it is only practical when notes are visible and accurate.

Does Y-Wing place a number directly?
Usually not. Y-Wing most often works by eliminating a candidate, which then opens the way for the next logical step.

What should I learn before Y-Wing?
It helps to understand candidates, bi-value cells, strong basic eliminations, and ideally techniques such as X-Wing or W-Wing.

Is Y-Wing useful in hard Sudoku?
Yes. It can appear in both hard and expert Sudoku, especially in puzzles where direct visual patterns are limited.

Final Thoughts

The Y-Wing or XY-Wing technique is one of the most important advanced Sudoku strategies to learn. It teaches you how to think in chains instead of only in isolated cells or simple patterns. Once you understand the pivot-and-pincer logic, many difficult puzzles become much more manageable.

See the full Y-Wing / XY-Wing lesson in the Sudoku Academy.