Skip to content

Sudoku Y-Wing: how to find it and use it

How to find a Sudoku Y-Wing (XY-Wing): the pivot and pincer cells, a worked example with the digit 6, why it works and the mistakes to avoid.

RedFoxApps cover: How to find a Sudoku Y-Wing

A Y-Wing is a Sudoku technique built from three cells that each have two candidates. A pivot holds X and Y, and two pincers hold X,Z and Y,Z. Whichever way the pivot resolves, one pincer becomes Z, so any cell that sees both pincers cannot be Z.

A Y-Wing is a Sudoku technique that uses three cells, each with exactly two candidates, to remove a candidate from other cells. One cell (the pivot) holds {X, Y}. Two cells it can see, the pincers, hold {X, Z} and {Y, Z}. Whichever way the pivot resolves, one pincer ends up as Z, so any cell that sees both pincers cannot be Z. This guide shows how to spot it, a worked example and the common mistakes. It assumes you already use pencil marks; if not, start with how to play Sudoku.

Y-Wing at a glance

Question Answer
Also called XY-Wing
Difficulty Expert, usually learned before or alongside X-Wing
Cells involved Three, each with exactly two candidates
What it does Removes one candidate (Z) from cells; it does not place a digit directly
Where to look A two-candidate cell with two two-candidate neighbours in its row, column or box

What is a Y-Wing in Sudoku?

A Y-Wing is a chain of three bivalue cells (cells with only two candidates left) that forces one digit to appear in one of two places. The pivot holds two candidates, X and Y. One pincer holds X and Z. The other holds Y and Z. The pivot must see both pincers, but the pincers must not see each other.

The pivot has to be X or Y. If it is X, the pincer that holds X loses that candidate, so it becomes Z. If it is Y, the other pincer loses Y and becomes Z. You do not know which case is true, but in both cases a pincer is Z.

How to find a Y-Wing step by step

  1. Fill in pencil marks for every empty cell.
  2. List the bivalue cells. Only cells with exactly two candidates can be part of a Y-Wing.
  3. Pick one as the pivot. Say it holds {3, 8}.
  4. Find two pincers it can see. One must hold {3, Z} and the other {8, Z}, with the same Z.
  5. Check the pincers do not see each other. If they share a row, column or box, it is a different pattern.
  6. Eliminate Z from every cell that sees both pincers.
  7. Look for a new single. The elimination often opens one.

A worked Y-Wing example

This is a constructed illustration, not a full puzzle. Only the relevant cells are shown.

Cell Role Candidates
R2C2 Pivot 3, 8
R2C5 Pincer A (same row as the pivot) 3, 6
R8C2 Pincer B (same column as the pivot) 6, 8
R8C5 Target includes 6

The pivot R2C2 sees R2C5 through row 2 and R8C2 through column 2. The two pincers sit in different rows, columns and boxes, so they do not see each other.

  • If R2C2 is 3, R2C5 cannot be 3 (same row), so R2C5 is 6.
  • If R2C2 is 8, R8C2 cannot be 8 (same column), so R8C2 is 6.

Either way, one of the pincers holds a 6. R8C5 sees R8C2 along row 8 and R2C5 along column 5. It sees both, so it cannot be 6. Delete the 6 from R8C5.

Why a Y-Wing works

The pivot is a forced either/or. Each of its two values knocks a candidate out of one pincer, and the pincer that is left must take Z. So Z is guaranteed in at least one of the two pincers. A cell that sees both pincers cannot hold Z without clashing with whichever pincer ends up with it. The logic needs no guessing, only the three cells and the "sees" check.

Common Y-Wing mistakes

  • The pivot does not see both pincers. The pivot must share a row, column or box with each.
  • The pincers see each other. Then the pattern is something else, and the elimination may be wrong.
  • The Z values differ. Both pincers must share the same Z.
  • Eliminating from the wrong cells. Only cells that see both pincers lose Z. Cells that see just one do not.
  • Stale pencil marks. A cell you think has two candidates may still have three. Update your marks first.

Y-Wing and X-Wing

Both techniques only remove candidates. An X-Wing works on one digit across two rows and two columns. A Y-Wing works on three digits across three cells. If a puzzle has no X-Wing, a Y-Wing may still be there, so try both. The XYZ-Wing is a close relative: the pivot holds three candidates, and only cells that see all three cells lose Z.

Next steps

Practise on a puzzle where you can switch on notes. Minimal Sudoku has pencil-mark notes and levels up to expert, where Y-Wings begin to appear. We make the game, so we are biased, but any puzzle source with candidate notes will let you practise. For the full ladder of techniques, return to the Sudoku strategies guide.

Sources

  1. Y Wing Strategy (SudokuWiki.org)
  2. Y-Wing (XY-Wing) (OnSudoku)
  3. Y-Wing Sudoku Technique: How to Find and Examples (SudokuBliss)
  4. Wings (HoDoKu) (HoDoKu)

Frequently asked questions

What is a Y-Wing in Sudoku?

A pattern of three cells with two candidates each. A pivot holds X and Y, and two pincers hold X,Z and Y,Z. Any cell that sees both pincers cannot be Z.

Is a Y-Wing the same as an XY-Wing?

Yes. Y-Wing and XY-Wing are two names for the same technique.

How do you find a Y-Wing?

List the cells with exactly two candidates, pick one as the pivot, then look for two cells it sees that share one candidate each with it and the same third candidate between them.

Can the pincers see each other?

No. If the pincers share a row, column or box, the pattern is not a Y-Wing and the elimination may be wrong.

Does a Y-Wing place a digit?

No. It removes a candidate. The elimination often creates a single, and that single is what you place.

Keep reading.

Have a game or app to build, publish or grow?

Tell us what you are working on. We reply with a clear next step.

Contact us