GameporiPlay Sudoku →

Home › Puzzle games › Sudoku › Strategy

Sudoku strategy: how to solve any sudoku, step by step

To win at sudoku, solve from the simplest technique to the hardest and go back to the simplest after every new digit. This guide gives you that order, with a clear example of each move, so you can work through any grid from Easy to Expert.

Play sudoku now →

Rows, columns, boxes and candidates

We number rows 1–9 from top to bottom and columns 1–9 from left to right, so r3c7 is row 3, column 7. Boxes are numbered 1–9 like a phone keypad: box 1 top-left, box 5 the center, box 9 bottom-right. A unit is any row, column or box, and every unit must hold 1–9 once. A candidate is a digit that could still go in a cell. Two cells see each other when they share a unit.

Step 1: singles (enough for every easy sudoku)

Hidden single, found by cross-hatching

Choose a digit, say 7. Find a box that has no 7 yet. Now follow every 7 already on the board along its row and its column; each one "covers" the cells of our box it passes through. If only one cell in the box is left uncovered, the 7 must go there. Do this for every box, then move to the next digit. Start with the digit that already has the most copies: it has the fewest spots left.

The same works for rows and columns: if a row is missing a 7 and only one of its empty cells is not seen by a 7, that cell is a 7. Players often scan boxes only and miss these.

Naked single

Look at one empty cell and list the digits already in its row, column and box. If eight different digits are there, the ninth goes in the cell. Naked singles are easiest to spot in crowded areas, near rows or boxes with only two or three gaps.

Rule of thumb: hidden singles are found by thinking about a digit; naked singles by thinking about a cell. Use both.

Step 2: write complete notes

When no single is left, write every candidate in every empty cell (in the game, turn on Notes or press N). Do it box by box, and be complete: almost every technique below depends on knowing all the candidates of a unit. One missing note can create a false pair and wreck the grid. When you place a digit, remove it from the notes of every cell that sees it (the game does this for you).

Step 3: pointing pairs and box/line reduction

Pointing. In box 4, suppose the only cells that can hold a 3 are r5c1 and r5c2. Box 4 must have a 3 somewhere, so row 5's 3 is in box 4. Remove 3 from every other cell of row 5 (columns 4–9).

Box/line reduction (also called claiming). In row 2, suppose the only cells that can hold an 8 are r2c4 and r2c6, both in box 2. Row 2's 8 is in box 2, so no other cell of box 2 can be 8.

These two moves are the most common way medium puzzles break open, and they are easy to scan: for each box, ask whether any digit's candidates sit in a single line.

Step 4: naked and hidden pairs and triples

Naked pair

Two cells in the same unit that both have exactly the candidates {4,9}. One is 4 and the other is 9, so no other cell in that unit can be 4 or 9.

Hidden pair

In a unit, the digits 2 and 6 can only go in the same two cells, which also list other candidates. Those two cells must be 2 and 6, so delete every other candidate from them. Hidden pairs are harder to see; look for digits that appear in exactly two cells of a unit.

Triples

Three cells whose combined candidates are only three digits, such as {1,5}, {5,7}, {1,7}, form a naked triple: remove 1, 5 and 7 from the rest of the unit. Not every cell needs all three digits. A hidden triple is three digits that fit only in three cells of a unit. Quads exist too, but they are rare.

Step 5: X-wing and swordfish

These patterns look at one digit across several rows.

        c2        c7
r3   [ 5 ? ] . . [ 5 ? ]     5 can only go in c2 or c7 in row 3
r8   [ 5 ? ] . . [ 5 ? ]     5 can only go in c2 or c7 in row 8

X-wing. In row 3 the digit 5 can only go in c2 or c7, and the same is true in row 8. Whichever cell row 3 uses, row 8 must use the other column, so the two 5s sit on opposite corners. Either way, columns 2 and 7 both get their 5 from rows 3 and 8. Remove 5 from every other cell of columns 2 and 7.

Swordfish. The same idea with three rows and three columns. If, in rows 1, 4 and 9, the candidates for a digit all lie in columns 2, 5 and 8 (two or three per row), then those three columns get that digit from those three rows: remove it from the rest of the three columns.

To find fish, pick one digit and highlight it (tap a cell with that digit). Count the candidates per row; rows with exactly two are X-wing material.

Step 6: the XY-wing

Find a cell with two candidates, the pivot, say {3,8}. Now find two cells it sees, the wings: one with {3,6} and one with {8,6}. If the pivot is 3, the first wing becomes 6; if it is 8, the second wing becomes 6. So one wing is surely 6, and any cell that sees both wings cannot be 6. Bivalue cells (two candidates) are where to look, so it helps to scan for them after notes are complete.

Step 7: chains and when to use them

When nothing above works, the puzzle needs chaining. A strong link means "if not A then B": a digit with only two spots in a unit, or a cell with only two candidates. Pick a bivalue cell, assume one value, and follow only strong links. If the chain forces a contradiction (two of the same digit in a unit, or a cell with no candidates), your assumption was wrong and the other value is right. If both values of a cell force the same result somewhere, that result is true either way.

That is not guessing: you are proving something, and you only keep conclusions that are forced. In the game, use Undo to step back after testing a chain. Puzzles that need this are rated Expert.

The full routine, in order

StepTechniqueNeeded from
1Hidden singles (cross-hatch by digit), naked singlesEasy
2Complete notesMedium
3Pointing, box/line reductionMedium
4Naked/hidden pairs, then triplesMedium / Hard
5X-wing, swordfishHard / Expert
6XY-wingHard
7Chains, uniquenessExpert

The key habit: after every elimination, go back to step 1. A single advanced move usually unlocks several easy ones, and missing them costs more time than anything else.

How to get faster

Mistakes that cost games

FAQ

What is the best strategy for solving sudoku?

Work from simple to complex: scan for hidden singles digit by digit, then naked singles, then write complete notes and look for pairs, pointing, triples and finally X-wings and chains. Always return to singles after any elimination.

Is there a trick to solving sudoku?

The closest thing to a trick is cross-hatching: for one digit at a time, follow its existing copies along rows and columns into each box. The cells left uncovered are the only places that digit can go.

Should you guess in sudoku?

No. A proper sudoku has one solution that logic can reach. Guessing can work by luck but often breaks the grid much later. If you must test an idea, do it with undo, not with a pen.

What number should you start with in sudoku?

The digit with the most copies already on the board, because it has the fewest places left. Then work toward the rarer digits.

How do you get faster at sudoku?

Scan by digit rather than by cell, finish one digit before switching, avoid notes on easy grids, and learn the pair and pointing patterns so you see them instead of searching for them.

What is the hardest sudoku technique?

For everyday play it is chaining: following forced "if this, then that" links across the grid. Puzzles that need it are rated Expert here.

Play sudoku now →
Or jump to a level: Easy · Medium · Hard · Expert

More Sudoku

More puzzle games