This free sudoku solver does two things: it solves any puzzle instantly, and it can walk you through the solution one logical step at a time, naming each technique and showing exactly which cells prove it. Use it to finish a puzzle you are stuck on, check your work, or learn the moves that make hard sudoku easy.
How to use the sudoku solver
- Enter the puzzle. With Enter puzzle selected, tap a cell and type the digits from your newspaper, book or app, using the number pad on a phone or the keyboard on a computer. The cursor jumps to the next cell after each digit, so you can type a whole row in one go; press 0, the erase key or Backspace for empty cells, and use the arrow keys to move. You can also paste an 81-character string such as
53..7....6..195...where 0, dots or dashes mean empty. - Read the status line. As soon as there are enough givens, the solver tells you whether the puzzle is valid, whether it has exactly one solution, and how difficult it is.
- Choose how much help you want. Press Hint for the next logical step, Solve for the whole answer at once, or switch to Solve myself, fill in cells and press Check to see whether your digits are right so far.
- Share it. Share link creates a URL with the puzzle built in, so a friend opens exactly the same grid.
Givens are shown in white, your own digits in blue and digits placed by the solver in green, so you can always tell them apart.
How the step-by-step solver works
A hint is not just a digit. Each press of Hint finds the easiest move a person could make right now, highlights the cells involved, and explains the reasoning in plain English. Press Apply step to make that move and see the next one, or close the loop yourself by typing the digit. Moves that remove pencil marks instead of placing a digit turn the candidates on, with the removed ones struck through in red.
The step engine always tries simple techniques before advanced ones, the same order we recommend in our sudoku strategy guide. If your own entries contain a mistake, it tells you which cells are wrong before giving any further hint, because logic built on a wrong digit leads nowhere.
The techniques it explains
| Technique | What it means |
|---|---|
| Hidden single | A digit fits in only one cell of a row, column or box. |
| Naked single | A cell has only one possible digit left. |
| Pointing pair or triple | Inside a box, a digit is confined to one row or column, so it is removed from the rest of that line. |
| Box/line reduction | Inside a row or column, a digit is confined to one box, so it is removed from the rest of that box. |
| Naked pair or triple | Two (or three) cells share the same two (or three) candidates, which then leave every other cell of the unit. |
| Hidden pair or triple | Two (or three) digits fit only in the same cells, so those cells lose all their other candidates. |
| X-wing and swordfish | A digit is limited to the same two (or three) columns in two (or three) rows, which clears it from the rest of those columns. |
| XY-wing | Three two-candidate cells force a digit into one of two wings, so any cell seeing both wings loses it. |
Cells are named by row and column: r3c7 is row 3, column 7. Boxes are numbered 1 to 9 from the top left, like a phone keypad.
How the difficulty rating works
The rating is the hardest technique the step engine needs to finish the grid from the givens: Easy needs only singles, Medium adds pointing pairs, box/line reduction and pairs, Hard adds triples, X-wing and XY-wing, Expert needs a swordfish, and Extreme needs something beyond all of these, such as long chains. Ratings from newspapers and apps vary, so a "hard" puzzle elsewhere can be Medium here, or the other way round.
Invalid puzzles, no solution and several solutions
The solver checks your input before it solves anything. If a digit appears twice in a row, column or box, both cells turn red and the message names them. If nothing repeats but the givens still contradict each other, it reports that no solution exists, which almost always means a typo. If the puzzle has two or more solutions, it says so, shows one of them, and the step-by-step mode explains where logic stops being able to decide. A proper sudoku has exactly one solution, and none has fewer than 17 givens.
Keep practicing
The best way to need the solver less is to play. Our free online sudoku has a daily puzzle and four levels, from easy sudoku and medium to hard and expert sudoku, with notes, undo and its own hints. Prefer pencil and paper? Try our printable sudoku sheets, and keep this page open to check your answers.
FAQ
Is using a sudoku solver cheating?
Not if you use it to learn. Pressing Solve on a contest puzzle is cheating, but asking for one explained step when you are stuck is how most players learn new techniques. Try to find the move yourself after reading the hint's technique name before you look at the full explanation.
Can every sudoku be solved without guessing?
Every proper sudoku has exactly one solution, so in principle it can be solved by pure logic. Nearly all everyday puzzles, from easy to hard, fall to the techniques this solver explains. The very hardest puzzles need long chains of reasoning that feel like guessing; when our step engine runs out of techniques it says so and reveals one cell instead of pretending.
How does a sudoku solver work?
This one does two jobs. An exact search tries digits in the cell with the fewest options and backtracks on contradictions, which solves any puzzle in milliseconds and counts its solutions. A separate step engine works like a person: it keeps pencil marks and looks for the easiest technique first, from singles up to X-wing, XY-wing and swordfish.
Why does the solver say my puzzle has more than one solution?
Usually a given was missed or mistyped. A proper sudoku has exactly one solution, and no proper sudoku has fewer than 17 givens. Compare the grid with your source; the solver still shows one valid solution.