GuideRules5 techniquesWorked examples
How to Solve Sudoku
The rules, then five techniques from the one you use most to the ones hard puzzles need. Each is shown on a real puzzle from this site's generator, with the seed so you can open it and follow along.
Rules
The rules
A Sudoku is a 9×9 grid divided into nine 3×3 boxes. Fill every empty square with a digit from 1 to 9 so that each row, each column and each box contains every digit exactly once. A well-made puzzle has exactly one solution, so it can always be solved by logic, never by guessing. Every puzzle on this site is checked for that.
The techniques below go from the one you use most to the ones hard puzzles need. Each example is a real puzzle made by the Sudoku maker; its seed is given so you can open it and follow along.
Technique 1
Scanning and the naked single
| 6 | 1 | 8 | ||||||
| 8 | 5 | 6 | 9 | 1 | ||||
| 6 | 8 | 7 | ||||||
| 1 | 4 | 6 | 7 | 2 | 8 | |||
| 6 | 3 | 2 | 8 | 1 | 5 | |||
| 3 | 2 | 8 | 5 | 1 | 4 | 9 | ||
| 9 | 7 | 8 | 3 | |||||
| 7 | 2 | 4 | 9 | 5 | ||||
| 3 | 8 | 7 |
Look at the highlighted square, row 2, column 4. Its row already has 1, 5, 6, 8, 9; its column has 2, 3, 5, 6, 7, 8; its box has 5, 6, 8. Together that is every digit except 4, so the square must be 4.
A square with only one possible digit is called a naked single. Finding them by scanning rows, columns and boxes solves every easy puzzle on this site.
Technique 3
Pencil marks
When neither kind of single is in sight, write the possible digits small in the corner of each empty square in the area you are working on. These are candidates. Keep them honest: when you place a digit, cross it out of every candidate list in the same row, column and box.
Pencil marks are what make the next two techniques visible. On paper, print hard puzzles two per page so the squares are big enough for them.
Technique 4
Pointing
| 7 | 3 | 1 | ||||||
| 2 | 6 | 4 | 3 | 8 | 9 | 5 | ||
| 1389 | 1 | 13789 | 5 | 1789 | 2 | |||
| 7 | 3 | 9 | 1 | 5 | 4 | 2 | ||
| 4 | 6 | 8 | ||||||
| 9 | 4 | 5 | ||||||
| 6 | 3 | |||||||
| 8 | 4 | 5 | 6 | 7 | ||||
| 6 | 7 | 3 | 9 |
In the top-left box, the digit 1 can only go in row 3, column 1, row 3, column 2, row 3, column 3: all of them in row 3. Whichever square it ends up in, row 3's 1 is inside this box. So 1 can be crossed out of the rest of row 3: here from row 3, column 5, shown in red.
The same works with columns, and in reverse: if a digit's candidates in a row all lie in one box, it can be removed from the rest of that box.
Technique 5
Naked pairs
| 7 | 3 | 1 | ||||||
| 2 | 6 | 4 | 3 | 8 | 9 | 5 | ||
| 5 | 4789 | 46 | 2 | 46 | ||||
| 7 | 3 | 9 | 1 | 5 | 4 | 2 | ||
| 4 | 6 | 8 | ||||||
| 9 | 4 | 5 | ||||||
| 6 | 3 | |||||||
| 8 | 4 | 5 | 6 | 7 | ||||
| 6 | 7 | 3 | 9 |
In row 3, row 3, column 7 and row 3, column 9 can each only be 4 or 6. One of them will be 4 and the other 6, so no other square in the row can hold either digit. Row 3, column 6 had candidates 4, 7, 8, 9; crossing out the pair leaves 7, 8, 9.
Pointing and naked pairs together solve most of the hard puzzles on this site. The rest need longer chains of reasoning such as X-wings.
Practice
Practise level by level
- Easy: naked singles only (20 of 20 need only naked singles).
- Medium: 18 of 20 need only naked singles; 2 also need hidden singles.
- Hard: 6 of 20 need only naked singles; 10 also need hidden singles; 2 need pairs or pointing; 2 need more advanced logic.
- On screen: the player has notes, undo and a hint button that names the next naked or hidden single.
Questions
Questions
What is the first thing to do in a Sudoku?
Scan for the digits that already appear most often. For each box that is missing one of them, check its rows and columns; if only one square is left, write it in.
Do you ever have to guess in Sudoku?
Not in a puzzle with one solution. Hard puzzles can need long chains of reasoning, but there is always a logical next step. Every puzzle on this site has been checked for exactly one solution.
What is the difference between a naked and a hidden single?
A naked single is a square with only one possible digit. A hidden single is a digit with only one possible square in a row, column or box, even if that square has other candidates.
Should I use pencil marks?
On easy and most medium puzzles you do not need them. On hard puzzles they make pointing and pairs visible and save you from holding everything in your head.
More printable Sudoku: easy · medium · hard · 6×6 · for kids · large print · classroom worksheets · letter Sudoku · blank grids · 16×16 · Killer Sudoku · how to solve