Welcome to solvesudokus.com!

More Information:

Table of Contents
Sudoku Solver:

The Sudoku Solver is designed to solve sudokus, but it is also designed to teach the user how to solve them. Instead of using a brute-force algorithm, which would try every possible combination of numbers until the right one is found, human-made sudoku solving methods are used to solve the puzzle. Each method does one of two things; it eliminates candidates for a cell, or fills in a cell with a particular value. This approach does not succeed 100% of the time, but it does allow users to follow along in their own puzzle. Each step taken by the solver is also supplemented with an explanation, which explains the logic behind the method used.

Sudoku Basics:

Sudoku is a puzzle played on a 9x9 grid of squares. Each sudoku contains eighty-one cells, which are the small squares with gray borders, and nine 3x3 boxes, which are separated by the blue lines in the grid. Once the puzzle is solved, each row, column, and box within the grid must contain the numbers 1-9, with no repeated numbers in any of the rows, columns, or boxes. Initially, some of the cells contain a number, and some are left blank for the player to deduce. By using logic and narrowing down the candidates for each cell to one number, a player must solve every unfilled cell to solve the puzzle. For further information on common sudoku terminology, see the glossary at the bottom of this page.


Puzzles:

The puzzles pages are designed to practice the solving methods that are described in the methods section. Puzzles implore you to solve one cell of a sudoku by using a specific method. If the incorrect answer is given, it will then show the correct answer. Each empty cell can be used to type in the candidates for that cell. There are three difficulty levels for each solving method. For most solving methods, the easy level asks you to fill in a cell with the correct number, while the medium and hard levels ask you to deduce which cell can be filled in by using the specified method. The easy levels are designed to teach the method to the puzzler, while the medium and hard levels are designed to train the puzzler's vision to find appropriate uses of the method. Currently, puzzles for the basic and intermediate solving methods are available.

Sudoku Solving Methods:

The sudoku solver uses several sudoku solving methods that can also be used by humans. Learning these methods (and when to use them) will improve your sudoku solving skills. You can click through the methods below, and they are also described in greater detail on the Methods page.


To use the Check Cells method, pick a cell, then check every cell in the same box, row, or column as that cell to see if it contains a number. Any number in the same box, row, or column as the cell can be eliminated as a candidate. If there is only one candidate remaining for that cell, the cell can be filled in with that number.

To use the Check Boxes method, choose a box, then select a missing number from that box. Then, check the box to see if there is only one possible cell that could contain the missing number. If there is, the cell can be filled in with the missing number.

To use the Check Rows method, choose a row, then select a missing number from that row. Then, check the row to see if there is only one possible location for the missing number. If there is only one possible cell that the missing number can go, the cell is filled in with the missing number. The Check Columns method does the exact same thing, except with all the columns instead of the rows.

The Naked Pairs method can be used when two unfilled adjacent cells (adjacent means in the same row, column, or box as one another) have the same set of candidates, and each cell only has two possibilities. Since the cells can't contain the same number, both of the candidates must be in one of these cells, so these numbers can be eliminated as a candidate from any cell in the same row/column/box as both of the unfilled cells. For example, if the cells are in the same box, all other cells in that box can not contain the two candidates, so those numbers can be removed as a candidate from every other cell in the box.

The Naked Triples method can be used if three cells in the same row, column, or box collectively have only three candidates. Those three cells must therefore contain these three numbers in some permutation, so any other unfilled cells in this row, column, or box cannot contain any of these three numbers. Therefore, these three numbers can be eliminated as a candidate for those unfilled cells.

The Hidden Pairs method is similar to the Naked Pairs method. To use the Hidden Pairs method, begin by choosing a box, row, or column in the sudoku. If there are two missing numbers in the box/row/column that could only be put in the same two cells, any other candidates that could go in those two cells can be eliminated, because those cells must contain the two numbers that could only go in those cells.

