Variants · Sudoku Pro

Sandwich Sudoku: solve the gap between 1 and 9

Understand why only the cells between the boundary digits contribute to a row or column clue.

Partial candidate illustrations, not complete solved Sudoku boards. Verify candidate restrictions on a real grid before eliminating.

1. Identify the boundaries first

In Sandwich Sudoku, each row or column may have a clue equal to the sum of digits strictly between 1 and 9 in that line. Neither boundary contributes to the total, regardless of whether 1 appears before 9 or vice versa. Digits outside the boundaries are also excluded.

2. Work a clue of six

Suppose a row’s sandwich clue is 6. If exactly one cell lies between 1 and 9, that cell must be 6. If two cells lie between them, the only distinct digits from 2–8 that total 6 are 2 and 4, in either order. A three-cell gap is impossible here: the smallest three different interior digits are 2+3+4=9.

3. Don't mistake a sum for a position

The clue 6 alone does not say where 1 and 9 must go, or whether the gap is one or two cells. Try candidate boundary positions, use each line’s known digits, then test whether the available interior cells can reach the clue without repeating an ordinary Sudoku digit.

4. Cross-check the standard puzzle

Every row, column and 3×3 box still contains each 1–9 exactly once. A sandwich-compatible proposed arrangement can still violate a column or box. Update the line sum only after the boundary positions are established or enough other candidates are excluded.

Check your understanding

Can three distinct interior digits make a sandwich sum of 6?

Open the explained answer

No. Interior digits cannot be 1 or 9, and the smallest three distinct available digits are 2, 3, 4, summing to 9.

This self-check requires no account and sends no answers to a server.

Deeper practical examples and reasoning

In Sandwich Sudoku the clue is the sum strictly between the 1 and 9 in a row or column; the two boundary digits are not included. Identify possible positions of both boundaries first, then compare the remaining interior sums against the clue.

Identify the bread before summing the filling

A Sandwich Sudoku clue for a row refers to digits strictly between 1 and 9 as they appear along that row. For example, if 1 is in column 3 and 9 in column 7, the clue sums only columns 4, 5 and 6; neither boundary digit contributes. If the digits in those three interior cells are 2, 5 and 6, their sum is 13. The same logic applies in the other direction if 9 occurs before 1. First locate the possible boundary positions, then calculate the permitted interior totals.

A zero clue is an adjacency constraint

If the clue equals zero, there cannot be any positive-digit cells strictly between 1 and 9, so the boundary digits must be adjacent in the usual puzzle. This does not say the full row sums to zero; an ordinary 1–9 row still sums to 45. In a partially solved puzzle, mark possible adjacent slots for 1 and 9, then use row, column and box constraints to eliminate impossible placements.