XYZ-Wing

An XYZ-wing extends XY-wing. The pivot holds three candidates {X, Y, Z}. The two wings are {X, Z} and {Y, Z}. Z can be eliminated from any cell that sees the pivot and both wings.
3

XYZ-wing extends XY-wing by upgrading the pivot from two candidates to three. The wings stay bivalue. The eliminations get tighter, but the logic is the same family of forced-branch reasoning.

How it works

The pivot is a trivalue cell with candidates {X, Y, Z}. One wing is bivalue {X, Z} and sees the pivot. The other wing is bivalue {Y, Z} and sees the pivot. The two wings do not need to see each other.

Whichever digit the pivot resolves to, one of the three cells must hold Z. If the pivot is X, the {X, Z} wing takes Z. If the pivot is Y, the {Y, Z} wing takes Z. If the pivot is Z, the pivot itself holds Z. So Z is locked into the pivot or one of the two wings.

Any cell that sees all three of them. pivot, X-wing, and Y-wing. cannot hold Z. That is the elimination.

XYZ-WING (z=4)3478291168429961872491561594935234728693461272467913
Pivot and both pincers all admit 4 → erase 4 where all three are seen.

When to look for it

After XY-wing fails. The pivot now has three candidates, which widens the search but tightens the eliminations because the target cell must see all three of the pattern's cells.

Most XYZ-wings fit inside two or three units that overlap. Pivots in the centre of a 3x3 box are common because they see eight neighbours plus all column and row peers.

Step-by-step example

  1. Find a trivalue cell {X, Y, Z}. Treat it as the pivot.
  2. List bivalue cells that see the pivot. Find one with candidates {X, Z} and another with {Y, Z}.
  3. Find cells that see all three: the pivot and both wings.
  4. Erase Z from every such cell.
  5. Re-scan. XYZ-wing eliminations sometimes yield a single, more often they prune candidates that feed into the next chain.

XY-wing vs XYZ-wing

XY-wingXYZ-wing
Pivot candidates{X, Y}{X, Y, Z}
Wings{X, Z} and {Y, Z}{X, Z} and {Y, Z}
Target seesBoth wingsPivot and both wings
Cells holding ZTwo wingsPivot plus two wings
The trivalue pivot tightens the visibility condition on the target.

Tips for spotting it

  • Search XY and XYZ patterns together. Many bivalue chains have a trivalue cousin nearby.
  • The pivot must be exactly trivalue. Four candidates breaks the pattern.
  • Wings stay bivalue. Use the wing's candidates to identify Z.
  • Pivots inside a box are productive because the box gives extra visibility into the cells around it.

Common mistakes

  • Using a bivalue pivot. That is plain XY-wing.
  • Eliminating Z from cells that only see two of the three.
  • Confusing XYZ-wing with WXYZ-wing (four cells), a different pattern.
  • Skipping the visibility check. Targets must see the pivot too, not just the wings.

Practise it

On expert sudoku, mark every candidate and list both bivalue and trivalue cells. Run XY-wing first, then run XYZ-wing using each trivalue cell as a pivot. The habit unlocks puzzles where pure XY-wing falls short.

XYZ-Wing FAQ

What is an XYZ-Wing in sudoku?
An XYZ-Wing is a wing pattern where the pivot cell contains three candidates X, Y and Z, while its two pincer cells are bi-value cells holding XZ and YZ. All three cells share the candidate Z, so the digit Z is guaranteed to appear in one of the three. Any cell that sees all three of them, the pivot and both pincers, cannot be Z and can have Z eliminated.
What is the difference between an XY-Wing and an XYZ-Wing?
In an XY-Wing the pivot is a bi-value cell (XY) and the eliminating digit Z appears only in the two pincers, so eliminations target cells seeing both pincers. In an XYZ-Wing the pivot itself also contains Z, so it is a three-candidate pivot, and the eliminating cell must see all three cells including the pivot. The extra Z in the pivot makes the constraint tighter, so eliminations are usually limited to the box or line the pivot shares with a pincer.
Is an XYZ-Wing harder than an XY-Wing?
It is generally considered slightly harder, both to spot and in the sense that it produces fewer eliminations. The three-candidate pivot means any target cell must see all three pattern cells rather than just two pincers, which usually restricts eliminations to cells within the pivot's box. Many solvers learn the XY-Wing first and treat the XYZ-Wing as a natural extension of it.
Why must the target cell see all three cells in an XYZ-Wing?
Because Z can appear in any of the three cells of the pattern, the pivot XYZ or either pincer, none of them is individually forced to be Z. A cell can only safely rule out Z if it shares a unit with all three, guaranteeing that wherever Z lands among them it conflicts with that target. This is why the eliminating cell must see the pivot and both pincers, unlike the XY-Wing which only requires seeing the two pincers.