How to Solve Sudoku: The First Techniques Beginners Should Learn

The rules of sudoku fit in three lines. Fill a 9 × 9 grid with the digits 1 to 9. Each row, each column and each of the nine 3 × 3 boxes contains every digit exactly once. The digits already given, the clues, stay as they are.
That is all, and yet a fresh grid can leave a beginner with no idea where to begin. This post lists techniques for a beginner to learn first, in one possible order. For an easy puzzle, the first three are enough to reach the end.
A few words first. A row runs across, a column runs down, and a box is one of the 3 × 3 squares with a thick border. The digits that could still go in an empty cell are its candidates.
1. Find where a digit goes in a box (hidden single)
The first technique is to pick one digit and ask where it can go inside a single box.
Say the top-left box has no 5 yet. If row 1 has a 5 somewhere else, in another box, then the top-left box cannot have its 5 in row 1. If row 2 also has a 5 in another box, row 2 is out too. If there is a 5 far down column 2, column 2 is out. Cross off lines like this and sometimes only one cell in the box is left. That is where the 5 goes.
Here is an example. A dot is an empty cell.
. . . | . . 5 | . . .
. . . | . . . | . 5 .
8 . . | . . . | . . .
. . . | . . . | . . .
. . . | . . . | . . .
. 5 . | . . . | . . .
In the top-left box, the 5 cannot be in row 1 or row 2, since both rows already have a 5, and it cannot be in column 2, since there is a 5 lower down. That leaves row 3, columns 1 and 3. Column 1 already holds the 8. So the 5 goes in row 3, column 3.
With this technique, you only need to hold one digit in your head and look across the grid. Start with the digit that appears most often among the clues. It crosses off the most lines, so its places are easiest to find. Go through 1 to 9, checking all nine boxes for each. At the start, this alone fills a surprising number of cells.
2. Find where a digit goes in a row or column
The same idea works for rows and columns. If a row has no 7 yet, look at its empty cells and cross off every one whose column or box already has a 7. If only one is left, that is the 7.
It is easier to miss than the box version. Rows and columns with only two or three empty cells are worth checking this way first.
3. Find the digit for a cell (naked single)
Techniques 1 and 2 start from a digit and look for its cell. The third works the other way round. It starts from a cell and looks for its digit.
Pick an empty cell and collect every digit in its row, its column and its box. If eight different digits are already there, the ninth is the answer.
This becomes useful once the grid is partly filled. Early on, too many candidates remain. When techniques 1 and 2 stop working, go through the cells in the fullest rows and boxes one by one.
Solving one puzzle to the end
This section is about the order in which to use techniques 1 to 3 above, followed on a single grid. The grid is checked in the following order.
- Fill any row, column or box that has one empty cell.
- Take the digits 1 to 9 in turn and, for each, look for its place in each box.
- Do the same in the rows and columns.
- Pick a cell and count the digits that can still go in it.
When step 1 fills nothing more, go to step 2. When step 2 fills nothing, go to step 3, and when step 3 fills nothing, go to step 4. Whenever one of steps 2 to 4 fills a cell, go back to step 1. This order is how this site works through a grid. It is not a rule.
Step 2 is technique 1 above, step 3 is technique 2, and step 4 is technique 3.
A cell is named by its row and column, as in “row 4, column 4”.
Where to look first
SudokuWiki’s Getting Started page says it is best to start with boxes, as they are the easiest shape to work with. It goes on to say that once the boxes have been scanned, you check the rows and columns. Steps 2 and 3 follow that order.
The same page also covers checking a cell for its last possible number, and says that scanning for a digit’s place is quicker. Checking a cell, it says, is best used when a cell stands out because the other numbers all seem to be in place. That is why step 4 comes last here.
What the four steps are called
HoDoKu’s Singles page describes three techniques.
- Full House: the last digit that can be placed in a row, column or box. When it is the last digit of the whole grid, it is sometimes called Last Digit. This is step 1.
- Hidden Single: for a given digit, only one cell is left in a row, column or box where it can go. The cell itself still has other candidates, so the right digit is hidden among them. This is steps 2 and 3.
- Naked Single: only one digit remains possible in a cell. This is step 4.
The page says that with pencil and paper, Hidden Singles are easy to find, while seeing Naked Singles can take a while. It also gives a way to find Hidden Singles by hand: take one digit and one box, draw lines in your mind through every row and column that already has the digit, and if one cell is left, that is its place.
The example grid
This grid has 30 clues and exactly one answer. There are 51 empty cells. A dot is an empty cell.
1 2 3 4 5 6 7 8 9
row 1 . . . | . 3 1 | . . .
row 2 3 . 2 | . . . | 9 5 1
row 3 1 . . | . . . | . . 7
row 4 . . 5 | . . 7 | 3 6 2
row 5 . . . | 9 . 8 | . . .
row 6 4 7 1 | 6 . . | 8 . .
row 7 6 . . | . . . | . . 9
row 8 8 5 4 | . . . | 6 . 3
row 9 . . . | 3 1 . | . . .
No row, column or box has a single empty cell yet, so the work starts at step 2.
Step 2, first pass: a digit’s place in each box
Start with the digit 1. It is already in the three top boxes, the middle-left box and the bottom-middle box. Take the other four boxes in reading order.
- Centre box: it has five empty cells. Column 5 has a 1 in row 9, which rules out the three cells in column 5. Column 6 has a 1 in row 1, which rules out row 6, column 6. Only row 4, column 4 is left, so it is 1.
- Middle-right box: row 6 has a 1 in column 3, and column 9 has a 1 in row 2. Two cells are left, row 5, column 7 and row 5, column 8. Nothing is decided yet.
- Bottom-left box: row 9 has a 1 in column 5, and column 3 has a 1 in row 6. Only row 7, column 2 is left, so it is 1.
- Bottom-right box: row 7 now has the 1 just placed, and row 9 has a 1 as well. Only row 8, column 8 is left, so it is 1.
The 1 in the bottom-right box was decided by the 1 just placed in the bottom-left box. Placing a digit often settles the same digit in another box straight away.
The same goes for 2 to 9. These are the cells decided in this pass.
- 1: row 4, column 4; row 7, column 2; row 8, column 8
- 3: row 3, column 8; row 6, column 6; row 7, column 3
- 5: row 1, column 1
- 6: row 1, column 9; row 9, column 6
- 7: row 1, column 3; row 9, column 1
- 8: row 1, column 8; row 4, column 2; row 9, column 9
- 9: row 4, column 1; row 6, column 8
The digits 2 and 4 are not decided in any box in this pass. Sixteen cells are filled, and 35 are left empty.
1 2 3 4 5 6 7 8 9
row 1 5 . 7 | . 3 1 | . 8 6
row 2 3 . 2 | . . . | 9 5 1
row 3 1 . . | . . . | . 3 7
row 4 9 8 5 | 1 . 7 | 3 6 2
row 5 . . . | 9 . 8 | . . .
row 6 4 7 1 | 6 . 3 | 8 9 .
row 7 6 1 3 | . . . | . . 9
row 8 8 5 4 | . . . | 6 1 3
row 9 7 . . | 3 1 6 | . . 8
Back to step 1: units with one empty cell
Cells have been filled, so go back to step 1. Row 4 has one empty cell, in column 5. The digit missing from row 4 is 4, so row 4, column 5 is 4. Column 1 has one empty cell, in row 5, and the digit missing from column 1 is 2. Row 5, column 1 is 2.
No unit with one empty cell is left, so step 2 gets another pass.
Step 2, second pass
- 1: row 5, column 7
- 2: row 6, column 5; row 9, column 2
- 3: row 5, column 2
- 5: row 5, column 5; row 6, column 9
- 6: row 5, column 3
- 7: row 5, column 8; row 7, column 7
- 8: row 3, column 3
- 9: row 9, column 3
The 1 of the middle-right box had two cells left in the first pass. With a 1 now in row 8, column 8, it goes in row 5, column 7. The digit 2, which was not decided in the first pass, is placed twice here. Eleven cells are filled, and 22 are left empty.
1 2 3 4 5 6 7 8 9
row 1 5 . 7 | . 3 1 | . 8 6
row 2 3 . 2 | . . . | 9 5 1
row 3 1 . 8 | . . . | . 3 7
row 4 9 8 5 | 1 4 7 | 3 6 2
row 5 2 3 6 | 9 5 8 | 1 7 .
row 6 4 7 1 | 6 2 3 | 8 9 5
row 7 6 1 3 | . . . | 7 . 9
row 8 8 5 4 | . . . | 6 1 3
row 9 7 2 9 | 3 1 6 | . . 8
From here, steps 1 and 2 take turns.
- Step 1: row 5 has one empty cell, in column 9. Row 5, column 9 is 4.
- Step 2: in the bottom-right box, 2 goes in row 7, column 8, and 5 goes in row 9, column 7.
- Step 1: row 9 has one empty cell, in column 8. Row 9, column 8 is 4.
- Step 2: a full pass from 1 to 9 decides nothing in any box.
There are 18 empty cells.
1 2 3 4 5 6 7 8 9
row 1 5 . 7 | . 3 1 | . 8 6
row 2 3 . 2 | . . . | 9 5 1
row 3 1 . 8 | . . . | . 3 7
row 4 9 8 5 | 1 4 7 | 3 6 2
row 5 2 3 6 | 9 5 8 | 1 7 4
row 6 4 7 1 | 6 2 3 | 8 9 5
row 7 6 1 3 | . . . | 7 2 9
row 8 8 5 4 | . . . | 6 1 3
row 9 7 2 9 | 3 1 6 | 5 4 8
Step 3: a digit’s place in a row or column
The boxes give nothing more, so the same search moves to the rows and columns.
Row 1 has three empty cells, in columns 2, 4 and 7. Look at the digit 9. Column 4 has a 9 in row 5, and column 7 has a 9 in row 2. The only cell of row 1 that can take a 9 is column 2. Row 1, column 2 is 9.
This 9 was not decided in the box search. In the top-left box, 9 can go in two cells, row 1, column 2 and row 3, column 2. Seen along the row, it has one place.
Step 4: counting the digits for a cell
Another look through steps 1, 2 and 3 decides nothing. This is where step 4 comes in. Take the empty cells in reading order, collect the digits in each cell’s row, column and box, and see what remains.
- Row 1, column 4: 2 and 4 remain
- Row 1, column 7: 2 and 4 remain
- Row 2, column 2: 4 and 6 remain
- Row 2, column 4: 4, 7 and 8 remain
- Row 2, column 5: 6, 7 and 8 remain
- Row 2, column 6: only 4 remains
Look at row 2, column 6. Row 2 has 3, 2, 9, 5 and 1. Column 6 has 1, 7, 8, 3 and 6. The top-middle box has 3 and 1. Together that is eight digits, 1, 2, 3, 5, 6, 7, 8 and 9, and only 4 remains. Row 2, column 6 is 4.
1 2 3 4 5 6 7 8 9
row 1 5 9 7 | . 3 1 | . 8 6
row 2 3 . 2 | . . . | 9 5 1
row 3 1 . 8 | . . . | . 3 7
row 4 9 8 5 | 1 4 7 | 3 6 2
row 5 2 3 6 | 9 5 8 | 1 7 4
row 6 4 7 1 | 6 2 3 | 8 9 5
row 7 6 1 3 | . . . | 7 2 9
row 8 8 5 4 | . . . | 6 1 3
row 9 7 2 9 | 3 1 6 | 5 4 8
There are 16 empty cells.
To the last cell
A 4 has gone in, so go back to step 1. No unit has a single empty cell, so step 2 gets a pass.
- 4: row 3, column 2; row 1, column 7; row 7, column 4
- 5: row 7, column 6
- 6: row 2, column 2; row 3, column 5
- 8: row 7, column 5
- 9: row 3, column 6; row 8, column 5
Nine cells are filled, and 7 are left empty. All seven fall to step 1. The top-right box has one empty cell, row 3, column 7, and it takes a 2. Row 1 then has one empty cell, in column 4, and it takes a 2. After that, 5 goes in row 3, column 4; 7 in row 2, column 5; 2 in row 8, column 6; 8 in row 2, column 4; and 7 in row 8, column 4.
1 2 3 4 5 6 7 8 9
row 1 5 9 7 | 2 3 1 | 4 8 6
row 2 3 6 2 | 8 7 4 | 9 5 1
row 3 1 4 8 | 5 6 9 | 2 3 7
row 4 9 8 5 | 1 4 7 | 3 6 2
row 5 2 3 6 | 9 5 8 | 1 7 4
row 6 4 7 1 | 6 2 3 | 8 9 5
row 7 6 1 3 | 4 8 5 | 7 2 9
row 8 8 5 4 | 7 9 2 | 6 1 3
row 9 7 2 9 | 3 1 6 | 5 4 8
How many cells each step filled
Counting which step filled each of the 51 cells on this grid gives the following.
| Step | Cells filled |
|---|---|
| 1. Row, column or box with one empty cell | 11 |
| 2. A digit’s place in a box | 38 |
| 3. A digit’s place in a row or column | 1 |
| 4. Counting the digits for a cell | 1 |
These are the numbers for this grid, taken in the order above.
When to start pencil marks
When techniques 1 to 3 run dry, it is time for pencil marks: small candidate digits written in the corner of each empty cell.
You don’t have to mark every cell from the start. Marking the whole grid takes time, and a single wrong mark can spoil everything that follows. It is more reliable to go as far as techniques 1 to 3 allow, and then start marking the boxes with the fewest empty cells.
Each time you place a digit, remove it from the marks in the same row, column and box. Forget this, and your marks will show more candidates than really exist.
4. Use the box and the line together (pointing)
With pencil marks, a new technique appears. It is called pointing, or locked candidates.
Say that inside one box, the 7 can only go in two cells, and both are in the same row. You do not know which yet. But you do know that this box’s 7 lies somewhere on that row. So no other cell in that row, in the other boxes, can be a 7. You can remove 7 from their marks.
It works the other way too. If, inside a row, every candidate 7 lies in the same box, then the other cells of that box, in other rows, cannot be 7.
This technique does not place a digit. It only removes candidates. But removing them often opens up technique 1 or 3 somewhere else.
5. Use a pair of cells (naked pair)
One more is worth learning early. Say two cells in the same row both have exactly the candidates 2 and 6. Between them, those two cells must use up the 2 and the 6. You may not know which is which, but no other cell in that row can be 2 or 6. Remove them from the other marks. The same holds in columns and boxes.
About guessing
Guessing means putting in a digit without a reason, just to see.
Sudoku puzzles are normally made to have exactly one solution. That means every cell can be decided by following a reason. A guess that turns out right was not solved, only lucky. A guess that turns out wrong spoils every cell decided after it, and you will not know where things went wrong.
When you are stuck, ask yourself whether you can say why a digit goes in a cell before you write it. If you cannot, there is a digit or a box you have not looked at yet.
The order
So the order is this. Find a digit’s place in a box. Do the same in rows and columns. Find the digit for a cell. When you stop, write pencil marks. Then use pointing and naked pairs to remove candidates.
The first three work in your head, without marks, and they are enough for easy puzzles. The last two only show up once you have marks, and they are needed from medium puzzles on.
Practising with Sudoku365
Sudoku365 is a sudoku app I make for iPhone, iPad and Android. It has four difficulties, Easy, Medium, Hard and Expert, with 300 puzzles each, 1,200 in total.
Every one of the 300 Easy puzzles in the app can be finished with techniques 1 to 3 from this post. None of the Medium puzzles can be finished with those three alone. Adding technique 4, pointing, is enough for roughly seven in ten of them. So Easy is the place to get used to the first three, and Medium the place to practise the techniques that need pencil marks.
A few features help with practice. Selecting a cell highlights its row, column and box, and every cell with the same digit, which makes technique 1 easier to see. Turn on Notes to write candidates. With Remove numbers from notes switched on in settings (it is on by default), placing a digit clears it from the related notes for you. Hide placed number buttons, also on by default, removes the button for any digit that is placed nine times, so you can see what is left.
A wrong digit shows up at once and counts as a mistake. Three mistakes end the game. A guess is caught straight away, which makes it good practice for placing digits only for a reason.
The app is free with ads, and a one-time Remove Ads purchase turns them off. For your first puzzle, and for streaks and stats, see Getting Started with Sudoku365.
Sudoku moves forward on reasons, not luck. Find a reason for one cell and the next reason usually appears. One digit and one box is a good place to begin.
Sudoku365Daily sudoku, alone or with twoSee the app →You can solve sudoku with hints that name the technique on the sudoku page.
