Skip to main content
Season 3 ends in 16 d 22:42:18 $2,000 10,000 pts = 1 month Premium
Gaming

How to Solve Sudoku: Rules and Beginner Strategies

Published 19 min read
Open the post and read it to claim 49 points
An empty wooden puzzle grid on a dark desk beside a sharpened pencil and an eraser, lit by a warm lamp

Sign in and earn +49 points by reading this

Read to the end, wait a few seconds, then tap the claim button below.

In short

To solve a sudoku, fill every empty cell with a digit from 1 to 9 so that each row, column and 3×3 box holds each digit once, and place a digit only when logic proves it is the only option [1][2]. Start by scanning for singles, then use pencil marks and pairs when stuck [3][4].

Key takeaways

  1. The whole rulebook is one rule: every row, every column and every 3×3 box must contain the digits 1 to 9 exactly once [1][2].
  2. A proper sudoku has exactly one solution, so every digit can be found by reasoning rather than guessing [5][6].
  3. No arithmetic is needed; the digits are only labels, and any nine symbols would work just as well [3][6].
  4. Most easy puzzles fall to two moves only: the naked single (a cell with one possible digit) and the hidden single (a digit with one possible cell) [4].
  5. When the singles run out, write small pencil marks for the candidates and look for pairs and triples that clear other cells [3][4].
  6. The smallest number of starting clues a proper sudoku can have is 17, proved by an exhaustive computer search [5].
  7. The puzzle began as Number Place in a US magazine in 1979, was named sudoku by the Japanese publisher Nikoli in 1984 and spread worldwide after 2004 [1][2].
On this page 14 sections
  1. What are the rules of sudoku?
  2. How to solve sudoku for beginners: where to start
  3. What are naked singles and hidden singles?
  4. How to solve sudoku puzzles step by step: a worked example
  5. How do pencil marks (candidates) work in sudoku?
  6. How to solve sudoku when stuck: pairs, triples and pointing
  7. Should you guess in sudoku?
  8. How to solve sudoku faster
  9. How many clues does a sudoku need, and what makes one hard?
  10. Where did sudoku come from?
  11. Common mistakes
  12. Frequently asked questions
  13. Glossary
  14. Sources

What are the rules of sudoku?

Sudoku is played on a 9×9 grid of 81 cells divided into nine 3×3 boxes; you fill every empty cell with a digit from 1 to 9 so that each row, each column and each box contains every digit exactly once [1][2].

The Japanese puzzle publisher Nikoli, which gave the puzzle its name, states the rules in two lines: place a number from 1 to 9 in each empty cell, and make sure each row, column and 3×3 block bounded by bold lines contains all the numbers from 1 to 9 [1]. Mathematicians at Cornell University call this single constraint the One Rule [2].

Some cells are already filled when the puzzle starts. These are the givens or clues, and you never change them [2]. Everything else follows from the One Rule. Three groups matter, and solvers call each of them a unit:

  • Row: nine cells across.
  • Column: nine cells down.
  • Box: one of the nine 3×3 blocks marked by the thicker lines.

Every cell belongs to exactly one row, one column and one box, so each placed digit rules out that same digit in up to 20 other cells. That chain of exclusions is the engine of every solving method in this guide.

A well-made puzzle has one unique solution [5][6]. This matters for how you play: if logic says a digit must go somewhere, it really must, and you never need luck. Nikoli adds that sudoku needs no calculation, only concentration [1].

An empty 9×9 grid with one row tinted blue, one column tinted gold and one 3×3 box tinted green
Every row, every column and every 3×3 box must contain the digits 1 to 9 once.

How to solve sudoku for beginners: where to start

