Sudoku Solver
Type or paste the numbers from your puzzle and press Solve for the full answer in milliseconds. Prefer to solve it yourself? Ask for the next step and the solver explains which technique finds it.
Solving steps
How to use the Sudoku Solver
- Enter the puzzle: click a cell and type its number. Use the arrow keys to move and Backspace to clear. Or paste an 81-character line (use 0 or . for blanks) and press Load.
- Press Solve to fill in the complete solution. Your clues stay black; solved digits appear in blue.
- Want only a nudge? Press Hint: the solver highlights one cell and explains why its number is forced. Press Apply hint to place it.
- Check uniqueness to see whether the puzzle has exactly one solution, none, or several.
- Show all steps lists the whole logical solving path, and Show candidates adds pencil marks to every empty cell.
Sudoku solving techniques used by the hints
The hint button works the way a person solves on paper: it lists the candidates (digits still possible) for every empty cell, then looks for the simplest technique that places a digit. Cells are named by row and column, so R3C5 is row 3, column 5. Boxes are numbered 1–9 from top left to bottom right.
| Technique | What it means |
|---|---|
| Naked single | A cell has only one candidate left because the other eight digits already appear in its row, column or box. |
| Hidden single | Within a row, column or box, a digit fits in only one cell, even if that cell has other candidates. |
| Pointing | Inside a box, all candidates for a digit lie in one row or column. That digit can be removed from the rest of that row or column outside the box. |
| Claiming (box/line reduction) | Inside a row or column, all candidates for a digit lie in one box. That digit can be removed from the other cells of the box. |
| Naked pair / triple | Two cells in a unit share the same two candidates (or three cells share three). Those digits must go in those cells, so they are removed from the other cells of the unit. |
| Advanced | When none of the above helps, the puzzle needs harder techniques such as X-Wing, Swordfish or chains. The hint then reveals the correct digit for the cell with the fewest candidates. |
How to enter a puzzle quickly
- Type row by row: click the top-left cell, type a digit or press Space/0 for an empty cell, then use the right arrow. The arrows wrap at the edges.
- Paste a line: many puzzle sites and books use an 81-character format such as
53..7....6..195.... Paste it into the box and press Load puzzle, or paste straight onto the grid. - Share a puzzle: add
?p=followed by the 81 characters to this page's address to open it with that puzzle loaded. - Double-check clues: if the solver reports no solution, a single mistyped digit is the usual cause. The red highlight only catches duplicates in the same row, column or box.
Mathematically, a valid Sudoku needs at least 17 clues to have a unique solution; this was proved by an exhaustive computer search in 2012. Most newspaper puzzles give between 22 and 36 clues.
Frequently asked questions
How does the Sudoku solver work?
It uses backtracking search with bitmask candidate tracking: it always fills the empty cell with the fewest possible digits first, and backs up when a choice leads to a contradiction. This finds the solution of any valid 9×9 puzzle, even the hardest ones, in a few milliseconds.
What techniques do the hints use?
Hints look for naked singles, hidden singles, locked candidates (pointing and claiming) and naked pairs and triples, the same techniques people use on paper. If a puzzle needs something more advanced, the hint takes the next digit from the computed solution and says so.
What does it mean if a Sudoku has more than one solution?
A proper Sudoku has exactly one solution. If the uniqueness check finds two or more, a clue is missing or was entered wrongly, and you can't solve it by logic alone. Puzzles with fewer than 17 clues never have a unique solution.
Why does it say my puzzle has no solution?
Either two equal digits share a row, column or 3×3 box (these are highlighted in red), or the clues are consistent at first glance but contradict each other deeper down. Compare your entries with the printed puzzle; a single mistyped digit is the usual cause.
Can I paste a puzzle?
Yes. Paste 81 characters, reading left to right and top to bottom, using digits 1–9 for clues and 0, a dot or a dash for empty cells. Spaces, line breaks and grid characters like | and + are ignored.
Is the solver free and private?
Yes. It is free with no sign-up and runs entirely in your browser; your puzzle is never sent anywhere.