Advanced technique · Comparison

Sudoku Wings: XY-Wing, XYZ-Wing and W-Wing

XY-Wing, XYZ-Wing and W-Wing are three ways to use cells with two candidates to remove a digit. They look alike, and they are easy to mix up. This page puts them side by side: what each one needs, what it removes, and when to look for which.

The three wings at a glance

XY-WingXYZ-WingW-Wing
CellsPivot {X,Y} and two pincers {X,Z}, {Y,Z}Pivot {X,Y,Z} and two pincers {X,Z}, {Y,Z}Two cells {X,Y} that do not see each other, plus a strong link on X
Digit removedZZY
Target cellsSee both pincersSee the pivot and both pincersSee both {X,Y} cells
Typical number of targetsOne to fourUsually one or two, in the pivot’s boxOne to four
Easiest clue to spotThree two-candidate cells in an L or a triangleA three-candidate cell next to two pairsThe same pair in two distant cells
LevelHardHardHard to expert

Which wing when?

  1. You see many cells with exactly two candidates. Look for an XY-Wing first: pick a pair cell as the pivot and check its row, column and box for two pincers that share one digit with it each.
  2. The best pivot candidate has three candidates, not two. That is an XYZ-Wing. It removes less, because the target must also see the pivot, so check the pivot’s box.
  3. The same pair, say {2,9}, appears in two cells far apart. That is a W-Wing if you can find a row, column or box where one of the two digits has only two places, one seeing each pair cell.
  4. None of the three fits. Move on to simple coloring or chains: every wing is a short chain, so the same thinking carries over.

XY-Wing

XY-Wing worked example diagram
Worked example: the highlighted cells form the pattern; red cells lose a candidate.

The pivot holds {X,Y}. One pincer it sees holds {X,Z}, the other {Y,Z}. If the pivot is X, the first pincer is Z; if it is Y, the second pincer is Z. Either way one pincer is Z, so any cell that sees both pincers cannot be Z.

Example: pivot r2c2 = {3,7}, pincers r2c8 = {3,5} and r6c2 = {5,7}. Z is 5, and r6c8 sees both pincers, so it cannot be 5. Full XY-Wing lesson.

XYZ-Wing

XYZ-Wing worked example diagram
Worked example: the highlighted cells form the pattern; red cells lose a candidate.

The same shape, but the pivot also holds Z. Now Z could be in the pivot itself, so a target must see all three cells. That usually leaves one or two cells, in the box the pivot shares with one pincer.

Example: pivot r5c5 = {1,4,8}, pincers r5c2 = {1,8} and r4c6 = {4,8}. Z is 8. Only r5c4 and r5c6 see all three, so they lose 8. Full XYZ-Wing lesson.

W-Wing

W-Wing worked example diagram
Worked example: the highlighted cells form the pattern; red cells lose a candidate.

Two cells hold the same pair {X,Y} and do not share a unit. A strong link on X, a unit where X fits in exactly two cells, connects them: one end of the link sees each pair cell. One end must be X, so one pair cell cannot be X and must be Y. Any cell that sees both pair cells cannot be Y.

Example: r1c2 = {2,9} and r8c6 = {2,9}. In row 4, 2 fits only in r4c2 and r4c6. So one of the pair cells is 9, and r1c6 and r8c2 cannot be 9. Full W-Wing lesson.

Common mix-ups

  • Removing X or Y instead of Z. In XY- and XYZ-Wings only the digit both pincers share is removed.
  • Treating an XYZ-Wing like an XY-Wing. A cell that sees only the two pincers keeps its Z when the pivot also holds Z.
  • A W-Wing with a weak link. The connecting digit must have exactly two places in its unit. Three places is not a strong link.
  • Pincers that see each other. If both pincers share a unit with each other as well as with the pivot, you have a naked triple, which removes more.

Questions

Which wing should I learn first?

XY-Wing. It is the most common, its logic is the simplest, and XYZ-Wing is a small change to it. Learn W-Wing once you are comfortable spotting strong links, for example from X-Wing or simple coloring.

Are wings the same as chains?

Yes, in effect. Each wing is a short alternating chain with a fixed shape. Learning the shapes first makes longer chains much easier to follow later.

Where do wings appear on Sudoku Pause?

Mostly in hard and expert puzzles. The Sunday expert puzzle often needs an XY-Wing, and every one is solved step by step in the weekly walkthroughs.

Your learning path

Ready to practise?
Try it on today’s free daily Sudoku, or start a practice puzzle at your level.