โ† Back to Blog

Mastering Unique Rectangles: The Ultimate Sudoku Logic Guide

๐Ÿ“… July 10, 2026โฑ 14 min read๐Ÿท Sudoku

Sudoku is a game of pure logic, where every cell must be filled based on the constraint that numbers 1 through 9 cannot repeat in any row, column, or 3x3 block. While basic techniques like Sole Candidates and Unique Candidates can solve easy-to-medium puzzles, harder grids demand advanced strategies. Among the most powerful and elegant of these strategies are those based on the Uniqueness Principle. The most common and widely applicable uniqueness technique is the Unique Rectangle (often abbreviated as UR). By understanding the theory of Unique Rectangles and mastering its various types, you can crack open complex, expert-level Sudoku puzzles that otherwise seem completely stuck.

In this comprehensive guide, we will explore the mathematical foundation of Unique Rectangles, explain the concept of the "Deadly Pattern," and break down the six primary types of Unique Rectangles, as well as the closely related Avoidable Rectangles. With clear explanations, step-by-step logic, and practical tips, you will learn how to spot these patterns and use them to eliminate candidate numbers from your grid.

The Principle of Uniqueness and the Deadly Pattern

To understand why Unique Rectangles work, we must first accept a fundamental rule of Sudoku puzzle design: a properly constructed Sudoku puzzle has exactly one unique solution. Puzzle creators (and computer algorithms that generate puzzles) ensure that there is only one layout of numbers that satisfies all rules. If a puzzle had more than one solution, it would be considered invalid or poorly designed.

The Unique Rectangle strategy leverages this rule by actively avoiding what is known as a Deadly Pattern. A Deadly Pattern is a specific arrangement of candidates that, if allowed to form, would result in the puzzle having two different, equally valid solutions. Since we assume the puzzle has only one solution, we know that the Deadly Pattern must not occur in the final solved grid. Therefore, we can eliminate any candidate placements that would force this pattern to happen.

What is a Deadly Pattern?