Begin with the digits that already appear most often, and scan the rows, columns and boxes for places where a missing digit can only go in one cell [3][4].

  1. Count the givens. Look at which digit appears most often. If seven 4s are already placed, only two 4s are missing, and they are usually the easiest to find.
  2. Scan one box at a time. Pick a box that lacks that digit. Look along the rows and columns that pass through the box: every row or column that already contains the digit blocks those cells [3].
  3. Place the digit only when one cell is left. If only one empty cell in the box is not blocked, the digit must go there [3][4].
  4. Repeat for every box, then every digit. Each new digit blocks more cells, so a second pass often finds placements the first pass missed.
  5. Check nearly full units. A row, column or box with only one or two empty cells can often be finished by seeing which digits are missing.

This scanning method, sometimes called cross-hatching, needs no notes at all and solves a large part of most easy puzzles. Radek Pelánek of Masaryk University, who analysed the solving times of real players on over two thousand puzzles, notes that most published puzzles rated easy or mild can be completed with the two simplest techniques alone [4].

Work in pencil or on a screen that allows undo, and keep your attention on one digit at a time. Switching between digits too often is the most common reason beginners overlook a placement.

What are naked singles and hidden singles?

A naked single is a cell where only one digit is possible; a hidden single is a digit that has only one possible cell in a row, column or box [4].

Both moves come straight from the One Rule, and Pelánek's model of human solving treats them as the two basic techniques from which everything else grows [4]. The Cornell notes describe the same two ideas: a forced entry when a cell has only one possible value, and a digit that can go in only one cell of its neighbourhood [3].

Naked single

Look at one empty cell and list the digits already present in its row, column and box. If eight different digits are there, the ninth is the only one left. For example, if the row holds 1, 2 and 6, the column holds 3, 5 and 9, and the box holds 4 and 8, the cell must be 7.

Hidden single

Now look at a unit instead of a cell. Suppose the top-left box still needs a 5. If the first and second rows each have a 5 somewhere outside the box, the 5 for this box must sit in its third row. If, in addition, the first and second columns each have a 5 further down, only one cell of the box remains, so the 5 goes there. The cell may still have other candidates, which is why this single is called hidden [4].

Pelánek also names these moves the exclusion and inclusion principles. Puzzles that can be solved by repeating only these two steps make up most of the published puzzles labelled easy or mild [4].

How to solve sudoku puzzles step by step: a worked example

Each step of a solve has the same shape: choose a unit or a cell, rule out what the One Rule forbids, and place a digit only when exactly one option is left [3][4].

Picture the first row of a puzzle, reading left to right: 5, 3, empty, empty, 7, empty, empty, empty, empty. The row is missing 1, 2, 4, 6, 8 and 9.

  1. Look at the third cell. Its box already holds 6, 8 and 9, and its column holds 1 and 2 further down. Of the six missing digits, only 4 survives, so the cell is a naked single: write 4.
  2. Update the row. The row now lacks 1, 2, 6, 8 and 9. The new 4 also blocks every other cell in its column and its box.
  3. Switch to a digit. Ask where the 1 can go in this row. Suppose the columns of cells six, seven and nine each already contain a 1, and cell four shares a box with an existing 1. Only cell eight remains, so the 1 there is a hidden single.
  4. Continue around the grid. Each placement changes the options in three units, so move to the row, column or box that has just gained a digit and ask the same questions again.

The positions in this example are illustrative, but the reasoning is exactly what the Cornell notes recommend: list what cannot go in a cell, place forced entries, and then remove the placed digit from the other cells of its neighbourhood [3]. Writing your reasons down for the first few puzzles makes the pattern automatic.

How do pencil marks (candidates) work in sudoku?

Pencil marks are small notes in a cell listing every digit that could still go there; they turn guesswork into bookkeeping once simple scanning stops working [3][4].

The Cornell notes call writing down all possible entries in each empty cell the most basic strategy [3]. Pelánek calls the same list a cell's candidate set and describes human solving as reasoning about these sets until each cell has one digit left [4].

  1. Mark one unit at a time. For each empty cell, write the digits not yet used in its row, column or box. Keep the marks small and in the same position each time, for example 1 in the top-left corner of the cell and 9 in the bottom-right.
  2. Erase as you place. Every time you fill a cell, remove that digit from the marks in its row, column and box. Most errors come from forgetting this step.
  3. Look for a cell with one mark. That is a naked single.
  4. Look for a digit with one mark in a unit. That is a hidden single.

