Sudoku Constraints: The Three Rules That Define Every Puzzle

A constraint is a rule that limits which digits can be placed in a cell. Standard Sudoku has three constraints - row, column, and box - and every solving technique is a method for combining them.

Constraint types (Row, column, box)
3
Constraint groups (9 of each type)
27
Constraints per cell (One of each type)
3
Digit range (No repeats per group)
1-9

What Is a Sudoku Constraint?

A constraint is the formal name for one of Sudoku's "no repeats" rules. Standard Sudoku has three: each row, each column, and each box must contain the digits 1 through 9 exactly once. That is a total of 27 constraint groups (9 + 9 + 9), and every cell belongs to exactly three of them.

Every solving technique - from naked singles to forcing chains - is just clever bookkeeping over these constraints. Eliminations remove digits forbidden by a constraint; placements satisfy three constraints at once.

How Constraints Drive Solving

When you place a digit in a cell, that placement broadcasts to the rest of the cell's row, column, and box. Every other cell in those three constraint groups loses that digit as a candidate. This cascade is what turns one placement into many.

Constraints also let you reason in reverse: if a digit appears in only one cell within a constraint group, that cell must hold the digit (a hidden single). If n cells inside a group share n candidates, those digits are locked there (a subset).

Row constraint: each row has digits 1-9 once

Column constraint: each column has digits 1-9 once

Box constraint: each 3x3 box has digits 1-9 once

27 constraint groups in a standard puzzle

Variants add extra constraints (diagonals, cages, etc.)

Constraints in Sudoku Variants

Sudoku variants are defined by their extra constraints. Diagonal Sudoku adds two more 'no repeat' lines. Killer Sudoku adds cage-sum constraints. Thermo Sudoku adds increasing-order constraints along thermometers. The solving logic is the same - more constraints, more eliminations.

Frequently Asked Questions

Are constraints the same as rules?

Effectively yes. 'Constraint' is the precise term used in puzzle theory, while 'rule' is the everyday word. Both refer to the requirement that digits 1-9 appear exactly once in each row, column, and box.

How many constraints touch one cell?

Three in standard Sudoku - one row, one column, one box. In variants like Diagonal Sudoku, the four cells on each diagonal also touch a fourth constraint.

Can a Sudoku be solved with row and column constraints only?

That would just be a Latin square - far easier than Sudoku and usually with many solutions. The box constraint is what makes Sudoku interesting and gives it a unique solution.

Explore More

Related Glossary Terms

View full glossary

Ready to put your skills to the test?

Try Final Sudoku - an ad-free Sudoku experience with smart tools

Get Our App