Sudoku Techniques: Singles, Pairs, X-Wing and Y-Wing, With Examples
Sudoku is solved with a short ladder of logic steps, tried from easiest to hardest. Look first for singles: a cell with only one number left, or a number with only one place left in a row, column or box. Then use pointing and box-line eliminations and naked pairs. Harder puzzles add hidden pairs and triples, then the X-Wing and the Y-Wing. Check for singles again after every step: a well-made sudoku is solved by logic, never by a guess.
A sudoku can feel stuck when it isn’t. Nearly every time, there is a next step, just of a kind you haven’t looked for yet. The steps come in a ladder, from ones you spot at a glance to ones that need written notes, and the habit that solves most puzzles is simple: always try the easiest step first, and go back to the bottom of the ladder after every number you place.
Below are nine steps in a practical order to look for them. Difficulty labels differ from one puzzle maker to the next, so the levels in the table are those of our own sudoku game, Skyline Sudoku, which uses these nine steps to grade every puzzle and to give hints.
| Step | What it does | First needed in Skyline Sudoku |
|---|---|---|
| Last number left | Places a number | Easy |
| Only place left | Places a number | Easy |
| Pointing | Removes a candidate from a row or column | Medium |
| Box and line | Removes a candidate from a box | Medium |
| Naked pair | Removes two candidates from a row, column or box | Medium |
| Hidden pair | Clears two cells down to a pair | Hard |
| Naked triple | Removes three candidates from a row, column or box | Hard |
| X-Wing | Removes a candidate from two rows or columns | Expert |
| Y-Wing | Removes a candidate from cells that see two others | Expert |
Rows are numbered 1 to 9 from the top, columns 1 to 9 from the left, and boxes 1 to 9 like reading a page.
The two steps that place numbers
Last number left (naked single)
Pick an empty cell and check its row, its column and its box. If eight different numbers are already there between them, the ninth is the only one the cell can hold.
Example: the cell in row 4, column 6 has 1, 3, 5 and 8 in its row, 2, 6 and 9 in its column, and 4 in its box. Only 7 is missing, so it is 7.
Only place left (hidden single)
Turn the question round: pick a number and a row, column or box, and ask where that number can go. If every other cell is filled or blocked, the one that is left is its place, even when that cell could hold other numbers too.
Example: box 5 has no 9 yet. There are 9s elsewhere in rows 4 and 6 and in columns 4 and 6, so the only cell in box 5 left for a 9 is row 5, column 5.
Easy puzzles need nothing else. Scan each number from 1 to 9 across the boxes, and fill in what’s certain.
Notes, and the steps that remove them
Past Easy, you’ll reach a point where no single is left. That’s the time to write notes, also called candidates or pencil marks: in each empty cell, the small numbers that could still go there. Every step from here on works by crossing notes out until a single appears.
Pointing
Inside one box, if every place a number can go lies in the same row, that number must be in that row inside the box. So it can’t go anywhere else in that row.
Example: in box 1, a 4 fits only in row 2 (columns 1 and 3). Whichever cell it takes, row 2 gets its 4 from box 1, so cross 4 out of row 2 in boxes 2 and 3. The same works for a column.
Box and line
The mirror of pointing. Inside one row or column, if every place a number can go lies in the same box, the number belongs to that line within the box. So the other cells of the box can’t hold it.
Example: in row 7, a 2 fits only in columns 7 and 9, both in box 9. Cross 2 out of the rest of box 9.
Naked pair
Two cells in the same row, column or box that can only hold the same two numbers. Between them they will take both, so no other cell in that row, column or box can hold either.
Example: in column 3, the cells in rows 1 and 5 both have notes 3 and 8 and nothing else. Cross 3 and 8 out of every other cell in column 3.
Medium puzzles usually need pointing, box and line, and the odd naked pair on top of the singles.
Hard: hidden pairs and triples
Hidden pair
Two numbers that fit in only the same two cells of a row, column or box. Those cells must take those two numbers, so any other note in them can go.
Example: in row 8, a 1 and a 6 each fit only in columns 2 and 4. Those two cells may show notes like 1, 5, 6, 7 and 1, 3, 6. Cross out everything but 1 and 6. With the 5, 7 and 3 gone from those cells, a single can open up elsewhere in the row.
A hidden pair is easy to miss because the two cells look crowded. Look for it by number, not by cell: for each number, count where it can go in a row or box.
Naked triple
Three cells in the same row, column or box whose notes, put together, are only three numbers. Not every cell needs all three: notes of 2 and 5, 5 and 9, and 2 and 9 are a triple. Those three cells will take those three numbers, so no other cell there can hold them.
Expert: the X-Wing and the Y-Wing
X-Wing
Pick a number and look along the rows. If in two rows the number fits in exactly two cells each, and those cells sit in the same two columns, you have the corners of a rectangle.
Example: in row 2, a 7 fits only in columns 3 and 8. In row 6, a 7 also fits only in columns 3 and 8. Either the 7s go in row 2 column 3 and row 6 column 8, or in row 2 column 8 and row 6 column 3: opposite corners either way. Both ways, columns 3 and 8 get their 7 from rows 2 and 6, so cross 7 out of every other cell in columns 3 and 8.
It works with rows and columns swapped, and once you know the shape you’ll start seeing it as an X across the grid.
Y-Wing (XY-Wing)
This one uses three cells that each have exactly two notes. The middle cell (the pivot) holds X or Y. It sees two other cells: one holding X or Z, and one holding Y or Z.
Example: the pivot in row 2, column 2 is 3 or 7. In the same row, row 2 column 7 is 3 or 9. In the same column, row 5 column 2 is 7 or 9. If the pivot is 3, row 2 column 7 must be 9. If the pivot is 7, row 5 column 2 must be 9. One of them is 9 for certain, so the cell that sees both of them, row 5 column 7, can’t be 9.
The Y-Wing is the most useful expert step to learn, because it shows up in puzzles where nothing else moves.
When you are still stuck
Go back to the bottom of the ladder. Most of the time the missing step is a single you passed over, or a note you forgot to cross out after placing a number. If nothing on this list moves, you are into the rarer steps: the Swordfish (an X-Wing over three rows), coloring and chains. They are real, but you’ll meet them far less often; Skyline Sudoku’s Expert puzzles, for one, never need more than the Y-Wing.
Practise with hints that say why
Reading about the X-Wing is one thing; seeing one in your own grid is another. Skyline Sudoku is our classic 9×9 sudoku for Android. Each puzzle is graded by the hardest of these nine steps it needs, so Easy, Medium, Hard and Expert mean what the table above says, and every puzzle can be solved without a guess. A hint lights up the cells and names the step in one sentence, for example “In this box, 4 can only go in one row. So 4 can’t go anywhere else in that row.”
You get one free hint a day; after that a hint is a short video you choose to watch, or a one-time unlock gives hints with no ads. There are no lives, no ads between puzzles, and the puzzles play offline. Every solve also presses one colour of a city print, and five solves finish it. Get Skyline Sudoku on Google Play.
Questions
- What should I try when I'm stuck in sudoku?
- Try the techniques easiest first, and go back to the start after every number you place. Look for singles (a cell with one number left, or a number with one place left), then pointing and box-line eliminations, then naked pairs, hidden pairs and triples, and only then the X-Wing and the Y-Wing. A new number often opens up an easy single somewhere else.
- What is the difference between a naked pair and a hidden pair?
- A naked pair is two cells in a row, column or box that can only hold the same two numbers, so those numbers come out of every other cell there. A hidden pair is two numbers that fit in only two cells of a row, column or box, so every other number comes out of those two cells. The naked pair clears the rest of the row; the hidden pair clears the two cells.
- What is an X-Wing in sudoku?
- An X-Wing happens when a number fits in only two cells in each of two rows, and those cells sit in the same two columns. The number must take one corner in each row, on opposite corners of a rectangle, so it fills both columns from those rows. You can remove it from every other cell in those two columns. It works the same way with columns and rows swapped.
- What is a Y-Wing in sudoku?
- A Y-Wing (or XY-Wing) uses three cells with two candidates each: a middle cell holding X or Y, one cell it sees holding X or Z, and another it sees holding Y or Z. Whichever number the middle cell takes, one of the outer cells must be Z. So any cell that sees both outer cells can't be Z.
- Do I have to guess in sudoku?
- Not in a well-made puzzle. A proper sudoku has one solution that can be reached by logic, although the hardest ones need techniques beyond the nine on this page. If you are stuck, the next step is usually a technique you haven't looked for yet, or a single you missed.
- What is the hardest sudoku technique?
- There is no agreed hardest one, because the list keeps going: after the X-Wing and the Y-Wing come the Swordfish, the Jellyfish, coloring and chains, which only the hardest puzzles need. The X-Wing and the Y-Wing are the most advanced techniques on this page.