# Hidden pairs

Sometimes two digits have only two possible homes in a row, column or box, and both homes happen to be the same two squares. Those squares are then spoken for, whatever else is pencilled in them. That is a hidden pair: harder to see than a naked one, and just as useful.

## What a hidden pair is

A hidden pair is two digits that, within one house, can only go in the same two squares. The squares may hold other candidates as well, which is why the pair is hidden: it does not stand out the way two squares marked 2–7 do.

Look at box 9 below. It still needs 1, 2, 4, 6, 8 and 9. The clues in row 8 and column 9 (highlighted) keep the 4 and the 6 out of four of its empty squares. That leaves r7c7 and r9c8 as the only places for a 4, and also the only places for a 6.

_Diagram: Box 9: the 4 and the 6 can only go in r7c7 and r9c8. The highlighted clues rule both digits out of the other squares._

## Why it works

Box 9 must end up with a 4 somewhere, and a 6 somewhere. Both have to land in r7c7 or r9c8, because no other square in the box allows them. Two digits, two squares: one square gets the 4 and the other gets the 6.

That fills both squares. Neither of them can be 1, 8, 2 or 9 any more, because each one is already reserved for a 4 or a 6. You still do not know which square takes which digit, but you know they take nothing else.

## Clearing the pair

So remove every other candidate from the two squares. In r7c7, the 1 and the 8 go. In r9c8, the 2 and the 9 go. What is left is a plain 4–6 in both squares: the hidden pair has become a naked pair.

_Diagram: The eliminations happen inside the pair itself: 1 and 8 leave r7c7, 2 and 9 leave r9c8 (struck through)._

Notice the difference from a [naked pair](https://drop.top/apps/sudoku/naked-pairs/). A naked pair clears its two digits from the other squares of the house. A hidden pair clears the other digits from its own two squares. Once that is done it behaves like any naked pair, so check whether the two squares also share a row or column where it can remove more.

## How to find hidden pairs

You will rarely spot a hidden pair by looking at squares. Look at digits instead, one house at a time.

1. **Pick a house with plenty of empty squares**, ideally five or more. Boxes are a good place to start.
2. **For each missing digit, note where it can go.** You are looking for digits with exactly two possible squares.
3. **Compare those digits.** If two of them share the very same two squares, you have a hidden pair.
4. **Erase every other candidate** from those two squares, then look for singles in the squares that see them.

A digit with only one possible square is a [hidden single](https://drop.top/apps/sudoku/hidden-singles/), so you are already doing half of this scan whenever you look for singles. Hidden pairs are simply the next step of the same habit.

## Two views of the same house

Within one house, every hidden pair has a naked twin. In box 9, the four empty squares outside the pair already hold only 1, 2, 8 and 9 between them: four squares, four digits. That is a naked quad, and it gives exactly the same eliminations.

You never need to find both. Look for whichever is smaller. In a crowded house that is often the hidden pair, and in a house with few empty squares it is usually a naked one. The same idea scales up to three digits in a [hidden triple](https://drop.top/apps/sudoku/hidden-triples/).

## Questions

### Why is it called a hidden pair?

Because the two squares also hold other candidates, so the pair does not stand out at a glance. Once you remove those extra candidates, it turns into a visible naked pair.

### Is a hidden pair harder than a naked pair?

The logic is equally simple, but hidden pairs are harder to see, so many puzzle makers rate them a little higher. You tend to meet them in harder puzzles.

### Can a hidden pair be in a row or a column?

Yes. Any house works: a row, a column or a box. What matters is that the two digits have no other possible square in that house.

### What do I do after finding a hidden pair?

Erase the other candidates from the two squares. They now form a naked pair, which may clear more candidates if the two squares also share another house.
