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

  1. Type the digits you know into the grid, or paste all 81 characters with 0 or a dot for empty cells.
  2. Press Solve. The solver first checks that the puzzle has exactly one solution.
  3. Read the steps in order. Each one names the technique and the cells it uses.
  4. If you only need one move, stop after the first step and play it yourself.
  5. 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.

Highlighted cells form the pattern. Crossed-out candidates are the ones the technique removes.

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

QuestionThis solverAnswer-only solver
Shows the answerYesYes
Explains each stepYes, in plain languageNo
Names the technique usedYesNo
Checks that the puzzle has one solutionYes, before solvingSometimes
Tells you when logic runs outYes, search steps are labelledNo

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.

TechniqueShare of library
Naked single8,000 / 8,000 (100%)
Hidden single6,288 / 8,000 (79%)
Naked pair4,355 / 8,000 (54%)
Pointing pair3,733 / 8,000 (47%)
Box-line reduction1,641 / 8,000 (21%)
Hidden pair2,293 / 8,000 (29%)
Naked triple370 / 8,000 (5%)
X-wing480 / 8,000 (6%)
XY-wing1,985 / 8,000 (25%)
Swordfish61 / 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