How to solve sudoku: rules and techniques from beginner to X-wing

Sudoku needs no maths, only logic, and every well-made puzzle can be finished without guessing. This guide explains the rules and the techniques in the order you will need them, shown on real puzzles from our generator, with data on which techniques each difficulty needs.

Key takeaways

  • Every row, column and 3 × 3 box holds 1 to 9 once. No arithmetic, just logic.
  • Scan for hidden singles first: pick a digit and a box, and rule out squares along rows and columns.
  • When scanning stalls, write pencil marks and look for naked pairs, pointing and claiming.
  • Our easy puzzles yield to scanning alone; medium ones occasionally, and hard ones always, need more.
  • Never guess: a unique puzzle can always be finished by reasoning.
On this page
  1. The rules
  2. Technique 1: scanning for hidden singles
  3. Technique 2: naked singles
  4. Technique 3: pencil marks
  5. Technique 4: naked pairs
  6. Technique 5: pointing and claiming
  7. Technique 6: hidden pairs
  8. Technique 7: the X-wing
  9. Which techniques each difficulty needs
  10. Printing puzzles
  11. Tips

The rules

A sudoku is a 9 × 9 grid divided into nine 3 × 3 boxes. Some squares already contain digits, the clues. Fill every empty square with a digit from 1 to 9 so that:

  • each row contains every digit once,
  • each column contains every digit once,
  • each 3 × 3 box contains every digit once.

That is all. There is no arithmetic; the digits could just as well be letters or colours. A well-made puzzle has exactly one solution, so every square can be worked out by reasoning.

Technique 1: scanning for hidden singles

Pick a digit and a box that doesn’t contain it yet. Every copy of that digit in a row or column crossing the box rules out that whole line inside the box. If only one empty square is left, the digit must go there. This is a hidden single, and it is the most useful technique of all.

Finding a hidden single: where does the 5 go in the top left box?Puzzle 1 from our easy puzzle book 1. Every 5 in a row or column that crosses the top left box rules out that row or column inside the box. Only one empty square is left: row 2, column 1.25346293771562593782547954713869586545
Puzzle 1 of our easy puzzle book 1, exactly as printed. To place the 5 in the top left box, follow every 5 that sits in a row or column crossing that box (circled). Their lines, together with the squares already filled, leave one empty square out of 7: row 2, column 1.

Go through the digits 1 to 9 in turn, box by box, and easy puzzles fall quickly. You can scan rows and columns the same way: if a digit fits in only one square of a row, it goes there.

Technique 2: naked singles

Now turn it round. Look at one empty square and list the digits already in its row, column and box. If eight different digits are there, the ninth is the answer. This is a naked single, and it is handy where nearly full rows and columns cross.

Technique 3: pencil marks

When scanning stops finding answers, write small candidates in each empty square: every digit that could still go there. A tidy layout helps: put 1 in the top-left corner of the square, 5 in the middle and 9 in the bottom right, so you can see at a glance which digits are missing. Update the marks every time you place a digit. A square with one mark left is a naked single; a digit with one mark left in a row, column or box is a hidden single.

Technique 4: naked pairs

If two squares in the same row, column or box each have only the same two candidates, those two digits must go in those two squares, in some order. So you can cross them out of every other square in that row, column or box.

A naked pair of 3 and 5 in row 3Hard puzzle 2 of book 1 after every single has been placed, with pencil marks in the empty squares. Two squares in row 3 can only be 3 or 5, so those digits are crossed out of the other squares in row 3.68491148679792191162879891381294621896474698213573572352523523523535353456356845823457235673457357245656824583534545245725675745756353573573535357357357
Hard puzzle 2 of our puzzle book 1, at the point where scanning runs out. Bold digits were printed, grey ones found with singles, and the small digits are pencil marks. The two highlighted squares in row 3 can only be 3 or 5, so neither digit can go anywhere else in row 3: 5 pencil marks are crossed out.

The same works for three squares: if three squares in a unit hold only three digits between them, a naked triple, those digits can be removed from the rest of the unit.

Technique 5: pointing and claiming

