Printable SudokuOnline List Maker

Online List Maker › Printable sudoku › How to solve sudoku

How to Solve Sudoku

Every puzzle on this site can be solved with the thirteen techniques below, used in this order. Each one is drawn on a real position our solver met in one of our puzzles: green is a number placed, red marks a candidate that can be crossed out.

The rule, and the habit

Each row, each column and each 3×3 box must hold the numbers 1 to 9 exactly once. The habit that makes everything below possible is pencil marks: in each empty square, write small the numbers that could still go there. Every technique here either places a number for certain, or crosses a pencil mark out.

In the diagrams: bold black = starting clue · blue = already solved · small numbers = pencil marks · green = the number this step places · red = pencil marks this step crosses out. Shading only shows where to look: the pale rows, columns and boxes are the ones the step is about, blue squares hold the pattern, and in coloring the two colors are the two halves of the chain. R4C7 means row 4, column 7.

  1. Naked single (Easy)
  2. Hidden single (Easy)
  3. Pointing pair (Medium)
  4. Box-line reduction (Medium)
  5. Naked pair (Medium)
  6. Hidden pair (Medium)
  7. Naked triple (Hard)
  8. Hidden triple (Hard)
  9. X-wing (Hard)
  10. XY-wing (Hard)
  11. Swordfish (Expert)
  12. XYZ-wing (Expert)
  13. Simple coloring (Expert)

Naked single

Easy puzzles need this

A square where every number but one is already used in its row, column or box. The one that is left must go there.

In this position: look at R9C3. Its row, column and box already contain every number except 5, so 5 goes there.

Most beginners find these first. They are easiest to spot in a row, column or box that is nearly full.

11223344556677889957878258961245714531574678356813583578135715629357967912345234572345745645781891894897245824536125385346823468123462489271382734568345891458145815218958913456345134567158135663589125257125712589158415745123569812561512356

Hidden single

Easy puzzles need this

A number that has only one possible square left in a row, a column or a box. The square may have other pencil marks; it still gets that number.

In this position: in row 5, the 7 has nowhere to go except R5C9: every other empty square there is blocked by a 7 in its column or box. So R5C9 is 7, even though before this step it also had 2 pencilled in.

The fastest scan in sudoku: pick a number, and check each box that is missing it.

11223344556677889958782896124571453157467836813583578135715629359679123452345723457456457818918948972458245361253853468234681234624897138273456834589145845815218989134563451345675835663891252571257258958474523698261236

Pointing pair

Medium puzzles need this

If, inside one box, a number can only go in squares that all sit in the same row (or column), then the number must be in that row inside this box. So it can be crossed out of the rest of that row.

In this position: in the centre box, the 5 can only go in R4C5 and R4C6, both in row 4. Whichever it is, row 4 gets its 5 inside that box, so cross 5 out of R4C1.

1122334455667788991346945934834534582734568721634534934534563464597213461368345793496347345934578213572576819437347918234723493475363672461534934678346746798479347134673467524675324782446781467169

Box-line reduction

Medium puzzles need this

The mirror image of the pointing pair: if, in one row (or column), a number can only go in squares inside one box, then that box’s copy of the number is in that row. Cross it out of the box’s other squares.

In this position: in row 3, the 5 can only go in R3C1 and R3C3, both inside the top-left box. So that box’s 5 is in row 3, and 5 comes out of R1C3.

112233445566778899134694593483453458273456872163453493453456346459721346136834793496347345934578213572576819437347918234723493475363672461534978346467984793471346734652467532478244678146169

Naked pair

Medium puzzles need this

Two squares in the same row, column or box that both have exactly the same two pencil marks. Those two numbers must fill those two squares, so they can be crossed out everywhere else in that row, column or box.

In this position: R9C2 and R9C9 in row 9 can each only be 4 or 6. Between them they use up both numbers, so cross out 4 from R9C5.

1122334455667788992431251246897814951473923234646647927824395341384297615159684373727263514895467137913421746782414781465924739461237134812546

Hidden pair

Medium puzzles need this

Two numbers that, in some row, column or box, can only go in the same two squares. Those squares must hold those two numbers, so any other pencil marks in them can go.

In this position: in column 1, the 4 and the 6 can each only go in R2C1 and R7C1. Those two squares are spoken for, so their other pencil marks go: cross out 9 from R2C1.

11223344556677889925349871346349469746932951249839186429752393896392573481347825413978637419862327546924673852411875269249246324953241269249246824897

Naked triple

Hard puzzles need this

Three squares in one row, column or box whose pencil marks, taken together, are only three numbers (each square can have two or three of them). Those three numbers must fill those three squares; cross them out of the rest of the unit.

In this position: in row 4, R4C2 (6, 9), R4C4 (5, 9) and R4C5 (5, 6) use only the numbers 5, 6 and 9 between them. Those three numbers are taken by those three squares, so cross out 6 from R4C9.

