Step-by-step Sudoku solver
Type in a Sudoku or paste it as 81 characters. The solver first checks that it has exactly one solution, then solves it the way a person would, one step at a time, and names the technique behind every step.
0 digits entered. Or try an example: , ,
How the solver works
The solver runs in your browser. First a full search counts the puzzle's solutions: a proper Sudoku has exactly one, and the solver tells you when yours has none or several, or when two equal digits share a row, column or box.
Then it solves like a person. At every step it tries the easiest technique first: hidden and naked singles, then pointing and claiming, pairs, triples and quads, then X-Wing, Swordfish, XY-Wing, XYZ-Wing, simple coloring, Jellyfish and XY-Chains. A step either places a digit or removes candidates, and the cells that prove it are highlighted on the board.
These are the same techniques and the same code as the hints in Puzzems, where every puzzle solves this way. A puzzle that needs something harder stops with a clear note: from there a person would have to guess or use a heavier technique, and you can still reveal the solution.
The hardest technique a solve needs gives a fair idea of the puzzle's level: singles only is Easy, pairs and pointing are Medium, wings and fish are Hard, coloring and chains are Expert.
Questions
How do I enter a Sudoku?
Tap a cell and type a digit, or paste the whole grid into the text box as 81 characters, row by row, with 0 or a dot for empty cells. Spaces, line breaks and grid lines like | and + are ignored.
Does the solver guess?
No. Every step is a logical deduction with a named technique. When none of its techniques applies, the solver stops and says so instead of guessing, and offers to reveal the solution found by the uniqueness check.
What does it mean when a Sudoku has more than one solution?
A proper Sudoku has exactly one solution. If several grids fit the givens, no chain of logic can decide between them, so some digit is missing or wrong. Check the grid against the source.
Which techniques does the solver use?
Hidden single, naked single, pointing, claiming, naked and hidden pairs, triples and quads, X-Wing, Swordfish, Jellyfish, XY-Wing, XYZ-Wing, simple coloring and XY-Chain. Each step links to a guide with an example board.
Is the solver free?
Yes. It runs in your browser with no account and nothing to install.
Technique guides
- Hidden singleIn the highlighted area, one digit fits in only one cell.
- Naked singleThe highlighted cell has only one possible digit left.
- PointingInside a box this digit fits only in one line, so it can't go elsewhere on that line.
- X-WingA digit is limited to the same two columns in two rows (or the reverse), so it leaves the rest of those lines.
- XY-WingWhatever the middle cell holds, one of the two wings gets the shared digit, so cells seeing both wings can't.