Written by Brian Hamilton and Karan Hamilton.
Brian and Karan are the puzzle lovers and game makers behind Sudoku Online Puzzles. You can learn more on the About page.
Guides are reviewed for clarity, accuracy, and usefulness for solvers. See our editorial standards, puzzle testing process, or send a correction.
Thirteen squares to go, twelve of them down to two candidates, and not a single anywhere. That is puzzle 199 of our Evil sudoku bank after 42 moves, every one of them a naked single or a hidden single. Three of the two-candidate cells, R9C7, R9C6 and R7C9, are enough to break it. Together they prove that R9C6 or R7C9 is a 9 without saying which, two other 9s come off the board, and naked singles fill in everything that is left.
Those three cells are an XY-Wing, also called a Y-Wing. You won’t meet one on our Easy to Expert levels, which never need it. Evil is another matter: 157 of that bank’s first 500 puzzles need one, more than twice as many as need an X-Wing, which makes it one of the patterns you will reach for most.
The Sudoku Trainer has ten XY-Wing positions, gentlest first. Choose XY-Wing, click the pivot and both pincers, and press Check. If you get stuck, Hint starts by naming one cell of the pattern.
What is an XY-Wing (Y-Wing) in sudoku?
An XY-Wing is three cells that each have exactly two candidates. The middle one, the pivot, holds two digits; call them X and Y. It sees two other cells, the pincers. One holds X and a third digit, Z; the other holds Y and the same Z. One of the pincers must be Z, so Z can be removed from every cell that sees both pincers.
XY-Wing and Y-Wing are two names for the same technique; the XY comes from the usual labels for the pivot’s two digits. Apart from the name it has nothing in common with the X-Wing. An X-Wing is one digit in four cells across two rows or two columns. An XY-Wing uses three digits in three cells, which can sit almost anywhere, as long as the pivot sees both pincers.
Cells in the same row, column or 3×3 box see each other and can never hold the same digit. A cell with exactly two candidates left is often called bivalue. An XY-Wing is built only from bivalue cells, and only from complete pencil marks: a cell that looks like {4,8} because nobody wrote in its 6 proves nothing.
How does an XY-Wing work?
Take puzzle 199 at move 43. The pivot is R9C7, which can only be 4 or 8. Follow both:
- If R9C7 is 4, then R9C6, in the same row, can’t be 4. It holds {4,9}, so it is 9.
- If R9C7 is 8, then R7C9, in the same box, can’t be 8. It holds {8,9}, so it is 9.
There is no third case, so R9C6 or R7C9 is a 9, and a cell that sees both of them can’t be. Six cells do: R7C4 to R7C6, in R7C9’s row and R9C6’s box, and R9C7 to R9C9, in R9C6’s row and R7C9’s box. Two of the six still hold a 9, R7C6 and R9C9, and both lose it.
The wing promises at least one 9, not exactly one. The pincers don’t see each other, so nothing stops both from being 9, and here both are. In the solution R9C7 is 4, which makes R9C6 the 9, and R7C9 turns out to be a 9 as well; once the wing has done its work, each pincer is the only place for a 9 in its row or column.
In our Sudoku Helper this position takes two presses of Next Hint. One fills in pencil marks that match the figure, since no earlier move had removed any; the next names this XY-Wing and reports three techniques available. The other two work on the pivot itself: an XYZ-Wing and an Almost Locked Set each remove the 8 from R9C7, which leaves it as 4.
Which cells does an XY-Wing clear?
Every cell that sees both pincers, apart from the pincers themselves. The pivot is always one of those cells, since it sees both, but it never holds Z. What else is in reach depends on where the pincers sit relative to each other:
- In the same band or stack, in different boxes. Then one pincer shares the pivot’s box and the other its row or column, as on puzzle 199. Two strips of three cells see both pincers, so up to five cells can lose Z.
- In different bands and different stacks. One pincer lies along the pivot’s row, the other along its column, and none of the three shares a box. Only two cells see both pincers, the two places where one pincer’s row crosses the other’s column, and one of them is the pivot. An L-shaped wing can clear exactly one cell, the fourth corner of the rectangle.
Puzzle 148 from the same bank has the L-shaped kind, 26 moves in. The pivot R7C3 {8,9} sees R4C3 {7,8} up column 3 and R7C5 {7,9} along row 7. The fourth corner, R4C5, loses its 7 and is left with 4, and from there naked singles finish the puzzle.
Our helper played 203 XY-Wings on the first 500 Evil puzzles. In 146 a pincer shared the pivot’s box; the other 57 were L-shaped. Most removed very little: 138 took out one candidate, 53 took two, and only 12 took three or four. A wing doesn’t need to clear much, though. After 112 of the 203 a naked or hidden single was waiting straight away.
Can the pincers of an XY-Wing see each other?
Several popular guides say the pincers must not share a row, column or box. The logic doesn’t need that rule, but in practice it is good advice, for a different reason. Three cells that each see the other two always share a house, so a wing whose pincers see each other is three cells holding three digits in one row, column or box. That is a naked triple, and our helper tries triples and locked candidates before any wing. By the time it gets to wings, those shapes have nothing left to remove. At the 203 positions where it played an XY-Wing there were 1,860 wing shapes on the board; 1,377 had all three cells in one house, and not one of those removed anything.
Puzzle 199 shows how common they are. Its 12 two-candidate cells make 13 wing shapes, and 12 of them lie inside a single house. Column 7, for one, has three empty cells left: R6C7 {6,8}, R8C7 {4,6} and R9C7 {4,8}. That is a wing on 6 with R9C7 as its pivot, but every other cell of column 7 is filled, so there is no 6 for it to remove. The one wing in the figures, with its pincers in different houses, is the only shape that does any work.
How do you find an XY-Wing?
Hunting for the shape by eye rarely works on a full board. A routine does:
- Bring the pencil marks up to date and pick out the two-candidate cells. At the first XY-Wing each Evil puzzle needed, the board had a median of 19 of them, with 36 cells still empty. Out-of-date marks hide wings: in 105 of the helper’s 203, at least one of the three cells was down to two candidates only because an earlier move had removed the others, as a pointing pair did for R4C3 on puzzle 148.
- Take each one in turn as the pivot. With a pivot {X,Y}, list the two-candidate cells it sees that hold X but not Y, and those that hold Y but not X.
- Look for one cell from each list with the same other digit. Skip any pair that shares a house; it is a naked triple.
- Check the cells that see both pincers for Z before you get excited. Of the 483 shapes with their pincers in different houses at those 203 positions, 207 had nothing to remove.
Working backwards is often quicker. Pick a candidate you would like to remove, find the two-candidate cells holding that digit that see it, and ask whether a pivot joins them. On puzzle 199, the 9 in R9C9 is seen by exactly two such cells, R7C9 {8,9} and R9C6 {4,9}. Their other digits are 8 and 4, so the pivot would be a {4,8} cell that sees both, and R9C7 is one. Our XY-chain guide hunts longer chains the same way.
Type the position’s digits into the Sudoku Helper; once Next Hint has been pressed twice, the Available Techniques menu shows every one of its eighteen techniques that applies. The helper works its marks out from the digits alone, though, so a wing that needs candidates your earlier moves removed, like the one on puzzle 148, won’t be on its list.
Which puzzles need an XY-Wing?
The helper’s Next Hint always picks the simplest move it can find. We let it play 200 boards from each of our classic levels and the puzzles in our Evil bank, and counted the puzzles where an XY-Wing was the move at least once.
- Easy to Expert: never. We found no XY-Wing needed on any of the 800 boards (Easy, Medium, Hard and Expert, 200 of each). Nothing harder than singles, locked candidates and naked pairs is allowed to be needed there. An XY-Wing does turn up on 77 of the 277 Expert positions where singles run out, but one of those simpler moves is always there too.
- Evil: about one puzzle in three. 157 of the first 500 needed one, and 1,743 of all 5,000. On 670 of the 5,000 it is the first thing needed after singles, locked candidates and naked pairs; only a hidden pair (1,530) and an Almost Locked Set (800) come first more often.
| Technique | First 500 Evil puzzles | All 5,000 |
|---|---|---|
| Almost Locked Set | 318 | 2,761 |
| Hidden Pair | 216 | 1,863 |
| XY-Wing | 157 | 1,743 |
| W-Wing | 145 | 1,769 |
| Skyscraper | 114 | 908 |
| Simple Colouring | 88 | 710 |
| XYZ-Wing | 79 | 753 |
| X-Wing | 74 | 644 |
The eight techniques needed on most of the first 500 Evil puzzles once singles, locked candidates and naked pairs are set aside. A puzzle counts when the technique was the simplest move the helper’s eighteen could find at least once. Because the bank is sorted by score, those first 500 are harder than the other 4,500. Measured October 2026.
Past the basics, then, only the Almost Locked Set and the hidden pair are needed on more of the first 500, and across the whole bank the W-Wing edges ahead, 1,769 to 1,743.
Of the 3,655 Evil puzzles our helper finishes, 543 needed an XY-Wing and nothing further down its list. For the X-Wing the figure is 15. Both puzzles in the figures are like that: puzzle 199 needs singles and this one wing, puzzle 148 singles, pointing pairs, a naked triple and the wing. On a puzzle that needs a wing, finding it is often the whole difficulty.
How does an XY-Wing relate to XY-chains, XYZ-Wings and W-Wings?
The XY-Wing is the smallest of a family of either/or patterns, and the family tells you what to look for when no wing is there.
- It is an XY-chain of three cells. Read puzzle 199’s wing from one pincer instead of the pivot: if R9C6 isn’t 9 it is 4, so the pivot isn’t 4 and is 8, so R7C9 isn’t 8 and is 9. Each cell is entered on one digit and left on the other, the rule every XY-chain follows. The figure’s arrows start at the pivot because that is the two-case reading; the links hold in either direction. Longer chains of two-candidate cells do the same job across more cells.
- An XYZ-Wing gives the pivot a third candidate, Z itself. The pivot might then be the Z, so only cells that see all three cells lose it. Puzzle 199 has one: pivot R9C9 {1,8,9}, pincers R9C3 {1,8} and R7C9 {8,9}, removing 8 from R9C7.
- A W-Wing has no pivot cell. Two cells with the same pair are tied together by a strong link on one of their digits: a row, column or box where that digit has only two places, one seen by each cell.
- Remote Pairs are a chain of cells that all hold the same pair. With simpler techniques tried first, we found that pattern needed on just 2 of the 5,000 Evil puzzles, neither of them among the first 500.
- A forcing chain follows every candidate of one cell to the same conclusion. An XY-Wing is the shortest kind: each branch from the pivot is one step long.
No XY-Wing on the board, or stuck right after one?
Look first at what the wing just touched: the cells that lost Z, and the rows, columns and boxes of both pincers. After 112 of the helper’s 203 XY-Wings a single was ready at once, 68 naked and 44 hidden. On puzzle 199 the cell that lost its 9 became a naked single and both pincers became hidden singles. After 65 of the 203, singles alone finished the puzzle.
When nothing opens, the next move beyond singles on our Evil puzzles was most often an Almost Locked Set (after 32 of the 203 wings), another XY-Wing (23), a W-Wing (16) or a pointing pair (13). Of the 157 puzzles that needed a wing, 90 also needed an Almost Locked Set and 49 a W-Wing, and 30 stalled with none of the helper’s eighteen techniques left.
No wing at all is the usual case. At the 4,618 Evil positions where singles had run out, an XY-Wing was on the board 23.9% of the time. A W-Wing (19.9%) and an XYZ-Wing (10.0%) start from the same list of two-candidate cells, so check them next. An Almost Locked Set (95.1%) and Simple Colouring (43.2%) are far commoner than any of the three. If the helper’s eighteen have nothing, move on to X-chains and XY-chains, look for a BUG as the board fills, and save forcing chains for last; our guide to sudoku techniques has them in sequence.
Evil Sudoku
Where XY-Wings actually turn up: 1,743 of the 5,000 puzzles in this bank need at least one.
▶ Play Evil Sudoku