Sudoku Solver: enter your puzzle and solve it instantly

This sudoku solver works out any 9×9 puzzle instantly: type the given numbers into the grid and the missing digits appear in blue in the empty cells. A puzzle is already filled in so you can try it right away.

Source: Wikipedia: Sudoku (en). Updated: .

Enter the given numbers of your sudoku and the solution appears at once.

Paste puzzle as text

Type digits into the grid and use the arrow keys to move. Ctrl+V pastes a whole puzzle of 81 characters.

My Toolbox

Result

How it is calculated

How to use the sudoku solver

  1. Type the digits of your puzzle into the cells. The arrow keys move between cells, and on a phone the cursor jumps ahead by itself.
  2. The solution appears automatically: the added digits are blue in the empty cells, your givens stay black.
  3. Contradictions turn red as soon as a digit appears twice in a row, column or 3×3 box. Usually that is just a typo.
  4. “Copy solution” takes all 81 digits with you; “Paste puzzle as text” loads a sudoku you have as a string of characters.

How the solver works

First a backtracking search counts whether the puzzle has none, exactly one or several solutions. Then the solver works through it step by step like a person would, always using the simplest technique that helps: naked and hidden singles, then pointing and claiming, pairs, triples and X-Wing. Only when none of these applies does it guess. The techniques that were needed are listed under the grid.

How hard is my sudoku?

The level depends on the hardest technique needed: Easy needs only singles, Medium adds pointing, claiming and pairs, Hard triples or X-Wing, and for Expert only trial and error is left. To follow every single step with an explanation, use the sudoku game with solution path.

No solution or several solutions

A well-made sudoku has exactly one solution. If the solver reports “no solution”, one of the digits was probably mistyped. If it reports “several solutions”, givens are missing: a sudoku provably needs at least 17 givens to have a unique solution (McGuire, Tugemann and Civario, 2014). If you like other brain teasers, try nonograms, minesweeper or block puzzle.

Frequently asked questions

How do I solve a sudoku with this solver?

Type the digits into the cells or paste a puzzle with Ctrl+V. The solution appears immediately in blue; the Solve button is only needed if you want to force a recalculation.

Can it solve the hardest sudokus?

Yes. Every valid 9×9 sudoku gets solved, including puzzles known as extremely hard. If logic alone is not enough, the solver falls back on systematic trial and error and says so.

Why does it report a contradiction or no solution?

Usually a digit was mistyped. Red cells show duplicate digits in a row, column or box; “no solution” means the givens cannot all be true together.

What does “several solutions” mean?

The puzzle has too few givens to be unique. The solver shows one of the solutions, but others exist. Check whether you missed a given.

Can I upload a photo of the puzzle?

No, on purpose: the solver runs entirely in your browser and nothing is uploaded. Type the numbers or paste them as text.

What is the minimum number of givens?

17. With fewer givens there are always several solutions; this was proven in 2014 by an exhaustive computer search.

Sources and legal basis

As of: · Editorial policy

Related tools