How to solve a sudoku: the techniques that work

By Arnaud, creator of procstd. Updated October 26, 2026.

A proper sudoku has exactly one solution, and you can reach it without ever guessing. Here are the techniques in the order to use them: the first two are enough for easy grids, the others crack the hard ones.

Try it as you read: play Classic Sudoku, free and ad-free.

The rule, and what it gives you

Each digit from 1 to 9 must appear exactly once in every row, every column and every 3 × 3 square (also called a box or a region). That is all. But the rule works both ways: a digit already placed rules out its row, its column and its box for the same digit, and an empty cell must take a digit that is missing from its row, its column and its box at the same time.

Every technique below simply pushes these two readings further and further. All the grids on this site have a single solution: if you are stuck, you have missed a deduction, and you should never try a digit at random.

1. Scanning: one digit at a time

Pick a digit that is already common in the grid, for example one placed six or seven times. For each box where it is missing, look at the rows and columns that already contain it: they are ruled out inside that box. Often only one free cell is left, and the digit goes there.

It is the fastest technique at the start of a game. Go through the digits from 1 to 9, then start again: every digit you place unlocks others.

136518347
Before
1365183417
After

Where does the 1 go in the right-hand box? The first two rows already have a 1, so it is on the third row, which has only one free cell.

2. The cell with only one digit left

The reverse reasoning: take an empty cell and list the digits already present in its row, its column and its box. If eight different digits are there, the ninth one is the answer. This is called a naked single, or sole candidate.

This technique is most useful in areas that are already well filled: a row or a box missing only two or three digits.

45712386
Before
457129386
After

The centre cell sees 1, 2 and 3 in its row, 4, 5 and 6 in its column, 7 and 8 in its box: only the 9 is left.

3. Writing down candidates

When scanning gives nothing more, write in each empty cell the digits that are still possible: its candidates. Write them small, and update them after every digit you place: a placed digit removes that candidate from its row, its column and its box.

Candidates make two situations visible: a cell with a single candidate left (technique 2), and a digit that appears only once as a candidate in a row, a column or a box. That is a hidden single: the digit goes in that cell, even if the cell has other candidates.

4. Naked pairs

If two cells of the same row have only the same two candidates, say 4 and 7, those two digits must go into those two cells, in one order or the other. So you can remove 4 and 7 from the candidates of every other cell in the row. The same rule holds for a column or a box.

The same reasoning works with three cells sharing three candidates (a triple), even if not every cell has all three.

5. Pointing (box-line interaction)

Sometimes, in a box, all the candidates for a digit lie on the same row. The digit will therefore be on that row, inside that box, so it is ruled out of that row in the two other boxes. The same goes for a column.

It also works the other way round: if, in a row, a digit can only go in cells of a single box, it is ruled out from the rest of that box.

6. Hidden pairs

Two digits that, in a row, can only go in the same two cells form a hidden pair: those two cells are reserved for them, and you can erase all their other candidates. It is harder to spot than a naked pair, because the two cells have other candidates that hide it.

7. For expert grids: the X-Wing

Pick a digit. If, in two rows, it has only two possible places, and those places are in the same two columns, then it will occupy those two columns on those two rows, diagonally. You can erase it from every other cell of those two columns. The technique also works with rows and columns swapped.

The X-Wing is rarely needed. Before looking for one, check that you have not missed a hidden single or a pair: that is almost always where the grid opens up.

The right method, and the mistakes to avoid

Always start with scanning, digit by digit, and move on to candidates only when it gives nothing more. Go back to scanning after each digit you place: a filled cell often unlocks another.

The most common mistakes are a forgotten candidate in a cell and a digit placed without checking its box. A single error spoils everything that follows, which is why you should never guess. On this site, conflicts are shown in the grid, so you can spot them straight away.

Your turn

The rules, the levels and the frequently asked questions are on the Classic Sudoku page. Each level has its own leaderboard.

Play Classic Sudoku

Other guides