A triple does not need every square to show all three numbers; that is why it is easy to miss.

1122334455667788996793637489251781779524378912478623471824357566724792347469785956312782672136938197468936848567136521446836784789526179144794938371824946954684963527127127

Hidden triple

Hard puzzles need this

Three numbers that, in one row, column or box, can only go in the same three squares. Those squares must hold those three numbers, so their other pencil marks go.

In this position: in row 6, the numbers 3, 7 and 8 can only go in R6C1, R6C4 and R6C8. Those squares are reserved for them, so cross out 4 from R6C8.

11223344556677889964372189519748685346258234369461781254697262453413371295384266781837254638126245478927814395693165872446529713838

X-wing

Hard puzzles need this

Take one number. If it can go in only two squares in each of two rows, and those squares line up in the same two columns, the number must sit at two opposite corners of that rectangle. Either way it takes one square in each of the two columns, so cross it out of every other square in those columns. (The same works with rows and columns swapped.)

In this position: in rows 3 and 8, the 8 can only go in R3C4, R3C8, R8C4 and R8C8, which line up in columns 4 and 8. The two 8s fill one square in each of those columns, so cross 8 out of R7C8.

11223344556677889968935956189392478937246371951847917892569683215764574783969595672384571453487957915676721245789679378968763891245894558934746717216

XY-wing

Hard puzzles need this

Three squares with two pencil marks each: a “pivot” holding X and Y, one “wing” it can see holding X and Z, and another wing holding Y and Z. Whichever number the pivot takes, one of the wings must be Z. So a square that sees both wings cannot be Z.

In this position: the pivot R3C7 can only be 2 or 5; it sees R2C9 (2 or 6) and R3C5 (5 or 6). If the pivot is 2, one wing becomes 6; if it is 5, the other wing does. Either way a 6 lands on a wing, so R2C4, which sees both wings, cannot be 6.

112233445566778899684268312582596971536792748267268945625825139236256167835712425656826819564372568347458162351969583497534682158158279634236468341759

Swordfish

Expert puzzles need this

The X-wing stretched to three: if, in three rows, one number can only go in squares that all fall within the same three columns, then those three rows put their copies of it into those three columns. Cross the number out of every other square in the three columns.

In this position: in rows 5, 7 and 9, every place the 7 can go (R5C3, R5C5, R7C5, R7C9, R9C3 and R9C9) is in columns 3, 5 and 9. Those three rows use up the 7s of those three columns, so cross 7 out of R4C3.

112233445566778899367675283619482419765336194365728236767854893896719578637138424367137289896751439672586767823753641959678142367

XYZ-wing

Expert puzzles need this

Like the XY-wing, but the pivot has three pencil marks (X, Y and Z), and the two wings it sees hold X and Z, and Y and Z. One of the three squares must be Z, so a square that sees all three of them cannot be Z.

In this position: the pivot R3C1 can be 2, 3 or 9; the wings R1C2 (2 or 9) and R7C1 (2 or 3) both see it. Whatever happens, one of the three ends up as 2, so R1C1, which sees all three, cannot be 2.

112233445566778899267929347135468923583592489691344568246893583597239583473491624953294168768146378379258792654132365389238741429375671267235682692798145673524672356359269

Simple coloring

Expert puzzles need this

Follow one number through “strong links”: rows, columns or boxes where it has exactly two places, so if one is false the other is true. Color the chain in two alternating colors. One color is all true and the other all false. A square outside the chain that sees both colors can’t hold the number (a “trap”); if two squares of the same color see each other, that whole color is false (a “wrap”).

In this position: follow the 2: R3C1 and R8C2 (green) and R3C9 and R1C2 (orange) are linked in pairs, each pair being the only two places for 2 in some row, column or box. So either all the green squares are 2 or all the orange ones are. R8C9 sees a green square and an orange one, so it can’t be 2 either way.

11223344556677889967929347135468923583592489691344568246893583597239583473491624953294168768146378379258792654132365389238741429375671267235682692798145673524672356359269

Practise them in order

Each level of our printable sudoku adds the next group: Easy needs only the two singles, Medium adds pointing, box-line reduction and pairs, Hard adds triples, the X-wing and the XY-wing, and Expert adds the swordfish, the XYZ-wing and coloring.

Questions

What is the first thing to do in a sudoku?

Scan for hidden singles: take one number, look at every box that lacks it, and see whether the rows and columns already holding that number leave only one free square in the box. It is the fastest way into any puzzle.

Do you ever have to guess in sudoku?

Not in a well-made puzzle. Every puzzle on this site can be finished with the techniques on this page; we left out any puzzle our solver could not finish without trial and error.

What is an X-wing in sudoku?

When a number can go in only two places in each of two rows, and those places line up in the same two columns, the number must take one square in each of those columns. So it can be crossed out of every other square in those two columns. The same works with rows and columns swapped.