What is a unique rectangle in sudoku?

A unique rectangle is four cells in two rows, two columns and two boxes, where three cells hold only the same two candidates and the fourth holds those two plus something else. If the fourth cell were also limited to those two digits, the digits could be swapped around the rectangle and the puzzle would have two solutions. A proper sudoku has exactly one, so the fourth cell can't be either of the two digits. You erase them, and what remains is its answer or close to it.

It is the one common technique that uses a fact about the puzzle rather than the rules of the grid. This guide explains why the argument holds, walks through a real puzzle where a unique rectangle places a 9, covers the conditions that must all be true, and gives you a routine for spotting it.

1122334455667788993627346125578469369359476287812435125856894372565645785785869312369583692581697421616937469585881616492537745958362891593271584689689
  • Pattern
  • Removed candidate
Three corners hold only 1 and 6, so row 6, column 3 can't be 1 or 6 and becomes a 9.

The logic in plain words

Picture four cells at the corners of a rectangle: two rows, two columns, and the four cells spread over exactly two boxes. Suppose all four could only be 1 or 6. Then the corners must alternate, 1 and 6 on top, 6 and 1 below, or the other way round. Both arrangements fit every row, column and box equally well, and nothing elsewhere in the grid can tell them apart.

That is a deadly pattern: a puzzle that reaches it has at least two solutions. A well-made sudoku has exactly one. So the deadly pattern must never form, and if three corners are already down to 1 and 6, the fourth corner must be something else. Its candidates 1 and 6 are wrong.

This is the basic form, called type 1: exactly one corner has extra candidates, and that corner loses the two pattern digits.

Worked example: the 9 in row 6, column 3

The diagram shows a real position after a few easier eliminations, so some cells already show fewer candidates than a fresh grid would.

  • Step 1: find the rectangle. Look at rows 6 and 7, columns 2 and 3. The four cells are row 6, column 2; row 6, column 3; row 7, column 2; and row 7, column 3. Rows 6 and 7 sit in different box bands, so the rectangle spans exactly two boxes, box 4 and box 7.
  • Step 2: check the three plain corners. Row 6, column 2; row 7, column 2; and row 7, column 3 each hold only 1 and 6.
  • Step 3: find the odd corner. Row 6, column 3 holds 1, 6 and 9.
  • Step 4: rule out the deadly pattern. If row 6, column 3 were 1 or 6, all four corners would be 1s and 6s that could swap, giving two solutions. So row 6, column 3 is neither 1 nor 6. Both candidates go.
  • Step 5: place the digit. Only the 9 is left in row 6, column 3.

Every Classic puzzle in Sudoku by Joseph has exactly one solution, and Classic has six levels from Casual to Diabolic.

Why it depends on one solution, and the conditions

Every other technique in these guides follows from the rules alone: a row can't hold two 5s, and so on. The unique rectangle doesn't. It is a promise about the puzzle: this grid has exactly one answer. On a puzzle with several solutions, which badly made puzzles sometimes have, the move can delete a correct candidate. Use it on puzzles from a source you trust to check uniqueness.

All of these must hold before you eliminate:

  • Two rows, two columns, two boxes. If the four cells sit in four different boxes, the swap can break a box, and the argument fails.
  • None of the four cells is a given. A given digit can't be swapped, so the pattern isn't deadly.
  • Three corners hold exactly the two digits. That is type 1. Other types exist: in type 2, two corners share one extra candidate, and that extra digit goes from every cell that sees both of them. Learn type 1 first; it is the most common.

Common mistakes

  • Ignoring the box condition. The most frequent error. Count the boxes: exactly two.
  • Eliminating the extra candidate. In type 1 the odd corner loses the two pattern digits and keeps its extra ones. Here row 6, column 3 keeps the 9.
  • Using it as a guess check. The move is a deduction, not a shortcut for guessing. It only works because one solution is guaranteed.
  • Counting on it in puzzles of unknown origin. If you are not sure the puzzle has one solution, solve without it.

How to spot a unique rectangle

  1. Look for repeated two-candidate cells

    Scan for cells holding the same two candidates, such as several 1/6 cells. Three of them in a rectangle shape are the signal.

  2. Check the rectangle shape and the boxes

    The cells must share two rows and two columns, and the four corners must fall in exactly two boxes.

  3. Find the fourth corner

    It must hold both pattern digits plus at least one more. If it holds only the two, the puzzle has a problem; if it lacks one of them, there is no pattern.

  4. Remove the two digits from that corner

    Erase both pattern digits from the fourth corner. If one candidate is left, place it.

Frequently asked questions

Is using a unique rectangle cheating?

No. A proper sudoku is defined as having one solution, and the move uses exactly that. Some purists prefer to solve without it; on a puzzle that really has one solution, both routes reach the same answer.

Why must the rectangle cover exactly two boxes?

With two boxes, swapping the digits keeps every box valid, so the two arrangements are interchangeable. With four boxes, other cells in those boxes can rule one arrangement out, so the pattern is not deadly.

What happens if all four corners hold only the same two digits?

Then the puzzle, or your pencil marks, has a problem: either the puzzle has more than one solution or a candidate was erased by mistake. Check your marks before going on.

Solve Classic puzzles with exactly one solution

12 variants, a Daily Challenge with streaks — and never any lives, coins or energy bars. The download is free.