Sudoku Solver

Paste or type a puzzle into the grid below and the solver works it out move by move, naming the technique behind each step. It never guesses, so if it reports a contradiction, an earlier digit was wrong rather than the puzzle being broken.

Sudoku solver, step by step

Type or paste a puzzle, then solve

How this solver works

Most sudoku solvers hand you the finished grid. This one shows the reasoning: it solves the puzzle with the same nine techniques a person uses, in order from easiest to hardest, and explains each step. You can step forwards and backwards through the whole solve and watch which cells each technique depends on.

If a puzzle cannot be cracked with these techniques, the solver says so instead of pretending - that is a genuinely hard puzzle, and it will show you the answer from an exact solver.

  • Naked single - a cell with only one candidate left
  • Hidden single - a digit that fits in only one cell of a row, column or box
  • Locked candidates - a digit confined to one line inside a box, or one box inside a line
  • Naked pair / triple - two or three cells sharing the same few candidates
  • Hidden pair - two digits that fit in only the same two cells
  • X-Wing - a digit with two positions in each of two lines
  • XY-Wing - a pivot cell and two pincers eliminating a third digit
  • Swordfish - the three-line version of X-Wing

New to the game, or stuck on a specific move? The step-by-step sudoku guide walks the six techniques in the order they become useful, with a worked example. For pencil-and-paper practice, print a printable sudoku sheet.

To verify a grid you solved on paper, check a sudoku solution without an answer key. If you get stuck before the solver can help, scanning for the first move covers the two passes worth trying by eye.