New: Kerb Clash, clear the jammed car parkNew: Sudoku and Minesweeper, classic puzzles that play offlineInstall any game to your home screen

Sudoku Rules: How to Play (With Examples)

Sudoku is a logic puzzle played on a 9×9 grid. You fill the empty cells with the digits 1 to 9 so that every row, every column and every 3×3 box contains each digit exactly once. Some cells start filled in. Those are your clues, and there is only one way to fill in the rest.

Open Sudoku full screen for more levels, saved progress and best times.

The rules

The grid has 9 rows, 9 columns, and 9 boxes of 3×3 cells, marked off by the thicker lines.

  1. Each row holds the digits 1 to 9, once each.
  2. Each column holds the digits 1 to 9, once each.
  3. Each box holds the digits 1 to 9, once each.

That’s all. The order inside a row, column or box doesn’t matter, as long as nothing repeats. When the grid is full and no rule is broken, the puzzle is solved.

A row, a column and a box Three Sudoku grids. The first highlights row 4, the second column 7 and the third the middle box. Each highlighted area holds the digits 1 to 9 once each, in no particular order. 2 5 6 4 9 7 1 3 8 Row 6 2 5 1 9 4 8 7 3 Column 4 9 7 5 3 1 6 2 8 Box
A row, a column and a box from a solved grid. Each holds 1 to 9 once, in no particular order.

Because each area has nine cells and nine digits, “no repeats” and “every digit once” come to the same thing. That’s the whole trick of Sudoku: if a digit can’t go anywhere else in a row, column or box, it must go in the one place left.

A small example, solved

The rules work at any size. Here’s a 4×4 Sudoku: digits 1 to 4, with boxes of 2×2. It’s the quickest way to see how the reasoning goes. Rows are numbered from the top, columns from the left.

A 4 by 4 Sudoku puzzle A 4 by 4 grid split into four 2 by 2 boxes. Row 1 reads 3, 1, 4, blank. Row 2 has a 3 in column 3. Row 3 has a 4 in column 2. Row 4 has a 1 in column 3. 3 1 4 3 4 1
A 4×4 puzzle. Every row, column and 2×2 box needs 1, 2, 3 and 4.

Step 1: find a row with one gap

Row 1 already has 3, 1 and 4. The only digit missing is 2, so it goes in the last cell.

Step 1: the last digit in a row Row 1 already has 3, 1 and 4, so the only digit missing, 2, goes in its empty cell in column 4. 3 1 4 3 4 1 2
Row 1 has one empty cell, and only 2 is missing.

Step 2: find the only place for a digit

Look at the top-left box. It needs a 2 and a 4, and its two empty cells are in row 2. The 4 can’t go in column 2, because column 2 already has a 4 (in row 3). So the 4 goes in column 1.

Step 2: the only place for a 4 In the top-left box, the 4 can only go in row 2, column 1. Row 2, column 2 is crossed out because column 2 already has a 4, in row 3. 3 1 4 3 4 1 2 4
The ringed 4 rules out the crossed cell, leaving one place for the top-left box’s 4.

That fills in more of the grid at once:

  • The top-right box now has 4, 2 and 3, so its empty cell is 1.
  • Row 2 now has 4, 3 and 1, so its empty cell is 2.

Step 3: finish the bottom half

  • Column 2 has 1, 2 and 4, so the gap in row 4 is 3.
  • Column 3 has 4, 3 and 1, so the gap in row 3 is 2.
  • Row 3 now needs 1 and 3. Column 1 already has a 3, so column 1 takes the 1 and the 3 goes in column 4.
  • Row 4 needs 2 and 4. Column 4 already has a 2 (in row 1), so it takes the 4, and the 2 goes in column 1.
The solved 4 by 4 Sudoku The finished grid. Row 1: 3, 1, 4, 2. Row 2: 4, 2, 3, 1. Row 3: 1, 4, 2, 3. Row 4: 2, 3, 1, 4. Every row, column and box holds 1 to 4 once. 3 1 4 3 4 1 2 4 2 1 1 2 3 2 3 4
The solved grid. Bold digits were given; lighter ones were placed in steps 1 and 2; coloured ones in step 3.

