Guides · Sudoku · Techniques

XY-Wing.

A technique built from three squares that each show two candidates. Whichever digit the pivot takes, one of its two wings is forced to the shared digit, so any square that sees both wings loses it. The most common move past pairs and fish. Shown on a real Expert board.

About 6 minutes · Tenth technique

What an XY-Wing is.

Three squares showing two candidates each: a pivot showing X and Y, a wing it sees showing X and Z, and another wing it sees showing Y and Z. Every square that sees both wings cannot be Z.

Two squares see each other when they share a row, a column or a box. The pivot must see both wings; the wings need not see each other. Z is the digit the wings share and the pivot lacks, and Z is what gets removed.

A Sudoku board from Pocketful with a pivot square ringed and arrows to its two wing squares
Expert level 391 in Pocketful, five moves in. The ringed pivot shows 3 and 9. It sees a square in its box showing 2 and 3, and a square in its row showing 2 and 9.

How to find one.

Find a square with exactly two candidates. Call them X and Y. Look along its row, column and box for a square showing X and a third digit Z, and another showing Y and that same Z. Then find the squares that see both of those wings and cross Z off them.

The pivot ringed with arrows to the wing showing 2 and 3 and the wing showing 2 and 9
The pivot and its two wings marked
The two wings circled and the penciled 2 in two squares that see both wings crossed out
Column 2 tinted with its remaining square for a 2 ringed
The board after placing the 2 in column 2

Why it works.

The pivot is X or Y; there is nothing else it can be. If it is X, the wing showing X and Z loses its X and becomes Z. If it is Y, the other wing loses its Y and becomes Z. So in every case one wing is Z. A square that sees both wings would share a unit with whichever one is Z, and cannot hold Z itself.

Spotting them faster.

  • Collect the two-candidate squares. An XY-Wing is made only of these. On an Expert board with full notes there are usually several, and every one is a possible pivot.
  • From each pivot, look for wings that share a digit the pivot lacks. That shared digit is Z. If the two wings share a digit the pivot also shows, it is not a wing.
  • The wings can be anywhere the pivot sees. One in the row, one in the box is common. Two in the row, or one in the column, work just as well.
  • The payoff is in the overlap. Only squares that see both wings are affected. Find the overlap before you decide the wing is worth it.

Common questions.

Does the XY-Wing place a digit?

No. Like every technique past singles it removes candidates, and a single follows. Here the removal strands a column's 2.

Is an XY-Wing a guess?

It can feel like one, because you consider both cases for the pivot. But you never commit to either. The conclusion holds in both cases, which makes it a proof, not a trial.

What comes after the XY-Wing?

Chains, which link many two-candidate squares the same way, and uniqueness arguments. Most Expert boards in Pocketful that resist everything on this ladder need a short chain; a few need more. The ladder on this site stops here, where the techniques are still ones you can check by eye.

Part of Sudoku techniques.

← Swordfish

Practice it on a real board.

The board on this page is Expert level 391 in Pocketful. Place the five singles the blue digits show, pencil the two-candidate squares, and find the pivot in row 2.

Download on the App Store