To use the Box Reduction method, begin by choosing a box in the sudoku, and then picking a number that is missing from the box. In that box, if every cell that could contain the missing number is in the same row or column, other cells in that row or column that are in different boxes cannot contain that particular number, because the missing number must be in the box you chose. Therefore, that candidate can be eliminated from other cells in the row or column.

The Row Reduction and Column Reduction methods are similar to the Check Rows and Check Columns methods. To use the Row Reduction method, pick a row, and then pick a number that is missing from that row. Then, test that number in all unfilled cells in that row to see if it is a candidate. If all of the possible cells for the missing number are in the same box, cells in that box that are not in the row cannot contain that particular number, and that candidate can be eliminated as a candidate. The same logic is used for Column Reduction, except that a missing number is tested along a column instead of a row.

The x-wing method can be used if two rows or columns have only two cells that can contain a particular unknown number. For instance, if only two cells in row A could contain a 2, and only two cells in row B could contain a 2, and both rows could only have a 2 in columns 4 and 5, then all cells in columns 4 and 5 not in rows A or B could not contain a 2, because one of rows A and B definitely has a 2 in columns 4 and 5. This logic applies to two columns with the same situation, with only two rows possibly containing a certain value in both columns.

The xy-wing method can be used if there are three cells in a L shape that make up a naked triple. These cells must also have only two candidates, and all three of the collective candidates must be possibilities in exactly two of the cells. If all of these conditions are met, the xy-wing method can be used. One of the cells is the "pivot" cell, and the two other cells must be in the same row, column or box as that cell. If all three are in the same box, row or column, this is simply a naked triple, and the Naked Triples method could be used. However, if this is not the case, the xy-wing method is used. Any cell that is adjacent to the non-pivot cells (shares a row, column, or box with both of the non-pivot cells) can eliminate the number that is an candidate for both of the non-pivot cells, because one of those cells must contain that number.

The swordfish method is similar to the x-wing method, except with three columns or rows instead of two. It can be used if there are three columns or rows that contain only three possible cells for the same number.

The Guess and Check method should only be tried once all other methods fail to solve any cells. In the Guess and Check method, an unsolved cell with exactly two candidates is filled with one of the numbers. Next, all other methods listed on this page are used, and if these methods produce an error, the cell is filled in with the other number. If no error is produced, the cell is cleared, and the other number is tried. If neither candidate produces an error after several iterations of the other methods, the cell remains unfilled.



Glossary of Common Sudoku Terms:

Cell: A small square within a sudoku puzzle that must contain a single number once the puzzle is completed. A sudoku grid consists of 81 cells in a 9x9 square.

Box: A 3x3 square of cells that must contain all of the numbers 1-9 once the puzzle is completed.

Row: A horizontal row of 9 cells, which must contain the numbers 1-9 once the puzzle is completed.

Column: A vertical column of 9 cells, which must contain the numbers 1-9 once the puzzle is completed.

Candidate: A number that could possibly go in a cell without violating the rules of sudoku.

Solving method: A method that can be used to eliminate candidates from cells or put a number into a cell.

Naked single: A cell that has one candidate left.

Hidden single: A cell that must contain a certain number because it is the only cell in its row, column, and/or box that could contain that number.

Glossary of Common Sudoku Terms:

Cell: A small square within a sudoku puzzle that must contain a single number once the puzzle is completed. A sudoku grid consists of 81 cells in a 9x9 square.

Box: A 3x3 square of cells that must contain all of the numbers 1-9 once the puzzle is completed.

Row: A horizontal row of 9 cells, which must contain the numbers 1-9 once the puzzle is completed.

Column: A vertical column of 9 cells, which must contain the numbers 1-9 once the puzzle is completed.

Candidate: A number that could possibly go in a cell without violating the rules of sudoku.

Solving method: A method that can be used to eliminate candidates from cells or put a number into a cell.

Naked single: A cell that has one candidate left.

Hidden single: A cell that must contain a certain number because it is the only cell in its row, column, and/or box that could contain that number.