Hidden pairs
A hidden pair is two digits that can only go in the same two cells of a row, column or box. Those two cells may show other candidates too, which is why the pair is “hidden”. But since the two digits must go somewhere in the unit, and only these two cells can take them, the two cells must hold those two digits. Every other candidate in those two cells can be removed.
Hidden pairs are rarer and harder to see than naked pairs. In our medium bank only a small share of puzzles needs one, but when a puzzle does, nothing else from the medium toolbox will break it.
Why it works
Each digit must appear once in every unit. If the 3 and the 8 in a box can each go only in cells A and B, then one of A and B is 3 and the other is 8. There is no room left in A or B for any other digit, so their extra candidates are impossible. Removing them often turns one of the two cells, or a neighbour, into a single.
The hidden pair is the mirror image of the naked pair. A naked pair restricts cells to digits; a hidden pair restricts digits to cells. In fact, in any unit a hidden pair always sits alongside a naked group in the remaining cells, but in a nine-cell unit the hidden pair is usually much easier to state.
How to spot it
- Work digit by digit. In one unit, list where each missing digit can go. You are looking for two digits with the same two possible cells.
- Pay attention to digits that appear in only two cells of a unit: only they can form a hidden pair.
- Boxes are the best place to look, because their cells are close together and easy to compare.
- Once found, cross out every other candidate in the two cells, then look for singles that follow.
Worked example
Position from practice puzzle 1 (medium code 32) after 17 earlier steps. Small digits are pencil marks (candidates); highlighted pencil marks belong to the pattern, struck-through ones are removed.
| 1 | 7 | 9 | 2 | 68 | 3 | 5 | 46 | 48 |
| 6 | 8 | 2 | 7 | 5 | 4 | 3 | 9 | 1 |
| 4 | 3 | 5 | 689 | 689 | 1 | 68 | 2 | 7 |
| 3 | 456 | 48 | 1 | 2 | 568 | 7 | 46 | 9 |
| 59 | 4569 | 14 | 56 | 3 | 7 | 146 | 8 | 2 |
| 7 | 2 | 18 | 68 | 4 | 9 | 16 | 3 | 5 |
| 589 | 59 | 37 | 4 | 6789 | 568 | 2 | 1 | 368 |
| 2 | 1 | 347 | 368 | 678 | 68 | 9 | 5 | 3468 |
| 589 | 459 | 6 | 3589 | 1 | 2 | 48 | 7 | 348 |
The step, as our solver writes it: Hidden pair {3,7}: in box 7 these digits fit only in r7c3, r8c3, so other candidates go: removes 4 from r8c3. Cells in the pattern: r7c3 {3, 7}, r8c3 {3, 4, 7}.
Want to see the rest of the solve? Play practice puzzle 1 below and use the hint button whenever you are stuck, or enter the grid into the solver to see every step listed.
Common mistakes
- Choosing digits that also appear elsewhere in the unit. Both digits must be confined to the same two cells and nowhere else in that unit.
- Removing the pair digits from other cells instead of removing the other candidates from the pair cells. A hidden pair cleans up its own two cells.
- Mixing units: the two digits must be confined to the two cells within one specific row, column or box.
Related techniques
With three digits confined to three cells you have a hidden triple, which our grader counts as a hard technique. Hidden singles are the one-digit version: a digit confined to one cell. If you can find hidden singles quickly by scanning digit by digit, you already have the habit that finds hidden pairs.
Stuck on a real puzzle? The sudoku solver names every technique it uses, step by step, and the hint button in the game teaches the same way.
How to practise
Play the three practice puzzles below in order. Each one reaches a point where hidden pairs are the only way forward with the medium-level toolbox, so if you get stuck, that is the moment to look for the pattern. Try first without help. If you still cannot see a move, press Hint once: the first level names the technique, the second shows where to look, and only the third makes the move for you. After you finish, play a few medium puzzles without hints to make the habit stick.
Practice puzzles that need hidden pairs
Each of these medium puzzles was checked by our solver: it cannot be finished with the other medium-level and basic techniques alone, so at some point you will need hidden pairs.
- Practice puzzle 1 (Medium, 32 givens, code 32)
- Practice puzzle 2 (Medium, 33 givens, code 61)
- Practice puzzle 3 (Medium, 30 givens, code 127)
Frequently asked questions
What is a hidden pair in sudoku?
Two digits that can only go in the same two cells of a row, column or box. All other candidates in those two cells can be removed.
Why are hidden pairs hard to see?
The two cells usually have extra candidates, so they do not look special. You find them by tracking where each digit can go, not by looking at the cells.
Is a hidden pair harder than a naked pair?
Most solvers find them harder to spot, although the logic is equally simple. Our grader puts both at the medium level.
Updated · Written by the NineByNine team