Some solvers mark only the cells with two or three candidates, which keeps the grid readable; others mark everything once the puzzle becomes hard. Either works as long as the marks are complete for the cells you rely on. On paper, a sharp pencil and a good eraser matter more than speed.

A paper puzzle grid with small pencil dots in some cells and coloured wooden counters in others, next to a pencil and an eraser
Pencil marks record the candidates that can still go in each cell.

How to solve sudoku when stuck: pairs, triples and pointing

When no single is left, look for groups of cells whose candidates lock certain digits in place, and use them to erase those digits from other cells [3][4].

Naked pairs and triples

If two cells in the same unit both have exactly the same two candidates, say 3 and 8, those two digits must occupy those two cells, even though you do not yet know which goes where. So 3 and 8 can be erased from every other cell in that unit [3]. The same logic works for three cells that share three candidates between them [3]. Pelánek lists naked and hidden pairs among the standard advanced techniques [4].

Hidden pairs

If two digits can each appear only in the same two cells of a unit, those cells must hold those digits, and you can erase every other candidate from them [4].

Pointing

If, inside one box, all the candidates for a digit lie in a single row, that digit must be in that row within the box. It can therefore be erased from the rest of that row outside the box. The same works for a column. Pelánek names pointing as one of the common advanced techniques [4].

A checklist when stuck

  • Recheck that every placed digit has been erased from its row, column and box.
  • Scan again for hidden singles, digit by digit; they are easy to miss.
  • Look for two cells in a unit with the same two marks.
  • Look inside each box for a digit confined to one row or one column.

Harder puzzles use longer chains of the same kind of reasoning. Pelánek's research suggests that many advanced techniques are, in effect, shortcuts for short what-if searches [4].

Should you guess in sudoku?

A well-made sudoku never requires a guess, because its single solution can be reached by logic; guessing is a last resort that can be undone [3][5].

The Cornell notes accept that basic strategies are not always enough and describe the fallback: pick the cell with the fewest possibilities, try one of them, and retrace your steps if you reach a contradiction such as a digit repeated in a row, column or box [3]. Computers solve puzzles this way, by backtracking search, but Pelánek's model of a human solver assumes that people prefer logical steps and avoid systematic search [4].

If you do test an option, do it in a way you can undo:

  • Choose a cell with only two candidates, so a contradiction proves the other one.
  • Mark the trial digit in a different colour, or note the time you started.
  • Stop at the first contradiction and erase everything placed after the trial.

A guess that leads to a full grid without contradiction gives an answer, but not an understanding of why. For practice, it is often better to step back and look for a pair or a pointing pattern you missed.

How to solve sudoku faster

Speed comes from a fixed routine: scan by digit, keep pencil marks tidy and up to date, and always try the simplest technique before the harder ones [4].

  • Work digit by digit. Scanning all nine boxes for one digit is quicker than examining cells one at a time, because the blocking rows and columns are easy to see together.
  • Follow the last placement. A new digit changes three units. Those units are where the next placement is most likely to appear.
  • Simple first. Pelánek's model of a human solver always applies the simplest technique that gives a result, and that model matched real solving times closely [4].
  • Mark late, mark fully. Scanning without notes is fast at the start; full pencil marks pay off in the second half, when the grid is crowded.
  • Practise at one level. Pelánek found two sources of difficulty: how hard each step is and how the steps depend on each other [4]. Repeating puzzles of the same grade trains both.

Competitive solvers go further. The World Puzzle Federation has supervised a yearly World Sudoku Championship since 2006, when the first one was held in Lucca, Italy [7]. For everyday play, steady accuracy is worth more than raw speed: one mistake usually costs more time than careful checking.

