Sudoku Offline

Can a sudoku have multiple solutions?

Yes, if it is a faulty one. Type your puzzle in to see whether it has exactly one answer, and where the answers differ if it has more.

A grid of givens can have two or more solutions, but then it is not a proper sudoku. A proper puzzle has exactly one, which takes at least 17 givens. Type yours in and press "Check for one answer". If two grids fit, the checker marks the cells where they differ.

    What the checker tells you

    Enter the givens only, or paste the puzzle as 81 characters with a dot or a zero for each empty cell. There are five possible replies.

    • One answer: exactly one way to finish the grid.
    • More than one answer: it found two complete grids and marked the cells in which they differ. It also names one of those cells and the two digits that work there.
    • No answer: the grid cannot be finished, so a given is wrong or was typed into the wrong cell.
    • There is a mistake: a digit repeats in a row, column or box.
    • Empty grid: enter a puzzle first.

    The check searches for a second complete grid by trying digits, so it works on puzzles that are too hard for the solver's techniques as well. Everything runs in your browser.

    Why a proper sudoku has one answer

    Suppose two different finished grids fit the same givens. They differ in some cells, and in those cells both digits are allowed by everything on the page. No argument from the givens can then choose one, because it would be proving the other grid wrong. You can only pick. The mathematics course notes of Cornell University call a puzzle with a unique solution well formed and point out that the usual reasoning may fall short without it.

    Why fewer than 17 givens is never enough

    In 2012 Gary McGuire, Bastian Tugemann and Gilles Civario searched by computer for a sudoku with 16 givens and one answer. The search was exhaustive and found none, which proves that 17 is the minimum. At the other end, an empty grid can be filled in 6,670,903,752,021,072,936,960 ways.

    Seventeen or more is no guarantee. The givens must also include at least eight different digits. If two digits are missing from them altogether, you can take any solution, swap those two digits everywhere and have a second one.

    How 77 givens can still leave two answers

    Look at a finished grid for four cells that form a rectangle: two rows, two columns and only two boxes, filled with the same two digits crosswise. Take those four cells out. Each row, column and box involved still needs the same two digits, and they fit either way round. The other 77 cells are full, and the puzzle has two answers.

    The same thing hides in unfinished puzzles. If a completed grid contains the two-digit rectangle described above and none of its corners is a given, swapping the two digits in those four cells gives a second solution.

    What to do with a puzzle that has two

    Compare your copy with the original first, cell by cell. One wrong or forgotten given is enough. If the copy is right, the puzzle was printed with a fault, and any grid that follows the rules is a fair answer, even if the solution page shows another. Adding one given in a marked cell can repair it: put in the digit from the printed solution and check again.

    The puzzles here are all checked for a single answer before they go in, on the boards as well as on the printed pages.

    Questions

    Is sudoku 100% solvable?

    Every proper puzzle has an answer, and only one. Reaching it with logic you know is another matter, since some need techniques beyond an X-Wing or a Swordfish. A grid with a wrong given may have no answer at all.

    How do I know without a computer that there is one solution?

    Solve it and make sure each digit and each removed note was forced. If nothing was a guess, no second answer can exist. If you guessed even once, you have found one answer and cannot rule out others.

    I found a different answer than the book. Who is right?

    If your grid has no repeated digit in a row, column or box and keeps every given, it is right. Then the puzzle has at least two answers. Check that you copied the givens correctly.

    Can I use the one answer rule to solve a puzzle?

    Yes, if you trust the maker. When a move would leave a rectangle without givens that works both ways, it cannot be right in a puzzle with one answer. Our solver does not use that argument.

    Keep reading