Dream Factory

XY-Wing – Two Paths Eliminate the Same Digit

Classic & Cube

This technique works on a single 9×9 grid and on the cube alike. The in-app hint system knows and explains it.

Key rule: When both options of a Pivot cell force the same digit into one of two Wing cells, eliminate that digit from every cell that sees both Wings.

An XY-Wing is often called a Y-Wing. Start with a cell that has exactly two candidates, say {2, 5} — this is the Pivot P. Look for two other cells that see P, one holding exactly {2, 8} and the other holding exactly {5, 8}. They are the Wings (or Pincers) A and B, and both share the same third digit, here 8.

Try both possibilities for P: either way, one of the two Wings must become 8. Any target cell T that sees both Wings can therefore never contain 8.

How to read this page

A candidate is a digit that can still go in an empty cell after checking every face it belongs to. For an edge cell, check both faces; for a corner cell, check all three. In the app, you record candidates as pencil notes. {2, 7} means only 2 or 7 can still go here.

Row 4, Column 7 is the cell in Row 4, Column 7 of the face shown: 4 down, 7 across. Rows are counted from the top and columns from the left, starting at 1. The same arrows appear in the corner of each diagram: ↓ above the row numbers, → before the column numbers.

Two cells see each other when they share a row, a column, or a 3×3 block. On the cube, that holds on every face the cells belong to.

Each diagram shows a complete puzzle. The pencil notes always match the digits already placed on the board.

  • Grey digits are already placed in the puzzle. They show where the notes come from.
  • Orange: the row, column, or block you are examining. Digits inside it are dark.
  • Green: the digits or candidates that drive the deduction.
  • Red strikethrough: a candidate you can eliminate. A red × means that cell is ruled out.
  • Yellow: a cell whose digit is now forced.
  • A teal line along the border marks the shared edge between two faces.
  • Small digits are pencil notes. Just like in the app, each digit sits in a fixed slot: 1 at top-left through 9 at bottom-right.
  • When a step focuses on a single digit, the diagram shows only that digit’s notes everywhere it fits, just like digit highlighting in the app.
  • A frame marks the target cell being asked about.
  • Letters label cells referred to in the text. E is always a corner cell and K is always an edge cell.
  • A green circle around a digit highlights the digit that forces the deduction.
  • For corner techniques, the three faces are unfolded. A dashed line connects the edge that is split apart in the flat view.

All techniques at a glance

Example

Pivot P at Row 4, Column 4 holds {2, 5}. Wing A at Row 4, Column 8 holds {2, 8}, and Wing B at Row 7, Column 4 holds {5, 8}. Now inspect target cell T at Row 7, Column 8 with candidates {1, 8, 9}.

T sees A in its column and B in its row. In either case, 8 is ruled out of T, leaving 1 and 9.

A complete puzzle. Pivot P at Row 4, Column 4 holds 2 and 5. Wing A at Row 4, Column 8 holds 2 and 8, and Wing B at Row 7, Column 4 holds 5 and 8, with the 8s highlighted green. Target cell T at Row 7, Column 8 holds 1, 8, and 9, with 8 crossed out in red.
Dashed lines: P sees both Wings. Solid lines: T sees both Wings.

How to spot it

Exercise

Try the same deduction across the shared edge between the front face and the right face, counting edge cells from the top:

P and T belong to both middle edge blocks, on the front face and on the right face. What can you eliminate in T?

Front face on the left and right face on the right, both as full puzzles. The shared edge is Column 9 on the front face and Column 1 on the right face, holding T in Row 4 and P in Row 5. A sits left of P on the front face, and B sits at Row 6, Column 2 on the right face. All four cells display their candidates.
P and T appear on both faces. The teal lines mark the shared edge.
Show solution

Eliminate 9 from T. If P is 3, then A in the front block must be 9. If P is 7, then B in the right block must be 9. Because T belongs to both blocks, it can never hold 9 in either case, leaving 1 and 6.

Two-candidate cells are also the starting point for a Naked Subset, whereas an X-Wing locks a single digit into a rectangle across rows and columns.

All techniques