How to Solve a Sudoku Step by Step, From Easy to Master
How a sudoku works
A sudoku is a 9 by 9 grid split into nine 3 by 3 boxes. Every row, every column and every box must contain the digits 1 to 9 exactly once. Some cells start filled in; these are the givens. Your job is to fill the rest, and a well made puzzle has exactly one valid solution, so there is always a logical path to it. You never need to guess, and you never need arithmetic. The digits could be nine different letters and the puzzle would be the same.
The key idea is the candidate. For any empty cell, the candidates are the digits that could still legally go there, meaning digits that do not already appear in the same row, column or box. Writing candidates in the corner of a cell is called pencil marking. Solving is mostly a process of removing candidates until one is left in a cell, or until one digit has only one possible home in a unit. A unit is simply a row, a column or a box.
Every technique below is a different way of proving that a candidate cannot be right, or that a digit must go in a particular cell. They are ordered from the most obvious to the most subtle. Work through the list from the top each time you get stuck, and only move down when the earlier ideas have run dry.
Step 1: Scan before you write anything
Start by looking at one digit at a time. Pick a digit, say 5, and find every 5 already on the grid. Each one rules out the rest of its row, column and box for that digit. Often two 5s will point at a box so that only one cell is left open for the third. Scanning rows and columns of boxes this way solves a surprising share of easy puzzles without a single pencil mark.
Do a full pass for each digit, then repeat. Each new placement creates fresh scanning opportunities, so easy puzzles tend to unravel in waves. Only when a complete pass finds nothing should you start writing candidates.
Step 2: Full house, hidden singles and naked singles
The simplest finish is the full house: a unit with eight digits placed has exactly one cell and one digit left. Check for these constantly, because they cost nothing to spot.
A hidden single is a digit that fits in only one cell of a unit, even though that cell may hold other candidates too. If the only cell in a row that can take a 7 is the fourth one, the 7 goes there. Read the full explanation in the Hidden Singles guide.
A naked single is a cell with only one candidate left. Everything else has been ruled out by its row, column and box. The Naked Singles guide shows how to find these quickly. Between them, these two single techniques are the engine of Easy and most Medium puzzles.
Step 3: Locked candidates
When all the candidates for a digit inside a box lie on one line, that digit must end up on that line within the box. So it can be removed from the rest of that row or column outside the box. This is called pointing. The reverse also works: if all the places for a digit in a row sit inside one box, the digit can be removed from the other cells of that box. This is called box-line reduction.
These moves never place a digit directly. They trim candidates and set up new singles. The Locked Candidates guide has a worked board. If your puzzle stalls after the singles, this is the first place to look.
Step 4: Naked pairs and hidden pairs
If two cells in the same unit both contain only the same two candidates, say 3 and 4, then those two digits are locked into those two cells. Neither can appear anywhere else in the unit, so you delete 3 and 4 from every other cell there. That is the naked pair.
The hidden pair is the mirror image. If two digits appear as candidates in only two cells of a unit, those cells must hold those two digits, and every other candidate can be removed from both cells. Hidden pairs are harder to see because the cells look cluttered, so check the digits rather than the cells.
Step 5: Naked triples
The pair idea extends to three cells. If three cells in a unit between them contain only three different digits, those digits are used up by those cells, and they can be removed from the rest of the unit. The cells do not each need all three candidates: a group such as {1,2}, {2,3} and {1,3} still works.
Triples are slower to spot, which is why they appear in Expert puzzles. The Naked Triples guide walks through a real example, and a habit of looking at cells with only two or three candidates will help you find them.
Step 6: X-Wing
Choose a digit and look for two rows where it has exactly two candidate cells each, and those cells fall in the same two columns. The digit must occupy opposite corners of that rectangle, one way or the other. In both cases it fills one cell in each of the two columns, so it can be removed from every other cell in those columns. The same logic works with rows and columns swapped.
This is the first technique that works across the whole grid rather than inside one unit. See the X-Wing guide for the picture, because the rectangle is much easier to grasp visually.
Step 7: Swordfish
Swordfish is an X-Wing stretched to three rows and three columns. If a digit is limited to the same three columns across three different rows, and each of those rows has two or three candidate cells for it, then the digit is confined to those columns. It can be removed from every other cell in the three columns.
You will rarely need this, but it is the technique that separates Master puzzles from the rest. The Swordfish guide shows a board where it unlocks the final cells.
How to avoid guessing
Guessing feels like a shortcut, but on a hard puzzle it usually creates a mess: you place a digit, build on it for ten moves, hit a contradiction and have no idea which move was wrong. A puzzle with one solution can always be solved by deduction, so a stall means you have missed a pattern, not that the puzzle needs luck.
When stuck, run a checklist. Finish scanning for every digit. Look for full houses. Update your pencil marks, because stale candidates hide singles. Then climb the list above one technique at a time. If you still find nothing, look at the cells with the fewest candidates, since patterns almost always involve them. Taking a break and returning to the grid also helps more than most people expect.
How to use notes efficiently
There are two common styles. Some solvers fill in every candidate at the start, which costs time but makes pairs and triples visible. Others write candidates only in the box or row they are working on. A good compromise is to solve everything you can by scanning first, and then pencil in all candidates only once the easy moves are gone.
Whichever you choose, keep notes honest. Whenever you place a digit, remove it from the notes in its row, column and box straight away. Most wrong turns come from a candidate that should have been crossed off. In a game with automatic note clean-up, use it, and spend your attention on finding patterns instead.
A 4-week practice plan
- Week 1: singles. Play Easy puzzles every day. Scan by digit, then use hidden and naked singles. Aim to finish without any hint.
- Week 2: locked candidates and pairs. Move to Medium. When you stall, look for pointing and box-line reduction, then naked and hidden pairs. Keep a short list of the technique that unstuck you each time.
- Week 3: triples and clean notes. Try Hard puzzles. Practice full pencil marking and look for naked triples. Time is not important yet; accuracy is.
- Week 4: fish. Study X-Wing and Swordfish on the guides, then try Expert and Master puzzles. Use a hint only to learn which technique you missed, then try to spot it yourself next time.
Short daily sessions work better than one long weekend marathon. You can try today's puzzle in your browser on the Ninely daily page.
Frequently asked questions
Do I need to be good at math?
No. Sudoku uses no arithmetic. It is about elimination and pattern recognition, and the digits are only labels.
Is it ever acceptable to guess?
Only if you decide to treat it as a deliberate trial: pick a cell with two candidates, follow the consequences, and undo everything if you reach a contradiction. For a properly made puzzle, though, logic alone always works, and learning the techniques is more satisfying.
How many techniques do I need to learn?
Singles and locked candidates handle most Easy and Medium puzzles. Pairs and triples cover most Hard ones. X-Wing and Swordfish only matter for the very hardest grids.
Why do I get stuck even on easy puzzles?
Usually it is missed singles or out-of-date notes. Re-scan each digit and refresh your candidates before looking for anything advanced.
Want to talk through these techniques with other players? Learn Sudoku Techniques is a small public Facebook group run by the solo developer of Ninely at aviisr games. You do not need the app to join.