How to Find the Wrong Number in a Sudoku and Fix It
Updated · written by AI agents, overseen by a person (about us)
Somewhere on the board is a digit that shouldn't be there, and everything you have added since leans on it. You don't have to start over. There is a routine that finds the first wrong digit, and this guide shows it on two real positions.
The short answer
- Stop adding digits. More entries only bury the wrong one deeper.
- Name what is wrong. Either the same digit appears twice in a row, column or box, or one square has no digit left that fits.
- Go back through your entries from the oldest and ask each for a reason. You must be able to say "it's the only digit that fits this square" or "it's the only square in this row, column or box where this digit fits".
- The first entry with no reason is the suspect. It is usually a guess between two candidates that looked equally good.
- Erase it, then check the entries made after it. Keep each one that is still forced without the suspect. Erase the ones that are not.
This matters most when nothing tells you which digit is wrong: on paper, or in our game with Show mistakes turned off. Rows are numbered from the top, columns from the left, and boxes read like a book. Both positions below come from our generator, and each has been checked against the puzzle's one solution. Blue digits are the ones a player has entered.
Position 1: the same digit twice in a box
This is a medium puzzle after six entries. Two squares hold a 3, and both are in box 6. With Show mistakes off, the game still colours a repeat like this red.
| 4 | 7 | 1 | 5 | 8 | ||||
| 7 | 3 | 6 | ||||||
| 7 | ||||||||
| 3 | 1 | 8 | 7 | 5 | ||||
| 8 | 5 | 7 | 1 | 2 | 6 | 3 | ||
| 7 | 5 | 3 | 1 | 4 | ||||
| 6 | 4 | 8 | ||||||
| 7 | 8 | 3 | 1 | |||||
| 1 | 7 | 9 |
Outlined: the two 3s in box 6 · blue: entered by the player
At least one of the two 3s is wrong. Ask each for its reason.
- Row 5, column 9. Row 5 has three empty squares: columns 1, 2 and 9. A 3 can't go in columns 1 or 2, because box 4 already holds a 3 at row 4, column 2. So column 9 is the only square in row 5 that can take a 3. That is a hidden single, and it has a reason.
- Row 6, column 7. Before the 3 went in, its row held 1, 4, 5 and 7, its column held 2, 7 and 8, and its box held 1, 2, 4, 5, 6, 7 and 8. That leaves 3 and 9, and nothing in the grid chooses between them. The 3 was a guess.
The suspect is row 6, column 7. Erase it. Box 6 now has its 3 at row 5, column 9, so row 6, column 7 is left with a single candidate: it is a 9. Checked against the solution, it is. Nothing else needed undoing, because the two entries made after the guess (row 5, column 6 and row 5, column 9) were forced without it.
A clash like this is the friendly case: the wrong digit is one of two squares you can see.
Position 2: a square with no possible digit
This one is harder, because nothing is flagged. The outlined square, row 3, column 5, has no digit left that fits.
| 2 | 1 | 3 | 8 | |||||
| 1 | 6 | 3 | 5 | 9 | 4 | 2 | 8 | 7 |
| 7 | 6 | 2 | ||||||
| 9 | ||||||||
| 3 | 1 | 4 | 8 | 9 | 6 | |||
| 8 | 6 | 7 | 3 | |||||
| 4 | 5 | 2 | 8 | |||||
| 7 | 5 | 6 | ||||||
| 6 | 1 | 5 | 9 | 2 |
Outlined: the square with no possible digit · blue: entered by the player
Check it by listing what the square sees. Its row holds 2, 6 and 7. Its column holds 3, 7 and 9. Its box holds 1, 2, 3, 4, 5, 6, 8 and 9. Together that is every digit from 1 to 9, so there is nothing to write there. The puzzle has a solution, so one of the entries is wrong.
The wrong digit is not in this square, and it may not be near it. Go back through the player's entries from the oldest:
- The first four (row 5, column 3; row 4, column 3; row 2, column 3; row 5, column 4) are each a naked single: the square sees eight digits and only one is left. They have reasons.
- Row 2, column 6 is a 4. Its row held 1, 3, 5, 6 and 8, its column held 2, 5, 8 and 9, and its box held 1, 2, 3, 5 and 8. That left 4 and 7. Both fit, and the 4 was a guess. This is the suspect.
- The four entries after it (row 2, column 5 a 9; row 2, column 9 a 7; row 2, column 7 a 2; row 3, column 4 a 6) were all made on top of the 4. Without it, none of them is forced: row 2, column 5 could still be 4 or 9, and row 2, column 9 could be 4, 7 or 9. They go too.
The 4 in row 2, column 6 is what emptied row 3, column 5: the two squares share box 2, and row 3, column 5 needed that 4. Checked against the solution, row 2, column 6 is a 7, row 2, column 9 is a 4, and row 3, column 5 is a 4. So the wrong 4 had also pushed a wrong 7 into row 2, column 9: the mistake had copied itself into a second square. Erase all five entries and the board is back to four correct digits, with no need to restart.
Why start from the oldest entry
A wrong digit never announces itself. It changes what the rest of the grid appears to say, so every entry after it can look sound. Reasons are the one thing a wrong digit can't supply: the entries built on it may look forced, but the digit that started the chain has no reason at all. That is why you test from the oldest entry onwards, not from the square that has just gone wrong.
If you can't remember the order you played
- Undo. Our game keeps up to 200 moves (Ctrl+Z on a keyboard). Step back until the clash or the empty square disappears, then keep going back to the first move you can't give a reason for.
- Show mistakes. Turn it on for a moment and any digit that doesn't match the solution turns red. With it off, the game only flags a digit that repeats in its row, column or box, so a dead square like the one in Position 2 is yours to spot. See the guide to playing without a mistake limit.
- Hint. If a wrong digit is on the board, a hint points to it by row and column before it fills anything new.
- On paper, go through the digits from the oldest, asking the same question of each.
How to avoid the next one
- Don't place a digit you can't explain. If two digits fit, put them in as pencil marks and wait.
- Be most careful with two-candidate squares. Both positions above began with a 50-50 guess that looked fine.
- Check after every few entries, not at the end. The fewer entries sit on a wrong digit, the less there is to undo.
Our guide to common sudoku mistakes and how to get unstuck covers the habits behind these errors. To practise, play an easy or medium puzzle and try giving a reason for every digit you place.