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: .
How it is calculated
How to use the sudoku solver
- 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.
- The solution appears automatically: the added digits are blue in the empty cells, your givens stay black.
- Contradictions turn red as soon as a digit appears twice in a row, column or 3×3 box. Usually that is just a typo.
- “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
- Wikipedia: Sudoku (en)
- McGuire, Tugemann, Civario (2014): There is no 16-clue sudoku, Experimental Mathematics 23 (arXiv:1201.0749) – at least 17 givens for a unique solution
- Wikipedia: Mathematics of Sudoku – Anzahl gültiger Gitter, Lösungsverfahren
As of: · Editorial policy
Related tools
- Play sudoku online – daily puzzle and solverPlay sudoku online free: a new daily sudoku every day plus 4 levels, notes, mistake check and hints. The solver explains every step. Printable grid.
- Play nonograms onlineFree nonogram puzzles in your browser: 5×5, 10×10 and 15×15, numbered levels and random puzzles – each with exactly one solution. With hints and error check.
- Play the mines game onlineFree mine puzzle in your browser: beginner, intermediate and expert, first click always safe, flags by long press or right click, best times. No app or sign-up.
- Block puzzle: play Block Grid onlineFree block puzzle game in your browser: drop shapes into the 8×8 grid, clear full rows and columns, beat your high score. No download or sign-up needed.
- Mental math practiceFree mental math trainer: add, subtract, multiply and divide in four levels, a 60-second round or 20 timed problems, with a mistake list and best scores.
- Play Solitaire OnlineFree Klondike solitaire in your browser: draw 1 or 3, unlimited undo, hints and a winnable daily deal. Share your time – the link deals the same cards.
- Sea Battle: sink the ships against the computerPlay Sea Battle online for free: place your fleet, fire at a 10×10 grid and sink the computer’s ships at three levels. No sign-up, works on phones.
- Random date generatorRandom date and time generator: set a date range, pick weekdays or weekends only, avoid repeats, sort the list. Up to 100 dates at once, free.
- Charades generatorCharades generator for kids and family: spin a random word to act out from 108 ideas – easy, animals, jobs, hard and a dumb charades list. Add your own words.