🧩 Stuck on a sudoku puzzle? Pick your grid size below, type in the numbers you already have, and let the solver fill in the rest — instantly, right in your browser.
Sudoku Solver
Free Tool · ThePuzzleSolver.net
Numbers you type stay black. Numbers the solver fills in appear in red.
How This Sudoku Solver Works
Type the numbers you already know into the grid and leave the rest blank. When you click Solve It, the tool checks every row, column, and box for conflicts, then works through the remaining empty cells until every square has a valid number. If your starting numbers break the rules of sudoku — the same digit twice in a row, column, or box — the tool will tell you exactly that instead of guessing.
Under the hood it uses a method called backtracking. It goes to the first empty square, puts in the smallest number that doesn’t clash with its row, column or box, and moves on to the next square. When it reaches a square where nothing fits, it knows an earlier guess was wrong, so it backs up and tries the next number there instead. A computer can do this thousands of times a second, which is why even a hard 9×9 comes back almost instantly.
Once it has an answer, the solver also checks whether that answer is the only one. A well-made sudoku always has exactly one solution. If the numbers you entered allow more than one, the tool solves it anyway but warns you — usually it means a starting number is missing or was typed in the wrong square.
4×4 is a great starting size for kids or anyone new to sudoku logic, using the numbers 1–4 in 2×2 boxes.
6×6 steps things up with the numbers 1–6 in 2×3 boxes, a nice middle ground before tackling the full grid.
9×9 is the classic sudoku format found in newspapers and puzzle books, using numbers 1–9 in 3×3 boxes.
Worked Example: A 4×4 Sudoku by Hand
Here’s the 4×4 sample that loads when you click Load Sample on the 4×4 size. It has just six starting numbers and exactly one answer. Every row, every column and every 2×2 box has to end up holding 1, 2, 3 and 4 once each.
1
3
3
1
4
2
The puzzle
4
1
2
3
3
2
4
1
2
3
1
4
1
4
3
2
The solution
Finish the nearly full column. The second column already has 1, 3 and 4. The only number missing is 2, so the empty square in row 2 must be 2.
Use the bottom row. Row 4 has 4 and 2, so it needs 1 and 3. The third column already has a 1 (in row 3), so the 1 can’t go there — the third-column square gets 3 and the first square gets 1.
Work the top-left box. That box already holds 1 and the 2 you just placed, so its two empty squares need 3 and 4. Row 1 already has a 3, so row 1 gets the 4 and the square below it gets the 3.
Finish with singles. Every remaining square now has only one possible number. Row 1 needs a 2; row 2 needs 4 and 1, and the 1 can’t share a column with row 3’s 1; row 3 takes the last 2 and 4.
That “find the square with only one option” habit is the same skill that carries you through a 9×9 — there are just more squares to check.
Tips for Using the Solver
Check, don’t cheat. If you only want to know whether you’re on the right track, enter the original puzzle, solve it, and compare just the one or two squares you’re stuck on.
Type carefully. One misplaced starting number is the most common reason for a “no solution” or “more than one answer” message. Compare your grid to the printed page square by square.
Pick the right size first. Changing the size rebuilds the grid, so choose 4×4, 6×6 or 9×9 before you start typing.
Only numbers count. Pencil marks and notes from your paper copy don’t belong in the grid — enter only the numbers that were printed or that you’re certain of.
Mr. Puzzle says: the 6×6 grid is the most underrated size in sudoku. It uses the same tricks as the 9×9, but you can see the whole puzzle at a glance, which makes it the best practice ground for spotting singles.
Prefer Solving It Yourself First?
If you'd rather work through the logic on paper before checking your answer here, browse our printable sudoku puzzles in Easy and Hard — all playable right in your browser — or read our complete guide to solving sudoku for corner-starting strategy, pencil marks, and advanced techniques like X-Wing and Swordfish.