Skip to content
PencilGrid

How to Play Sudoku

How to play Sudoku in one line: fill every row, column and 3×3 box of the 9×9 grid with the digits 1 to 9, each exactly once. Some digits are given; the rest follow by elimination. This guide covers the rules, how to read the grid, a worked example, and the techniques our hint system uses to explain each step.

Published · Updated

The Rules

  1. Every row contains the digits 1 to 9 with no repeats.

  2. Every column contains the digits 1 to 9 with no repeats.

  3. Every 3×3 box contains the digits 1 to 9 with no repeats.

That is the whole rule set. There is no arithmetic and no symmetry requirement. The givens are fixed; everything else is deduced.

Reading the Grid

The grid has nine rows (numbered top to bottom), nine columns (left to right) and nine boxes. Every cell belongs to exactly one row, one column and one box; solvers call these three its units, and the 20 other cells that share a unit with it are its peers. A digit placed in a cell removes that digit as a possibility from all 20 peers.

Three boxes side by side form a band; three stacked boxes form a stack. Scanning a digit across a band is the fastest way to find Hidden Singles, because two placed copies of the digit block two of the three rows in the third box.

On PencilGrid, tap a cell and a digit to place it, or switch to Notes mode to pencil candidates. The Check button flags wrong digits; the Hint button names the next technique and highlights the cells it uses.

Step by Step

1

Learn the three rules

Fill the 9×9 grid so every row, every column and every 3×3 box contains the digits 1 to 9 exactly once. The starting digits (givens) never move.

2

Scan for Naked Singles

Pick an empty cell and eliminate every digit already present in its row, column and box. If only one digit remains, write it in.

3

Scan for Hidden Singles

Pick a digit and a box. If that digit can go in only one empty cell of the box because the other cells are blocked by their rows and columns, it belongs there.

4

Pencil in candidates

When no single is left, switch to notes mode and write the possible digits in each empty cell. Patterns in the candidates are what the harder techniques read.

5

Apply eliminations

Use Naked Pairs, Pointing Pairs and Box-Line Reduction to remove candidates, then return to step 2. Repeat until the grid is full.

Solving Techniques, Easiest First

These are the ten techniques PencilGrid's solver uses, in the order it tries them. The Hint button always reports the easiest technique that makes progress, so a hint on an Easy puzzle is always a single.

Sudoku techniques in the order the grader tries them
TechniqueFirst needed at
Naked SingleEasy
Hidden SingleEasy
Naked PairMedium
Hidden PairMedium
Pointing PairMedium
Box-Line ReductionMedium
X-WingHard
Swordfish and XY-WingHard

Naked Single

Easy

A cell has only one possible digit once you remove everything already in its row, column and box. This is the first thing to look for in any puzzle.

Read the Naked Single article

Hidden Single

Easy

A digit has only one possible cell within a row, column or box, even if that cell still has other candidates. Scan one digit at a time across the three boxes in a band to find these quickly.

Read the Hidden Single article

Naked Pair

Medium

Two cells in the same unit hold exactly the same two candidates. Those two digits must live in those two cells, so they can be removed from every other cell in the unit.

Read the Naked Pair article

Hidden Pair

Medium

Two digits appear as candidates in only two cells of a unit. Those cells must hold those digits, so any other candidates in them can be erased.

Read the Hidden Pair article

Pointing Pair

Medium

Inside a box, all candidates for a digit sit in one row or column. The digit must be in that box on that line, so it can be removed from the rest of the line outside the box.

Read the Pointing Pair article

Box-Line Reduction

Medium

The reverse of a Pointing Pair: within a row or column, all candidates for a digit fall inside one box. Remove that digit from the other cells of the box.

Read the Box-Line Reduction article

X-Wing

Hard

A digit has exactly two candidate positions in each of two rows, and those positions share the same two columns. The digit must occupy two corners of that rectangle, so it can be removed from the rest of both columns.

Read the X-Wing article

Swordfish and XY-Wing

Hard

Swordfish extends X-Wing to three rows and columns. XY-Wing links three cells with two candidates each to eliminate a digit they jointly rule out. Both appear in our Hard puzzles and are explained in the hint when they are needed.

Read the Swordfish and XY-Wing article

Worked Example: Finding a Single

Here is one 3×3 box from a puzzle. Four cells are empty.

A 3 by 3 Sudoku box with the digits 5, 3, 6, 9 and 8 placedFour cells are empty. The top-right cell shows the Naked Single 2 deduced in the text; the other three empty cells are shaded.532698
The example box. Shaded cells are empty; the top-right cell shows the deduced 2.

The box already holds 3, 5, 6, 8 and 9, so the four empty cells share the candidates 1, 2, 4 and 7. Now suppose the row through the top-right empty cell already contains 1, 4 and 7 elsewhere in the grid. Removing those leaves a single candidate for that cell: it must be 2. That is a Naked Single, the technique behind every Easy puzzle.

Next, look at the digit 7 within this box. If the middle row of the box is blocked by a 7 elsewhere in that row, and the bottom-left cell is blocked by a 7 in its column, the only cell left for a 7 in the box is the middle-right one, even though it still has other candidates. That is a Hidden Single. Alternating between these two checks solves most of an Easy grid.

Tips for Faster Solving

  • Start with the digit that appears most often in the givens; it has the fewest places left to go.

  • Work the most crowded rows, columns and boxes first. A unit with seven digits placed has two cells that are almost certainly singles.

  • After every placement, re-check the 20 peers of that cell. New singles usually appear right next to the digit you just wrote.

  • If you find yourself guessing, stop and use a hint instead. The hint shows the logical step you missed, which is how the harder techniques become familiar.

Frequently Asked Questions

Do I ever need to guess in Sudoku?

Not on PencilGrid. Every puzzle is generated with exactly one solution and verified to be solvable by the technique ladder above, so a logical step always exists. If you are stuck, use the Hint button: it names the technique and highlights the cells involved.

What do Easy, Medium and Hard mean here?

Difficulty is the hardest technique the puzzle requires. Easy puzzles need only Naked and Hidden Singles. Medium puzzles need at least one pair, pointing or box-line elimination. Hard puzzles need X-Wing, Swordfish or XY-Wing at some point.

Should I write candidates in every cell?

Only when singles run out. Filling every cell with notes is slow and noisy. Solve the singles first, then pencil candidates into the cells of the most constrained rows, columns or boxes.

How does the Check button work?

Check compares your filled cells with the stored solution and marks any that are wrong. It counts as a check in your stats and does not reveal correct digits.

When does the daily puzzle change?

At midnight in your local time zone. Each daily is numbered from the launch date, follows a weekday difficulty curve, and stays playable afterwards from its own link.

Is a Sudoku with two solutions valid?

No. A proper Sudoku has exactly one solution; otherwise logic alone cannot finish it. Our generator rejects any puzzle whose uniqueness check fails.

Sources

Sources last checked on 2026-11-10.

Written and checked by the maker of PencilGrid, a puzzle enthusiast and software engineer who also builds the generator and solver behind every grid on the site.

Every technique on this page is one the site's solver actually uses: puzzles are generated offline, checked for a single solution, and graded by the hardest step they need. How PencilGrid puzzles are made →

More Sudoku Pages

Related puzzles: Sudoku X · Killer Sudoku · Futoshiki

Keep Going