A folded puzzle page with an empty grid on a wooden table next to a cup of tea, a pencil and a brass stopwatch
A steady routine beats rushing: scan by digit and keep your notes up to date.

How many clues does a sudoku need, and what makes one hard?

A proper sudoku needs at least 17 givens; newspaper puzzles usually show around 25, and difficulty depends on the techniques required, not on the number of clues alone [4][5].

In 2012 Gary McGuire, Bastian Tugemann and Gilles Civario reported an exhaustive computer search of every possible completed grid for a 16-clue puzzle with a unique solution and found none, confirming that the minimum is 17 [5]. The search took about a year at the Irish Centre for High-End Computing [5]. With fewer clues a puzzle has more than one solution and is no longer valid [5].

The same paper gives the number of completed 9×9 grids that obey the One Rule: 6,670,903,752,021,072,936,960 [5]. The Cornell notes explain how Bertram Felgenhauer and Frazer Jarvis counted them by splitting the grid into bands and using symmetry [8].

Difficulty is a separate question. Pelánek compared ratings with the solving times of real players on puzzle websites and found that a puzzle is hard when its steps need advanced techniques and when the steps depend on each other in long chains [4]. Two puzzles with the same number of givens can be very different. Sudoku also belongs to a wider class of constraint satisfaction problems, the same family as timetabling and scheduling [4]; the generalised puzzle on larger grids has been shown to be NP-complete, which means no fast general method is known [4].

Where did sudoku come from?

Sudoku began as Number Place, a puzzle in an American magazine from 1979, and got its name from the Japanese publisher Nikoli in 1984 [1][2].

The Cornell notes credit the American Howard Garns with inventing the game in its current form; it was published by Dell Magazines in 1979 [2]. Nikoli says it found the puzzle in an American puzzle magazine and introduced it to Japanese readers in 1984 [1]. Its first Japanese title meant roughly that the number is limited to a single one; it was shortened to sudoku, where su means number and doku means single [1].

The puzzle did not catch on at once. In 1986 Nikoli decided that the clues must be arranged in a symmetrical pattern, and after that change the puzzle became a big hit [1]. Because sudoku is a Nikoli trademark in Japan, other Japanese publishers still call it Number Place [1].

The New Zealander Wayne Gould discovered the puzzle in Japan, wrote a computer program to generate it, and placed puzzles in The Times of London from 2004; it spread across the United Kingdom and then to the United States by 2005 [2]. Jean-Paul Delahaye, writing in Scientific American, compared the speed of the craze with the Rubik's cube boom of the early 1980s [6].

Sudoku techniques from easiest to hardest
TechniqueWhat you look forWhen to use it
Scanning (cross-hatching)Rows and columns that block a digit inside a boxFirst pass on any puzzle
Naked singleA cell with only one possible digitThroughout; the most common move
Hidden singleA digit with only one possible cell in a unitThroughout; check digit by digit
Pencil marksAll remaining candidates written in each cellWhen scanning stops giving placements
Naked pair or tripleTwo or three cells sharing the same two or three candidatesMedium and hard puzzles
PointingA digit confined to one row or column inside a boxMedium and hard puzzles
Trial and errorTesting one candidate and undoing it on a contradictionLast resort only
Sudoku in numbers
FactValueSource
Cells in the grid81 (9 rows × 9 columns)Cornell Math Explorers' Club
Boxes9 boxes of 3×3Nikoli
Digits used1 to 9, each once per unitNikoli
Minimum clues for a unique solution17McGuire, Tugemann and Civario
Typical clues in a newspaper puzzleAbout 25McGuire, Tugemann and Civario
Completed valid grids6,670,903,752,021,072,936,960McGuire, Tugemann and Civario
First World Sudoku Championship2006, Lucca, ItalyWorld Puzzle Federation

