Intermediate Sudoku Techniques: Three to Use When Singles Run Out

When a Sudoku has no digit with only one place left and no cell with only one candidate left, the next step is a technique that removes candidates. This post puts the first three side by side: Locked Candidates, the Naked Pair and the X-Wing. None of them fills a cell directly. They remove candidates, and with fewer candidates the singles start working again.
“Intermediate” is this site’s own grouping. Techniques that fill a cell directly are the beginner set here, and the first three that remove candidates are the intermediate set. SudokuWiki explains on its Strategy Families page that its side menu is ordered by difficulty. In that menu, Naked Candidates and Intersection Removal, which cover the first two, are under Basic Strategies, and the X-Wing is the first of the Tough Strategies.
The beginner techniques are items 1 to 3 of How to Solve Sudoku: The First Techniques Beginners Should Learn. Items 4 and 5 of that post introduce the first two techniques of this one in a few lines. All three need pencil marks, which are covered in How to Write Sudoku Pencil Marks.
The words are the same as before: a row runs across, a column runs down, a box is one of the 3×3 blocks, and a candidate is a digit that could still go in a cell. A cell is named by its row and column, as in “row 8, column 2”.
Which technique looks at what
| Technique | What to look at | What it removes |
|---|---|---|
| Locked Candidates | One digit. Inside one box, all its candidates lie in a single row or column | The same digit in that row or column, outside the box |
| Naked Pair | Two cells in the same row, column or box that have only the same two candidates left | Those two digits in every other cell of that row, column or box |
| X-Wing | One digit. In two rows, all its candidates lie in the same two columns | The same digit in those two columns, in every other row |
The first and the third pick one digit and look only at the cells where it can go. The second looks at how many candidates a cell has left.
Each of the three grids below is a puzzle part way through, with exactly one answer. In each of them, no cell has a single candidate, and no digit has a single place left in any row, column or box. A dot is an empty cell.
1. Locked Candidates
The HoDoKu solving guide splits this technique into two types on its Locked Candidates page:
- Type 1 (Pointing): if in a box all candidates of a digit are confined to one row or column, that digit cannot appear in that row or column outside the box.
- Type 2 (Claiming): if in a row or column all candidates of a digit are confined to one box, the digit can be removed from all other cells of that box.
The same page says Locked Candidates are easy to identify when you filter the grid for one digit.
1 2 3 4 5 6 7 8 9
row 1 6 1 5 | 2 3 9 | 8 4 7
row 2 4 3 7 | . . 8 | 9 1 2
row 3 9 8 2 | 7 1 4 | 6 3 5
row 4 . 5 . | . 4 1 | 7 2 .
row 5 1 7 . | . . . | 4 6 .
row 6 . . 4 | 9 . 7 | 1 5 .
row 7 . 4 3 | . 9 . | 5 7 1
row 8 7 . . | 1 . . | 3 9 4
row 9 5 9 1 | 4 7 3 | 2 8 6
There are 22 empty cells. Look at the digit 6.
The bottom-left box has three empty cells: row 7, column 1; row 8, column 2; and row 8, column 3. Column 1 already has a 6 in row 1, so row 7, column 1 cannot be 6. The 6 of this box goes in row 8, column 2 or row 8, column 3. Both are in row 8.
1 2 3 4 5 6 7 8 9
row 1 6 1 5 | 2 3 9 | 8 4 7
row 2 4 3 7 | . . 8 | 9 1 2
row 3 9 8 2 | 7 1 4 | 6 3 5
row 4 . 5 . | . 4 1 | 7 2 .
row 5 1 7 . | . . . | 4 6 .
row 6 . . 4 | 9 . 7 | 1 5 .
row 7 . 4 3 | . 9 . | 5 7 1
row 8 7 ◎ ◎ | 1 × × | 3 9 4
row 9 5 9 1 | 4 7 3 | 2 8 6
The cells marked ◎ are the two places for 6 in the bottom-left box. The 6 of row 8 goes in one of them, so no other cell of row 8 can be 6. The 6 can be removed from the two cells marked ×: row 8, column 5 and row 8, column 6. This is Type 1.
The same grid can be read as Type 2. Row 7 has three empty cells, in columns 1, 4 and 6, and 6 can go only in columns 4 and 6. Both are in the bottom-middle box. The 6 of row 7 lies inside that box, so it can be removed from the other cells of the box: row 8, column 5 and row 8, column 6. The same two candidates go.
Now look at column 6. It had two places for 6, in rows 7 and 8. With the 6 gone from row 8, column 6, the cell at row 7, column 6 is 6. From there the grid solves to the end with singles alone.
2. Naked Pair
HoDoKu’s Naked Subsets page describes the Naked Pair this way: if two cells in the same house have only the same two candidates left, those two candidates can be eliminated from all other cells in that house. A house is a row, a column or a box.
The same page says naked subsets are best found once all remaining candidates have been pencilled in, and that they are then rather easy to spot and very efficient.
1 2 3 4 5 6 7 8 9
row 1 8 1 5 | . . . | 4 2 7
row 2 3 2 4 | . . . | 9 8 6
row 3 6 9 7 | 2 8 4 | 5 1 3
row 4 2 4 9 | . . . | . 3 8
row 5 5 3 6 | 4 . 8 | . 7 9
row 6 1 7 8 | . . . | . 4 5
row 7 4 5 2 | 3 7 9 | 8 6 1
row 8 7 8 1 | . 4 . | 3 9 2
row 9 9 6 3 | 8 . . | 7 5 4
There are 20 empty cells. Look at column 4. It has five empty cells, with these candidates:
- Row 1, column 4: 6, 9
- Row 2, column 4: 1, 5, 7
- Row 4, column 4: 1, 5, 6, 7
- Row 6, column 4: 6, 9
- Row 8, column 4: 5, 6
Row 1, column 4 and row 6, column 4 both have only 6 and 9. Row 1 holds 1, 2, 4, 5, 7 and 8, and column 4 holds 2, 3, 4 and 8, which leaves 6 and 9 for row 1, column 4. Row 6 holds 1, 4, 5, 7 and 8, which leaves the same 6 and 9 for row 6, column 4.
1 2 3 4 5 6 7 8 9
row 1 8 1 5 | ◎ . . | 4 2 7
row 2 3 2 4 | . . . | 9 8 6
row 3 6 9 7 | 2 8 4 | 5 1 3
row 4 2 4 9 | × . . | . 3 8
row 5 5 3 6 | 4 . 8 | . 7 9
row 6 1 7 8 | ◎ . . | . 4 5
row 7 4 5 2 | 3 7 9 | 8 6 1
row 8 7 8 1 | × 4 . | 3 9 2
row 9 9 6 3 | 8 . . | 7 5 4
The two cells marked ◎ use up the 6 and the 9 of column 4. Which is which is not known yet, but no other cell of column 4 can be 6 or 9. The 6 can be removed from the cells marked ×: row 4, column 4 and row 8, column 4. No other cell of column 4 had a 9 to begin with.
Row 8, column 4 had the candidates 5 and 6. With the 6 gone, it is 5. Row 8, column 6, the last empty cell of row 8, is then 6. From there this grid also solves to the end with singles alone.
There is also a pair seen from the side of the digits, the Hidden Pair. If two digits can go only in the same two cells of a row, column or box, every other candidate can be removed from those two cells. It is in Advanced Sudoku Techniques.
3. X-Wing
HoDoKu’s Basic Fish page describes the X-Wing in the rows this way: take two rows. If all candidates of one digit in both rows are contained in the same two columns, all candidates of that digit in those columns that are not part of the two rows can be eliminated. Exchanging rows and columns gives the X-Wing in the columns.
1 2 3 4 5 6 7 8 9
row 1 4 3 5 | 1 9 . | . 8 6
row 2 6 . 9 | 5 8 . | 4 3 .
row 3 . . . | 6 4 3 | . 5 9
row 4 8 4 6 | 7 2 1 | 3 9 5
row 5 5 . 7 | 3 6 9 | 8 . 4
row 6 . 9 . | 8 5 4 | 6 7 .
row 7 7 5 . | 9 . 6 | . 4 8
row 8 9 . 4 | 2 7 8 | 5 . 3
row 9 . . . | 4 . 5 | 9 . 7
There are 24 empty cells. Look at the digit 1.
Row 5 has two empty cells, in columns 2 and 8, and 1 can go in both. Row 8 also has two empty cells, in columns 2 and 8, and 1 can go in both. In rows 5 and 8, every candidate 1 lies in column 2 or column 8.
1 2 3 4 5 6 7 8 9
row 1 4 3 5 | 1 9 . | . 8 6
row 2 6 × 9 | 5 8 . | 4 3 .
row 3 . × . | 6 4 3 | . 5 9
row 4 8 4 6 | 7 2 1 | 3 9 5
row 5 5 ◎ 7 | 3 6 9 | 8 ◎ 4
row 6 . 9 . | 8 5 4 | 6 7 .
row 7 7 5 . | 9 . 6 | . 4 8
row 8 9 ◎ 4 | 2 7 8 | 5 ◎ 3
row 9 . × . | 4 . 5 | 9 × 7
The cells marked ◎ are the four places for 1 in rows 5 and 8. If the 1 of row 5 is in column 2, the 1 of row 8 is in column 8. If the 1 of row 5 is in column 8, the 1 of row 8 is in column 2. Either way, the 1 of column 2 and the 1 of column 8 are both used up by rows 5 and 8.
So no other cell of columns 2 and 8 can be 1. The 1 can be removed from the four cells marked ×: row 2, column 2; row 3, column 2; row 9, column 2; and row 9, column 8.
Now look at row 2. It had two places for 1, in columns 2 and 9. With the 1 gone from column 2, the cell at row 2, column 9 is 1. From there this grid also solves to the end with singles alone.
The post What Is an X-Wing in Sudoku? follows an X-Wing on a different grid, starting from writing out the candidates.
Techniques beyond these three
A grid that does not move after these three needs a technique further on. These posts on this site cover some of them:
- Swordfish: the X-Wing on three rows and three columns.
- XY-Wing: three cells with two candidates each.
- Skyscraper: an X-Wing with one end out of line.
- Strong links and weak links: candidates joined into a chain.
None of these techniques works on wrong pencil marks. An order for checking the marks is in Stuck on a Sudoku?.
Sudoku365Daily sudoku, alone or with twoSee the app →You can solve sudoku with hints that name the technique on the sudoku page.