Every 9×9 puzzle is solved the same way, just with more to look at.

Two moves that start every puzzle

On a full-size grid, beginners make almost all their progress with two moves. They’re the same idea seen from two directions.

The only place for a digit

Pick a box and a digit the box is missing. Then look along the rows and columns that pass through the box: wherever that digit already sits in one of them, it rules out the whole line inside the box. If only one empty cell is left, the digit goes there.

The only place for a 2 in the top-middle box The top-middle box has five empty cells. The 2 in row 1 rules out the empty cell in row 1. The 2 in column 5 (row 6) rules out column 5, and the 2 in column 6 (row 9) rules out column 6. Only row 3, column 4 is left, so the 2 goes there. 5 2 9 3 6 4 7 5 8 3 4 7 2 5 7 1 3 8 5 1 2 6 3 9 1 2 7 3 5 4 6 8 2 3 4 5 7 1 1 2 2
The top-middle box needs a 2. The 2s in row 1, column 5 and column 6 rule out four of its five empty cells, so the 2 goes in row 3, column 4.

This is often called cross-hatching or scanning, and it’s the fastest way into a fresh puzzle. Work through the digits 1 to 9 one at a time and check every box for each. It works for rows and columns too: a digit can have only one place left in a row or a column.

The only digit for a cell

Sometimes it’s easier to start from a cell. Every cell shares a row, a column and a box with 20 other cells. List the digits among those 20. If eight different digits are already there, the ninth is the only one the cell can take.

The only digit for row 1, column 3 Row 1, column 3 shares a row, column or box with the digits 1, 2, 3, 4, 5, 6, 7 and 9. The only digit it can take is 8. 5 2 9 3 6 4 7 5 8 3 4 7 2 5 7 1 3 8 5 1 2 6 3 9 1 2 7 3 5 4 6 8 2 3 4 5 7 1 1 2 8
Row 1, column 3 can see 1, 2, 3, 4, 5, 6, 7 and 9. The only digit left for it is 8.

Here row 1 already has 2, 3, 4, 5, 6 and 9, column 3 adds a 1, and the top-left box adds a 7. That leaves 8. Scanning boxes for the 8 wouldn’t find this one yet, which is why it pays to switch between the two views.

Notes: pencil in what’s possible

When neither move finds anything, write in the digits each cell could still take. In the game, turn on Notes and tap digits to pencil them in small. Once a cell’s notes are down to one digit, or a digit’s notes in a row, column or box are down to one cell, you have your next move. Harder puzzles are solved almost entirely in the notes.

Common mix-ups

  • Counting the diagonals. In classic Sudoku, only rows, columns and boxes count. A digit can repeat along a diagonal.
  • Thinking you need maths. Nothing adds up. A 9 is no “bigger” than a 1 for solving purposes.
  • Guessing to get unstuck. A wrong guess can sit unnoticed for twenty moves and then break the grid. If you’re stuck, look at one digit across all nine boxes, or fill in notes.

Next steps

Questions

Do the diagonals have to contain 1 to 9 as well?

Not in classic Sudoku. Only rows, columns and the nine 3×3 boxes count. Puzzles where the diagonals count too are a variant, usually called Diagonal Sudoku or Sudoku X.

Is Sudoku a maths puzzle?

No. You never add or multiply anything. The digits are only labels, and the puzzle would work the same with nine letters or nine colours. What it needs is careful looking, not arithmetic.

Does every Sudoku have exactly one solution?

A proper one does. Every puzzle on PeerPuzzles is checked by a solver before you see it, so there is always exactly one answer, and you can reach it by reasoning rather than luck.

Do I ever need to guess?

No. On Easy, the two moves on this page are enough to finish every level. Harder puzzles need more techniques and some notes. Because every puzzle has exactly one solution, there is always a reason each digit goes where it does.

How many numbers does a Sudoku start with?

It varies, and more givens usually means easier. Our Easy puzzles start with 40, Medium with 32 and Hard with 26. Mathematicians have proved that a 9×9 Sudoku with only one solution needs at least 17.