Common mistakes

  • Placing a digit because it looks likely rather than because it is forced.

    Fix: Write a digit only when one option is left for the cell or the unit; a proper puzzle never needs a hunch [3][5].

  • Forgetting to erase pencil marks after placing a digit.

    Fix: Each time you fill a cell, remove that digit from the marks in its row, column and box straight away [3].

  • Looking only for naked singles.

    Fix: Scan digit by digit for hidden singles as well; they are often the only move available [4].

  • Doing arithmetic, such as adding up rows.

    Fix: Sudoku needs no calculation; treat the digits as nine labels and use logic only [1][3].

  • Guessing early and building on the guess.

    Fix: Use guessing only as a last resort, on a cell with two candidates, and undo at the first contradiction [3].

  • Judging difficulty by the number of givens.

    Fix: Difficulty depends on which techniques the puzzle needs and how the steps chain together [4].

Frequently asked questions

How do you solve sudoku puzzles?

Fill each empty cell with a digit from 1 to 9 so that no row, column or 3×3 box repeats a digit, and place a digit only when logic forces it [1][2].

How do you solve sudoku for beginners?

Start with the digit that appears most often, scan each box for the one cell where it can go, and repeat for every digit before using pencil marks [3][4].

How do you solve sudoku when stuck?

Write full pencil marks, recheck that placed digits are erased from their units, then look for hidden singles, matching pairs and digits confined to one row or column in a box [3][4].

How do you solve sudoku puzzles step by step?

Pick a cell or a unit, rule out what the One Rule forbids, place a digit when one option is left, then update the three units it belongs to and continue [3].

How do you solve sudoku faster?

Use a fixed routine: scan by digit, follow the last placement, try simple techniques first and keep pencil marks up to date [4].

Is sudoku a math game?

It needs no arithmetic; any nine symbols would work. It is a logic puzzle, although mathematicians study it for counting and complexity questions [3][6].

Does every sudoku have only one solution?

A proper puzzle does, and a valid puzzle needs at least 17 givens; with too few clues there can be several solutions [5].

Is guessing allowed in sudoku?

Nothing forbids it, but a well-made puzzle can be solved without it; if you test a candidate, be ready to undo it [3].

Glossary

Given (clue)
A digit printed in the grid at the start, which never changes [2].
Unit
A row, a column or a 3×3 box; each must contain the digits 1 to 9 once [1].
One Rule
The single sudoku constraint: no digit repeats in any row, column or box [2].
Candidate
A digit that could still go in a cell without breaking the rule [4].
Naked single
A cell with only one remaining candidate [4].
Hidden single
A digit that has only one possible cell in a unit [4].
Pencil marks
Small notes listing the candidates in each empty cell [3].

Sources

  1. Sudoku: rules, features and history Nikoli Co., Ltd. · 2021-09-17
  2. The Math Behind Sudoku: Introduction to Sudoku Cornell University, Department of Mathematics, Math Explorers' Club
  3. The Math Behind Sudoku: Solving Strategy Cornell University, Department of Mathematics, Math Explorers' Club
  4. Difficulty Rating of Sudoku Puzzles by a Computational Model Radek Pelánek, Masaryk University (Proceedings of FLAIRS-24, AAAI)
  5. There is no 16-Clue Sudoku: Solving the Sudoku Minimum Number of Clues Problem via Hitting Set Enumeration Gary McGuire, Bastian Tugemann, Gilles Civario (University College Dublin; arXiv) · 2013-08-31
  6. The Science Behind Sudoku Scientific American (Jean-Paul Delahaye) · 2006-06-01
  7. Championships: World Puzzle and World Sudoku Championships World Puzzle Federation
  8. The Math Behind Sudoku: Counting Solutions Cornell University, Department of Mathematics, Math Explorers' Club
Share this guide Telegram WhatsApp X
0 likes

Comments

Top comments

About the Pouyam Team Editorial policy

On Pouyam

Explore Pouyam

Guides are one corner of Pouyam. Here is where to go next.

Play and win dollar prizes

All games

Free online games with no download on Pouyam: every game earns season points, and the top players win dollar prizes.

Quick navigation