Sudoku Solver
Stuck on a puzzle from a newspaper, book or another app? Type the given numbers into the grid or paste the puzzle, then solve it instantly. Reveal a single square if you only want a nudge, and check whether the puzzle really has one answer.
Enter the given numbers, then press Solve. Use the keyboard or the number pad.
81 characters, row by row. Use 0 or . for empty squares.
How to use the Sudoku solver
- Click a square and type a digit from 1 to 9, or use the number pad. Arrow keys move between squares.
- Enter only the numbers printed in the original puzzle. Leave every other square empty.
- Or paste the puzzle as 81 characters, row by row, with 0 or a dot for blanks, and press Load pasted puzzle.
- Press Solve to see the full answer, or Reveal one square for a single hint.
Learn the logic instead of guessing
A solver gives you the answer, but the fun of Sudoku is finding it yourself. When you are stuck, the next move is usually one of a few patterns. Start with naked singles and hidden singles, then move on to locked candidates and naked pairs. Hard puzzles often need an X-Wing or an XY-Wing.
Prefer to play with step-by-step hints that explain each move? Open the online Sudoku game or try today's daily Sudoku.
Frequently asked questions
How does the Sudoku solver work?
The solver fills the empty square with the fewest possible digits first, tries each option, and backs up when a choice leads to a contradiction. It keeps searching after the first answer so it can tell you whether the puzzle has one solution or several.
Why does the solver say my puzzle has more than one solution?
A proper Sudoku has exactly one answer. If a clue was left out or typed in the wrong square, several grids may fit. Double-check the givens against your newspaper, book or app; one possible solution is still shown.
Can I get a hint without seeing the whole answer?
Yes. Select an empty square and press Reveal one square. Only that square is filled in, so you can keep solving the rest yourself.
What is the minimum number of clues a Sudoku needs?
A standard 9x9 Sudoku with a single solution needs at least 17 given numbers. That was proven by an exhaustive computer search in 2012, so the solver asks for at least 17 clues.
Does the solver work for hard and expert puzzles?
Yes. Any valid 9x9 puzzle, from easy newspaper grids to the hardest known puzzles, is solved in well under a second in your browser. Nothing is sent to a server.