These two use the overlap between a box and a line.

  • Pointing: if, inside a box, a candidate appears only in one row (or column), the digit for that box must be in that row. Cross it out of the rest of that row outside the box.
  • Claiming works the other way: if, inside a row (or column), a candidate appears only within one box, the digit for that row must be in that box. Cross it out of the rest of the box.

Technique 6: hidden pairs

If two digits can each go in only the same two squares of a unit, those squares must hold those two digits. Any other candidates in the two squares can be erased. Hidden pairs are harder to spot than naked ones, because the squares still look busy.

Technique 7: the X-wing

Pick a digit. If it has exactly two possible squares in one row and exactly two in another row, and they line up in the same two columns, the digit must sit at opposite corners of that rectangle, whichever way round. Either way, both columns are taken, so cross the digit out of every other square in those two columns. The same works with columns and rows swapped.

Which techniques each difficulty needs

We ran 200 puzzles at each difficulty from our generator, the same puzzles you get from puzzle books 1 to 25, through a solver that always uses the easiest technique that works, and recorded the hardest one each puzzle needed.

Which techniques our puzzles need

Hardest technique needed to finish, 200 puzzles per difficulty

  • Easy
  • Medium
  • Hard
Show the numbers
EasyMediumHard
Hidden singles only100%93%0%
+ naked singles0%5%59%
+ naked pairs0%0%22.5%
+ pointing0%1.5%13%
+ claiming0%0.5%2%
+ hidden pairs0%0%3%
+ X-wing0%0%0.5%
DifficultyCluesScanning aloneNeeds pencil marksBeyond X-wing
Easy37 to 38100%0%0%
Medium31 to 3298%2%0%
Hard26 to 2859%41%0%

The generator uses these grades as well as the clue count. Easy puzzles must fall to singles. Medium ones may need a naked pair, pointing or claiming. Hard ones must need more than hidden singles, but never more than an X-wing, so no puzzle we print needs guessing. In practice most hard puzzles need naked singles or a pair, which means you will rarely need the last techniques here.

Printing puzzles

The sudoku generator makes puzzles in your browser at three difficulties, each with a unique solution, with answer pages at the back of the PDF. Change the puzzle book number for a new set. Choose four or six puzzles per page for a booklet, or one large puzzle per page for large-print sudoku, which suits older eyes and children learning.

Tips

The same techniques work on a samurai sudoku, where five grids overlap: start in the shared corner boxes, since a digit placed there counts for two grids at once.

  • Work in pencil and keep an eraser handy.
  • When stuck, switch method: scan by digit, then check single squares, then add pencil marks.
  • Check each new digit against its row, column and box before writing it.
  • If you hit a contradiction, the mistake is usually the last digit you placed or a pencil mark you forgot to update; that is why logic beats guessing.
Printable medium sudoku – US Letter — preview of the PDF
Example sheet: Medium sudoku – US Letter — open it in the generator from any paper page.

Sources

Facts in this guide were checked against these sources on 30 October 2026. Figures marked as our own data were calculated with the same code that runs our tools.

  1. There is no 16-clue sudoku (McGuire, Tugemann and Civario)— arXiv
  2. Sudoku solving algorithms— Wikipedia

Frequently asked questions

Does a sudoku always have one solution?

A well-made sudoku has exactly one solution, which is what makes it solvable by logic alone. Every puzzle from our generator is checked for a unique solution before it is printed.

What is the fewest number of clues a sudoku can have?

Seventeen. In 2012 an exhaustive computer search by McGuire, Tugemann and Civario showed that no 9 × 9 sudoku with only 16 clues has a unique solution.

Should I guess when I get stuck?

Try not to. Look again for hidden singles in every row, column and box, then add pencil marks and look for pairs. Every puzzle we print can be finished with the techniques in this guide.

What makes a sudoku hard?

Not just fewer clues. A puzzle is hard when scanning stops working and you need pencil marks and techniques such as pairs or pointing. Our hard puzzles always need at least one step beyond hidden singles.

Is sudoku good for your brain?

It is a pleasant way to practise concentration and logical reasoning. Research on puzzles and long-term memory is mixed, but most people find regular puzzles relaxing and mentally engaging.

Last updated · About us