Sudoku
Mistakes: 0/3
Score: 0
00:00

Sudoku Techniques Explained: From Hidden Singles to X-Wing

Every Sudoku technique is a way of proving one of two things: that a digit must go in a cell, or that a digit cannot go in a cell. Placement techniques finish easy puzzles on their own. Elimination techniques, applied to your pencil marks, are what crack hard, expert and extreme boards. This page explains the techniques in the order you will need them, each with a diagram and the reasoning behind it, so you can recognise the pattern on any grid. Try them on the board above.

Level 1: placement techniques

Last free cell

A row, column or box with eight digits has one empty cell, and the missing digit goes there. Trivial, but worth a dedicated scan at the start of every puzzle and after every burst of placements.

1234567895318694257
Row 5 already has eight digits. The only one missing is 7, so 7 goes in the empty cell.

Hidden single (last remaining cell)

Take one digit and one box. Every copy of that digit already on the grid rules out its whole row and column. If only one cell in the box remains unblocked, the digit belongs there even though the cell might look like it has several options. Sweeping all nine digits through all nine boxes is called cross-hatching, and it solves most Easy and Medium boards without any notes.

12345678912345678955555
Where can 5 go in the top-left box? The 5s in rows 2 and 3 and in columns 2 and 3 rule out every cell but the corner, so 5 goes there.

Naked single (last possible number)

Look at one empty cell. Gather every digit in its row, column and box. If eight distinct digits are present, the cell can only be the ninth. With notes switched on, a naked single is simply a cell that has one candidate left.

123456789123456789123456798
The centre cell sees 1, 2 and 3 in its row, 4, 5 and 6 in its column and 7 and 9 in its box. Only 8 is left.

Level 2: pair and locked-candidate eliminations

Naked pairs

Two cells in the same unit whose notes are exactly the same two digits. Between them they must use both digits, so neither digit can appear anywhere else in that unit. Erase it from the other cells' notes. Three cells sharing three candidates form a naked triple with the same effect.

1234567891582373749469163737
Two cells in row 1 can only be 3 or 7, so 3 and 7 are used up there. Crossing them out of the other cells leaves a single 1 and a single 6.

Hidden pairs

The mirror image. If two digits appear in the notes of only two cells within a unit, those cells must hold those two digits. Erase every other candidate from those two cells. Hidden pairs are easy to miss because the cells often look busy.

1234567891735262618948149891949
In row 1, the digits 2 and 6 fit only in the two highlighted cells. Those cells must be 2 and 6, so their other candidates go.

Pointing pairs and triples

Inside a box, if all the candidates for a digit lie in a single row (or column), the digit must be placed in that row within the box. It can therefore be removed from the rest of that row outside the box.

123456789123444444
In the top-left box, both candidates for 4 are in row 2. The box’s 4 must be in row 2, so 4 can be crossed out of the rest of that row.

Box/line reduction (claiming)

The reverse direction. If a digit's candidates in a row all fall inside one box, the digit must be in that box on that row, so it can be removed from the box's other cells. Pointing pairs and box/line reduction together are known as locked candidates.

1234567891237777777
In row 1, the 7 can only go in the top-right box. That box’s 7 is therefore in row 1, and 7 comes out of the box’s other cells.

Level 3: advanced techniques

X-Wing explained

Find a digit that has exactly two candidate cells in each of two different rows, and check whether those four cells line up in the same two columns, forming a rectangle. The digit must occupy one diagonal of the rectangle: if it were in the top-left, it cannot be in the top-right (same row) or bottom-left (same column), forcing the bottom-right. Either way, both columns receive the digit inside the rectangle, so it can be eliminated from every other cell in those two columns. The pattern also works with columns as the base and rows as the cover.

1234567891234567896666666666
6 fits in just two cells of row 2 and two cells of row 7, lined up in columns 3 and 8. Both columns get their 6 inside the rectangle, so every other 6 in columns 3 and 8 goes.

XY-Wing

Three cells with two candidates each. A pivot holding XY sees one wing holding XZ and another wing holding YZ. If the pivot is X, the first wing becomes Z; if the pivot is Y, the second wing becomes Z. One of the wings is Z in every case, so any cell that sees both wings cannot be Z.

12345678912345678925285838
The pivot (2 or 5) sees one wing with 2 or 8 and another with 5 or 8. Whichever digit the pivot takes, one wing becomes 8, so the cell that sees both wings cannot be 8.

Swordfish

An X-Wing on three lines. If a digit's candidates in three rows are confined to the same three columns, the digit occupies exactly one cell in each of those columns within the three rows, and can be eliminated from the rest of those columns. Each row may have two or three candidate cells.

12345678912345678933333333333
3 fits in only two cells of each of rows 1, 5 and 8, all within columns 2, 5 and 9. Those columns get their 3 inside the pattern, so the other 3s in them go.

Skyscraper and other chains

Two rows with exactly two candidates for a digit that share one column but not the other form a skyscraper: whichever way it resolves, one of the two "roof" cells is true, so cells that see both roofs can drop the digit. Longer versions of this reasoning are called X-chains and, generalised across digits, alternating inference chains. They appear on Extreme boards and rarely elsewhere.

12345678912345678999999999
Rows 1 and 5 each have two places for 9, lined up in column 2. Only one of those base cells can be 9, so at least one roof, in column 7 or 8, is 9. Cells that see both roofs lose the 9.

Which techniques does each level need?

LevelTechniques required
EasyNaked singles only
MediumNaked and hidden singles
HardMostly naked singles, some hidden singles
ExpertHidden singles throughout, occasional locked candidates
MasterNaked pairs and locked candidates
ExtremePairs and locked candidates plus X-Wing, XY-Wing or Swordfish

The generator behind this site checks which of these a puzzle needs before assigning it a level, so the labels mean the same thing on every board. When a technique is not enough, read the tips for when you are stuck.

Frequently asked questions

What is the difference between a naked single and a hidden single?

A naked single is a cell with only one candidate left. A hidden single is a digit with only one possible cell left within a row, column or box, even if that cell still shows other candidates.

How do I spot an X-Wing in Sudoku?

Work one digit at a time. Look for two rows in which that digit has exactly two candidate cells, and check whether those cells sit in the same two columns. If they form a rectangle, the digit can be removed from the other cells in those two columns.

Do I need notes to use these techniques?

Singles can be found by scanning. Pairs, locked candidates, X-Wing and everything beyond depend on complete pencil marks, because they work by eliminating candidates rather than placing digits.

What technique should I learn after hidden singles?

Pointing pairs and box/line reduction. They are simple to see once notes are in place and they unlock most Expert and Master boards.