Sudoku Solver With Step-by-Step Explanations
A sudoku solver finds the answer to a puzzle you type in. This one also explains every step: it solves the way a person would, naming the technique behind each move, such as a naked single or an X-wing, and showing exactly which cells are involved. It runs in your browser, so your puzzle stays private.
When to use the solver
- You are stuck on a puzzle from a book or newspaper and want to understand the next move, not just the answer.
- You want to check that a puzzle you typed in has exactly one solution.
- You are learning techniques and want to see them applied to a real grid.
- You want to find out how hard a puzzle really is.
How to use it
- Type the digits you know into the grid, or paste all 81 characters with 0 or a dot for empty cells.
- Press Solve. The solver first checks that the puzzle has exactly one solution.
- Read the steps in order. Each one names the technique and the cells it uses.
- If you only need one move, stop after the first step and play it yourself.
- If the solver says the puzzle needs more than our ten techniques, the remaining cells are completed by a search and labelled as such.
What a step looks like
This is a real position from puzzle easy-0026 of our library. 68 of the 81 cells are filled in and 13 are still empty.
In row 9, the digit 9 has only one place left: R9C8. Every other cell there is already filled or blocked by a 9 elsewhere.
Candidates in the cells that matter:
- R9C8: 4, 6, and 9
Result: R9C8 is 9.
Step-by-step solver compared with an answer-only solver
| Question | This solver | Answer-only solver |
|---|---|---|
| Shows the answer | Yes | Yes |
| Explains each step | Yes, in plain language | No |
| Names the technique used | Yes | No |
| Checks that the puzzle has one solution | Yes, before solving | Sometimes |
| Tells you when logic runs out | Yes, search steps are labelled | No |
The techniques the solver can name
All 8,000 puzzles in our library are solved by the step-by-step solver using only the techniques below, with no guessing. The table shows how many of them use each technique at least once.
| Technique | Share of library |
|---|---|
| Naked single | 8,000 / 8,000 (100%) |
| Hidden single | 6,288 / 8,000 (79%) |
| Naked pair | 4,355 / 8,000 (54%) |
| Pointing pair | 3,733 / 8,000 (47%) |
| Box-line reduction | 1,641 / 8,000 (21%) |
| Hidden pair | 2,293 / 8,000 (29%) |
| Naked triple | 370 / 8,000 (5%) |
| X-wing | 480 / 8,000 (6%) |
| XY-wing | 1,985 / 8,000 (25%) |
| Swordfish | 61 / 8,000 (0.8%) |
A technique is counted when our solver, which always takes the simplest available step first, applies it at least once. A pattern that is on the board but not needed is not counted. These numbers are recalculated from the puzzle files whenever the site is built.
Common mistakes when entering a puzzle
- Mistyping one given. A single wrong digit usually makes the puzzle unsolvable, and the solver will say so.
- Leaving out a digit when copying from a newspaper. A puzzle with too few givens can have many solutions.
- Expecting a unique answer from a puzzle with several solutions. The solver reports it instead of picking one.
- Entering candidates as givens. Only fixed digits go in the grid, not pencil marks.
Frequently asked questions
How does a step-by-step Sudoku solver work?
It looks for the simplest logical move available, applies it, and repeats. Each move is named and explained, so you see the same reasoning a person would use rather than a brute-force search.
Is my puzzle sent to a server?
No. The solver runs in your browser and nothing you type is uploaded. The site has no backend at all.
What happens if the puzzle has no solution or more than one?
The solver checks this first. If there is no solution, or more than one, it tells you instead of guessing, because a puzzle with several solutions is not a well-formed Sudoku.
Can I use the solver for a puzzle from a photo?
Yes. The Play any puzzle page can read a photo of a printed grid in your browser, let you correct any digit it is unsure about, and then play or hint the puzzle.
Learn the techniques it namesPlay any puzzle from a photo or link