How to solve hard sudoku
Hard sudoku never requires guessing. It requires clean pencil marks and a handful of techniques that remove candidates. Here is what they are, which order to try them in and how to spot each one on the board.
Why hard puzzles stall
An easy sudoku always has a cell where only one number fits. A hard one reaches a point where no cell is obvious, and the temptation is to try a number and see what happens. You don’t need to. A well-made sudoku has exactly one solution, and you can reach it by logic alone.
What separates the levels is not how many givens there are, but the hardest technique the puzzle needs. That is how the puzzles in our sudoku are rated: easy ones fall to naked singles, while expert ones may need a hidden pair or an X-Wing.
To name cells we’ll use coordinates: r2c3 is the cell in row 2, column 3. Rows count from the top, columns from the left. A cell’s row, column and 3×3 box are its three units.
Pencil marks done right
Every advanced technique works on candidates: the numbers that can still go in each empty cell. If your notes are incomplete or wrong, no technique will work.
- Mark every candidate, not just the likely ones. A missing note is worse than an extra one: it makes you “see” a pair that isn’t there.
- Work by digit, not by cell. Take the 1 and sweep all nine boxes, noting it wherever it fits; then the 2, and so on up to 9. It’s faster and less error-prone than checking cell by cell.
- Clean up as you place. Every number you place removes that candidate from its row, column and box. In the game, notes clear themselves when you place a number; on paper, do it straight away.
- Fill in the easy numbers first. Place everything obvious before you pencil in the whole grid, so there are fewer candidates to manage.
The basics: naked and hidden singles
Before any advanced technique, run these two after every placement. They solve most of any puzzle.
Naked single. A cell allows only one number because the other eight are already in its row, column or box. With complete notes, it’s a cell with a single mark.
Hidden single. Within a unit, a number has only one possible cell, even though that cell allows other numbers. If the 7 can only go in r5c4 inside the centre box, the 7 goes there, even if r5c4 also lists 2 and 9.
The most common mistake in hard puzzles is overlooking a hidden single. Before hunting for an X-Wing, sweep each digit from 1 to 9 through all nine boxes.
Locked candidates
This is the technique that separates medium from hard, and it shows up in nearly every hard puzzle. It has two sides.
Pointing. If inside a box a number can only go in cells of one row (or one column), that number must sit in that row within the box. So you can remove it from the rest of that row, outside the box.
Example: in the top-left box, the 4 only fits in r2c1 and r2c3. Whichever it is, row 2’s 4 lives in that box, so remove 4 from r2c4 through r2c9.
Claiming (also called box/line reduction) is the reverse. If inside a row (or column) a number can only go in cells of a single box, remove that number from the rest of the box.
Example: in column 8, the 6 only fits in r7c8 and r9c8, both in the bottom-right box. No other cell of that box can be a 6.
Naked pairs and triples
Naked pair. Two cells in the same unit that allow only the same two numbers. If r1c2 and r1c7 both hold just {3, 8}, one is 3 and the other is 8. No other cell in row 1 can be 3 or 8, so strike those candidates.
If the two cells also share a box, the elimination applies to the box as well.
Naked triple. Three cells in a unit whose candidates, taken together, are only three numbers. Each cell doesn’t need all three: {2, 5}, {5, 9} and {2, 9} form a triple on 2, 5 and 9. Remove those three numbers from the rest of the unit.
Triples are hard to see. When a unit has lots of two-candidate cells, check whether three of them use only three numbers between them.
Hidden pairs
The hidden pair is the naked pair’s camouflaged twin, which is why people miss it.
If in a unit two numbers can only go in the same two cells, those cells belong to them. Every other candidate in those two cells can go.
Example in row 5, where the other four cells are already solved:
| Cell | Candidates | After |
|---|---|---|
| r5c1 | 1, 4, 7 | 4, 7 |
| r5c3 | 2, 6 | 2, 6 |
| r5c6 | 1, 2, 6 | 1, 2, 6 |
| r5c8 | 4, 6, 7 | 4, 7 |
| r5c9 | 1, 2 | 1, 2 |
The 4 and the 7 appear only in r5c1 and r5c8. One of those cells is 4 and the other 7, so the 1 in r5c1 and the 6 in r5c8 are dead. Once you remove them, the hidden pair becomes a naked pair {4, 7}, which sometimes exposes a single elsewhere.
To find hidden pairs, count how many times each digit appears in a unit’s notes. Digits that appear exactly twice are your suspects.
X-Wing: the rectangle pattern
The X-Wing is the signature technique of expert puzzles. It works on one digit at a time.
The rule. If in two rows a digit can only go in two cells, and those cells sit in the same two columns, the digit will occupy opposite corners of a rectangle. You can then remove that digit from every other cell in those two columns.
Example with the 5:
c3 c7
r2 ... [5] ... [5] ... ← row 2's 5 can only be in c3 or c7
r6 ... [5] ... [5] ... ← row 6's 5 can only be in c3 or c7
There are only two possibilities: the 5s are in r2c3 and r6c7, or in r2c7 and r6c3. Either way, columns 3 and 7 already get their 5 from rows 2 and 6. So delete 5 from every other cell in columns 3 and 7.
It works the same with rows and columns swapped: two columns where the digit fits only in the same two rows let you clear it from the rest of those rows.
How to search. Pick a digit that is pencilled in many cells. Go through the rows looking for ones where it appears exactly twice, and check whether two of them line up in the same columns. The three-row, three-column version is called a Swordfish and follows the same logic.
When you can’t see anything
When there seems to be no move left, go through this list in order:
- Audit your notes. Check that every mark is possible and none is missing. Half of all stalls are bad notes.
- Hidden singles, digit by digit. From 1 to 9, through boxes, rows and columns.
- Locked candidates in every box.
- Naked and hidden pairs, starting with the units that have fewest empty cells.
- X-Wing on the most-pencilled digits.
Avoid guessing. A wrong guess may not blow up until twenty moves later. If you’re truly stuck, the game’s hint doesn’t just hand you a number: it tells you which technique applies and where, which is exactly what you need for next time.
| Level | Technique it may need |
|---|---|
| Easy | Naked single |
| Medium | Hidden single |
| Hard | Locked candidates, naked pairs |
| Expert | Hidden pairs, X-Wing |
FAQ
Do you ever have to guess in sudoku?
Not in a puzzle with a unique solution. Some extreme puzzles need chains far longer than an X-Wing, but a logical path always exists. Guessing just swaps that logic for trial and error.
How long should a hard sudoku take?
It depends on practice, but 15 to 40 minutes is normal. Once these techniques become habit the time drops a lot, since most of it goes into pencil marks and pattern hunting.
Which technique should I learn first?
Locked candidates. They unlock more hard puzzles than any other technique, and they teach the key shift in thinking: asking where a number can go, not just which number goes in a cell.
Put it into practice
Sudoku
Four levels rated by technique and hints that explain the move.