In its simplest form, a Deadly Pattern consists of four cells that form a rectangle spanning exactly two rows, two columns, and two 3x3 blocks. Furthermore, these four cells contain only the exact same two candidates (let's call them A and B). If all four cells were to be solved using only these two numbers, it would create an unsolvable ambiguity.

For example, imagine a rectangle with corners at Row 1 Column 1 (R1C1), Row 1 Column 5 (R1C5), Row 8 Column 1 (R8C1), and Row 8 Column 5 (R8C5). Suppose R1C1 and R1C5 are in Block 1 and Block 2, respectively, while R8C1 and R8C5 are in Block 7 and Block 8. If all four of these cells contain only the candidates 1 and 2, we have a Deadly Pattern. Why? Because if the solution had R1C1 = 1, R1C5 = 2, R8C1 = 2, and R8C5 = 1, we could swap all the 1s and 2s (making R1C1 = 2, R1C5 = 1, R8C1 = 1, and R8C5 = 2) without violating any Sudoku rules. The rows, columns, and blocks would still contain exactly one 1 and one 2. This means the puzzle would have at least two valid solutions. To prevent this, the puzzle designer must have structured the grid such that at least one of these four cells contains a different number, or the candidates within them are forced to resolve in a way that avoids this ambiguity.

Unique Rectangle Type 1: The Extra Candidate

Unique Rectangle Type 1 is the most common and easiest to spot. It occurs when you find four cells forming a rectangle across two rows, two columns, and two blocks. Three of the corners contain exactly the same two candidates (e.g., A and B), while the fourth corner contains the candidates A and B plus one or more extra candidates (e.g., A, B, and C).

If the fourth cell were to be solved as either A or B, it would immediately complete the Deadly Pattern, leaving the grid with two solutions. To prevent this, the fourth cell must not be resolved to either A or B. Consequently, the extra candidate C (or any other extra candidates present in that cell) must be the correct value for that cell. This allows us to immediately eliminate A and B from the fourth cell, leaving only the extra candidates.

Step-by-Step Example of Type 1

Unique Rectangle Type 2: The Shared Extra Candidate

Unique Rectangle Type 2 occurs when two of the corners (sharing a single side of the rectangle, either along a row, column, or within a block) contain the same extra candidate. Let's say three corners contain candidates A and B, but two of them also contain an extra candidate C. In this case, we have two cells with {A, B} and two cells with {A, B, C}.

Because the extra candidate C appears in both of these cells, we cannot immediately solve either cell as C. However, we know that at least one of these two cells must turn out to be C to prevent the {A, B} Deadly Pattern. Since one of these two cells must contain C, no other cell in the shared house (row, column, or block depending on their alignment) can contain C. Therefore, we can eliminate candidate C from any other cells that can "see" both of the cells containing the extra candidate.

Step-by-Step Example of Type 2

Unique Rectangle Type 3: The Virtual Subset

Unique Rectangle Type 3 is slightly more complex as it combines uniqueness logic with standard subset techniques (like Naked Pairs or Triples). It occurs when two cells of the rectangle contain the same extra candidates, similar to Type 2, but the extra candidates do not necessarily have to be the same single number, and they do not allow for simple elimination on their own. Instead, they act as a "virtual" single cell containing those extra candidates.

If we treat the two cells containing the extra candidates as a single unit, their extra candidates can combine with other cells in the same row, column, or block to form a Locked Subset. For instance, if the extra candidates in the two rectangle cells are 5 and 6, those two cells behave as if they form a virtual cell with candidates {5, 6} for the purpose of uniqueness. If we have another cell in the same row containing {5, 6}, we now have a Naked Pair. If we have two other cells containing combinations of {5, 6, 7}, we can form a Naked Triple. This allows us to eliminate those subset candidates from other non-rectangle cells in that shared house.

Step-by-Step Example of Type 3

Unique Rectangle Type 4: Conjugate Pairs and Strong Links

Unique Rectangle Type 4 utilizes the concept of strong links (conjugate pairs) to eliminate one of the main candidates. It is used when two cells of the rectangle contain extra candidates, and we can find a conjugate pair for one of the main candidates in the opposite parallel line of the rectangle.

Suppose our rectangle has candidates {A, B}. Two cells contain only {A, B}, and the other two cells contain {A, B} plus extra candidates. If we look at the side of the rectangle that has the extra candidates, we examine the distribution of candidates A and B. If one of those candidates (say, A) cannot appear anywhere else in that row or column outside of the rectangle, then A has a strong link within the rectangle. This means one of those two cells must be A. If one of them must be A, and we were to also place B in the other cell, we would be perilously close to the Deadly Pattern. More specifically, we can deduce that the other candidate B cannot be placed in the cells with the extra candidates, because doing so would force the Deadly Pattern. Thus, we can eliminate candidate B from the two cells containing the extra candidates.

Step-by-Step Example of Type 4

Unique Rectangle Type 5: Diagonal Variations

Unique Rectangle Type 5 is a variation that occurs when the extra candidates are diagonally opposite each other, rather than sharing a row or column. For example, if R1C1 and R8C8 contain the extra candidates, while R1C8 and R8C1 are clean {A, B} cells.

In this scenario, if the extra candidate is the same number (say, C) in both diagonal cells, we can apply uniqueness logic. To prevent the Deadly Pattern, at least one of the diagonal cells must contain the extra candidate C. Consequently, any cell that can see both diagonal cells simultaneously can have candidate C eliminated. While diagonal cells have fewer intersecting cells than cells sharing a row or column, any mutual intersection points in the grid are valid targets for elimination.

Unique Rectangle Type 6: Diagonal Strong Links

Unique Rectangle Type 6 is another advanced variation that occurs when we have two clean {A, B} cells diagonally opposite each other, and two cells with extra candidates diagonally opposite each other. Additionally, we must have strong links for both main candidates A and B across the sides of the rectangle.

If we can establish that candidate A is locked into one set of parallel edges of the rectangle, and candidate B is locked into the other, we can perform eliminations. Specifically, we can eliminate the main candidates from the cells containing the extra candidates if placing them there would force the remaining cells to resolve into the Deadly Pattern. Type 6 is relatively rare but highly satisfying to execute when all other paths are blocked.

Avoidable Rectangles: Uniqueness with Filled Cells

An Avoidable Rectangle (AR) is a close cousin of the Unique Rectangle, but with a twist: instead of relying on pencil marks (candidates), it relies on cells that have already been solved. It is called "avoidable" because we must avoid completing a rectangle of solved cells that would match a Deadly Pattern, which would imply the puzzle creator made a mistake or that our solved cells are incorrect.

For an Avoidable Rectangle to exist, we must identify a rectangle of four cells. Two or three of these cells must already be filled in with solved digits (either given clues or solved by you). If these solved cells, combined with the remaining unsolved cells, threaten to form a Deadly Pattern, we can make eliminations. The key rule is that we cannot have a completed rectangle of four cells sharing two rows, two columns, and two blocks, filled with only two numbers, where none of those four cells were pre-filled "given" clues. If all four cells were solved by the player, it would mean the player has created a Deadly Pattern, which is impossible if the puzzle has a unique solution. Therefore, at least one of our solved cells must have a different value, or the remaining candidates must be adjusted.

Avoidable Rectangle Type 1

In Avoidable Rectangle Type 1, three of the corners are solved. Two of these solved corners contain number A, and one contains number B. The fourth corner is unsolved and contains candidates {A, B}. Crucially, none of the solved cells of value A can be original given clues (they must be digits you filled in). If the fourth cell were solved as B, it would complete the Deadly Pattern. Therefore, the fourth cell cannot be B, and we can eliminate candidate B from that cell.

Hidden Unique Rectangles

Sometimes, the Deadly Pattern is hidden beneath other candidates, but can be revealed by analyzing the strong and weak links of the grid. A Hidden Unique Rectangle occurs when a standard Unique Rectangle layout has extra candidates in multiple cells, but we can prove that a specific candidate must occupy a corner cell. By tracing the links of a candidate around the rectangle, we can perform eliminations. For instance, if one of the corners has a candidate that must go in that cell due to column or row restrictions (a hidden single), it immediately simplifies the rectangle and allows you to apply standard Unique Rectangle rules to the remaining cells.

Practical Tips for Spotting Unique Rectangles

Detecting Unique Rectangles requires a keen eye and systematic scanning. Here are some practical tips to help you find them in your games:

  1. Look for Bivalue Cells: Scan the grid for cells that contain exactly two candidates. When you find a pair of identical bivalue cells (e.g., two cells containing {3, 8}), check if they share a row or column.
  2. Complete the Rectangle: Once you find two matching bivalue cells, locate the other two corners of the rectangle they project. Check the candidates in those corresponding corners. If they also contain the same two candidates (possibly with extras), you have found a Unique Rectangle candidate.
  3. Verify the Blocks: Remember that a Unique Rectangle must span exactly two 3x3 blocks. A rectangle that spans three or four blocks, or lies entirely within one or two blocks in a way that doesn't align with the two-row/two-column/two-block rule, is not a Deadly Pattern. Always ensure the corners are distributed as two cells in one block and two cells in another block.
  4. Keep Candidates Updated: Uniqueness techniques rely heavily on accurate candidate lists. Make sure you have fully cleaned up your pencil marks before executing these strategies, as an overlooked candidate in another cell could invalidate the logic.
  5. Use Uniqueness as a Mid-to-Late Game Tool: Unique Rectangles are easiest to spot when the grid is partially solved and many cells have been reduced to two or three candidates. Don't waste time looking for them at the very beginning of a puzzle.

Conclusion

Mastering Unique Rectangles elevates your Sudoku play from basic calculation to advanced logical deduction. By utilizing the Uniqueness Principle, you can bypass incredibly complex chains and loops, finding elegant shortcuts to solve the most challenging puzzles. Whether it's the straightforward Type 1 elimination or the sophisticated subset logic of Type 3, adding Unique Rectangles to your solving toolkit will ensure you are rarely left without a move on sudokuzio.fun.