At the tables right now

Sudoku Solver

Solve any sudoku step by step, with every move explained.

Choose a cell, then type a digit or press one below. Arrow keys move between cells; Backspace clears.

Enter a Puzzle

Type the puzzle's digits into the grid, paste it below or load an example, then press Solve. The solver shows one step at a time, so you can take a hint without seeing the whole answer.

30 digits entered

Share or Paste

81 digits, row by row, with 0 or a dot for an empty cell. Grids copied with lines and spaces work too.

How to Use the Sudoku Solver

Most sudoku solvers just fill in the answer. This one solves the puzzle the way a person would, one named technique at a time, and explains every step. Take a single hint when you're stuck, or watch how a hard puzzle is cracked.

  1. Enter the puzzle: choose a cell and type its digit, use the number pad on a phone, or paste the whole puzzle as 81 digits.
  2. Press Solve. The solver checks that the puzzle has exactly one solution, and tells you if it has none or several.
  3. Read step 1: which technique, why it works here and what it changes, drawn on the grid with the candidates showing.
  4. Press Next step for the next deduction, or Full solution to see the whole answer.
  5. Follow a technique's link to learn it in Playboard's sudoku course, then spot it yourself in your next puzzle.

Techniques the Solver Uses

At every step the solver uses the easiest technique that makes progress, trying them in this order.

Naked single
A cell with only one candidate left: that digit has to go there. Try it in the lesson.
Hidden single
A digit with only one place left in a row, column or box goes there, whatever else that cell could hold. Try it in the lesson.
Naked pair
Two cells in a house that can only hold the same two digits. Those digits will fill those two cells, so no other cell in the house can have them. Try it in the lesson.
Pointing pair
When a digit's places inside a box all lie in one row or column, the box puts that digit in that line, so it can't go anywhere else in the line. Try it in the lesson.
Box/line reduction
The reverse of a pointing pair: when a digit's places in a row or column all lie in one box, it can't go anywhere else in that box. Try it in the lesson.
Hidden pair
Two digits that can only go in the same two cells of a house. Those cells must hold them, so their other candidates go. Try it in the lesson.
Naked triple
Three cells in a house whose candidates, together, are only three digits. Those digits leave the rest of the house.
Hidden triple
Three digits that can only go in the same three cells of a house. Those cells lose every other candidate.
X-wing
A digit with exactly two places in each of two rows, in the same two columns. It must take two opposite corners of that rectangle, one in each column, so it can't go anywhere else in those columns. The same works with rows and columns swapped. Try it in the lesson.
Naked quad
Four cells in a house whose candidates, together, are only four digits. Those digits leave the rest of the house.
Hidden quad
Four digits that can only go in the same four cells of a house. Those cells lose every other candidate.
Swordfish
An X-wing across three lines: when a digit's places in three rows lie in only three columns, it can't go anywhere else in those columns, and the same with rows and columns swapped.
XY-wing
A cell with two candidates (the pivot) sees two cells with two candidates (the pincers) that share a third digit. Whichever digit the pivot takes, one pincer gets the third digit, so no cell that sees both pincers can have it.
Trial and error
When none of the techniques applies, the solver finishes by trial and error: try a digit, follow where it leads and back out of contradictions. It says so instead of pretending the rest was deduced.

How Difficulty Is Rated

A puzzle is as hard as the hardest technique it needs. The number of given digits says little: many puzzles with only 25 givens fall to singles alone.

Easy
Naked and hidden singles finish it.
Medium
It needs a naked pair, a pointing pair or a box/line reduction.
Hard
It needs a hidden pair, a triple or a quad.
Expert
It needs an X-wing, a swordfish or an XY-wing.
Extreme
None of the solver's techniques finish it: the last cells need trial and error, or a technique this solver doesn't use.

Try It on a Puzzle

Each link opens a puzzle in the solver. Press Solve to see how it's cracked.

  • The Wikipedia puzzle

    The puzzle that illustrates sudoku on Wikipedia. Easy: naked singles alone solve it.

  • A pointing pair

    Medium: between the singles it needs pointing pairs and a naked pair.

  • An X-wing

    Expert: one X-wing opens it up, and pairs, pointing pairs and singles do the rest.

  • A swordfish

    Expert: it needs a swordfish, the three-row cousin of the X-wing.

  • Arto Inkala's “world's hardest sudoku”

    Published in 2012 and billed as the hardest sudoku ever made. None of these techniques can place a single digit in it, so the solver says so and finishes by trial and error.

Frequently Asked Questions

Is the sudoku solver free?

Yes. There's no sign-up and no limit, and the solving happens entirely in your browser. The puzzle is kept in the page's address, which is what makes the link shareable.

Can it solve any sudoku?

Any valid 9×9 sudoku. When its techniques run out, as they do on the very hardest puzzles, it finishes by trial and error and tells you so. If a puzzle has no solution or more than one, it says that instead.

How do I get a hint without seeing the answer?

Press Solve and stop at step 1. The solver shows one deduction at a time, and the full solution stays hidden until you press Full solution.

Why does it say my puzzle has more than one solution?

A proper sudoku has exactly one. More than one usually means a digit was left out or typed into the wrong cell. Check the grid against your puzzle; the solver can still show one of the solutions.

What does trial and error mean here?

Trying a digit in a cell and following it until it either works or leads to a contradiction. It always finds the answer, but it isn't something you can spot on the page, so the solver uses it only as a last resort and names it when it does.

How is the difficulty rated?

By the hardest technique the puzzle needs, from Easy (singles only) to Extreme (needs trial and error). Two puzzles with the same number of givens can be rated very differently.

What are the small digits in the cells?

Candidates: the digits a cell could still hold. The solver shows them during the steps because most techniques work by crossing candidates out, and a struck-out digit shows exactly what a step removed.

More for Sudoku Players