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
Every row contains the digits 1 to 9 with no repeats.
Every column contains the digits 1 to 9 with no repeats.
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
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.
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.
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.
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.
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.
| Technique | First needed at |
|---|---|
| Naked Single | Easy |
| Hidden Single | Easy |
| Naked Pair | Medium |
| Hidden Pair | Medium |
| Pointing Pair | Medium |
| Box-Line Reduction | Medium |
| X-Wing | Hard |
| Swordfish and XY-Wing | Hard |
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 articleNaked 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 articlePointing 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 articleBox-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 articleX-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 articleSwordfish 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 articleWorked Example: Finding a Single
Here is one 3×3 box from a puzzle. Four cells are empty.
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
- Nikoli: Sudoku: the rules: each row, column and 3×3 block holds 1 to 9
- How PencilGrid puzzles are made: the ten-technique ladder the hints follow and the uniqueness check
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
Daily Sudoku
Today's puzzle, the weekday difficulty curve and your streak.
Practice Mode
Three new Easy, Medium and Hard puzzles daily, with hints that name each technique.
How to Play Sudoku X
The same rules plus two diagonals; a good next step once singles feel easy.
How to Play Killer Sudoku
No givens, only cages with sums. Learn the 45 rule and cage combinations.
Sudoku Daily Archive
Every past daily grid by date, each one graded Easy, Medium or Hard by its hardest technique.