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

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.

In box 7 (shaded), the digits 3 and 7 (highlighted) can each go only in r7c3 and r8c3 (marked). So these two cells hold 3 and 7, and their other candidates are crossed out: 4 from r8c3.
179268354648
682754391
43568968916827
345648125687469
59456914563714682
721868491635
58959374678956821368
2134736867868953468
5894596358912487348
In box 7 (shaded), the digits 3 and 7 (highlighted) can each go only in r7c3 and r8c3 (marked). So these two cells hold 3 and 7, and their other candidates are crossed out: 4 from r8c3.

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

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.

  1. Practice puzzle 1 (Medium, 32 givens, code 32)
  2. Practice puzzle 2 (Medium, 33 givens, code 61)
  3. 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.

Advertisement

Updated · Written by the NineByNine team